erdalsahan / guides

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Solidity 59.1%Language:JavaScript 30.0%Language:Ruby 7.2%Language:TypeScript 2.9%Language:Shell 0.2%Language:CSS 0.2%Language:Python 0.2%Language:HTML 0.1%Language:Makefile 0.1%Language:Handlebars 0.0%Language:Nix 0.0%