example-counter
Installation
SKILL.md
Example Counter DApp Skill
This skill generates the complete, runnable midnightntwrk/example-counter reference DApp. It covers every file: Compact contract, TypeScript sources, entry points for each network, Docker compose files, test infrastructure, and all supporting config. The code matches the official implementation at github.com/midnightntwrk/example-counter (v2.1.1).
Primary references:
github.com/midnightntwrk/example-counter— official reference repodocs.midnight.network/guides/deploy-mn-app— official deploy guidedocs.midnight.network/guides/interact-with-mn-app— official interact guidedocs.midnight.network/relnotes/support-matrix— authoritative version compatibility matrix
Package versions match the official compatibility matrix (May 2026). Always cross-check against the support matrix before pinning versions — Midnight packages update frequently and version mismatches cause ETARGET errors at install time.
1) Project Structure
Generate this exact layout: