Skip to content

Commit

Permalink
configs for programmatic verification on amoy polygonscan
Browse files Browse the repository at this point in the history
  • Loading branch information
zeuslawyer committed Apr 18, 2024
1 parent a691047 commit f721038
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = {
polygon: networks.polygon.verifyApiKey,
sepolia: networks.ethereumSepolia.verifyApiKey,
polygonMumbai: networks.polygonMumbai.verifyApiKey,
polygonAmoy: networks.polygonAmoy.verifyApiKey,
avalancheFujiTestnet: networks.avalancheFuji.verifyApiKey,
arbitrum: networks.arbitrum.verifyApiKey,
arbitrumSepolia: networks.arbitrumSepolia.verifyApiKey,
Expand Down Expand Up @@ -81,6 +82,14 @@ module.exports = {
browserURL: "https://sepolia-optimistic.etherscan.io/",
},
},
{
network: "polygonAmoy",
chainId: 80002,
urls: {
apiURL: "https://api-amoy.polygonscan.com/api",
browserURL: "https://amoy.polygonscan.com",
},
},
],
},
gasReporter: {
Expand Down
16 changes: 16 additions & 0 deletions networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,22 @@ const networks = {
"https://02.functions-gateway.testnet.chain.link/",
],
},
polygonAmoy: {
url: process.env.AMOY_RPC_URL || "UNSET", // h
gasPrice: undefined,
nonce: undefined,
accounts,
verifyApiKey: process.env.POLYGONSCAN_API_KEY || "UNSET",
chainId: 80002,
confirmations: DEFAULT_VERIFICATION_BLOCK_CONFIRMATIONS,
nativeCurrencySymbol: "MATIC",
linkToken: "0x0Fd9e8d3aF1aaee056EB9e802c3A762a667b1904",
linkPriceFeed: "0x408D97c89c141e60872C0835e18Dd1E670CD8781", // LINK/MATIC
// TODO @zeuslawyer--update all the below
functionsRouter: "TODO",
donId: "TODO",
gatewayUrls: ["TODO-01.functions-gateway.testnet.chain.link/", "TODO-02.functions-gateway.testnet.chain.link/"],
},
// localFunctionsTestnet is updated dynamically by scripts/startLocalFunctionsTestnet.js so it should not be modified here
localFunctionsTestnet: {
url: "http://localhost:8545/",
Expand Down
1 change: 1 addition & 0 deletions tasks/utils/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const BASE_URLS = {
137: "https://polygonscan.com/",
43114: "https://snowtrace.io/",
80001: "https://mumbai.polygonscan.com/",
80002: "https://api-amoy.polygonscan.com/api",
11155111: "https://sepolia.etherscan.io/",
43113: "https://testnet.snowtrace.io/",
421614: "https://sepolia.arbiscan.io/",
Expand Down

0 comments on commit f721038

Please sign in to comment.