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:

  1. Detect where they are: Contract authoring → Provider setup → Deploy → Circuit calls → Indexer/state polling → UI
  2. Check for known gotchas first (see references/gotchas.md) before writing any provider or circuit code
  3. Copy provider wiring from references/midnight-session.md (canonical lib/midnight.ts for all browser dApps)
  4. Use low-level SDK functions (createUnprovenDeployTx, submitTxAsync, submitCallTxAsync) — never the high-level wrappers (deployContract, createProofProvider) which are broken on preprod
  5. Always wrap the public data provider with the patched version to avoid the GraphQL offset: null bug

Architecture

Installs
117
GitHub Stars
16
First Seen
Jul 2, 2026
example-payment-dapp — kali-decoder/midnight-skills