midnight-dapp:state-management
CommunityRead, sync, and cache contract state.
Authoraaronbassett
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Reading and coordinating the dual-state model in Midnight DApps (public ledger state and private local state) is complex; this Skill provides guidance to build reactive UIs, cache publicly observable data safely, and reason about private state in witnesses.
Core Features & Use Cases
- Read public contract state from the indexer and keep UI in sync with chain state.
- Cache frequently accessed public data for performance while respecting privacy boundaries.
- Understand the separation between public and private state and implement witnesses to access private data.
- Handle chain synchronization patterns (initial load, polling, real-time updates, optimistic UI) to provide a smooth user experience.
Quick Start
Enable public state reads, subscribe to updates, and implement privacy-aware caching to provide a responsive UI.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: midnight-dapp:state-management Download link: https://github.com/aaronbassett/midnight-knowledgebase/archive/main.zip#midnight-dapp-state-management Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.