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

add Ronin and Saigon chains #434

Merged
merged 7 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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