1am-wallet
Installation
SKILL.md
Scope
This skill covers detecting, connecting, and wiring the 1AM browser extension (window.midnight['1am']) into a frontend dApp. The 1AM wallet handles all ZK proving and dust fee sponsorship — users pay zero gas. This skill is generic: replace every YourContract / yourCircuit / your-contract placeholder with your actual contract name and circuit IDs.
Suggested file layout (adapt to your project):
src/lib/midnight.ts→ wallet session, provider wiring, indexer patch (canonical source:references/midnight-session.md)src/lib/encryption.ts→ optional payload encryption derived from wallet signaturesrc/hooks/useContract.ts→ app logic and state orchestrationsrc/contexts/WalletContext.tsx→ wallet connection state
Shared references: references/midnight-session.md, references/gotchas.md, references/versions.json
1) Dependencies
Exact versions known to work together: