A collection of Berachain EVM examples: code, frameworks, languages, contracts, and more.
- NVM or Node
v18.18.2+ - pnpm (recommended)
This Turborepo includes the following packages/apps:
apps/ethers6-solc-helloworld- Deploy HelloWorld contract with ethers6apps/viem-solc-helloworld- Deploy HelloWorld contract with viemapps/foundry-erc20- Deploy ERC20 contract with foundryapps/hardhat-ethers6-erc1155- Deploy ERC1155 contract with hardhat ethers6apps/hardhat-viem-helloworld- Deploy HelloWorld contract with hardhat viemapps/walletconnect-nextjs- WalletConnect Web3Modal frontend contract deployment
Install dependencies for all apps and packages.
# FROM: ./
pnpm install;Create and modify your .env and make the modifications you need to it.
cp .env.example .env;If you'd like to deploy to the chain:
# FROM: ./
# IMPORTANT: --no-cache is important to avoid caching the result of the deployments
pnpm deploy:berachain --filter foundry-erc20 --no-cache;