Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bitkub chain #2361

Merged
merged 5 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading