-
-
Notifications
You must be signed in to change notification settings - Fork 928
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Matchain and Testnet (#2825)
* Add Matchain and Testnet * Update matchainTestnet.ts --------- Co-authored-by: jxom <j@wevm.dev>
- Loading branch information
1 parent
3fd4332
commit 66d7a1c
Showing
4 changed files
with
48 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 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Added Matchain. |
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,20 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const matchain = /*#__PURE__*/ defineChain({ | ||
id: 698, | ||
name: 'Matchain', | ||
nativeCurrency: { | ||
name: 'BNB', | ||
symbol: 'BNB', | ||
decimals: 18, | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://rpc.matchain.io'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Matchain Scan', | ||
url: 'https://matchscan.io', | ||
}, | ||
}, | ||
}) |
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,21 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const matchainTestnet = /*#__PURE__*/ defineChain({ | ||
id: 699, | ||
name: 'Matchain Testnet', | ||
nativeCurrency: { | ||
name: 'BNB', | ||
symbol: 'BNB', | ||
decimals: 18, | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://testnet-rpc.matchain.io'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Matchain Scan', | ||
url: 'https://testnet.matchscan.io', | ||
}, | ||
}, | ||
testnet: true | ||
}) |
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