Skip to content

Commit

Permalink
feat: add bouncebit chain (#2786)
Browse files Browse the repository at this point in the history
* Added BounceBit chain.

* Update bounceBitTestnet information

* Export bounceBit

---------

Co-authored-by: peterhappynow <peter@clica.tech>
  • Loading branch information
sina-london and peterhappynow authored Sep 28, 2024
1 parent 9d7d160 commit 4d692d4
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-taxis-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const bounceBit = /*#__PURE__*/ defineChain({
id: 6001,
name: 'BounceBit Mainnet',
nativeCurrency: { name: 'BounceBit', symbol: 'BB', decimals: 18 },
rpcUrls: {
default: { http: ['https://fullnode-mainnet.bouncebitapi.com'] },
},
blockExplorers: {
default: {
name: 'BB Scan',
url: 'https://bbscan.io',
},
},
testnet: false,
})
17 changes: 17 additions & 0 deletions src/chains/definitions/bounceBitTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const bounceBitTestnet = /*#__PURE__*/ defineChain({
id: 6000,
name: 'BounceBit Testnet',
nativeCurrency: { name: 'BounceBit', symbol: 'BB', decimals: 18 },
rpcUrls: {
default: { http: ['https://fullnode-testnet.bouncebitapi.com'] },
},
blockExplorers: {
default: {
name: 'BB Scan',
url: 'https://testnet.bbscan.io',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export { bobSepolia } from './definitions/bobSepolia.js'
export { boba } from './definitions/boba.js'
export { bobaSepolia } from './definitions/bobaSepolia.js'
export { botanixTestnet } from './definitions/botanixTestnet.js'
export { bounceBit } from './definitions/bounceBit.js'
export { bounceBitTestnet } from './definitions/bounceBitTestnet.js'
export { bronos } from './definitions/bronos.js'
export { bronosTestnet } from './definitions/bronosTestnet.js'
export { bsc } from './definitions/bsc.js'
Expand Down

0 comments on commit 4d692d4

Please sign in to comment.