/optimystics-fractal-sc

Smart contracts for Optimystics

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Optimystics smart contracts

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

Run / test

npm install
mv .env-example .env
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