Use this guide when you want to deploy upgradeable contracts (proxy pattern) on Berachain using OpenZeppelin’s upgradeable contracts and Hardhat/Foundry plugin.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.
Repository
- Code: github.com/berachain/guides/tree/main/apps/openzeppelin-upgrades
- README (raw): raw README
Requirements
- Node, npm (if using Hardhat) or Foundry
- Wallet with testnet $BERA
Stack
Hardhat or Foundry, Solidity, OpenZeppelin Contracts Upgradeable, upgrade plugin.Quick start
- Clone and install
- Configure network (Berachain) and deploy script. Use the plugin to deploy the proxy and implementation.
- Run deploy; upgrade later with the plugin’s upgrade task. Exact commands in README.