Counter
A simple counter contract demonstrating basic state management, events, custom errors, and owner-only access control.
Real smart contracts written in SolScript. Browse the source, then open them in the playground to compile and deploy.
A simple counter contract demonstrating basic state management, events, custom errors, and owner-only access control.
A full-featured fungible token with transfers, allowances, minting, burning, and pause functionality. Demonstrates mappings, modifiers, and events.
A multi-sig wallet requiring multiple owner approvals before executing transactions. Demonstrates arrays, nested mappings, and multi-party authorization.
A token staking pool with reward distribution. Users stake tokens to earn rewards proportional to their share of the pool.
A constant-product AMM (x*y=k) for token swaps. Demonstrates liquidity pools, price calculation, and DeFi primitives on Solana.
A decentralized voting system with proposal creation, vote casting, and result tallying. Demonstrates governance patterns.
A trustless escrow contract for conditional token transfers between buyer and seller. Demonstrates state machines and multi-party authorization.