Midnight Club

GitHub Templates

Curated templates to kickstart your next Dapp on Midnight.

Hello World

Basic Compact usage with public state, ZK proofs, and CLI interaction.

Counter

Simple counter contract using Compact with public state and ZK proofs.

Calculator

Calculator using Compact with witness functions, verification, and CLI interaction.

Todo

Todo app using Compact with private state, ZK proofs, and CLI interaction.

Bulletin Board

Bulletin board using Compact with public state, ZK proofs, and CLI interaction.

Escrow

Escrow contract using Compact with public state, ZK proofs, and CLI interaction.

Voting

Voting app using Compact with a commit-reveal scheme and ZK proofs.

Quadratic Voting

Quadratic voting using Compact with private state and ZK proofs.

Token Transfers

Token transfers supporting minting, shielded and unshielded transfers using Compact.

Bonding Curve

Bonding curve contract using Compact with private state and ZK proofs.

ZK Allowlist

Private allowlist using Compact with ZK proofs — prove membership without revealing identity.

Battleship

Battleship game using Compact with private state and ZK proofs for hidden board verification.

Midnight Dice Roll

Derive dice outcomes from entropy, call the contract, and present a clean UI that reflects on-chain state in real time.

Coinflip Contract

Coinflip game using Compact with private state and ZK proofs for hidden board verification.

Coinflip dApp

Coinflip game using Compact with private state and ZK proofs for hidden board verification.

NFT Launchpad dApp

NFT launchpad using Compact with private state and ZK proofs for hidden board verification.