Skip to main content
Use this guide when you want to deploy upgradeable contracts (proxy pattern) on Berachain using OpenZeppelin’s upgradeable contracts and Hardhat/Foundry plugin.

Repository

Requirements

  • Node, npm (if using Hardhat) or Foundry
  • Wallet with testnet $BERA

Stack

Hardhat or Foundry, Solidity, OpenZeppelin Contracts Upgradeable, upgrade plugin.

Quick start

  1. Clone and install
  2. Configure network (Berachain) and deploy script. Use the plugin to deploy the proxy and implementation.
  3. Run deploy; upgrade later with the plugin’s upgrade task. Exact commands in README.
For deploy and upgrade commands, fetch the raw README.