Skip to content

Commit

Permalink
feat: replace polygon mumbai with polygon amoy (#307)
Browse files Browse the repository at this point in the history
* chore: update readme

* chore: replace mumbai with amoy

* fix: trigger pr linting with empty commit

* feat: add gas station for amoy
  • Loading branch information
zixiang2018 committed Apr 17, 2024
1 parent c2f49c9 commit 7ce25b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Upon installation, a configuration folder will be created at `~/.config/open-att
| `1` | Ethereum Mainnet | `mainnet` | Production |
| `11155111` | Ethereum Testnet Sepolia | `sepolia` | Test |
| `137` | Polygon Mainnet | `polygon` | Production |
| `80001` | Polygon Testnet Mumbai | `mumbai` | Test |
| `80002` | Polygon Testnet Amoy | `Amoy` | Test |
| `50` | XDC Network | `xdc` | Production |
| `51` | XDC Apothem Network | `xdcapothem` | Test |

Expand Down
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
14 changes: 7 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,13 @@ 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"),
gasStation: gasStation("https://gasstation-testnet.polygon.technology/amoy"),
},
[NetworkCmdName.XDC]: {
explorer: "https://xdcscan.io",
Expand Down

0 comments on commit 7ce25b1

Please sign in to comment.