Skip to content

Optimystics/op-fractal-sc

Repository files navigation

Optimism Fractal smart contracts

Smart contract enabling a community to play the Respect Game and award Respect NTT for it.

Run / test

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node

Deploy

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.ts

Next you'll probably want to verify your deployment with a block explorer:

npx hardhat verify --network opGoerli IMPLEMENTATION_ADDRESS CONSTRUCTOR_ARGS

Here 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