Skip to content

Commit

Permalink
chore: replace mumbai with amoy
Browse files Browse the repository at this point in the history
  • Loading branch information
tngzixiang committed Apr 16, 2024
1 parent e2e892b commit 01a281c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/commands/config/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export interface CreateConfigCommand {
export enum TestNetwork {
Local = "local",
Sepolia = "sepolia",
Mumbai = "mumbai (polygon)",
Amoy = "amoy (polygon)",
Apothem = "apothem (xdc)",
}
4 changes: 2 additions & 2 deletions src/commands/config/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const handler = async (args: CreateConfigCommand): Promise<void> => {
args.configTemplatePath = configTemplatePath;
}

const networks = [TestNetwork.Local, TestNetwork.Sepolia, TestNetwork.Mumbai, TestNetwork.Apothem];
const networks = [TestNetwork.Local, TestNetwork.Sepolia, TestNetwork.Amoy, TestNetwork.Apothem];
const { network } = await inquirer.prompt({
type: "list",
name: "network",
Expand All @@ -82,7 +82,7 @@ const convertNetworkToNetworkCmdName = (selectedNetwork: TestNetwork): NetworkCm
const network = {
[TestNetwork.Local]: NetworkCmdName.Local,
[TestNetwork.Sepolia]: NetworkCmdName.Sepolia,
[TestNetwork.Mumbai]: NetworkCmdName.Maticmum,
[TestNetwork.Amoy]: NetworkCmdName.Amoy,
[TestNetwork.Apothem]: NetworkCmdName.XDCApothem,
};
return network[selectedNetwork];
Expand Down
13 changes: 6 additions & 7 deletions src/common/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum NetworkCmdName {
Mainnet = "mainnet",
Sepolia = "sepolia",
Matic = "matic",
Maticmum = "maticmum",
Amoy = "amoy",
XDC = "xdc",
XDCApothem = "xdcapothem",
}
Expand Down Expand Up @@ -65,13 +65,12 @@ export const supportedNetwork: {
currency: "MATIC",
gasStation: gasStation("https://gasstation.polygon.technology/v2"),
},
[NetworkCmdName.Maticmum]: {
explorer: "https://mumbai.polygonscan.com",
provider: defaultInfuraProvider("maticmum"),
networkId: 80001,
networkName: NetworkCmdName.Maticmum,
[NetworkCmdName.Amoy]: {
explorer: "https://www.oklink.com/amoy",
provider: jsonRpcProvider("https://polygon-amoy.infura.io/v3/bb46da3f80e040e8ab73c0a9ff365d18"),
networkId: 80002,
networkName: NetworkCmdName.Amoy,
currency: "MATIC",
gasStation: gasStation("https://gasstation-testnet.polygon.technology/v2"),
},
[NetworkCmdName.XDC]: {
explorer: "https://xdcscan.io",
Expand Down

0 comments on commit 01a281c

Please sign in to comment.