From 0b7935f47a33b4a85470ee708947be1bd21c6476 Mon Sep 17 00:00:00 2001 From: hiletmis <31757771+hiletmis@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:53:29 +0300 Subject: [PATCH 1/4] Add Soneium chain configuration --- chains/soneium.json | 31 +++++++++++++++++++++++++++++++ src/generated/chains.ts | 17 +++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 chains/soneium.json diff --git a/chains/soneium.json b/chains/soneium.json new file mode 100644 index 0000000..6aeed31 --- /dev/null +++ b/chains/soneium.json @@ -0,0 +1,31 @@ +{ + "alias": "soneium", + "decimals": 18, + "explorer": { + "api": { + "key": { + "required": false + }, + "url": "https://soneium.blockscout.com/api" + }, + "browserUrl": "https://soneium.blockscout.com/" + }, + "id": "1868", + "name": "Soneium", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://rpc.soneium.org/" + }, + { + "alias": "alchemy", + "homepageUrl": "https://alchemy.com" + }, + { + "alias": "tenderly", + "homepageUrl": "https://tenderly.co/" + } + ], + "symbol": "ETH", + "testnet": false +} diff --git a/src/generated/chains.ts b/src/generated/chains.ts index 852c6b4..c315503 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -1635,6 +1635,23 @@ export const CHAINS: Chain[] = [ symbol: 'ETH', testnet: true, }, + { + alias: 'soneium', + decimals: 18, + explorer: { + api: { key: { required: false }, url: 'https://soneium.blockscout.com/api' }, + browserUrl: 'https://soneium.blockscout.com/', + }, + id: '1868', + name: 'Soneium', + providers: [ + { alias: 'default', rpcUrl: 'https://rpc.soneium.org/' }, + { alias: 'alchemy', homepageUrl: 'https://alchemy.com' }, + { alias: 'tenderly', homepageUrl: 'https://tenderly.co/' }, + ], + symbol: 'ETH', + testnet: false, + }, { alias: 'sonic-testnet', decimals: 18, From 960945354c4ef901b3193dc0234dbbc2f63c5a5c Mon Sep 17 00:00:00 2001 From: hiletmis <31757771+hiletmis@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:53:35 +0300 Subject: [PATCH 2/4] Add changeset --- .changeset/five-melons-melt.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/five-melons-melt.md diff --git a/.changeset/five-melons-melt.md b/.changeset/five-melons-melt.md new file mode 100644 index 0000000..0eb2f5a --- /dev/null +++ b/.changeset/five-melons-melt.md @@ -0,0 +1,6 @@ +--- +'@api3/chains': minor +--- + +Adds following chain: + - soneium From 5b49347dc232a3d4eec76e76ca1cb34be2e96f36 Mon Sep 17 00:00:00 2001 From: hiletmis <31757771+hiletmis@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:21:12 +0300 Subject: [PATCH 3/4] Update block explorer for mantle and mantle-sepolia-testnet --- chains/mantle-sepolia-testnet.json | 6 +++--- chains/mantle.json | 6 +++--- src/generated/chains.ts | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/chains/mantle-sepolia-testnet.json b/chains/mantle-sepolia-testnet.json index b32940d..1f0ffe9 100644 --- a/chains/mantle-sepolia-testnet.json +++ b/chains/mantle-sepolia-testnet.json @@ -4,11 +4,11 @@ "explorer": { "api": { "key": { - "required": false + "required": true }, - "url": "https://explorer.sepolia.mantle.xyz/api" + "url": "https://api-sepolia.mantlescan.xyz/api" }, - "browserUrl": "https://explorer.sepolia.mantle.xyz/" + "browserUrl": "https://sepolia.mantlescan.xyz/" }, "id": "5003", "name": "Mantle testnet", diff --git a/chains/mantle.json b/chains/mantle.json index cd08382..6d781b0 100644 --- a/chains/mantle.json +++ b/chains/mantle.json @@ -4,11 +4,11 @@ "explorer": { "api": { "key": { - "required": false + "required": true }, - "url": "https://explorer.mantle.xyz/api" + "url": "https://api.mantlescan.xyz/api" }, - "browserUrl": "https://explorer.mantle.xyz/" + "browserUrl": "https://mantlescan.xyz/" }, "id": "5000", "name": "Mantle", diff --git a/src/generated/chains.ts b/src/generated/chains.ts index 852c6b4..305a4aa 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -1051,8 +1051,8 @@ export const CHAINS: Chain[] = [ alias: 'mantle-sepolia-testnet', decimals: 18, explorer: { - api: { key: { required: false }, url: 'https://explorer.sepolia.mantle.xyz/api' }, - browserUrl: 'https://explorer.sepolia.mantle.xyz/', + api: { key: { required: true }, url: 'https://api-sepolia.mantlescan.xyz/api' }, + browserUrl: 'https://sepolia.mantlescan.xyz/', }, id: '5003', name: 'Mantle testnet', @@ -1064,8 +1064,8 @@ export const CHAINS: Chain[] = [ alias: 'mantle', decimals: 18, explorer: { - api: { key: { required: false }, url: 'https://explorer.mantle.xyz/api' }, - browserUrl: 'https://explorer.mantle.xyz/', + api: { key: { required: true }, url: 'https://api.mantlescan.xyz/api' }, + browserUrl: 'https://mantlescan.xyz/', }, id: '5000', name: 'Mantle', From 77cbc20f33d603cfed3bba05052cc4c279421cae Mon Sep 17 00:00:00 2001 From: hiletmis <31757771+hiletmis@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:22:32 +0300 Subject: [PATCH 4/4] Add changeset --- .changeset/chatty-badgers-rhyme.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/chatty-badgers-rhyme.md diff --git a/.changeset/chatty-badgers-rhyme.md b/.changeset/chatty-badgers-rhyme.md new file mode 100644 index 0000000..8c0bdda --- /dev/null +++ b/.changeset/chatty-badgers-rhyme.md @@ -0,0 +1,5 @@ +--- +'@api3/chains': patch +--- + +Update block explorer for mantle and mantle-sepolia-testnet