diff --git a/common/config/dpaths.ts b/common/config/dpaths.ts index 956756ae123..aeb7ea0c360 100644 --- a/common/config/dpaths.ts +++ b/common/config/dpaths.ts @@ -123,6 +123,11 @@ export const AKA_DEFAULT: DPath = { value: "m/44'/200625'/0'/0" }; +export const PIRL_DEFAULT: DPath = { + label: 'Default (PIRL)', + value: "m/44'/164'/0'/0" +}; + export const DPaths: DPath[] = [ ETH_DEFAULT, ETH_TREZOR, @@ -147,7 +152,8 @@ export const DPaths: DPath[] = [ EOSC_DEFAULT, ESN_DEFAULT, AQUA_DEFAULT, - AKA_DEFAULT + AKA_DEFAULT, + PIRL_DEFAULT ]; // PATHS TO BE INCLUDED REGARDLESS OF WALLET FORMAT diff --git a/common/features/config/__snapshots__/sagas.spec.ts.snap b/common/features/config/__snapshots__/sagas.spec.ts.snap index 9ef6cd1f7b7..9e94c78ed89 100644 --- a/common/features/config/__snapshots__/sagas.spec.ts.snap +++ b/common/features/config/__snapshots__/sagas.spec.ts.snap @@ -5,7 +5,7 @@ Object { "@@redux-saga/IO": true, "SELECT": Object { "args": Array [ - "AKA", + "PIRL", ], "selector": [Function], }, diff --git a/common/features/config/networks/static/reducer.ts b/common/features/config/networks/static/reducer.ts index edc517dd97e..75fdf8839d7 100644 --- a/common/features/config/networks/static/reducer.ts +++ b/common/features/config/networks/static/reducer.ts @@ -29,7 +29,8 @@ import { EOSC_DEFAULT, ESN_DEFAULT, AQUA_DEFAULT, - AKA_DEFAULT + AKA_DEFAULT, + PIRL_DEFAULT } from 'config/dpaths'; import { makeExplorer } from 'utils/helpers'; import { TAB } from 'components/Header/components/constants'; @@ -595,6 +596,30 @@ export const STATIC_NETWORKS_INITIAL_STATE: types.ConfigStaticNetworksState = { max: 60, initial: 20 } + }, + PIRL: { + id: 'PIRL', + name: 'Pirl', + unit: 'PIRL', + chainId: 3125659152, + isCustom: false, + color: '#a2d729', + blockExplorer: makeExplorer({ + name: 'Poseidon Explorer', + origin: 'https://poseidon.pirl.io/explorer' + }), + tokens: [], + contracts: [], + dPathFormats: { + [SecureWalletName.TREZOR]: PIRL_DEFAULT, + [SecureWalletName.LEDGER_NANO_S]: PIRL_DEFAULT, + [InsecureWalletName.MNEMONIC_PHRASE]: PIRL_DEFAULT + }, + gasPriceSettings: { + min: 1, + max: 60, + initial: 20 + } } }; diff --git a/common/libs/nodes/configs.ts b/common/libs/nodes/configs.ts index 7c9b8c99406..130af7131aa 100644 --- a/common/libs/nodes/configs.ts +++ b/common/libs/nodes/configs.ts @@ -256,6 +256,15 @@ export const NODE_CONFIGS: { [key in StaticNetworkIds]: RawNodeConfig[] } = { service: 'rpc.akroma.io', url: 'https://rpc.akroma.io' } + ], + + PIRL: [ + { + name: makeNodeName('PIRL', 'wallrpc.pirl.io'), + type: 'rpc', + service: 'wallrpc.pirl.io', + url: 'https://wallrpc.pirl.io' + } ] }; diff --git a/shared/types/network.d.ts b/shared/types/network.d.ts index 934e3eeb4c4..7eac93c5fae 100644 --- a/shared/types/network.d.ts +++ b/shared/types/network.d.ts @@ -22,7 +22,8 @@ type StaticNetworkIds = | 'EOSC' | 'ESN' | 'AQUA' - | 'AKA'; + | 'AKA' + | 'PIRL'; export interface BlockExplorerConfig { name: string;