Skip to content

Commit

Permalink
feat: add Redstone chain (#2315)
Browse files Browse the repository at this point in the history
* added new chain - redstone

* Exported redstone chain

* chore: format

* Create cyan-taxis-learn.md

---------

Co-authored-by: Pfed-prog <Pfed-prog@users.noreply.github.com>
Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
3 people committed May 27, 2024
1 parent 98aeb5f commit 4f15896
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-taxis-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const redstone = defineChain({
id: 690,
name: 'Redstone',
nativeCurrency: {
decimals: 18,
name: 'Ether',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://rpc.redstonechain.com'],
webSocket: ['wss://rpc.redstonechain.com'],
},
},
blockExplorers: {
default: { name: 'Explorer', url: ' https://explorer.redstone.xyz' },
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export { pulsechain } from './definitions/pulsechain.js'
export { pulsechainV4 } from './definitions/pulsechainV4.js'
export { qMainnet } from './definitions/qMainnet.js'
export { qTestnet } from './definitions/qTestnet.js'
export { redstone } from './definitions/redstone.js'
export { reyaNetwork } from './definitions/reyaNetwork.js'
export { rollux } from './definitions/rollux.js'
export { rolluxTestnet } from './definitions/rolluxTestnet.js'
Expand Down

0 comments on commit 4f15896

Please sign in to comment.