What problem does it solve?
This Skill centralizes operational knowledge for the Midnight.js SDK so developers can reliably deploy, call, and maintain Compact contracts without guessing provider wiring, transaction sequencing, or verifier management.
Core Features & Use Cases
- Package map and exports: authoritative list of the 10 midnight-js packages and their primary exports for deployment, proving, indexing, and utilities.
- Provider architecture: clear definitions and usage patterns for WalletProvider, MidnightProvider, PublicDataProvider, PrivateStateProvider, ZkConfigProvider, and ProofProvider.
- Transaction lifecycle: end-to-end guidance for build, prove, balance, submit, and finalize stages, including high-level callTx and low-level create/submit flows.
- Operational tasks: contract deployment and discovery, verifier key insertion/removal, authority replacement, observable state subscriptions, and testkit-js based integration tests.
- Use case: integrate browser wallets or Node.js test wallets, generate proofs via a proof server, add fees via wallet balancing, submit transactions to a Midnight node, and watch finalization via the indexer.
Quick Start
Ask how to configure MidnightProviders, deploy a Compact contract with deployContract, call a circuit, and observe finalization using the publicDataProvider.