Skip to main content

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.
TemplateDifficultyContractsServicesDescription
evm-basicBeginner2NoneCounter + ERC-20 starter
evm-tokenIntermediate4NoneERC-20, vesting, staking, multisig
evm-nftIntermediate3IPFS, BlockscoutERC-721, marketplace, royalties
evm-daoAdvanced4NoneGovernor, timelock, treasury, voting
evm-defiAdvanced8IPFS, Subgraph, Blockscout, OracleAMM, lending, staking, oracle

Usage

# List all templates
dokrypt template list

# Create a project from a template
dokrypt init my-project --template evm-defi

# Get info about a template
dokrypt template info evm-nft

What Each Template Includes

Every template generates:
FileDescription
dokrypt.yamlEnvironment configuration (chains, services)
foundry.tomlSolidity compiler settings (0.8.20, optimizer enabled)
README.mdProject 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

Custom Templates

You can create and share your own templates:
# Create a new template scaffold
dokrypt template create my-custom-template

# Install from a local directory
dokrypt marketplace install my-template --from ./my-template-dir

# Publish to the marketplace
dokrypt marketplace publish
See Template Management for details.