From 69f90321dc851093838fc9cd67ca0865fd7720aa Mon Sep 17 00:00:00 2001 From: hiletmis Date: Thu, 13 Feb 2025 10:07:07 +0300 Subject: [PATCH 1/2] Add Ronin and Ronin testnet chain configurations --- chains/ronin-testnet.json | 17 +++++++++++++++++ chains/ronin.json | 25 +++++++++++++++++++++++++ src/generated/chains.ts | 24 ++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 chains/ronin-testnet.json create mode 100644 chains/ronin.json diff --git a/chains/ronin-testnet.json b/chains/ronin-testnet.json new file mode 100644 index 0000000..55e4da5 --- /dev/null +++ b/chains/ronin-testnet.json @@ -0,0 +1,17 @@ +{ + "alias": "ronin-testnet", + "decimals": 18, + "explorer": { + "browserUrl": "https://saigon-app.roninchain.com/" + }, + "id": "2021", + "name": "Ronin testnet", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://saigon-testnet.roninchain.com/rpc" + } + ], + "symbol": "RON", + "testnet": true +} diff --git a/chains/ronin.json b/chains/ronin.json new file mode 100644 index 0000000..736a9d4 --- /dev/null +++ b/chains/ronin.json @@ -0,0 +1,25 @@ +{ + "alias": "ronin", + "decimals": 18, + "explorer": { + "browserUrl": "https://app.roninchain.com/" + }, + "id": "2020", + "name": "Ronin", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://api.roninchain.com/rpc/" + }, + { + "alias": "drpc", + "homepageUrl": "https://drpc.org" + }, + { + "alias": "alchemy", + "homepageUrl": "https://alchemy.com" + } + ], + "symbol": "RON", + "testnet": false +} diff --git a/src/generated/chains.ts b/src/generated/chains.ts index cfafc52..d5ffd5d 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -1554,6 +1554,30 @@ export const CHAINS: Chain[] = [ symbol: 'ETH', testnet: false, }, + { + alias: 'ronin-testnet', + decimals: 18, + explorer: { browserUrl: 'https://saigon-app.roninchain.com/' }, + id: '2021', + name: 'Ronin testnet', + providers: [{ alias: 'default', rpcUrl: 'https://saigon-testnet.roninchain.com/rpc' }], + symbol: 'RON', + testnet: true, + }, + { + alias: 'ronin', + decimals: 18, + explorer: { browserUrl: 'https://app.roninchain.com/' }, + id: '2020', + name: 'Ronin', + providers: [ + { alias: 'default', rpcUrl: 'https://api.roninchain.com/rpc/' }, + { alias: 'drpc', homepageUrl: 'https://drpc.org' }, + { alias: 'alchemy', homepageUrl: 'https://alchemy.com' }, + ], + symbol: 'RON', + testnet: false, + }, { alias: 'rsk-testnet', decimals: 18, From 007abee3e2074bef8689acde866f677ae18bb9c7 Mon Sep 17 00:00:00 2001 From: hiletmis Date: Thu, 13 Feb 2025 10:07:56 +0300 Subject: [PATCH 2/2] Add changeset --- .changeset/funny-pears-smoke.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/funny-pears-smoke.md diff --git a/.changeset/funny-pears-smoke.md b/.changeset/funny-pears-smoke.md new file mode 100644 index 0000000..5931f14 --- /dev/null +++ b/.changeset/funny-pears-smoke.md @@ -0,0 +1,7 @@ +--- +'@api3/chains': minor +--- + +Add following chains: +- ronin +- ronin-testnet \ No newline at end of file