Skip to content

Commit

Permalink
feat: add XR Sepolia chain (#1) (wevm#2444)
Browse files Browse the repository at this point in the history
* tests: update snapshots (foundry upgrade)

* Add XR Sepolia chain (#1)

* Update xrSepolia.ts

* Update writeContracts.test.ts

* Revert changes

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
RealWooblay and jxom authored Jun 30, 2024
1 parent ffb155e commit 495192c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-peaches-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const xrSepolia = /*#__PURE__*/ defineChain({
id: 2730,
name: 'XR Sepolia',
nativeCurrency: {
decimals: 18,
name: 'tXR',
symbol: 'tXR',
},
rpcUrls: {
default: { http: ['https://xr-sepolia-testnet.rpc.caldera.xyz/http'] },
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://xr-sepolia-testnet.explorer.caldera.xyz',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export { xai } from './definitions/xai.js'
export { xaiTestnet } from './definitions/xaiTestnet.js'
export { xdc } from './definitions/xdc.js'
export { xdcTestnet } from './definitions/xdcTestnet.js'
export { xrSepolia } from './definitions/xrSepolia.js'
export { yooldoVerse } from './definitions/yooldoVerse.js'
export { yooldoVerseTestnet } from './definitions/yooldoVerseTestnet.js'
export { zetachain } from './definitions/zetachain.js'
Expand Down

0 comments on commit 495192c

Please sign in to comment.