Skip to content

Commit

Permalink
feat: add real & unreal chains (#2441)
Browse files Browse the repository at this point in the history
* Add: real & unreal chains

* Update unreal.ts
  • Loading branch information
jiggyBu authored Jun 26, 2024
1 parent c33c298 commit a70db74
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-socks-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const real = /*#__PURE__*/ defineChain({
id: 111188,
name: 're.al',
nativeCurrency: {
name: 'reETH',
decimals: 18,
symbol: 'reETH',
},
rpcUrls: {
default: { http: ['https://real.drpc.org'] },
},
blockExplorers: {
default: {
name: 're.al Explorer',
url: 'https://explorer.re.al',
apiUrl: 'https://explorer.re.al/api/v2',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 695,
},
},
});
28 changes: 28 additions & 0 deletions src/chains/definitions/unreal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js';

export const unreal = /*#__PURE__*/ defineChain({
id: 18233,
name: 'Unreal',
nativeCurrency: {
name: 'reETH',
decimals: 18,
symbol: 'reETH',
},
rpcUrls: {
default: { http: ['https://rpc.unreal-orbit.gelato.digital'] },
},
blockExplorers: {
default: {
name: 'Unreal Explorer',
url: 'https://unreal.blockscout.com',
apiUrl: 'https://unreal.blockscout.com/api/v2',
},
},
testnet: true,
contracts: {
multicall3: {
address: '0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677',
blockCreated: 1745,
},
},
});
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,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 { real } from './definitions/real.js'
export { redbellyTestnet } from './definitions/redbellyTestnet.js'
export { redstone } from './definitions/redstone.js'
export { reyaNetwork } from './definitions/reyaNetwork.js'
Expand Down Expand Up @@ -265,6 +266,7 @@ export { telosTestnet } from './definitions/telosTestnet.js'
export { tenet } from './definitions/tenet.js'
export { thaiChain } from './definitions/thaiChain.js'
export { thunderTestnet } from './definitions/thunderTestnet.js'
export { unreal } from './definitions/unreal.js'
export { vechain } from './definitions/vechain.js'
export { wanchain } from './definitions/wanchain.js'
export { wanchainTestnet } from './definitions/wanchainTestnet.js'
Expand Down

0 comments on commit a70db74

Please sign in to comment.