Skip to content

Commit

Permalink
feat: add bitkub chain (#2361)
Browse files Browse the repository at this point in the history
* feat: add bitkub chain

* Update bitkub.ts

* Update bitkubTestnet.ts

* Update index.ts

* Update index.ts

---------

Co-authored-by: np <np@np.np>
Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
3 people authored Jun 4, 2024
1 parent 0c1c436 commit 05c166e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-readers-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const bitkub = /*#__PURE__*/ defineChain({
id: 96,
name: 'Bitkub',
nativeCurrency: { name: 'Bitkub', symbol: 'KUB', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.bitkubchain.io'],
},
},
blockExplorers: {
default: {
name: 'Bitkub Chain Mainnet Explorer',
url: 'https://www.bkcscan.com',
apiUrl: 'https://www.bkcscan.com/api',
},
},
})
21 changes: 21 additions & 0 deletions src/chains/definitions/bitkubTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const bitkubTestnet = /*#__PURE__*/ defineChain({
id: 25925,
name: 'Bitkub Testnet',
network: 'Bitkub Testnet',
nativeCurrency: { name: 'Bitkub Test', symbol: 'tKUB', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-testnet.bitkubchain.io'],
},
},
blockExplorers: {
default: {
name: 'Bitkub Chain Testnet Explorer',
url: 'https://testnet.bkcscan.com',
apiUrl: 'https://testnet.bkcscan.com/api',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export { bearNetworkChainMainnet } from './definitions/bearNetworkChainMainnet.j
export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.js'
export { berachainTestnet } from './definitions/berachainTestnet.js'
export { bevmMainnet } from './definitions/bevmMainnet.js'
export { bitkub } from './definitions/bitkub.js'
export { bitkubTestnet } from './definitions/bitkubTestnet.js'
export { bitTorrent } from './definitions/bitTorrent.js'
export { bitTorrentTestnet } from './definitions/bitTorrentTestnet.js'
export { blast } from './definitions/blast.js'
Expand Down

0 comments on commit 05c166e

Please sign in to comment.