Skip to content

martillansky/proof-of-humanity-v2-contracts

 
 

Repository files navigation

Cross-chain Proof-of-Humanity

Smart contracts for the cross-chain version of Proof-of-Humanity

image

Install dependencies

yarn

Deployment

Scripts to help with deployment are in scripts/deploy folder. You can run corresponding commands to deploy different contracts:

  • deploy-poh: deploy ProofOfHumanity
  • deploy-extended: deploy ProofOfHumanityExtended
  • deploy-ccpoh: deploy CrossChainProofOfHumanity
  • deploy-gateway: deploy cross-chain gateway
  • deploy-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.

Test contracts (will also compile them)

npx hardhat test

Compile contracts

npx hardhat compile

Other hardhat commands can be searched in the hardhat documentation.

Deploying contracts

About

Proof of Humanity Protocol v2

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 61.2%
  • TypeScript 38.7%
  • JavaScript 0.1%