Skip to content
Merged
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: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ In order to set up your own project which uses Chainlink Functions, please refer
- Arbitrum : `ARBITRUM_RPC_URL`, `--network arbitrum`, `ARBISCAN_API_KEY`
- Base : `BASE_RPC_URL`, `--network base`, `BASESCAN_API_KEY`
- Celo : `CELO_RPC_URL`, `--network celo`, `CELOSCAN_API_KEY`
- Soneium : `SONEIUM_RPC_URL`, `--network soenium`, `SONEIUM_API_KEY`

### Testnets

Expand All @@ -69,6 +70,7 @@ In order to set up your own project which uses Chainlink Functions, please refer
- Base Sepolia: `BASE_SEPOLIA_RPC_URL`, `--network baseSepolia`, `BASESCAN_API_KEY`
- Optimism Sepolia: `OPTIMISM_SEPOLIA_RPC_URL`, `--network optimismSepolia`, `OP_ETHERSCAN_API_KEY`
- Celo Alfajores: `CELO_ALFAJORES_RPC_URL`, `--network celoAlfajores`, `CELOSCAN_API_KEY`
- Soneium Minato: `SONEIUM_MINATO_RPC_URL`, `--network soneiumMinato`, `SONEIUM_API_KEY`

## For Beginners

Expand Down
20 changes: 18 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,37 @@ module.exports = {
},
},
{
celoAlfajores: "celoAlfajores",
network: "celoAlfajores",
chainId: 44787,
urls: {
apiURL: "https://alfajores.celoscan.io/api",
browserURL: "https://alfajores.celoscan.io",
},
},
{
celoAlfajores: "celo",
network: "celo",
chainId: 42220,
urls: {
apiURL: "https://celoscan.io/api",
browserURL: "https://celoscan.io",
},
},
{
network: "soneiumMinato",
chainId: 1946,
urls: {
apiURL: "https://soneium-minato.blockscout.com/api",
browserURL: "https://soneium-minato.blockscout.com",
},
},
{
network: "soneium",
chainId: 1868,
urls: {
apiURL: "https://soneium.blockscout.com/api",
browserURL: "https://soneium.blockscout.com",
},
},
],
},
gasReporter: {
Expand Down
33 changes: 33 additions & 0 deletions networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,39 @@ const networks = {
donId: "fun-celo-mainnet-1",
gatewayUrls: ["https://01.functions-gateway.chain.link/", "https://02.functions-gateway.chain.link/"],
},
soneiumMinato: {
url: process.env.SONEIUM_MINATO_RPC_URL || "UNSET",
gasPrice: undefined,
nonce: undefined,
accounts,
verifyApiKey: process.env.SONEIUM_API_KEY || "UNSET",
chainId: 1946,
confirmations: DEFAULT_VERIFICATION_BLOCK_CONFIRMATIONS,
nativeCurrencySymbol: "ETH",
linkToken: "0x7ea13478Ea3961A0e8b538cb05a9DF0477c79Cd2",
linkPriceFeed: "0x0538646F40d4Bd4DdA8c3d4A0C013EAE7ACE4F92", // LINK/ETH
functionsRouter: "0x3704dc1eefCDCE04C58813836AEcfdBC8e7cB3D8",
donId: "fun-soneium-sepolia-1",
gatewayUrls: [
"https://01.functions-gateway.testnet.chain.link/",
"https://02.functions-gateway.testnet.chain.link/",
],
},
soneium: {
url: process.env.SONEIUM_RPC_URL || "UNSET",
gasPrice: undefined,
nonce: undefined,
accounts,
verifyApiKey: process.env.SONEIUM_API_KEY || "UNSET",
chainId: 1868,
confirmations: DEFAULT_VERIFICATION_BLOCK_CONFIRMATIONS,
nativeCurrencySymbol: "ETH",
linkToken: "0x32D8F819C8080ae44375F8d383Ffd39FC642f3Ec",
linkPriceFeed: "0x6D414dC3F9D8822D947B737CA8F75b1c4d6C8542", // LINK/ETH
functionsRouter: "0x20fef1B12FA78fAc8CFB8a7ac1bf032Bd8DcAdDa",
donId: "fun-soneium-mainnet-1",
gatewayUrls: ["https://01.functions-gateway.chain.link/", "https://02.functions-gateway.chain.link/"],
},
// localFunctionsTestnet is updated dynamically by scripts/startLocalFunctionsTestnet.js so it should not be modified here
localFunctionsTestnet: {
url: "http://localhost:8545/",
Expand Down
Loading
Loading