compact-core:basic-start
/compact-core:basic-start
Prowadzi krok po kroku przez pierwszy kontrakt Compact w Midnight: weryfikację środowiska, test i wdrożenie na devnecie.
- Autor
- midnightntwrk ↗
- Repozytorium
- midnight-expert ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 23.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 10
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: examples/ticket-witnesses.ts
Co robi i kiedy
Prowadzi krok po kroku przez pierwszy kontrakt Compact w Midnight: weryfikację środowiska, test i wdrożenie na devnecie.
Wyzwalacze z opisu
Oryginalny opis (EN)
This skill should be used when the user asks to "build my first Midnight DApp", "getting started from scratch", "verify my environment", "basic DApp tutorial", "test my Midnight setup", "hello world walkthrough", "new to Midnight", "first contract", "walk me through building a contract", or wants a step-by-step guide to creating and deploying a simple Compact smart contract on a local devnet.
Jak działa
- Prerequisites
- Working Directory
- Steps
- When something errors
- When You're Done
Podgląd SKILL.md
--- name: compact-core:basic-start description: This skill should be used when the user asks to "build my first Midnight DApp", "getting started from scratch", "verify my environment", "basic DApp tutorial", "test my Midnight setup", "hello world walkthrough", "new to Midnight", "first contract", "walk me through building a contract", or wants a step-by-step guide to creating and deploying a simple Compact smart contract on a local devnet. version: 0.1.0 --- > **EPHEMERAL — Everything produced by this skill is disposable.** This walkthrough generates code solely to verify your environment works and to build familiarity with Midnight development. Do not commit, push, or retain any generated code. Delete the working directory when done. # Basic Start: Your First Midnight DApp A step-by-step procedural guide that takes you from zero to a working Midnight DApp on a local devnet. Each step builds on the previous one, verifying your environment works correctly along the way. ## Prerequisites Before starting, ensure: - **Docker** is running (`docker info` should succeed) - **Node.js 22+** is installed (`node --version`) - **Compact CLI** is installed (`compact --version`) — if not, use `/midnight-tooling:install-cli` Run `/midnight-tooling:doctor` to check all prerequisites at once. ## Working Directory Create a temporary directory for this walkthrough. All generated files go here. ```bash mkdir -p /tmp/midnight-basic-start && cd /tmp/midnight-basic-start ``` ## Steps Work through each step in order. Each step's reference file contains the full procedure. | Step | Title | What It Verifies | Reference | |------|-------|-----------------|-----------| | 1 | Devnet Setup | Docker, node, indexer, proof server all running | `references/step-1-devnet-setup.md` | | 2 | Compact CLI | Compiler and CLI installed and up to date | `references/step-2-compact-cli.md` | | 3 | Wallet Setup | Wallet creation, NIGHT airdrop, DUST registration | `references/step-3-wallet-setup.md` | | 4 | Hello World Contract | Write, compile, deploy, and call a smart contract | `references/step-4-hello-world-contract.md` | | 5 | Token Transfer | Programmatic NIGHT transfer between wallets | `references/step-5-token-transfer.md` | | 6 | Ticket Contract | Privacy-preserving contract with commitments and nullifiers | `references/step-6-ticket-contract.md` | ## When something errors **Your first stop for any error code or message is `/midnight-status-codes:lookup`.** It decodes node rejections (e.g. `1010: Custom error: 117`), SDK/Effect errors, Compact compiler diagnostics, proof-server and indexer errors, and more — telling you what produced the error and how to fix it. ``` /midnight-status-codes:lookup 117 # a numeric node/ledger code /midnight-status-codes:lookup NotNormalized # an error name ``` Common early ones on a fresh devnet: **117** (NotNormalized — set a small `additionalFeeOverhead`, see step 4/5) and **1010** (the Substrate envelope that wraps the real `Custom(N)` cause). For environment problems, run `/midnight-tooling:doctor`. ## When You're Done Delete the temporary working directory: ```bash rm -rf /tmp/midnight-basic-start ``` Stop the devnet if you no longer need it: ``` /midnight-tooling:devnet stop --remove-volumes ```
Pliki w paczce (10)
- SKILL.md 3 KB
- examples/hello-world.compact 1 KB
- examples/ticket-witnesses.ts 2 KB
- examples/ticket.compact 3 KB
- references/step-1-devnet-setup.md 3 KB
- references/step-2-compact-cli.md 1 KB
- references/step-3-wallet-setup.md 13 KB
- references/step-4-hello-world-contract.md 23 KB
- references/step-5-token-transfer.md 11 KB
- references/step-6-ticket-contract.md 18 KB
Wersje
W bazie nie ma innych skilli o nazwie compact-core:basic-start.
Migawka bazy z 13.11.2026 · wersja paczki a65a37306fa3 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90compact-core:compact-init-project
Tworzy nowy projekt Midnight ze szkieletem kontraktu Compact i konfiguracją środowiska programistycznego. - 90midnight-cq:dapp-testing
Pisze testy end-to-end i komponentów dla DApp Midnight w Playwright: połączenie z portfelem, transakcje w interfejsie i stan kontraktu. - 90prompt-rewriter:generate-midnight-network-dapp-spec
Prowadzi adaptacyjny wywiad i przygotowuje zwięzły brief specyfikacji aplikacji DApp w sieci Midnight jako wejście dla planowania. - 100cursor-hello-world
Prowadzi przez pierwszy projekt w Cursor AI, jako krótki start i samouczek podstaw. - 100juicebox-hello-world
Tworzy minimalny działający przykład z Juicebox, czyli pierwsze wyszukiwanie osób na start pracy z narzędziem. - 90walkthrough
Prowadzi użytkownika krok po kroku przez testowanie lub weryfikację: wykonuje, co może, i sprawdza każdy wynik.