-
-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add world chain networks * chore: changeset --------- Co-authored-by: Tom Meagher <tom@meagher.co>
- Loading branch information
1 parent
e015630
commit 15c71b6
Showing
4 changed files
with
44 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 World 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,18 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const worldchain = /*#__PURE__*/ defineChain({ | ||
id: 480, | ||
name: 'World Chain', | ||
network: 'worldchain', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { http: ['https://worldchain-mainnet.g.alchemy.com/public'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'World Chain Explorer', | ||
url: 'https://worldchain-mainnet.explorer.alchemy.com', | ||
}, | ||
}, | ||
testnet: false, | ||
}) |
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,19 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const worldchainSepolia = /*#__PURE__*/ defineChain({ | ||
id: 4801, | ||
name: 'World Chain Sepolia', | ||
network: 'worldchain-sepolia', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { http: ['https://worldchain-sepolia.g.alchemy.com/public'] }, | ||
public: { http: ['https://worldchain-sepolia.g.alchemy.com/public'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'World Chain Sepolia Explorer', | ||
url: 'https://worldchain-sepolia.explorer.alchemy.com', | ||
}, | ||
}, | ||
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