Available Templates
Dokrypt ships with 5 built-in templates covering the most common Web3 project types. All templates are free and licensed under Apache-2.0.| Template | Difficulty | Contracts | Services | Description |
|---|---|---|---|---|
evm-basic | Beginner | 2 | None | Counter + ERC-20 starter |
evm-token | Intermediate | 4 | None | ERC-20, vesting, staking, multisig |
evm-nft | Intermediate | 3 | IPFS, Blockscout | ERC-721, marketplace, royalties |
evm-dao | Advanced | 4 | None | Governor, timelock, treasury, voting |
evm-defi | Advanced | 8 | IPFS, Subgraph, Blockscout, Oracle | AMM, lending, staking, oracle |
Usage
What Each Template Includes
Every template generates:| File | Description |
|---|---|
dokrypt.yaml | Environment configuration (chains, services) |
foundry.toml | Solidity compiler settings (0.8.20, optimizer enabled) |
README.md | Project documentation with setup instructions |
contracts/ | Solidity smart contracts |
test/ | Foundry test files (.t.sol) |
scripts/ | JavaScript deployment scripts |
Common Settings
All templates use:- Solidity: 0.8.20
- Optimizer: Enabled, 200 runs
- Test framework: Foundry (forge)
- Chain engine: Anvil (default)
- Chain ID: 31337 (local)
- Accounts: 10, funded with 10,000 ETH each
Choosing a Template
Just getting started?
Use evm-basic. A Counter and ERC-20 token with tests. Perfect for learning.
Building a token project?
Use evm-token. Complete ERC-20 with vesting schedules, staking pools, and a multisig wallet.
Building an NFT project?
Use evm-nft. ERC-721 collection with marketplace, royalties (EIP-2981), and IPFS metadata.
Building a DAO?
Use evm-dao. Full governance stack with Governor, Timelock, Treasury, and voting token.
Building DeFi?
Use evm-defi. Complete DeFi stack: AMM with Factory/Pair/Router, lending vault, staking, and price oracle.