diff --git a/common/config/dpaths.ts b/common/config/dpaths.ts index 6146f40f..fd043b20 100644 --- a/common/config/dpaths.ts +++ b/common/config/dpaths.ts @@ -78,6 +78,11 @@ export const ETH_SINGULAR: DPath = { value: "m/0'/0'/0'" }; +export const GO_DEFAULT: DPath = { + label: 'Default (GO)', + value: "m/44'/6060'/0'/0" +}; + export const DPaths: DPath[] = [ ETH_DEFAULT, ETH_TREZOR, @@ -93,7 +98,8 @@ export const DPaths: DPath[] = [ MUSIC_DEFAULT, ETSC_DEFAULT, EGEM_DEFAULT, - CLO_DEFAULT + CLO_DEFAULT, + GO_DEFAULT ]; // PATHS TO BE INCLUDED REGARDLESS OF WALLET FORMAT diff --git a/common/libs/nodes/configs.ts b/common/libs/nodes/configs.ts index 5513d37f..ed78b26e 100644 --- a/common/libs/nodes/configs.ts +++ b/common/libs/nodes/configs.ts @@ -165,6 +165,15 @@ export const NODE_CONFIGS: { [key in StaticNetworkIds]: RawNodeConfig[] } = { service: '0xinfra.com', url: 'https://clo-geth.0xinfra.com/' } + ], + + GO: [ + { + name: makeNodeName('GO', 'go'), + type: 'rpc', + service: 'gochain.io', + url: 'https://rpc.gochain.io/' + } ] }; diff --git a/common/reducers/config/networks/staticNetworks.ts b/common/reducers/config/networks/staticNetworks.ts index 295c8672..2be72a85 100644 --- a/common/reducers/config/networks/staticNetworks.ts +++ b/common/reducers/config/networks/staticNetworks.ts @@ -20,7 +20,8 @@ import { MUSIC_DEFAULT, ETSC_DEFAULT, EGEM_DEFAULT, - CLO_DEFAULT + CLO_DEFAULT, + GO_DEFAULT } from 'config/dpaths'; import { ConfigAction } from 'actions/config'; import { makeExplorer } from 'utils/helpers'; @@ -364,6 +365,30 @@ export const INITIAL_STATE: State = { max: 60, initial: 20 } + }, + + GO: { + id: 'GO', + name: 'GO', + unit: 'GO', + chainId: 60, + isCustom: false, + color: '#00b04a', + blockExplorer: makeExplorer({ + name: 'GoChain Explorer', + origin: 'https://explorer.gochain.io' + }), + tokens: [], + contracts: [], + dPathFormats: { + [SecureWalletName.TREZOR]: GO_DEFAULT, + [InsecureWalletName.MNEMONIC_PHRASE]: GO_DEFAULT + }, + gasPriceSettings: { + min: 2, + max: 60, + initial: 2 + } } }; diff --git a/shared/types/network.d.ts b/shared/types/network.d.ts index 3c15c3f2..03fd4fb9 100644 --- a/shared/types/network.d.ts +++ b/shared/types/network.d.ts @@ -14,7 +14,8 @@ type StaticNetworkIds = | 'MUSIC' | 'ETSC' | 'EGEM' - | 'CLO'; + | 'CLO' + | 'GO'; export interface BlockExplorerConfig { name: string;