From 3bdf3552ef4a45fdd568fa2bada9b506f8a71e8b Mon Sep 17 00:00:00 2001 From: hiletmis <31757771+hiletmis@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:36:19 +0300 Subject: [PATCH 1/2] Add Unichain configuration --- chains/unichain.json | 31 +++++++++++++++++++++++++++++++ src/generated/chains.ts | 17 +++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 chains/unichain.json diff --git a/chains/unichain.json b/chains/unichain.json new file mode 100644 index 0000000..a0d1576 --- /dev/null +++ b/chains/unichain.json @@ -0,0 +1,31 @@ +{ + "alias": "unichain", + "decimals": 18, + "explorer": { + "api": { + "key": { + "required": true + }, + "url": "https://api.uniscan.xyz/api" + }, + "browserUrl": "https://uniscan.xyz/" + }, + "id": "130", + "name": "Unichain", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://mainnet.unichain.org/" + }, + { + "alias": "alchemy", + "homepageUrl": "https://alchemy.com" + }, + { + "alias": "quicknode", + "homepageUrl": "https://quicknode.com" + } + ], + "symbol": "ETH", + "testnet": false +} diff --git a/src/generated/chains.ts b/src/generated/chains.ts index 572aeae..cfafc52 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -1773,6 +1773,23 @@ export const CHAINS: Chain[] = [ symbol: 'ETH', testnet: true, }, + { + alias: 'unichain', + decimals: 18, + explorer: { + api: { key: { required: true }, url: 'https://api.uniscan.xyz/api' }, + browserUrl: 'https://uniscan.xyz/', + }, + id: '130', + name: 'Unichain', + providers: [ + { alias: 'default', rpcUrl: 'https://mainnet.unichain.org/' }, + { alias: 'alchemy', homepageUrl: 'https://alchemy.com' }, + { alias: 'quicknode', homepageUrl: 'https://quicknode.com' }, + ], + symbol: 'ETH', + testnet: false, + }, { alias: 'world-sepolia-testnet', decimals: 18, From e537072de08df82fdd4a52b5343581b69a6d4321 Mon Sep 17 00:00:00 2001 From: hiletmis <31757771+hiletmis@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:36:27 +0300 Subject: [PATCH 2/2] Add changeset --- .changeset/cyan-monkeys-draw.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/cyan-monkeys-draw.md diff --git a/.changeset/cyan-monkeys-draw.md b/.changeset/cyan-monkeys-draw.md new file mode 100644 index 0000000..1be6e3c --- /dev/null +++ b/.changeset/cyan-monkeys-draw.md @@ -0,0 +1,6 @@ +--- +'@api3/chains': minor +--- + +Adds following chain: +- unichain