diff --git a/apps/docs/src/pages/en/_meta.js b/apps/docs/src/pages/en/_meta.js index bd8fe9e..09adcbb 100644 --- a/apps/docs/src/pages/en/_meta.js +++ b/apps/docs/src/pages/en/_meta.js @@ -7,7 +7,32 @@ export default { title: "Wiki", route: "/wiki", }, - '--': { + '-': { + type: 'separator', + }, + playground: {}, + '-': { + type: 'separator', + }, + packages: { + title: "Packages", + route: "/packages", + }, + '-': { + type: 'separator', + }, + starter_template: { + title: "Starter Template", + route: "/starter_template", + }, + '-': { + type: 'separator', + }, + contracts: { + title: "Contracts", + route: "/contracts", + }, + '-': { type: 'separator', }, examples: { diff --git a/apps/docs/src/pages/en/contracts/_meta.js b/apps/docs/src/pages/en/contracts/_meta.js new file mode 100644 index 0000000..9692454 --- /dev/null +++ b/apps/docs/src/pages/en/contracts/_meta.js @@ -0,0 +1,6 @@ +export default { + "tokenization": { + title: "Tokenization", + route: "/tokenization", + }, +}; diff --git a/apps/docs/src/pages/en/examples/amm/0001.mdx b/apps/docs/src/pages/en/contracts/tokenization/0001.mdx similarity index 62% rename from apps/docs/src/pages/en/examples/amm/0001.mdx rename to apps/docs/src/pages/en/contracts/tokenization/0001.mdx index 25ab8bf..ab8eab6 100644 --- a/apps/docs/src/pages/en/examples/amm/0001.mdx +++ b/apps/docs/src/pages/en/contracts/tokenization/0001.mdx @@ -1,8 +1,8 @@ --- -title: AMM +title: Introduction description: Introduction asIndexPage: true -sidebarTitle: AMM +sidebarTitle: Introduction --- # 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/examples/_meta.js b/apps/docs/src/pages/en/examples/_meta.js index 62d3078..1b20f5f 100644 --- a/apps/docs/src/pages/en/examples/_meta.js +++ b/apps/docs/src/pages/en/examples/_meta.js @@ -1,22 +1,6 @@ export default { - "examples": { - title: "Midnight examples", - route: "/examples", + "swap_minting": { + title: "Swap & Minting", + route: "/swap_minting", }, - "auction-token": { - title: "Auction & Token", - route: "/auction-token", - }, - "sea-battle": { - title: "Sea Battle", - route: "/sea-battle", - }, - "voting": { - title: "Voting", - route: "/voting", - }, - "amm": { - title: "AMM", - route: "/amm", - }, }; diff --git a/apps/docs/src/pages/en/examples/auction-token/0001.mdx b/apps/docs/src/pages/en/examples/auction-token/0001.mdx deleted file mode 100644 index 948ee61..0000000 --- a/apps/docs/src/pages/en/examples/auction-token/0001.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Auction & Token -description: Introduction -asIndexPage: true -sidebarTitle: Auction & Token ---- - -# 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/examples/examples/0002.mdx b/apps/docs/src/pages/en/examples/examples/0002.mdx deleted file mode 100644 index f065ba3..0000000 --- a/apps/docs/src/pages/en/examples/examples/0002.mdx +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: Understand the code -description: Understand the code used within the repository -asIndexPage: true -sidebarTitle: Understand the code ---- - -## 📺 Video Walkthroughs – Understand the code (Part 1) -- [Version in English](https://youtu.be/6Fsws6YrMbM) -- [Versión en español](https://youtu.be/OSCNs0Zevrk) -- [Versão em português](https://youtu.be/mJ68h3eaLZ0) - -## 📺 Video Walkthroughs – Understand the code (Part 2) -- [Version in English](https://youtu.be/-V400M1v8zY) -- [Versión en español](https://youtu.be/GENPLe1cRWA) -- [Versão em português](https://youtu.be/01_h8yiZkUQ) - -## ✍️ Understand the code - -### Repo Arquitecture -![Repo Arquitecture](/midnight-examples/structure.png) -1. Monorepo and Workspaces: https://yarnpkg.com/features/workspaces -2. Turbo Repo: https://turbo.build/ -3. Midnight packages: https://docs.midnight.network/relnotes/overview -4. RxJs: https://rxjs.dev/guide/overview -5. Test Containers: https://testcontainers.com/ - -### Compiler Wrapper -1. ***childProcess.spawn***: -This function is responsible for launching the actual compiler binary as a separate process, inheriting the parent’s I/O, and ensuring that the exit code of the spawned process is passed back to the calling environment. - -2. ***Wrapper Script in bin***: -By defining a command-line entry point in the bin field, your package becomes easily executable from the terminal. The wrapper script uses the spawn function to locate and run the appropriate binary (based on environment variables or default paths), providing flexibility and robustness in how your tool is deployed and run. -``` bash /childProcess.spawn/ -const childProcess = require('child_process'); -const path = require('path'); - -const [_node, _script, ...args] = process.argv; -const COMPACT_HOME_ENV = process.env.COMPACT_HOME; - -let compactPath; -if (COMPACT_HOME_ENV != null) { - compactPath = COMPACT_HOME_ENV; - console.log(`COMPACT_HOME env variable is set; using Compact from ${compactPath}`); -} else { - compactPath = path.resolve(__dirname, '..', 'compactc'); - console.log(`COMPACT_HOME env variable is not set; using fetched compact from ${compactPath}`); -} - -// yarn runs everything with node... -const child = childProcess.spawn(path.resolve(compactPath, 'compactc'), args, { - stdio: 'inherit' -}); -child.on('exit', (code, signal) => { - if (code === 0) { - process.exit(0); - } else { - process.exit(code ?? signal); - } -}) -``` - -### Counter Example -Detailed explanation featured in the YouTube videos above -1. Compact Contract -2. Oracle -3. API -4. TUI - -### Bboard Example -Detailed explanation featured in the YouTube videos above -1. Compact Contract -2. Oracle -3. API -4. TUI -5. UI diff --git a/apps/docs/src/pages/en/examples/sea-battle/0001.mdx b/apps/docs/src/pages/en/examples/sea-battle/0001.mdx deleted file mode 100644 index 530ab82..0000000 --- a/apps/docs/src/pages/en/examples/sea-battle/0001.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Sea Battle -description: Introduction -asIndexPage: true -sidebarTitle: Sea Battle ---- - -# 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/examples/voting/0001.mdx b/apps/docs/src/pages/en/examples/swap_minting/0001.mdx similarity index 62% rename from apps/docs/src/pages/en/examples/voting/0001.mdx rename to apps/docs/src/pages/en/examples/swap_minting/0001.mdx index b877a12..ab8eab6 100644 --- a/apps/docs/src/pages/en/examples/voting/0001.mdx +++ b/apps/docs/src/pages/en/examples/swap_minting/0001.mdx @@ -1,8 +1,8 @@ --- -title: Voting +title: Introduction description: Introduction asIndexPage: true -sidebarTitle: Voting +sidebarTitle: Introduction --- # 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/packages/_meta.js b/apps/docs/src/pages/en/packages/_meta.js new file mode 100644 index 0000000..fea991b --- /dev/null +++ b/apps/docs/src/pages/en/packages/_meta.js @@ -0,0 +1,6 @@ +export default { + "wallet_widget": { + title: "Wallet Widget", + route: "/wallet_widget", + }, +}; diff --git a/apps/docs/src/pages/en/wiki/4_react_components/0_installtion_providers.mdx b/apps/docs/src/pages/en/packages/wallet_widget/0_installtion_providers.mdx similarity index 100% rename from apps/docs/src/pages/en/wiki/4_react_components/0_installtion_providers.mdx rename to apps/docs/src/pages/en/packages/wallet_widget/0_installtion_providers.mdx diff --git a/apps/docs/src/pages/en/wiki/4_react_components/1_ui_components.mdx b/apps/docs/src/pages/en/packages/wallet_widget/1_ui_components.mdx similarity index 73% rename from apps/docs/src/pages/en/wiki/4_react_components/1_ui_components.mdx rename to apps/docs/src/pages/en/packages/wallet_widget/1_ui_components.mdx index 56c9612..f0d58c6 100644 --- a/apps/docs/src/pages/en/wiki/4_react_components/1_ui_components.mdx +++ b/apps/docs/src/pages/en/packages/wallet_widget/1_ui_components.mdx @@ -4,7 +4,6 @@ description: React ready-to-use components asIndexPage: true sidebarTitle: Wallet UI Components --- -import { Callout } from "nextra/components"; # Wallet UI Components @@ -35,25 +34,5 @@ export default function Home() { ); } ``` - -Output of the component - - -import { MidnightMeshProvider, MidnightWallet } from "@meshsdk/midnight-react"; -import "@meshsdk/midnight-react/styles.css"; -import * as pino from "pino"; - -export function Wallet() { - const logger = pino.pino({ - level: "trace", - }); - return ( - -
- -
-
- ); -} - + diff --git a/apps/docs/src/pages/en/wiki/4_react_components/2_hooks.mdx b/apps/docs/src/pages/en/packages/wallet_widget/2_hooks.mdx similarity index 100% rename from apps/docs/src/pages/en/wiki/4_react_components/2_hooks.mdx rename to apps/docs/src/pages/en/packages/wallet_widget/2_hooks.mdx diff --git a/apps/docs/src/pages/en/playground.mdx b/apps/docs/src/pages/en/playground.mdx new file mode 100644 index 0000000..30b2b10 --- /dev/null +++ b/apps/docs/src/pages/en/playground.mdx @@ -0,0 +1,8 @@ +--- +title: Playground +description: Midnight Playground +asIndexPage: true +sidebarTitle: Playground +--- + +# 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/starter_template/index.mdx b/apps/docs/src/pages/en/starter_template/index.mdx new file mode 100644 index 0000000..793566a --- /dev/null +++ b/apps/docs/src/pages/en/starter_template/index.mdx @@ -0,0 +1,8 @@ +--- +title: Initialize +description: Initialize your project +asIndexPage: true +sidebarTitle: Initialize +--- + +# 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/wiki/0_to_get_oriented/0001.md b/apps/docs/src/pages/en/wiki/0_to_get_oriented/0001.md deleted file mode 100644 index 76d4fa2..0000000 --- a/apps/docs/src/pages/en/wiki/0_to_get_oriented/0001.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Navigating the Midnight Ecosystem -description: A bit of theory and comparison between different approaches -asIndexPage: true -sidebarTitle: Navigating the Midnight Ecosystem ---- - -# 🚧 Coming Soon 🚀 \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/1_theory_and_comparison/1001.md b/apps/docs/src/pages/en/wiki/1_theory_and_comparison/1001.md deleted file mode 100644 index 6e71df7..0000000 --- a/apps/docs/src/pages/en/wiki/1_theory_and_comparison/1001.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Solutions and Comparisons -description: A few insightful information on general comparison of Midnight and Cardano from a builders perspective -asIndexPage: true -sidebarTitle: Solutions and Comparisons ---- - -# 🚧 Coming Soon 🚀 \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/1_theory_and_comparison/1002.md b/apps/docs/src/pages/en/wiki/1_theory_and_comparison/1002.md deleted file mode 100644 index 9b029b6..0000000 --- a/apps/docs/src/pages/en/wiki/1_theory_and_comparison/1002.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Staking Systems -description: A few insightful information on general comparison of Midnight and Cardano from a builders perspective -asIndexPage: true -sidebarTitle: Staking Systems ---- - -# 🚧 Coming Soon 🚀 \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/2_getting_hands_on/2001.md b/apps/docs/src/pages/en/wiki/2_getting_hands_on/2001.md deleted file mode 100644 index 332aecb..0000000 --- a/apps/docs/src/pages/en/wiki/2_getting_hands_on/2001.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Building a Smart Contract in Compact -description: Simple guide to help you build your first smart contract on Midnight, using Compact! (a Typescript-based language) -asIndexPage: true -sidebarTitle: Building a Smart Contract ---- - -# 🚧 Coming Soon 🚀 \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/3_smart_contracts_lib/3001.md b/apps/docs/src/pages/en/wiki/3_smart_contracts_lib/3001.md deleted file mode 100644 index de249d9..0000000 --- a/apps/docs/src/pages/en/wiki/3_smart_contracts_lib/3001.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Menu -description: Smart Contracts Lib Menu -asIndexPage: true -sidebarTitle: Menu ---- - -# 🚧 Coming Soon 🚀 \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/_meta.js b/apps/docs/src/pages/en/wiki/_meta.js index 8692d0c..78df611 100644 --- a/apps/docs/src/pages/en/wiki/_meta.js +++ b/apps/docs/src/pages/en/wiki/_meta.js @@ -1,23 +1,10 @@ export default { - index: {}, - "0_to_get_oriented": { - title: "To get oriented", - route: "/0_to_get_oriented", - }, - "1_theory_and_comparison": { - title: "Theory and comparison", - route: "/1_theory_and_comparison", - }, - "2_getting_hands_on": { - title: "Getting hands on", - route: "/2_getting_hands_on", - }, - "3_smart_contracts_lib": { - title: "Smart Contracts Lib", - route: "/3_smart_contracts_lib", - }, - "4_react_components": { - title: "React Components", - route: "/4_react_components", - }, + training: { + title: "Training", + route: "/training", + }, + academy: {}, + blogs: {}, + diaries: {}, + hackathons: {}, }; diff --git a/apps/docs/src/pages/en/wiki/academy.mdx b/apps/docs/src/pages/en/wiki/academy.mdx new file mode 100644 index 0000000..c1ea1d9 --- /dev/null +++ b/apps/docs/src/pages/en/wiki/academy.mdx @@ -0,0 +1,13 @@ +--- +title: Academy +description: Midnight Academy +asIndexPage: true +sidebarTitle: Academy +--- + +# Midnight Developer Academy +Welcome to the Midnight Developer Academy — your guided journey into blockchain development with a focus on zero-knowledge proofs, privacy, and the Midnight platform. + +Whether you're just getting started or looking to sharpen your skills, each module is designed to build your understanding step by step — from foundational concepts to building full DApps. + +### [Academy ->](https://docs.midnight.network/academy/) \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/blogs.mdx b/apps/docs/src/pages/en/wiki/blogs.mdx new file mode 100644 index 0000000..9592dbb --- /dev/null +++ b/apps/docs/src/pages/en/wiki/blogs.mdx @@ -0,0 +1,11 @@ +--- +title: Blogs +description: Midnight Blogs +asIndexPage: true +sidebarTitle: Blogs +--- + +# What’s new at Midnight +Stay up to date with the latest developments – including innovations that harness Midnight’s data protection capabilities, news on network updates, and everything you need to know about contributing to the Midnight network. + +### [Blogs ->](https://midnight.network/blog) \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/diaries.mdx b/apps/docs/src/pages/en/wiki/diaries.mdx new file mode 100644 index 0000000..15c76df --- /dev/null +++ b/apps/docs/src/pages/en/wiki/diaries.mdx @@ -0,0 +1,11 @@ +--- +title: Diaries +description: Midnight Diaries +asIndexPage: true +sidebarTitle: Diaries +--- + +# Midnight Diaries +Explore Midnight latest updates + +### [Diaries ->](https://docs.midnight.network/blog/) \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/hackathons.mdx b/apps/docs/src/pages/en/wiki/hackathons.mdx new file mode 100644 index 0000000..25ab5f8 --- /dev/null +++ b/apps/docs/src/pages/en/wiki/hackathons.mdx @@ -0,0 +1,11 @@ +--- +title: Hackathons +description: Midnight Hackathons +asIndexPage: true +sidebarTitle: Hackathons +--- + +# Midnight Hackathons +Explore Midnight latest hackathons + +### [Hackathons ->](https://midnight.network/hackathon/) \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/index.mdx b/apps/docs/src/pages/en/wiki/index.mdx deleted file mode 100644 index 24769e3..0000000 --- a/apps/docs/src/pages/en/wiki/index.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Purpose and Aim -description: Cardano 4 Midnight Developer Learning Hub -asIndexPage: true -sidebarTitle: Purpose and Aim ---- - -# 🚧 Coming Soon 🚀 diff --git a/apps/docs/src/pages/en/examples/examples/0001.mdx b/apps/docs/src/pages/en/wiki/training/001_requirements.mdx similarity index 82% rename from apps/docs/src/pages/en/examples/examples/0001.mdx rename to apps/docs/src/pages/en/wiki/training/001_requirements.mdx index 6d6e132..0e6dfc3 100644 --- a/apps/docs/src/pages/en/examples/examples/0001.mdx +++ b/apps/docs/src/pages/en/wiki/training/001_requirements.mdx @@ -1,15 +1,10 @@ --- -title: Build & Run -description: Build and run the Midnight examples repository +title: Requirements +description: Requirements for Windows asIndexPage: true -sidebarTitle: Build & Run +sidebarTitle: Requirements --- -## 📺 Video Walkthroughs – Build & Run Setup -- [Version in English](https://www.youtube.com/watch?v=W03Hjqcc5vY) -- [Versión en español](https://www.youtube.com/watch?v=yJcKTxtBNPA) -- [Versão em português](https://www.youtube.com/watch?v=Y8bQ0Tme_JQ) - ## ✍️ Requirements for Windows ### WSL2 diff --git a/apps/docs/src/pages/en/wiki/training/002_youtube_midnight_sessions.mdx b/apps/docs/src/pages/en/wiki/training/002_youtube_midnight_sessions.mdx new file mode 100644 index 0000000..8f575a7 --- /dev/null +++ b/apps/docs/src/pages/en/wiki/training/002_youtube_midnight_sessions.mdx @@ -0,0 +1,119 @@ +--- +title: Midnight Sessions +description: Midnight Sessions +asIndexPage: true +sidebarTitle: Midnight Sessions +--- + +# ✍️ Midnight Sessions +## Github repo: +- https://github.com/MeshJS/midnight +- https://github.com/MeshJS/midnight-starter-template + +## 📺 Midnight Session #1 +#### Description: +Erick introduced the midnight session, covering ecosystem updates, technical deep dives into the Testnet O2 upgrade and the "example counter" repo, and Q&A. The ecosystem catalog and core team updates on blogs, podcasts, and education were highlighted, along with DevRel meetings and monthly hackathons. Participants like Paul discussed the example counter and requested templates, and ongoing community projects by John Santi, Ivan, and David were mentioned. + +#### Duration: 30min +- [Version in English](https://youtu.be/n31xDzpbqi8) +- [Versión en español](https://youtu.be/FDuGgxJGklk) +- [Versão em português](https://youtu.be/SOdpFukgTkw) + +## 📺 Midnight Session #2 +#### Description: +Erick provided updates on the Lace wallet, the Midnight and Outlier Ventures partnership for the "Base Camp" accelerator, and the launch of Midnight Academy tutorials. The meeting also covered an ongoing hackathon, tooling development with Mesh, a technical deep dive into Midnight smart contract structure including types, configurations, architecture with its providers, standalone and remote configurations, and testing. Leif and Atosi engaged in discussions with Erick regarding Midnight's blockchain structure, interoperability, contract deployment, SDK usage, the concept of circuits, private data storage, regulation-friendly aspects, comparison to Monero, and the mainnet release timeline. + +#### Duration: 30min +- [Version in English](https://youtu.be/A88-OsBgb04) +- [Versión en español](https://youtu.be/USfdg6NLjQw) +- [Versão em português](https://youtu.be/tcBq7ReKpHc) + +## 📺 Midnight Session #3 +#### Description: +Erick detailed Keystone's partnership and their hardware wallet give away during Cardano Builder Fest, and outlined the Midnight ecosystem's structure with the Midnight Foundation and Shield Technologies, alongside recent development updates. He also covered decentralization, consensus mechanisms (highlighting Midnight's use of Cardano's Ouroboros), blockchain fundamentals, and the ongoing hackathon. Participants Erick and Solanki discussed community contributions, bug reporting, and ZK keys, while Erick and Paul addressed wallet syncing issues, seed phrase compatibility, and addressing differences between Midnight and Cardano. + +#### Duration: 30min +- [Version in English](https://youtu.be/huZ-D2PpOho) +- [Versión en español](https://youtu.be/HCJJ_6o9_-o) +- [Versão em português](https://youtu.be/keNhZ_B3-W4) + +## 📺 Midnight Session #4 +#### Description: +Ecosystem updates will cover Lace’s recent AMA on X, new Insight blog posts, and Midnight’s presence at Consensus 2025. In Education Academy we will introduce the tokenomics curriculum. For the Hackathon we will recap the revised deadlines, share judging criteria, and raise general awareness. The Technical Deep Dive will keep exploring the APIs—deploy, join, and increment—and we will close with an open Q&A and discussion. + +#### Duration: 30min +- [Version in English](https://youtu.be/lI-jKDEB2b0) +- [Versión en español](https://youtu.be/_8E4oo8L_cU) +- [Versão em português](https://youtu.be/xpfXv43cVpU) + +## 📺 Midnight Session #5 +#### Description: +In this Midnight session, we will cover a range of topics starting with a new module at the Education Academy focused on Cryptographic Foundations, including Hashing, Public-Key Cryptography, and Digital Signatures. In the Diaries section, we introduce the new Midnight Indexer. The Hackathon is reaching its final registration day, so last-minute sign-ups are encouraged. On the technical side, we will highlight key updates such as the release of the compact compiler and language versions v0.24 and v0.16, the new Midnight.js version v2.0.2, and the latest Indexer version v2.1.3. In the Technical Deep Dive, we will explore how state is stored, how transactions are composed and executed, and how to interpret circuit outputs. We will conclude with an Open Q&A and Discussion. + +#### Duration: 30min +- [Version in English](https://youtu.be/WDrXAQ5JAQU) +- [Versión en español](https://youtu.be/6wNDxMo_zzg) +- [Versão em português](https://youtu.be/99leG9hFLfs) + +## 📺 Midnight Session #6 +#### Description: +Let’s keep learning building ZK Dapps! 🚀 Today we will cover the upcoming NMKR Berlin Hackathon with photos and videos, explore a new blog just shared by Lauren on how developers level up with the Midnight network, and highlight advice from Brick Towers and the EddaLabs team. We’ll also dive into the functions displayCounterValue and createWalletAndMidnightProvider, and finish with an open Q&A and discussion. + +#### Duration: 30min +- [Version in English](https://youtu.be/r0vuxjSMeck) +- [Versión en español](https://youtu.be/UXK3Ox86kyE) +- [Versão em português](https://youtu.be/Drgr6JqhzGo) + +## 📺 Midnight Session #7 +#### Description: +The Ecosystem Tooling Hackathon features several key events aimed at developers and the community. Highlights include educational development diaries like "From Hex to Bech32m," which introduces Midnight's new standard for safer and smarter blockchain addresses. There is also a technical deep dive covering topics such as "Wallet State and Provider" and the "Midnight Provider." Additionally, there will be an open Q&A and discussion session to engage with the community and answer questions. + +#### Duration: 30min +- [Version in English](https://youtu.be/HkRtRU9p68w) +- [Versión en español](https://youtu.be/IU7n8Dbhkh4) +- [Versão em português](https://youtu.be/ABCvuqPhHqc) + +## 📺 Midnight Session #8 +#### Description: +This week's insights include a detailed look at the Midnight Whitepaper, focusing on tokenomics and incentives. A new hackathon has been launched, challenging participants to build Mini DApps. Additionally, a technical deep dive introduced developers to the Starter Template with a user interface (UI). Finally, there was an open Q&A and discussion session, allowing the community to engage and ask questions. + +#### Duration: 30min +- [Version in English](https://youtu.be/hioH0yPUCd4) +- [Versión en español](https://youtu.be/b_v96C91Ogo) +- [Versão em português](https://youtu.be/rTXZYsgqIb4) + +## 📺 Midnight Session #9 +#### Description: +Explore the latest from Midnight: insights from Money 20/20, updates to tokenomics, and a switch to BLS in the proving system. Learn smart contract basics in the Academy, discover hackathon winners, and try the Lace Wallet Beta in the Catalog. We finish by exploring the API functions in the Code section. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/sLhR5ypDFhI) +- [Versión en español](https://youtu.be/1S4tcVVQxZo) +- [Versão em português](https://youtu.be/1IRrammTqWU) + +## 📺 Midnight Session #10 +#### Description: +Midnight’s latest updates cover several key areas. The blog explores the Scavenger Mine and what lies ahead. In the Dev Diaries, they discuss simulating divisions in the Compact protocol. The Academy shares insights on smart contract vulnerabilities and secure development practices. A Mini DApp Virtual Hackathon invites innovation from developers. The Catalog highlights SheFi, a fast-growing Web3 education platform. On the code side, new API functions and a text-based user interface (TUI) have been introduced. The Q&A section remains open for community interaction. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/BErIE1FrM2U) +- [Versión en español](https://youtu.be/MI_tGBkNe4o) +- [Versão em português](https://youtu.be/qIdMXjADLas) + +## 📺 Midnight Session #11 +#### Description: +The update highlights recent developments and resources within the Midnight ecosystem. The blog covers how builders are tackling challenges in ecosystem tooling. Dev Diaries feature a guide on connecting a decentralized application (DApp) to the Lace Wallet using Midnight’s tools. The Academy section explains key properties of Zero-Knowledge Proofs (ZKPs), distinguishing between interactive and non-interactive types. In the Catalog, there’s a focus on token standards, including OpenZeppelin-compatible tokens and NMKR NFT standards. Additionally, there's ongoing work to better understand the TUI interface and how it handles transactions, as well as a Q&A section for community engagement. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/WvcdwTVxyZs) +- [Versión en español](https://youtu.be/TIIhGUMh8dw) +- [Versão em português](https://youtu.be/uojJAme1GAw) + +## 📺 Midnight Session #12 +#### Description: +This week’s highlights center on three core areas: Explore, Code, and Q&A. Under Explore, dive into educational content like how to become a Midnight block producer on testnet and a deep-dive into Merkle Trees and DAOs in the Web3 Dev Diaries. In the Code section, developers get hands-on with the Midnight transaction lifecycle—learning how to initiate, debug, and understand it within a standalone network. Finally, Q&A offers the opportunity to engage with experts and clear doubts directly from the source. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/br5jDHWovbg) +- [Versión en español](https://youtu.be/o3Tl7cMsHN8) +- [Versão em português](https://youtu.be/JF5UjIWflrg) \ No newline at end of file diff --git a/apps/docs/src/pages/en/wiki/training/003_youtube_examples.mdx b/apps/docs/src/pages/en/wiki/training/003_youtube_examples.mdx new file mode 100644 index 0000000..271dc44 --- /dev/null +++ b/apps/docs/src/pages/en/wiki/training/003_youtube_examples.mdx @@ -0,0 +1,39 @@ +--- +title: Understand the code +description: Understand the code used within the repository +asIndexPage: true +sidebarTitle: Understand the code +--- + +# ✍️ Understand the code +## Github repo: +- https://github.com/MeshJS/midnight +- https://github.com/MeshJS/midnight-starter-template + +## 📺 Video Walkthroughs – Building the code +#### Description: +This guide covers the essential steps to get started with the Midnight examples from the MeshJS GitHub repository. It begins with setting up your environment using WSL and Docker, followed by configuring the Lace Wallet for blockchain interactions. You'll also be guided through setting up Visual Studio Code (VsCode), running the Proof Server, and using the compiler. Additional topics include installing the VsCode Extension, installing the example projects, and building them for execution. Each step is aimed at ensuring a smooth installation and usage experience for developers exploring the Midnight framework. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/W03Hjqcc5vY) +- [Versión en español](https://youtu.be/yJcKTxtBNPA) +- [Versão em português](https://youtu.be/Y8bQ0Tme_JQ) + +## 📺 Video Walkthroughs – Understand the code (Part 1) +#### Description: +This segment dives deeper into the structure and tooling used in the Midnight project. It begins with an overview of the monorepo setup and the use of workspaces, followed by an introduction to Turbo Repo for efficient development workflows. The walkthrough continues with an exploration of various Midnight packages and how they interact. You'll also learn about using test containers, integrating RxJS for reactive programming, and working with the compiler wrapper. Finally, the guide demonstrates practical applications through a counter example, showcasing both the contract implementation and its interaction with an oracle/test environment. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/6Fsws6YrMbM) +- [Versión en español](https://youtu.be/OSCNs0Zevrk) +- [Versão em português](https://youtu.be/mJ68h3eaLZ0) + +## 📺 Video Walkthroughs – Understand the code (Part 2) +#### Description: +This section focuses on configuring the core components needed to run and interact with the Midnight network. It starts with an overview of the network setup, including details on endpoints and how they are structured. Next, it covers wallet configuration, ensuring secure and functional connections for transactions and contract interactions. The guide concludes with an explanation of provider configuration, highlighting how different services and tools are integrated to support development and deployment within the Midnight ecosystem. + +#### Duration: 1 hour +- [Version in English](https://youtu.be/-V400M1v8zY) +- [Versión en español](https://youtu.be/GENPLe1cRWA) +- [Versão em português](https://youtu.be/01_h8yiZkUQ) +