Smart contracts for the cross-chain version of Proof-of-Humanity
yarn
Scripts to help with deployment are in scripts/deploy
folder. You can run corresponding commands to deploy different contracts:
deploy-poh
: deploy ProofOfHumanitydeploy-extended
: deploy ProofOfHumanityExtendeddeploy-ccpoh
: deploy CrossChainProofOfHumanitydeploy-gateway
: deploy cross-chain gatewaydeploy-pohlegacy
: deploy legacy version of ProofOfHumanity (v1)
Note that variables are hardcoded in each script file and contract addresses (which are going to be used to connect contracts interacting with each other) are to be added in scripts/consts.ts
file.
npx hardhat test
npx hardhat compile
Other hardhat commands can be searched in the hardhat documentation.