From 6c4142434e4e5cb6c44dd037f6abcc8b12bd74f2 Mon Sep 17 00:00:00 2001 From: Glitch Date: Sat, 22 Jul 2023 14:05:45 -0300 Subject: [PATCH 1/6] add Ronin and Saigon chains --- .changeset/odd-avocados-invite.md | 5 +++++ packages/chains/src/index.ts | 2 ++ packages/chains/src/ronin.ts | 25 +++++++++++++++++++++++++ packages/chains/src/saigon.ts | 29 +++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 .changeset/odd-avocados-invite.md create mode 100644 packages/chains/src/ronin.ts create mode 100644 packages/chains/src/saigon.ts diff --git a/.changeset/odd-avocados-invite.md b/.changeset/odd-avocados-invite.md new file mode 100644 index 00000000..14815ca3 --- /dev/null +++ b/.changeset/odd-avocados-invite.md @@ -0,0 +1,5 @@ +--- +"@wagmi/chains": minor +--- + +Added Ronin and Saigon chains diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 2663fb28..5c347e0a 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -117,3 +117,5 @@ export { zkSync } from './zkSync' export { zkSyncTestnet } from './zkSyncTestnet' export { zora } from './zora' export { zoraTestnet } from './zoraTestnet' +export { ronin } from './ronin' +export { saigon } from './saigon' diff --git a/packages/chains/src/ronin.ts b/packages/chains/src/ronin.ts new file mode 100644 index 00000000..497fa039 --- /dev/null +++ b/packages/chains/src/ronin.ts @@ -0,0 +1,25 @@ +import { Chain } from './types' + +export const ronin = { + id: 2020, + name: 'Ronin Mainnet', + network: 'ronin', + nativeCurrency: { name: 'RON', symbol: 'RON', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://api.roninchain.com/rpc'], + }, + public: { + http: ['https://api.roninchain.com/rpc'], + }, + }, + blockExplorers: { + default: { name: 'Ronin Explorer', url: 'https://app.roninchain.com/' }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 26023535, + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/saigon.ts b/packages/chains/src/saigon.ts new file mode 100644 index 00000000..0c19cfcc --- /dev/null +++ b/packages/chains/src/saigon.ts @@ -0,0 +1,29 @@ +import { Chain } from './types' + +export const saigon = { + id: 2021, + name: 'Saigon Testnet', + network: 'saigon', + nativeCurrency: { name: 'RON', symbol: 'RON', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://saigon-testnet.roninchain.com/rpc'], + }, + public: { + http: ['https://saigon-testnet.roninchain.com/rpc'], + }, + }, + blockExplorers: { + default: { + name: 'Saigon Explorer', + url: 'https://saigon-explorer.roninchain.com/', + }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 18736871, + }, + }, + testnet: true, +} as const satisfies Chain From ca1ee51f6acffd5396d2a0965ea73286c0c48643 Mon Sep 17 00:00:00 2001 From: Glitch Date: Sun, 23 Jul 2023 04:03:10 -0300 Subject: [PATCH 2/6] fix ronin chain name --- packages/chains/src/ronin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chains/src/ronin.ts b/packages/chains/src/ronin.ts index 497fa039..2d5da402 100644 --- a/packages/chains/src/ronin.ts +++ b/packages/chains/src/ronin.ts @@ -2,7 +2,7 @@ import { Chain } from './types' export const ronin = { id: 2020, - name: 'Ronin Mainnet', + name: 'Ronin', network: 'ronin', nativeCurrency: { name: 'RON', symbol: 'RON', decimals: 18 }, rpcUrls: { From 3b5a4f88762285ec53cc1e4fc7e7d32855e5cf7b Mon Sep 17 00:00:00 2001 From: Glitch Date: Mon, 24 Jul 2023 09:19:07 -0300 Subject: [PATCH 3/6] fix ronin and saigon export order --- packages/chains/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 5c347e0a..f5d16bd7 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -81,6 +81,7 @@ export { polygonZkEvmTestnet } from './polygonZkEvmTestnet' export { polygonZkEvm } from './polygonZkEvm' export { pulsechain } from './pulsechain' export { pulsechainV4 } from './pulsechainV4' +export { ronin } from './ronin' export { scrollTestnet } from './scrollTestnet' export { sepolia } from './sepolia' export { skaleBlockBrawlers } from './skale/brawl' @@ -102,6 +103,7 @@ export { songbird } from './songbird' export { songbirdTestnet } from './songbirdTestnet' export { shardeumSphinx } from './shardeumSphinx' export { syscoin } from './syscoin' +export { saigon } from './saigon' export { taraxa } from './taraxa' export { taikoTestnetSepolia } from './taikoTestnetSepolia' export { taraxaTestnet } from './taraxaTestnet' @@ -117,5 +119,3 @@ export { zkSync } from './zkSync' export { zkSyncTestnet } from './zkSyncTestnet' export { zora } from './zora' export { zoraTestnet } from './zoraTestnet' -export { ronin } from './ronin' -export { saigon } from './saigon' From b2b800f755701820323621d7e0c4411a0920a263 Mon Sep 17 00:00:00 2001 From: Glitch Date: Mon, 24 Jul 2023 09:20:24 -0300 Subject: [PATCH 4/6] fix ronin and saigon export order --- packages/chains/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index f5d16bd7..10102f91 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -82,6 +82,7 @@ export { polygonZkEvm } from './polygonZkEvm' export { pulsechain } from './pulsechain' export { pulsechainV4 } from './pulsechainV4' export { ronin } from './ronin' +export { saigon } from './saigon' export { scrollTestnet } from './scrollTestnet' export { sepolia } from './sepolia' export { skaleBlockBrawlers } from './skale/brawl' @@ -103,7 +104,6 @@ export { songbird } from './songbird' export { songbirdTestnet } from './songbirdTestnet' export { shardeumSphinx } from './shardeumSphinx' export { syscoin } from './syscoin' -export { saigon } from './saigon' export { taraxa } from './taraxa' export { taikoTestnetSepolia } from './taikoTestnetSepolia' export { taraxaTestnet } from './taraxaTestnet' From 89eb53da2964ed17af22d8685c63df3acf17762a Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 9 Aug 2023 05:51:33 +0200 Subject: [PATCH 5/6] Update saigon.ts --- packages/chains/src/saigon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chains/src/saigon.ts b/packages/chains/src/saigon.ts index 0c19cfcc..65d55621 100644 --- a/packages/chains/src/saigon.ts +++ b/packages/chains/src/saigon.ts @@ -16,7 +16,7 @@ export const saigon = { blockExplorers: { default: { name: 'Saigon Explorer', - url: 'https://saigon-explorer.roninchain.com/', + url: 'https://saigon-explorer.roninchain.com', }, }, contracts: { From 90c35b83062618d798396d80dcc6bbd748ef3a64 Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 9 Aug 2023 05:51:43 +0200 Subject: [PATCH 6/6] Update ronin.ts --- packages/chains/src/ronin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chains/src/ronin.ts b/packages/chains/src/ronin.ts index 2d5da402..2a3d7d7e 100644 --- a/packages/chains/src/ronin.ts +++ b/packages/chains/src/ronin.ts @@ -14,7 +14,7 @@ export const ronin = { }, }, blockExplorers: { - default: { name: 'Ronin Explorer', url: 'https://app.roninchain.com/' }, + default: { name: 'Ronin Explorer', url: 'https://app.roninchain.com' }, }, contracts: { multicall3: {