Generic Upgradeable ERC20 that can be minted/burned on Zircuit L2.
Requirements for the token come for wstETH bridging guide.
The design and implementation are inspired by OptimismMintableERC20
from Optimism and BridgedToken
from Linea.
npm install
npx hardhat compile
npx hardhat test
// deploy any token (must pass arguments to deploy.js)
npx hardhat run scripts/deploy.js --network zircuit
// deploy wstETH
npx hardhat run scripts/deploy-wstETH.js --network zircuit
The implementation contract can be verified on Zircuit Explorer using:
npx hardhat verify --network zircuit PROXY_CONTRACT
where PROXY_CONTRACT
is the address of the Proxy contract that points to the token.
Optionally, transfer ownership of the ProxyAdmin
contract via the function transferOwnership()
.