Skip to content

Commit

Permalink
feat: add Fluence, Fluence Testnet, Fluence Stage (#2670)
Browse files Browse the repository at this point in the history
* Added three chains: Fluence, Fluence Testnet, Fluence Stage

* Update eight-lies-shop.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
crystalbit and jxom authored Aug 29, 2024
1 parent e026509 commit d1ca95c
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-lies-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const fluence = /*#__PURE__*/ defineChain({
id: 9_999_999,
name: 'Fluence',
nativeCurrency: { name: 'FLT', symbol: 'FLT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.mainnet.fluence.dev'],
webSocket: ['wss://ws.mainnet.fluence.dev'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://blockscout.mainnet.fluence.dev',
apiUrl: 'https://blockscout.mainnet.fluence.dev/api',
},
},
})
21 changes: 21 additions & 0 deletions src/chains/definitions/fluenceStage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const fluenceStage = /*#__PURE__*/ defineChain({
id: 123_420_000_220,
name: 'Fluence Stage',
nativeCurrency: { name: 'tFLT', symbol: 'tFLT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.stage.fluence.dev'],
webSocket: ['wss://ws.stage.fluence.dev'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://blockscout.stage.fluence.dev',
apiUrl: 'https://blockscout.stage.fluence.dev/api',
},
},
testnet: true,
})
21 changes: 21 additions & 0 deletions src/chains/definitions/fluenceTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const fluenceTestnet = /*#__PURE__*/ defineChain({
id: 52_164_803,
name: 'Fluence Testnet',
nativeCurrency: { name: 'tFLT', symbol: 'tFLT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.testnet.fluence.dev'],
webSocket: ['wss://ws.testnet.fluence.dev'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://blockscout.testnet.fluence.dev',
apiUrl: 'https://blockscout.testnet.fluence.dev/api',
},
},
testnet: true,
})
3 changes: 3 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export { flareTestnet } from './definitions/flareTestnet.js'
export { flowPreviewnet } from './definitions/flowPreviewnet.js'
export { flowMainnet } from './definitions/flowMainnet.js'
export { flowTestnet } from './definitions/flowTestnet.js'
export { fluence } from './definitions/fluence.js'
export { fluenceStage } from './definitions/fluenceStage.js'
export { fluenceTestnet } from './definitions/fluenceTestnet.js'
export { forma } from './definitions/forma.js'
/** @deprecated Use `anvil` instead. */
export { foundry } from './definitions/foundry.js'
Expand Down

0 comments on commit d1ca95c

Please sign in to comment.