Skip to main content

Documentation Index

Fetch the complete documentation index at: https://berachain-422fce37-feat-nodes-section-reno.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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
    git clone https://github.com/berachain/guides.git && cd guides/apps/openzeppelin-upgrades
    npm 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.