Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Flow's previewnet evm network (#1913)
* add Flow's previewnet evm network * add flow mainnet configuration * consistent flow network names with ethereum list chain * Update flowMainnet.ts * Update flowPreviewnet.ts * Update gentle-jokes-rule.md --------- Co-authored-by: jxom <jakemoxey@gmail.com>
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Added Flow previewnet evm network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters