compact-core:ledger-adts

Community

Master Compact ledger ADTs for on-chain state.

Authoraaronbassett
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ledger ADTs provide a structured, standards-based reference for on-chain state management in Midnight contracts, consolidating common data structures and their usage patterns in one place.

Core Features & Use Cases

  • Definition and declaration of standard ledger ADTs (Cell<T>, Counter, Map<K, V>, Set<T>, List<T>, MerkleTree<T>, HistoricMerkleTree<T>).
  • Illustrative operations and practical examples for common contract scenarios, including interoperability between Compact and TypeScript and guidance on their respective usage.
  • Best-practice patterns and design considerations for secure and efficient on-chain state management.

Quick Start

Create a contract with a simple Map or Counter and explore basic ADT operations to observe state changes.

Dependency Matrix

Required Modules

None required

Components

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: compact-core:ledger-adts
Download link: https://github.com/aaronbassett/midnight-knowledgebase/archive/main.zip#compact-core-ledger-adts

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.