Skip to content

Commit 3addfde

Browse files
authored
Merge pull request #224 from smartcontractkit/add-sonieum
Add sonieum network and regen npm package.lock
2 parents fcaf38f + 8202a78 commit 3addfde

File tree

5 files changed

+3437
-5459
lines changed

5 files changed

+3437
-5459
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ In order to set up your own project which uses Chainlink Functions, please refer
5959
- Arbitrum : `ARBITRUM_RPC_URL`, `--network arbitrum`, `ARBISCAN_API_KEY`
6060
- Base : `BASE_RPC_URL`, `--network base`, `BASESCAN_API_KEY`
6161
- Celo : `CELO_RPC_URL`, `--network celo`, `CELOSCAN_API_KEY`
62+
- Soneium : `SONEIUM_RPC_URL`, `--network soenium`, `SONEIUM_API_KEY`
6263

6364
### Testnets
6465

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

7375
## For Beginners
7476

hardhat.config.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,37 @@ module.exports = {
110110
},
111111
},
112112
{
113-
celoAlfajores: "celoAlfajores",
113+
network: "celoAlfajores",
114114
chainId: 44787,
115115
urls: {
116116
apiURL: "https://alfajores.celoscan.io/api",
117117
browserURL: "https://alfajores.celoscan.io",
118118
},
119119
},
120120
{
121-
celoAlfajores: "celo",
121+
network: "celo",
122122
chainId: 42220,
123123
urls: {
124124
apiURL: "https://celoscan.io/api",
125125
browserURL: "https://celoscan.io",
126126
},
127127
},
128+
{
129+
network: "soneiumMinato",
130+
chainId: 1946,
131+
urls: {
132+
apiURL: "https://soneium-minato.blockscout.com/api",
133+
browserURL: "https://soneium-minato.blockscout.com",
134+
},
135+
},
136+
{
137+
network: "soneium",
138+
chainId: 1868,
139+
urls: {
140+
apiURL: "https://soneium.blockscout.com/api",
141+
browserURL: "https://soneium.blockscout.com",
142+
},
143+
},
128144
],
129145
},
130146
gasReporter: {

networks.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,39 @@ const networks = {
267267
donId: "fun-celo-mainnet-1",
268268
gatewayUrls: ["https://01.functions-gateway.chain.link/", "https://02.functions-gateway.chain.link/"],
269269
},
270+
soneiumMinato: {
271+
url: process.env.SONEIUM_MINATO_RPC_URL || "UNSET",
272+
gasPrice: undefined,
273+
nonce: undefined,
274+
accounts,
275+
verifyApiKey: process.env.SONEIUM_API_KEY || "UNSET",
276+
chainId: 1946,
277+
confirmations: DEFAULT_VERIFICATION_BLOCK_CONFIRMATIONS,
278+
nativeCurrencySymbol: "ETH",
279+
linkToken: "0x7ea13478Ea3961A0e8b538cb05a9DF0477c79Cd2",
280+
linkPriceFeed: "0x0538646F40d4Bd4DdA8c3d4A0C013EAE7ACE4F92", // LINK/ETH
281+
functionsRouter: "0x3704dc1eefCDCE04C58813836AEcfdBC8e7cB3D8",
282+
donId: "fun-soneium-sepolia-1",
283+
gatewayUrls: [
284+
"https://01.functions-gateway.testnet.chain.link/",
285+
"https://02.functions-gateway.testnet.chain.link/",
286+
],
287+
},
288+
soneium: {
289+
url: process.env.SONEIUM_RPC_URL || "UNSET",
290+
gasPrice: undefined,
291+
nonce: undefined,
292+
accounts,
293+
verifyApiKey: process.env.SONEIUM_API_KEY || "UNSET",
294+
chainId: 1868,
295+
confirmations: DEFAULT_VERIFICATION_BLOCK_CONFIRMATIONS,
296+
nativeCurrencySymbol: "ETH",
297+
linkToken: "0x32D8F819C8080ae44375F8d383Ffd39FC642f3Ec",
298+
linkPriceFeed: "0x6D414dC3F9D8822D947B737CA8F75b1c4d6C8542", // LINK/ETH
299+
functionsRouter: "0x20fef1B12FA78fAc8CFB8a7ac1bf032Bd8DcAdDa",
300+
donId: "fun-soneium-mainnet-1",
301+
gatewayUrls: ["https://01.functions-gateway.chain.link/", "https://02.functions-gateway.chain.link/"],
302+
},
270303
// localFunctionsTestnet is updated dynamically by scripts/startLocalFunctionsTestnet.js so it should not be modified here
271304
localFunctionsTestnet: {
272305
url: "http://localhost:8545/",

0 commit comments

Comments
 (0)