Skip to content

Commit

Permalink
Merge pull request #53 from Proof-Of-Humanity/clean/clean-up
Browse files Browse the repository at this point in the history
Clean/clean up
  • Loading branch information
clesaege authored Aug 23, 2024
2 parents 073f875 + b14462d commit c082064
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 3,491 deletions.
36 changes: 25 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,38 @@ 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-poh`: deploy ProofOfHumanity (on sidechain)
- `deploy-extended`: deploy ProofOfHumanityExtended (on mainnet for integration of v1 profiles)
- `deploy-ccpoh`: deploy CrossChainProofOfHumanity
- `deploy-gateway`: deploy cross-chain gateway
- `deploy-pohlegacy`: deploy legacy version of ProofOfHumanity (v1)
- `deploy-pohlegacy`: deploy legacy version of ProofOfHumanity (v1) (testnets only)

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)
```shell
npx hardhat test
```
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/addresses/addresses-mainnets.ts` file.

### Compile contracts
```shell
npx hardhat compile
yarn compile
```

Other hardhat commands can be searched in the hardhat documentation.

### Deploying contracts
### Deployed contracts on mainnets (Ethereum and Gnosis)
ETHEREUM:
- POH: 0x87c5c294C9d0ACa6b9b2835A99FE0c9A444Aacc1
- POH_Implementation: 0xF921b42B541bc53a07067B65207F879c9377bf7F
- CROSS_CHAIN: 0xD8D462ac9F3FAD77Af2ae2640fE7F591F1651A2C
- CC_Implementation: 0x064B1132D9A9c43Df269FeAD9e80c195Fb9cd916
- GATEWAY: 0x290e997D7c46BDFf666Ad38506fcFB3082180DF9
- LEGACY: 0xC5E9dDebb09Cd64DfaCab4011A0D5cEDaf7c9BDb (PoH v1)
- PROXY_ADMIN: 0xf57B69f71DD7499Ca30242390E655e8A6a93b51b
- PROXY_ADMIN_CC: 0xec729b0eCf7972236e8926DA4feAAF9BC8F55e65
- FORK_MODULE: 0x116cB4077afbb9B5c7E0dCd5fc4Ce943Ab624dbF

GNOSIS:
- POH: 0xECd1823b3087acEE3C77928b1959c08d31A8F20e
- POH_Implementation: 0x5efa99c7b0cc04893b2c5551437ff82b19e661c7
- CROSS_CHAIN: 0xF921b42B541bc53a07067B65207F879c9377bf7F
- CC_Implementation: 0xc664a8d43601109fc50f3bcf22f29e9119ab2f6d
- GATEWAY: 0xD8D462ac9F3FAD77Af2ae2640fE7F591F1651A2C
- PROXY_ADMIN: 0x60BC555eb5a40b7f934A7345aFA3596Ddd388b2B
- PROXY_ADMIN_CC: 0x36dfBA40eD6DC28f26163548466170b39BE2916D
48 changes: 0 additions & 48 deletions contracts/bridge-gateways/OptimismBridgeGateway.sol

This file was deleted.

38 changes: 0 additions & 38 deletions contracts/bridge-gateways/VeaReceiverGateway.sol

This file was deleted.

34 changes: 0 additions & 34 deletions contracts/bridge-gateways/VeaSenderGateway.sol

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"deploy-gateway": "env-cmd cross-var hardhat run scripts/deploy/gateway.ts --network $NETWORK",
"deploy-pohlegacy": "env-cmd cross-var hardhat run scripts/deploy/pohlegacy.ts --network $NETWORK",

"play": "env-cmd cross-var hardhat run scripts/play.ts --network $NETWORK --show-stack-traces",
"test": "hardhat test",
"size": "hardhat size-contracts",

"verify-poh": "hardhat run scripts/verify/poh.ts --network",
"verify-ccpoh": "hardhat run scripts/verify/ccpoh.ts --network",
"verify-gateway": "hardhat run scripts/verify/gateway.ts --network",
Expand Down
153 changes: 0 additions & 153 deletions scripts/play.ts

This file was deleted.

Loading

0 comments on commit c082064

Please sign in to comment.