Skip to content

Commit

Permalink
chore: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Sep 18, 2024
1 parent ad478bc commit e604e11
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-spies-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added World Chain
10 changes: 6 additions & 4 deletions src/chains/definitions/worldchain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineChain } from '../../utils/chain.js'
import { defineChain } from '../../utils/chain/defineChain.js'

export const worldchain = /*#__PURE__*/ defineChain({
id: 480,
Expand All @@ -7,10 +7,12 @@ export const worldchain = /*#__PURE__*/ defineChain({
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: { http: ['https://worldchain-mainnet.g.alchemy.com/public'] },
public: { http: ['https://worldchain-mainnet.g.alchemy.com/public'] },
},
blockExplorers: {
default: { name: 'World Chain Explorer', url: 'https://worldchain-mainnet.explorer.alchemy.com/' },
default: {
name: 'World Chain Explorer',
url: 'https://worldchain-mainnet.explorer.alchemy.com',
},
},
testnet: false,
})
})
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { defineChain } from '../../utils/chain.js'
import { defineChain } from '../../utils/chain/defineChain.js'

export const worldchainsepolia = /*#__PURE__*/ defineChain({
export const worldchainSepolia = /*#__PURE__*/ defineChain({
id: 4801,
name: 'World Chain Sepolia',
network: 'worldchainsepolia',
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/' },
default: {
name: 'World Chain Sepolia Explorer',
url: 'https://worldchain-sepolia.explorer.alchemy.com',
},
},
testnet: true,
})
})
4 changes: 2 additions & 2 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ export { wanchainTestnet } from './definitions/wanchainTestnet.js'
export { wemix } from './definitions/wemix.js'
export { wemixTestnet } from './definitions/wemixTestnet.js'
export { worldchain } from './definitions/worldchain.js'
export { worldchainsepolia } from './definitions/worldchainsepolia.js'
export {
export { worldchainSepolia } from './definitions/worldchainSepolia.js'
export {
xLayerTestnet,
/** @deprecated Use `xLayerTestnet` */
x1Testnet,
Expand Down

0 comments on commit e604e11

Please sign in to comment.