Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat: add Ronin and Saigon chains (#434)
Browse files Browse the repository at this point in the history
* add Ronin and Saigon chains

* fix ronin chain name

* fix ronin and saigon export order

* fix ronin and saigon export order

* Update saigon.ts

* Update ronin.ts

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
glitch-txs and jxom authored Aug 9, 2023
1 parent a270cb9 commit ebc85ec
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-avocados-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Added Ronin and Saigon chains
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export { polygonZkEvmTestnet } from './polygonZkEvmTestnet'
export { polygonZkEvm } from './polygonZkEvm'
export { pulsechain } from './pulsechain'
export { pulsechainV4 } from './pulsechainV4'
export { ronin } from './ronin'
export { saigon } from './saigon'
export { scrollSepolia } from './scrollSepolia'
export { scrollTestnet } from './scrollTestnet'
export { sepolia } from './sepolia'
Expand Down
25 changes: 25 additions & 0 deletions packages/chains/src/ronin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Chain } from './types'

export const ronin = {
id: 2020,
name: 'Ronin',
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
29 changes: 29 additions & 0 deletions packages/chains/src/saigon.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ebc85ec

Please sign in to comment.