Skip to content

Commit

Permalink
feat: add Unichain Sepolia Testnet (#2840)
Browse files Browse the repository at this point in the history
* Add Unichain Sepolia

* Fix ID

* Add Changeset
  • Loading branch information
akshatmittal authored Oct 10, 2024
1 parent 075f8dc commit e9cf6ee
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-kids-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Add Unichain Sepolia Testnet
33 changes: 33 additions & 0 deletions src/chains/definitions/unichainSepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 11_155_111 // sepolia

export const unichainSepolia = /*#__PURE__*/ defineChain({
id: 1301,
name: 'Unichain Sepolia',
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://sepolia.unichain.org'],
},
},
blockExplorers: {
default: {
name: 'Uniscan',
url: 'https://sepolia.uniscan.xyz',
apiUrl: 'https://api-sepolia.uniscan.xyz',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 0,
},
},
testnet: true,
sourceId,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export { tenet } from './definitions/tenet.js'
export { thaiChain } from './definitions/thaiChain.js'
export { thunderTestnet } from './definitions/thunderTestnet.js'
export { tron } from './definitions/tron.js'
export { unichainSepolia } from './definitions/unichainSepolia.js';
export { unique } from './definitions/unique.js'
export { uniqueQuartz } from './definitions/uniqueQuartz.js'
export { uniqueOpal } from './definitions/uniqueOpal.js'
Expand Down

0 comments on commit e9cf6ee

Please sign in to comment.