Skip to content

Commit

Permalink
Merge pull request #213 from smartcontractkit/amoy
Browse files Browse the repository at this point in the history
Amoy
  • Loading branch information
zeuslawyer authored May 6, 2024
2 parents 76a3a01 + 1cba1fa commit dbea19f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 12 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
19 changes: 19 additions & 0 deletions networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,25 @@ 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

functionsRouter: "0xC22a79eBA640940ABB6dF0f7982cc119578E11De",
donId: "fun-polygon-amoy-1",
gatewayUrls: [
"https://01.functions-gateway.testnet.chain.link/",
"https://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
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "functions-hardhat-starter-kit",
"license": "MIT",
"version": "0.2.0",
"version": "0.2.1",
"description": "Tooling for interacting with Chainlink Functions",
"scripts": {
"prepare": "husky install",
Expand All @@ -18,9 +18,9 @@
"format:fix": "prettier --write ."
},
"dependencies": {
"@chainlink/contracts": "^1.0.0",
"@chainlink/contracts": "^1.1.0-beta.0",
"@chainlink/env-enc": "^1.0.5",
"@chainlink/functions-toolkit": "^0.2.7",
"@chainlink/functions-toolkit": "^0.2.8",
"@ethersproject/abi": "^5.7.0",
"@ethersproject/providers": "^5.7.1",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.3",
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 dbea19f

Please sign in to comment.