example-payment-dapp
Installation
SKILL.md
Midnight Network Payment DApp
A privacy-preserving payment vault: users deposit/withdraw tNIGHT through a Compact smart contract with zero gas fees via the 1AM wallet.
Workflow
When helping the user, follow this sequence:
- Detect where they are: Contract authoring → Provider setup → Deploy → Circuit calls → Indexer/state polling → UI
- Check for known gotchas first (see
references/gotchas.md) before writing any provider or circuit code - Copy provider wiring from
references/midnight-session.md(canonicallib/midnight.tsfor all browser dApps) - Use low-level SDK functions (
createUnprovenDeployTx,submitTxAsync,submitCallTxAsync) — never the high-level wrappers (deployContract,createProofProvider) which are broken on preprod - Always wrap the public data provider with the patched version to avoid the GraphQL
offset: nullbug