Skip to content

Commit

Permalink
feat: B3 mainnet (#2625)
Browse files Browse the repository at this point in the history
* Define B3 chain

* Export b3

* Changeset

* Fix chain id
  • Loading branch information
qiwu7 authored Aug 17, 2024
1 parent 8f480e9 commit 507eed7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-plants-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added B3 chain
25 changes: 25 additions & 0 deletions src/chains/definitions/b3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 8453 // base

export const b3 = /*#__PURE__*/ defineChain({
id: 8333,
name: 'B3',
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://mainnet-rpc.b3.fun/http'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://explorer.b3.fun',
},
},
sourceId,
})
2 changes: 1 addition & 1 deletion src/chains/definitions/b3Sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const b3Sepolia = /*#__PURE__*/ defineChain({
},
rpcUrls: {
default: {
http: ['https://sepolia.b3.fun'],
http: ['https://sepolia.b3.fun/http'],
},
},
blockExplorers: {
Expand Down
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export { auroria } from './definitions/auroria.js'
export { avalanche } from './definitions/avalanche.js'
export { avalancheFuji } from './definitions/avalancheFuji.js'
export { b3Sepolia } from './definitions/b3Sepolia.js'
export { b3 } from './definitions/b3.js'
export { bahamut } from './definitions/bahamut.js'
export { base } from './definitions/base.js'
export { baseGoerli } from './definitions/baseGoerli.js'
Expand Down

0 comments on commit 507eed7

Please sign in to comment.