Skip to content

Commit

Permalink
feat: add Glide L1 Protocol XP & Glide L2 Protocol XP (wevm#2941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangnong authored and nikola-bozin-txfusion committed Oct 30, 2024
1 parent 4504a9e commit ab2332d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-donkeys-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const glideL1Protocol = /*#__PURE__*/ defineChain({
id: 251,
name: 'Glide L1 Protocol XP',
nativeCurrency: { name: 'GLXP', symbol: 'GLXP', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-api.glideprotocol.xyz/l1-rpc'],
webSocket: ['wss://rpc-api.glideprotocol.xyz/l1-rpc'],
},
},
blockExplorers: {
default: {
name: 'Glide Protocol Explore',
url: 'https://blockchain-explorer.glideprotocol.xyz',
},
},
testnet: false,
})
20 changes: 20 additions & 0 deletions src/chains/definitions/glideL2Protocol.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const glideL2Protocol = /*#__PURE__*/ defineChain({
id: 253,
name: 'Glide L2 Protocol XP',
nativeCurrency: { name: 'GLXP', symbol: 'GLXP', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-api.glideprotocol.xyz/l2-rpc'],
webSocket: ['wss://rpc-api.glideprotocol.xyz/l2-rpc'],
},
},
blockExplorers: {
default: {
name: 'Glide Protocol Explore',
url: 'https://blockchain-explorer.glideprotocol.xyz',
},
},
testnet: false,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ export { fusion } from './definitions/fusion.js'
export { fusionTestnet } from './definitions/fusionTestnet.js'
export { garnet } from './definitions/garnet.js'
export { genesys } from './definitions/genesys.js'
export { glideL1Protocol } from './definitions/glideL1Protocol.js'
export { glideL2Protocol } from './definitions/glideL2Protocol.js'
export { gnosis } from './definitions/gnosis.js'
export { gnosisChiado } from './definitions/gnosisChiado.js'
export { gobi } from './definitions/gobi.js'
Expand Down

0 comments on commit ab2332d

Please sign in to comment.