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

Commit

Permalink
Update Filecoin chain configuration (#103)
Browse files Browse the repository at this point in the history
* Update Filecoin chain configuration

* Eslint fixes

* Export filecoin calibrationnet chain

* Use EIP-3091 standard for Glif explorer

* Glif explorer on single line

* Add as const satisfies Chain for Filecoin Calibration

* Add changeset for Filecoin chains update

* Add numeric separators for filecoin test chain ids

* Update .changeset/old-adults-jump.md

* Update packages/chains/src/filecoinCalibration.ts

* Update packages/chains/src/filecoinHyperspace.ts

---------

Co-authored-by: awkweb <tom@meagher.co>
  • Loading branch information
navFooh and tmm authored Feb 7, 2023
1 parent e3566eb commit 337ffeb
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-adults-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/chains': patch
---

Updated Filecoin Chains. Added Filecoin Calibration Chain.
5 changes: 3 additions & 2 deletions packages/chains/src/filecoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ export const filecoin = {
symbol: 'FIL',
},
rpcUrls: {
default: { http: ['https://api.node.glif.io'] },
public: { http: ['https://api.node.glif.io'] },
default: { http: ['https://api.node.glif.io/rpc/v1'] },
public: { http: ['https://api.node.glif.io/rpc/v1'] },
},
blockExplorers: {
default: { name: 'Filfox', url: 'https://filfox.info/en' },
filscan: { name: 'Filscan', url: 'https://filscan.io' },
filscout: { name: 'Filscout', url: 'https://filscout.io/en' },
glif: { name: 'Glif', url: 'https://explorer.glif.io' },
},
} as const satisfies Chain
19 changes: 19 additions & 0 deletions packages/chains/src/filecoinCalibration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Chain } from './types'

export const filecoinCalibration: Chain = {
id: 314_159,
name: 'Filecoin Calibration',
network: 'filecoin-calibration',
nativeCurrency: {
decimals: 18,
name: 'testnet filecoin',
symbol: 'tFIL',
},
rpcUrls: {
default: { http: ['https://api.calibration.node.glif.io/rpc/v1'] },
public: { http: ['https://api.calibration.node.glif.io/rpc/v1'] },
},
blockExplorers: {
default: { name: 'Filscan', url: 'https://calibration.filscan.io' },
},
} as const satisfies Chain
4 changes: 2 additions & 2 deletions packages/chains/src/filecoinHyperspace.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Chain } from './types'

export const filecoinHyperspace = {
id: 3141,
id: 314_1,
name: 'Filecoin Hyperspace',
network: 'filecoin-hyperspace',
nativeCurrency: {
Expand All @@ -15,6 +15,6 @@ export const filecoinHyperspace = {
},
blockExplorers: {
default: { name: 'Filfox', url: 'https://hyperspace.filfox.info/en' },
gilf: { name: 'Glif', url: 'https://explorer.glif.io/?network=hyperspace' },
filscan: { name: 'Filscan', url: 'https://hyperspace.filscan.io' },
},
} as const satisfies Chain
1 change: 1 addition & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { evmosTestnet } from './evmosTestnet'
export { fantom } from './fantom'
export { fantomTestnet } from './fantomTestnet'
export { filecoin } from './filecoin'
export { filecoinCalibration } from './filecoinCalibration'
export { filecoinHyperspace } from './filecoinHyperspace'
export { foundry } from './foundry'
export { iotex } from './iotex'
Expand Down

0 comments on commit 337ffeb

Please sign in to comment.