Skip to content

Commit

Permalink
feat: add bsquared chains (#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
posquit0 authored Oct 7, 2024
1 parent 4b1c3f1 commit 3fd4332
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-rockets-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const bsquared = /*#__PURE__*/ defineChain({
id: 223,
name: 'B2',
nativeCurrency: {
name: 'Bitcoin',
symbol: 'BTC',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://rpc.bsquared.network'],
},
},
blockExplorers: {
default: {
name: 'blockscout',
url: 'https://explorer.bsquared.network',
},
},
})
23 changes: 23 additions & 0 deletions src/chains/definitions/bsquaredTestnet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const bsquaredTestnet = /*#__PURE__*/ defineChain({
id: 1123,
name: 'B2 Testnet',
nativeCurrency: {
name: 'Bitcoin',
symbol: 'BTC',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://testnet-rpc.bsquared.network'],
},
},
blockExplorers: {
default: {
name: 'blockscout',
url: 'https://testnet-explorer.bsquared.network',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export { bronosTestnet } from './definitions/bronosTestnet.js'
export { bsc } from './definitions/bsc.js'
export { bscTestnet } from './definitions/bscTestnet.js'
export { bscGreenfield } from './definitions/bscGreenfield.js'
export { bsquared } from './definitions/bsquared.js'
export { bsquaredTestnet } from './definitions/bsquaredTestnet.js'
export { btr } from './definitions/btr.js'
export { btrTestnet } from './definitions/btrTestnet.js'
export { bxn } from './definitions/bxn.js'
Expand Down

0 comments on commit 3fd4332

Please sign in to comment.