Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Flow's previewnet evm network #1913

Merged
merged 6 commits into from Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gentle-jokes-rule.md
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Flow previewnet evm network
22 changes: 22 additions & 0 deletions src/chains/definitions/flowMainnet.ts
@@ -0,0 +1,22 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const flowMainnet= /*#__PURE__*/ defineChain({
id: 747,
name: 'FlowEVM Mainnet',
nativeCurrency: {
decimals: 18,
name: 'Flow',
symbol: 'FLOW',
},
rpcUrls: {
default: {
http: ['https://mainnet.evm.nodes.onflow.org']
},
},
blockExplorers: {
default: {
name: 'Mainnet Explorer',
url: 'https://flowdiver.io',
},
},
})
22 changes: 22 additions & 0 deletions src/chains/definitions/flowPreviewnet.ts
@@ -0,0 +1,22 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const flowPreviewnet = /*#__PURE__*/ defineChain({
id: 646,
name: 'FlowEVM Previewnet',
nativeCurrency: {
decimals: 18,
name: 'Flow',
symbol: 'FLOW',
},
rpcUrls: {
default: {
http: ['https://previewnet.evm.nodes.onflow.org']
},
},
blockExplorers: {
default: {
name: 'Previewnet Explorer',
url: 'https://previewnet.flowdiver.io',
},
},
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Expand Up @@ -72,6 +72,8 @@ export { filecoinCalibration } from './definitions/filecoinCalibration.js'
export { filecoinHyperspace } from './definitions/filecoinHyperspace.js'
export { flare } from './definitions/flare.js'
export { flareTestnet } from './definitions/flareTestnet.js'
export { flowPreviewnet } from './definitions/flowPreviewnet.js'
export { flowMainnet } from './definitions/flowMainnet.js'
/** @deprecated Use `anvil` instead. */
export { foundry } from './definitions/foundry.js'
export { fraxtal } from './definitions/fraxtal.js'
Expand Down