Added chain parameters for Arbitrum and Optimism (#3811).

This commit is contained in:
Richard Moore 2023-02-22 21:29:44 -05:00
parent 5a3c10a29c
commit 77a7323119

@ -236,7 +236,7 @@ type Options = {
ensNetwork?: number; ensNetwork?: number;
priorityFee?: number priorityFee?: number
altNames?: Array<string>; altNames?: Array<string>;
etherscan?: { url: string, apiKey: string }; etherscan?: { url: string };
}; };
// See: https://chainlist.org // See: https://chainlist.org
@ -291,19 +291,35 @@ function injectCommonNetworks(): void {
registerEth("xdai", 100, { ensNetwork: 1 }); registerEth("xdai", 100, { ensNetwork: 1 });
registerEth("optimism", 10, {
ensNetwork: 1,
etherscan: { url: "https:/\/api-optimistic.etherscan.io/" }
});
registerEth("optimism-goerli", 420, {
etherscan: { url: "https:/\/api-goerli-optimistic.etherscan.io/" }
});
registerEth("arbitrum", 42161, {
ensNetwork: 1,
etherscan: { url: "https:/\/api.arbiscan.io/" }
});
registerEth("arbitrum-goerli", 421613, {
etherscan: { url: "https:/\/api-goerli.arbiscan.io/" }
});
// Polygon has a 35 gwei maxPriorityFee requirement // Polygon has a 35 gwei maxPriorityFee requirement
registerEth("matic", 137, { registerEth("matic", 137, {
ensNetwork: 1, ensNetwork: 1,
// priorityFee: 35000000000, // priorityFee: 35000000000,
etherscan: { etherscan: {
apiKey: "W6T8DJW654GNTQ34EFEYYP3EZD9DD27CT7", // apiKey: "W6T8DJW654GNTQ34EFEYYP3EZD9DD27CT7",
url: "https:/\/api.polygonscan.com/" url: "https:/\/api.polygonscan.com/"
} }
}); });
registerEth("maticMumbai", 80001, { registerEth("maticMumbai", 80001, {
// priorityFee: 35000000000, // priorityFee: 35000000000,
etherscan: { etherscan: {
apiKey: "W6T8DJW654GNTQ34EFEYYP3EZD9DD27CT7", // apiKey: "W6T8DJW654GNTQ34EFEYYP3EZD9DD27CT7",
url: "https:/\/api-testnet.polygonscan.com/" url: "https:/\/api-testnet.polygonscan.com/"
} }
}); });
@ -311,13 +327,13 @@ function injectCommonNetworks(): void {
registerEth("bnb", 56, { registerEth("bnb", 56, {
ensNetwork: 1, ensNetwork: 1,
etherscan: { etherscan: {
apiKey: "EVTS3CU31AATZV72YQ55TPGXGMVIFUQ9M9", // apiKey: "EVTS3CU31AATZV72YQ55TPGXGMVIFUQ9M9",
url: "http:/\/api.bscscan.com" url: "http:/\/api.bscscan.com"
} }
}); });
registerEth("bnbt", 97, { registerEth("bnbt", 97, {
etherscan: { etherscan: {
apiKey: "EVTS3CU31AATZV72YQ55TPGXGMVIFUQ9M9", // apiKey: "EVTS3CU31AATZV72YQ55TPGXGMVIFUQ9M9",
url: "http:/\/api-testnet.bscscan.com" url: "http:/\/api-testnet.bscscan.com"
} }
}); });