Skip to main content

Available Templates

Dokrypt ships with 6 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
evm-arbitrumIntermediate4Blockscout, PrometheusL2 bridge, token gateway, Arbitrum fork

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

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.

Building on Arbitrum?

Use evm-arbitrum. L2 bridge messaging, token gateway, and Arbitrum mainnet forking out of the box.

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.