Skip to content

A demonstration of different contracts, languages, and libraries that work with Berachain EVM.

Notifications You must be signed in to change notification settings

0xflair/bearchain-docs

 
 

Repository files navigation

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;

About

A demonstration of different contracts, languages, and libraries that work with Berachain EVM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 59.1%
  • JavaScript 30.0%
  • Ruby 7.2%
  • TypeScript 2.9%
  • Shell 0.2%
  • CSS 0.2%
  • Other 0.4%