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

Update Redbelly Testnet Chain Block Explorer and Add Redbelly Mainnet Chain Details #3070

Merged
merged 2 commits into from
Nov 28, 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/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 @@ -302,6 +302,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 { reyaNetwork } from './definitions/reyaNetwork.js'
Expand Down