diff --git a/README.md b/README.md index 883179d..8927b76 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ npm install 2. Obtain the values for following environment variables: - `PRIVATE_KEY` for your development wallet - - `POLYGON_MUMBAI_RPC_URL`, `ETHEREUM_SEPOLIA_RPC_URL`, or `AVALANCHE_FUJI_RPC_URL` + - `POLYGON_AMOY_RPC_URL`, `ETHEREUM_SEPOLIA_RPC_URL`, or `AVALANCHE_FUJI_RPC_URL` - `POLYGONSCAN_API_KEY`, `ETHERSCAN_API_KEY`, or `FUJI_SNOWTRACE_API_KEY` blockchain explore API keys depending on which network you're using - `X_BEARER_TOKEN` token needed to make API requests on-chain. This token is encoded as a secret and used by Chainlink's DON diff --git a/contracts/hardhat.config.js b/contracts/hardhat.config.js index 8947b31..d14d9b0 100644 --- a/contracts/hardhat.config.js +++ b/contracts/hardhat.config.js @@ -49,7 +49,7 @@ module.exports = { avalanche: networks.avalanche.verifyApiKey, polygon: networks.polygon.verifyApiKey, sepolia: networks.ethereumSepolia.verifyApiKey, - polygonMumbai: networks.polygonMumbai.verifyApiKey, + polygonAmoy: networks.polygonAmoy.verifyApiKey, avalancheFujiTestnet: networks.avalancheFuji.verifyApiKey, }, }, diff --git a/contracts/networks.js b/contracts/networks.js index 4f55121..e98117a 100644 --- a/contracts/networks.js +++ b/contracts/networks.js @@ -94,19 +94,19 @@ const networks = { "https://02.functions-gateway.testnet.chain.link/", ], }, - polygonMumbai: { - url: process.env.POLYGON_MUMBAI_RPC_URL || "UNSET", + polygonAmoy: { + url: process.env.POLYGON_AMOY_RPC_URL || "UNSET", gasPrice: 20_000_000_000, nonce: undefined, accounts, verifyApiKey: process.env.POLYGONSCAN_API_KEY || "UNSET", - chainId: 80001, + chainId: 80002, confirmations: DEFAULT_VERIFICATION_BLOCK_CONFIRMATIONS, nativeCurrencySymbol: "MATIC", - linkToken: "0x326C977E6efc84E512bB9C30f76E30c160eD06FB", - linkPriceFeed: "0x12162c3E810393dEC01362aBf156D7ecf6159528", // LINK/MATIC - functionsRouter: "0x6E2dc0F9DB014aE19888F539E59285D2Ea04244C", - donId: "fun-polygon-mumbai-1", + 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/", diff --git a/contracts/scripts/listen.js b/contracts/scripts/listen.js index 9d306e4..e04bfec 100644 --- a/contracts/scripts/listen.js +++ b/contracts/scripts/listen.js @@ -12,7 +12,7 @@ if (!subscriptionId || isNaN(subscriptionId)) { throw Error("Please update the subId variable in scripts/listen.js to your subscription ID.") } -const networkName = "polygonMumbai" // TODO @dev update this to your network name +const networkName = "polygonAmoy" // TODO @dev update this to your network name // Mount Response Listener const provider = new providers.JsonRpcProvider(networks[networkName].url) diff --git a/contracts/tasks/utils/network.js b/contracts/tasks/utils/network.js index 40fe212..d2efa09 100644 --- a/contracts/tasks/utils/network.js +++ b/contracts/tasks/utils/network.js @@ -2,7 +2,7 @@ const BASE_URLS = { 1: "https://etherscan.io/", 137: "https://polygonscan.com/", 43114: "https://snowtrace.io/", - 80001: "https://mumbai.polygonscan.com/", + 80002: "https://amoy.polygonscan.com/", 11155111: "https://sepolia.etherscan.io/", 43113: "https://testnet.snowtrace.io/", }