Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.11 KB

Berachain Guides

A collection of Berachain EVM examples: code, frameworks, languages, contracts, and more.

Requirements

  • NVM or Node v18.18.2+
  • pnpm (recommended)

Turborepo Folder Structure

This Turborepo includes the following packages/apps:

Apps

  • apps/ethers6-solc-helloworld - Deploy HelloWorld contract with ethers6
  • apps/viem-solc-helloworld - Deploy HelloWorld contract with viem
  • apps/foundry-erc20 - Deploy ERC20 contract with foundry
  • apps/hardhat-ethers6-erc1155 - Deploy ERC1155 contract with hardhat ethers6
  • apps/hardhat-viem-helloworld - Deploy HelloWorld contract with hardhat viem
  • apps/walletconnect-nextjs - WalletConnect Web3Modal frontend contract deployment

Quick Start

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;