Skip to main content
Clone the template and you have a full Hardhat project plus a Next.js demo dApp that plays all four games.

Layout

Contracts

Package and image versions must match: @inco/lightning{,-js}@1.0.2 with inconetwork/local-node-{anvil,covalidator}-mainnet:v1.0.2. A mismatch fails at the shuffle with a ciphertext MAC error.

Deploy and wire the frontend

Deploy to Base Sepolia testnet, then write the addresses into the frontend env.

The frontend client

client/incoDeckClient.ts is the client half of the kit. It mirrors the contract moves. peekMyCards uses attestedDecrypt, so Inco refuses anyone but the owner. readRevealed uses attestedReveal, which needs no signature. The covalidator is async, so both retry until the value lands.

Next steps

  • Build with AI: set your assistant up with the Inco skill, then hand it this repo and its AGENTS.md.
  • Play the live demo to see all four games running on Base Sepolia.
  • Read the ConfidentialDeck kit for the five moves in detail.
  • See the worked examples for full game flows.
  • RECIPES.md in the repo has one copy-paste snippet per move, and AGENTS.md briefs an AI on the whole project.