Skip to content

Commit

Permalink
feat: add Bifrost Mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangnong committed Oct 17, 2024
1 parent 9a9c2ad commit 25a1263
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-pets-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const bifrost = /*#__PURE__*/ defineChain({
id: 3068,
name: 'Bifrost Mainnet',
nativeCurrency: { name: 'BFC', symbol: 'BFC', decimals: 18 },
rpcUrls: {
default: {
http: ['https://public-01.mainnet.bifrostnetwork.com/rpc'],
},
},
blockExplorers: {
default: {
name: 'Bifrost Blockscout',
url: 'https://explorer.mainnet.bifrostnetwork.com/',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.j
export { berachainTestnet } from './definitions/berachainTestnet.js'
export { berachainTestnetbArtio } from './definitions/berachainTestnetbArtio.js'
export { bevmMainnet } from './definitions/bevmMainnet.js'
export { bifrost } from './definitions/bifrost.js'
export { bitkub } from './definitions/bitkub.js'
export { bitkubTestnet } from './definitions/bitkubTestnet.js'
export { bitlayer } from './definitions/bitlayer.js'
Expand Down

0 comments on commit 25a1263

Please sign in to comment.