Skip to content

Commit

Permalink
feat: remove goerli (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
superical committed Oct 17, 2023
1 parent 30c3672 commit 651c475
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ npx -p @govtechsg/open-attestation-cli open-attestation <arguments>
| ------------------ | -------- | ---------- |
| mainnet | 1 | Production |
| sepolia | 11155111 | Test |
| Goerli(Deprecated) | 5 | Test |
| polygon | 137 | Production |
| mumbai | 80001 | Test |
| xdc | 50 | Production |
Expand Down
1 change: 0 additions & 1 deletion src/commands/config/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface CreateConfigCommand {

export enum TestNetwork {
Local = "local",
Goerli = "goerli (deprecated)",
Sepolia = "sepolia",
Mumbai = "mumbai (polygon)",
Apothem = "apothem (xdc)",
Expand Down
9 changes: 1 addition & 8 deletions src/commands/config/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,7 @@ export const handler = async (args: CreateConfigCommand): Promise<void> => {
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",
Expand All @@ -87,7 +81,6 @@ export const handler = async (args: CreateConfigCommand): Promise<void> => {
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,
Expand Down
8 changes: 0 additions & 8 deletions src/commands/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type SupportedNetwork = {
export enum NetworkCmdName {
Local = "local",
Mainnet = "mainnet",
Goerli = "goerli",
Sepolia = "sepolia",
Matic = "matic",
Maticmum = "maticmum",
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 651c475

Please sign in to comment.