diff --git a/src/commands/config/config.type.ts b/src/commands/config/config.type.ts index bce27ad1..3450449f 100644 --- a/src/commands/config/config.type.ts +++ b/src/commands/config/config.type.ts @@ -11,6 +11,6 @@ export interface CreateConfigCommand { export enum TestNetwork { Local = "local", Sepolia = "sepolia", - Mumbai = "mumbai (polygon)", + Amoy = "amoy (polygon)", Apothem = "apothem (xdc)", } diff --git a/src/commands/config/create.ts b/src/commands/config/create.ts index f8243bc5..e3e33429 100644 --- a/src/commands/config/create.ts +++ b/src/commands/config/create.ts @@ -60,7 +60,7 @@ export const handler = async (args: CreateConfigCommand): Promise => { 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", @@ -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]; diff --git a/src/common/networks.ts b/src/common/networks.ts index ea8ee51c..3c26f08e 100644 --- a/src/common/networks.ts +++ b/src/common/networks.ts @@ -18,7 +18,7 @@ export enum NetworkCmdName { Mainnet = "mainnet", Sepolia = "sepolia", Matic = "matic", - Maticmum = "maticmum", + Amoy = "amoy", XDC = "xdc", XDCApothem = "xdcapothem", } @@ -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",