Skip to content

Commit

Permalink
chore: add Redbelly Mainnet Chain Details (#3070)
Browse files Browse the repository at this point in the history
* Update Redbelly Testnet Chain Block Explorer and Add Redbelly Mainnet Chain Details

* Update giant-paws-do.md

---------

Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
  • Loading branch information
sherrys808 and jxom authored Nov 28, 2024
1 parent 1c893cc commit 6edad02
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-paws-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const redbellyMainnet = /*#__PURE__*/ defineChain({
id: 151,
name: 'Redbelly Network Mainnet',
nativeCurrency: {
name: 'Redbelly Native Coin',
symbol: 'RBNT',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://governors.mainnet.redbelly.network'],
},
},
blockExplorers: {
default: {
name: 'Routescan',
url: 'https://redbelly.routescan.io',
apiUrl: 'https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api',
},
},
testnet: false,
})
6 changes: 3 additions & 3 deletions src/chains/definitions/redbellyTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const redbellyTestnet = /*#__PURE__*/ defineChain({
},
blockExplorers: {
default: {
name: 'Ethernal',
url: 'https://explorer.testnet.redbelly.network',
apiUrl: 'https://ethernal.fly.dev/api',
name: 'Routescan',
url: 'https://redbelly.testnet.routescan.io',
apiUrl:'https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api',
},
},
testnet: true,
Expand Down
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ export { ql1 } from './definitions/ql1.js'
export { qMainnet } from './definitions/qMainnet.js'
export { qTestnet } from './definitions/qTestnet.js'
export { real } from './definitions/real.js'
export { redbellyMainnet } from './definitions/redbellyMainnet.js'
export { redbellyTestnet } from './definitions/redbellyTestnet.js'
export { redstone } from './definitions/redstone.js'
export { rei } from './definitions/rei.js'
Expand Down

0 comments on commit 6edad02

Please sign in to comment.