From 204b4824bc0a0eedf6af19fc59f7373c9711060a Mon Sep 17 00:00:00 2001 From: Mayank Mittal Date: Wed, 30 Nov 2022 01:31:49 +0530 Subject: [PATCH] Add Fuse Network --- src/database/data/networks.ts | 28 ++++++++++++++++++++++++++++ src/database/data/nodes.ts | 8 ++++++++ src/types/networkId.ts | 3 ++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/src/database/data/networks.ts b/src/database/data/networks.ts index b8f42e73e34..e1e9c592515 100644 --- a/src/database/data/networks.ts +++ b/src/database/data/networks.ts @@ -1195,5 +1195,33 @@ export const NETWORKS_CONFIG: NetworkConfig = { initial: 1 }, supportsEIP1559: true + }, + Fuse: { + id: 'Fuse', + name: 'Fuse Chain', + unit: 'FUSE' as TTicker, + chainId: 122, + isCustom: false, + color: '#194675', + blockExplorer: makeExplorer({ + name: 'Fuse Explorer', + origin: 'https://explorer.fuse.io' + }), + tokens: [], + contracts: [], + dPaths: { + [WalletId.TREZOR]: DEFAULT_ETH, + [WalletId.LEDGER_NANO_S]: LEDGER_ETH, + [WalletId.TREZOR_NEW]: DEFAULT_ETH, + [WalletId.LEDGER_NANO_S_NEW]: LEDGER_ETH, + [WalletId.GRIDPLUS]: DEFAULT_ETH, + default: DEFAULT_ETH + }, + gasPriceSettings: { + min: 10, + max: 20, + initial: 10 + }, + supportsEIP1559: false } }; diff --git a/src/database/data/nodes.ts b/src/database/data/nodes.ts index 212bc17539d..8fd632e7716 100644 --- a/src/database/data/nodes.ts +++ b/src/database/data/nodes.ts @@ -458,5 +458,13 @@ export const NODES_CONFIG: { [key in NetworkId]: StaticNodeConfig[] } = { service: 'Apothem.BlocksScan.io', url: 'https://mycryptoarpc.blocksscan.io' } + ], + Fuse: [ + { + name: NetworkUtils.makeNodeName('Fuse', 'rpc.fuse.io'), + type: NodeType.RPC, + service: 'rpc.fuse.io', + url: 'https://rpc.fuse.io' + } ] }; diff --git a/src/types/networkId.ts b/src/types/networkId.ts index ad49418729b..768bc4856dc 100644 --- a/src/types/networkId.ts +++ b/src/types/networkId.ts @@ -39,4 +39,5 @@ export type NetworkId = | 'Fantom' | 'HECO' | 'XDC' - | 'XDCApothem'; + | 'XDCApothem' + | 'Fuse';