From 651c475580c1f69af3b449c2786fe0a48cb3dfd3 Mon Sep 17 00:00:00 2001 From: superical Date: Tue, 17 Oct 2023 12:10:01 +0800 Subject: [PATCH] feat: remove goerli (#290) --- README.md | 1 - src/commands/config/config.type.ts | 1 - src/commands/config/create.ts | 9 +-------- src/commands/networks.ts | 8 -------- 4 files changed, 1 insertion(+), 18 deletions(-) diff --git a/README.md b/README.md index 6b49b11a..49b794b8 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ npx -p @govtechsg/open-attestation-cli open-attestation | ------------------ | -------- | ---------- | | mainnet | 1 | Production | | sepolia | 11155111 | Test | -| Goerli(Deprecated) | 5 | Test | | polygon | 137 | Production | | mumbai | 80001 | Test | | xdc | 50 | Production | diff --git a/src/commands/config/config.type.ts b/src/commands/config/config.type.ts index fafb89a8..6565df99 100644 --- a/src/commands/config/config.type.ts +++ b/src/commands/config/config.type.ts @@ -10,7 +10,6 @@ export interface CreateConfigCommand { export enum TestNetwork { Local = "local", - Goerli = "goerli (deprecated)", Sepolia = "sepolia", Mumbai = "mumbai (polygon)", Apothem = "apothem (xdc)", diff --git a/src/commands/config/create.ts b/src/commands/config/create.ts index ec36bf07..a052339a 100644 --- a/src/commands/config/create.ts +++ b/src/commands/config/create.ts @@ -60,13 +60,7 @@ export const handler = async (args: CreateConfigCommand): Promise => { args.configTemplatePath = configTemplatePath; } - const networks = [ - TestNetwork.Local, - TestNetwork.Goerli, - TestNetwork.Sepolia, - TestNetwork.Mumbai, - TestNetwork.Apothem, - ]; + const networks = [TestNetwork.Local, TestNetwork.Sepolia, TestNetwork.Mumbai, TestNetwork.Apothem]; const { network } = await inquirer.prompt({ type: "list", name: "network", @@ -87,7 +81,6 @@ export const handler = async (args: CreateConfigCommand): Promise => { const convertNetworkToNetworkCmdName = (selectedNetwork: TestNetwork): NetworkCmdName => { const network = { [TestNetwork.Local]: NetworkCmdName.Local, - [TestNetwork.Goerli]: NetworkCmdName.Goerli, [TestNetwork.Sepolia]: NetworkCmdName.Sepolia, [TestNetwork.Mumbai]: NetworkCmdName.Maticmum, [TestNetwork.Apothem]: NetworkCmdName.XDCApothem, diff --git a/src/commands/networks.ts b/src/commands/networks.ts index 4dfa1cf6..95a96daa 100644 --- a/src/commands/networks.ts +++ b/src/commands/networks.ts @@ -13,7 +13,6 @@ type SupportedNetwork = { export enum NetworkCmdName { Local = "local", Mainnet = "mainnet", - Goerli = "goerli", Sepolia = "sepolia", Matic = "matic", Maticmum = "maticmum", @@ -48,13 +47,6 @@ export const supportedNetwork: { networkName: "homestead", currency: "ETH", }, - [NetworkCmdName.Goerli]: { - explorer: "https://goerli.etherscan.io", - provider: defaultInfuraProvider("goerli"), - networkId: 5, - networkName: "goerli", - currency: "ETH", - }, [NetworkCmdName.Sepolia]: { explorer: "https://sepolia.etherscan.io", provider: jsonRpcProvider("https://sepolia.infura.io/v3/bb46da3f80e040e8ab73c0a9ff365d18"),