Agent Skill
2/7/2026

midnight-compact-guide

Comprehensive guide to writing Compact smart contracts for Midnight Network. Use this skill when writing, reviewing, debugging, or learning Compact code. Triggers on "write a contract", "Compact syntax", "Midnight smart contract", "ledger state", "circuit function", or "ZK proof".

E
eddalabs
0GitHub Stars
1Views
npx skills add eddalabs/midnight-contracts

SKILL.md

Namemidnight-compact-guide
DescriptionComprehensive guide to writing Compact smart contracts for Midnight Network. Use this skill when writing, reviewing, debugging, or learning Compact code. Triggers on "write a contract", "Compact syntax", "Midnight smart contract", "ledger state", "circuit function", or "ZK proof".

Midnight Contracts

This project provides a comprehensive testing framework for the Midnight blockchain platform. We include contracts, witnesses, Midnight SDKs, testing suites, and providers to thoroughly test Midnight's features, evaluate performance, and conduct real-world scenario testing

📦 Prerequisites

  • Node.js (v23+) & npm (v11+)
  • Docker
  • Compact (Midnight developer tools)

Available Contracts

Counter

  • Contract Folder - Compact, witness and testing.
  • CLI Folder - CLI for interacting with the contract and providers.

Bulleting Board Contract

  • Bboard Folder - Compact, witness and testing.

ZSwap Minting Contract

  • Contract Folder - Compact, witness and testing.

Bucket-DeFi Contracts

  • Contract Folder - Compact, witness and testing

Installation

  1. Install dependencies:
npm install
  1. Build the contracts:
npm run build

Contract List

  • Counter Contract
  • Bulleting Board Contract
  • ZSwap Minting Contract
  • Bucket-DeFi Contract
Skills Info
Original Name:midnight-compact-guideAuthor:eddalabs