Skip to content

Commit

Permalink
feat: add orderly chain (#2752)
Browse files Browse the repository at this point in the history
* feat: add orderly chain

* Update orderly.ts

* Update index.ts

---------

Co-authored-by: Sourav Gupta <zhangzhengqi0826@gmail.com>
Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
3 people authored Sep 22, 2024
1 parent abaa89f commit ba36b3d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-games-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const orderly = /*#__PURE__*/ defineChain({
id: 291,
name: 'Orderly',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: { http: ['https://rpc.orderly.network'] },
},
blockExplorers: {
default: {
name: 'Orderly Explorer',
url: 'https://explorer.orderly.network',
},
},
testnet: false,
})
19 changes: 19 additions & 0 deletions src/chains/definitions/orderlySepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const orderlySepolia = /*#__PURE__*/ defineChain({
id: 4460,
name: 'Orderly Sepolia',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz'],
},
},
blockExplorers: {
default: {
name: 'Orderly Explorer',
url: 'https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ export { optimismSepolia } from './definitions/optimismSepolia.js'
export { opBNB } from './definitions/opBNB.js'
export { opBNBTestnet } from './definitions/opBNBTestnet.js'
export { oortMainnetDev } from './definitions/oortmainnetDev.js'
export { orderly } from './definitions/orderly.js'
export { orderlySepolia } from './definitions/orderlySepolia.js'
export { otimDevnet } from './definitions/otimDevnet.js'
export { palm } from './definitions/palm.js'
export { palmTestnet } from './definitions/palmTestnet.js'
Expand Down

0 comments on commit ba36b3d

Please sign in to comment.