From 27dd594cb1580b5364286c60dcd6b5a899b7c926 Mon Sep 17 00:00:00 2001 From: Flippie Scholtz Date: Tue, 11 Jun 2024 11:20:36 +0200 Subject: [PATCH] CPASS-2753 Remove all *goerli passes and polygonMumbai from the Ethereum CLI, and add support for optimismSepolia --- ethereum/gatekeeper-cli/README.md | 587 ++++++------------ .../src/utils/oclif/providers.test.ts | 8 +- .../src/utils/oclif/providers.ts | 18 +- ethereum/smart-contract/config/networks.ts | 37 -- ethereum/smart-contract/hardhat.config.ts | 2 - .../smart-contract/scripts/gatekeeperBatch.sh | 2 +- solana/gatekeeper-cli/README.md | 4 +- 7 files changed, 208 insertions(+), 450 deletions(-) diff --git a/ethereum/gatekeeper-cli/README.md b/ethereum/gatekeeper-cli/README.md index 4f5090105..b28efb1c0 100644 --- a/ethereum/gatekeeper-cli/README.md +++ b/ethereum/gatekeeper-cli/README.md @@ -33,11 +33,11 @@ export INFURA_API_KEY=your-api-key ## Add a gatekeeper -This command will add yourself as a gatekeeper to the test gatekeeper network on Goerli, using the +This command will add yourself as a gatekeeper to the test gatekeeper network on Sepolia, using the built-in test network authority key. ```shell -gateway-eth add-gatekeeper -c goerli +gateway-eth add-gatekeeper -c sepolia ``` To use a gatekeeper other than the test gatekeeper network, set the network using the -n flag. @@ -48,7 +48,7 @@ To default to a given network, set the `DEFAULT_GATEKEEPER_NETWORK` environment Once you are a gatekeeper, you can issue passes. ```shell -gateway-eth issue -c goerli +gateway-eth issue -c sepolia ``` ## Listen to pass changes @@ -56,7 +56,7 @@ gateway-eth issue -c goerli TIP: Set the DEFAULT_CHAIN environment variable to avoid having to specify the chain with every command. ```shell -export DEFAULT_CHAIN=goerli +export DEFAULT_CHAIN=sepolia gateway-eth listen ``` @@ -68,7 +68,7 @@ To create a gatekeeper network, find an unused ID, and register it with a name. NOTE: Consult with identity.com about listing the gatekeeper network, in order to avoid collisions. ```shell -gateway-eth create-gatekeeper-network -c goerli +gateway-eth create-gatekeeper-network -c sepolia ``` # Usage @@ -77,8 +77,8 @@ gateway-eth create-gatekeeper-network -c goerli $ npm install -g @identity.com/gateway-eth-cli $ gateway-eth COMMAND running command... -$ gateway-eth (--version) -@identity.com/gateway-eth-cli/0.2.3 darwin-arm64 node-v20.10.0 +$ gateway-eth (-v|--version|version) +@identity.com/gateway-eth-cli/0.2.3 darwin-x64 node-v20.12.0 $ gateway-eth --help [COMMAND] USAGE $ gateway-eth COMMAND @@ -104,7 +104,6 @@ USAGE * [`gateway-eth rename-gatekeeper-network ID NAME`](#gateway-eth-rename-gatekeeper-network-id-name) * [`gateway-eth revoke ADDRESS`](#gateway-eth-revoke-address) * [`gateway-eth unfreeze ADDRESS`](#gateway-eth-unfreeze-address) -* [`gateway-eth verify ADDRESS`](#gateway-eth-verify-address) ## `gateway-eth add-gatekeeper ADDRESS` @@ -112,50 +111,41 @@ Add a gatekeeper to a gatekeeper network ``` USAGE - $ gateway-eth add-gatekeeper [ADDRESS] [-h] [-p ] [-t ] [-n ] [-c - localhost|ethereum|sepolia|goerli|polygonMumbai|polygonAmoy|polygon|auroraTestnet|aurora|optimismGoerli|optimism|pal - mTestnet|palm|arbitrumGoerli|arbitrumSepolia|arbitrum|celo|celoAlfajores|avalancheCChain|avalancheCChainFuji|starkne - t|starknetGoerli|xdc|xdcApothem|bsc|cronos|fantom|fantomTestnet|gnosis|moonbeam|moonriver|polygonZkEVMTestnet|polygo - nZkEVM|baseSepolia|base] [-f ] [-g ] [-w ] + $ gateway-eth add-gatekeeper ADDRESS ARGUMENTS ADDRESS Gatekeeper address to add to the gatekeeper network -FLAGS - -c, --chain=