This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Ronin and Saigon chains (#434)
* 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
1 parent
a270cb9
commit ebc85ec
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@wagmi/chains": minor | ||
--- | ||
|
||
Added Ronin and Saigon chains |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |