op-fractal-sc
v0.1.1
Published
Smart contracts for Optimism Fractal. https://app.charmverse.io/op-grants/page-8947154553563161
Downloads
99
Maintainers
Readme
Optimism Fractal smart contracts and utilities.
Smart contract enabling a community to play the Respect Game and award Respect NTT for it.
This package also contains ethers contract types (generated using typechain) and utilities to help interact with the smart contract.
Run / test
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat nodeDeploy
First you will need to populate .env file with relevant values. Which values you will need depends on what network you want to deploy to.
This deploys actual contracts. NETWORK is one of the networks configured in hardhat.config.ts.
npx hardhat --network NETWORK run scripts/deployMain.tsNext you'll probably want to verify your deployment with a block explorer:
npx hardhat verify --network opGoerli IMPLEMENTATION_ADDRESS CONSTRUCTOR_ARGSHere IMPLEMENTATION_ADDRESS is an address of implementation deployed in step 1. CONSTRUCTOR_ARGS are constructor args that were used to deploy that implementation contract. You can find them in deployMain.ts here.
Deployments
- Optimistic Goerli (proxy): 0x04EC7075Fe0fF7A1592fF6084B32C830768db3eF
- Optimism (proxy): 0x53C9E3a44B08E7ECF3E8882996A500eb06c0C5CC
- Goerli (out of date): 0x2f98ed540467ffAb3841Aa8B0bBe175bA85DbdF9
