Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Added XDC network (#199)
Browse files Browse the repository at this point in the history
* feat: Added XDC network

* Create thin-weeks-deliver.md
  • Loading branch information
pro100skm authored Mar 28, 2023
1 parent 9f8c539 commit 41c6bae
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-weeks-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": patch
---

Added XDC Network
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export { telos } from './telos'
export { telosTestnet } from './telosTestnet'
export { wanchain } from './wanchain'
export { wanchainTestnet } from './wanchainTestnet'
export { xdc } from './xdc'
export { xdcTestnet } from './xdcTestnet'
export { zhejiang } from './zhejiang'
export { zkSync } from './zkSync'
export { zkSyncTestnet } from './zkSyncTestnet'
20 changes: 20 additions & 0 deletions packages/chains/src/xdc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Chain } from './types'

export const xdc = {
id: 50,
name: 'XinFin Network',
network: 'xdc',
nativeCurrency: {
decimals: 18,
name: 'XDC',
symbol: 'XDC',
},
rpcUrls: {
default: { http: ['https://rpc.xinfin.network'] },
public: { http: ['https://rpc.xinfin.network'] },
},
blockExplorers: {
xinfin: { name: 'XinFin', url: 'https://explorer.xinfin.network' },
default: { name: 'Blocksscan', url: 'https://xdc.blocksscan.io' },
},
} as const satisfies Chain
20 changes: 20 additions & 0 deletions packages/chains/src/xdcTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Chain } from './types'

export const xdcTestnet = {
id: 51,
name: 'Apothem Network',
network: 'xdc-testnet',
nativeCurrency: {
decimals: 18,
name: 'TXDC',
symbol: 'TXDC',
},
rpcUrls: {
default: { http: ['https://erpc.apothem.network'] },
public: { http: ['https://erpc.apothem.network'] },
},
blockExplorers: {
xinfin: { name: 'XinFin', url: 'https://explorer.apothem.network' },
default: { name: 'Blocksscan', url: 'https://apothem.blocksscan.io' },
},
} as const satisfies Chain

0 comments on commit 41c6bae

Please sign in to comment.