Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion contracts/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down
14 changes: 7 additions & 7 deletions contracts/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion contracts/scripts/listen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion contracts/tasks/utils/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
}
Expand Down