Skip to content

Commit

Permalink
feat: add berachain network (#1718)
Browse files Browse the repository at this point in the history
* feat: add Berachain testnet chain

* chore: changeset

* Update src/chains/definitions/berachainTestnet.ts

refactor: remove slash from explorer url

Co-authored-by: awkweb <tom@meagher.co>

* Update .changeset/nice-fishes-leave.md

style: change changeset desc

Co-authored-by: awkweb <tom@meagher.co>

* Update src/chains/definitions/berachainTestnet.ts

refactor: remove slash from rpc url

Co-authored-by: awkweb <tom@meagher.co>

* Update berachainTestnet.ts

---------

Co-authored-by: awkweb <tom@meagher.co>
Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
3 people authored Jan 27, 2024
1 parent 1fe153e commit 4593b65
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-fishes-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const berachainTestnet = /*#__PURE__*/ defineChain({
id: 80085,
name: 'Berachain Artio',
nativeCurrency: {
decimals: 18,
name: 'BERA Token',
symbol: 'BERA',
},
rpcUrls: {
default: { http: ['https://artio.rpc.berachain.com'] },
},
blockExplorers: {
default: {
name: 'Berachain',
url: 'https://artio.beratrail.io',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export { baseGoerli } from './definitions/baseGoerli.js'
export { baseSepolia } from './definitions/baseSepolia.js'
export { bearNetworkChainMainnet } from './definitions/bearNetworkChainMainnet.js'
export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.js'
export { berachainTestnet } from './definitions/berachainTestnet.js'
export { bitTorrent } from './definitions/bitTorrent.js'
export { bitTorrentTestnet } from './definitions/bitTorrentTestnet.js'
export { blastSepolia } from './definitions/blastSepolia.js'
Expand Down

1 comment on commit 4593b65

@vercel
Copy link

@vercel vercel bot commented on 4593b65 Jan 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.