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

Add Pirl #2165

Merged
merged 2 commits into from
Sep 15, 2018
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion common/config/dpaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion common/features/config/__snapshots__/sagas.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object {
"@@redux-saga/IO": true,
"SELECT": Object {
"args": Array [
"AKA",
"PIRL",
],
"selector": [Function],
},
Expand Down
27 changes: 26 additions & 1 deletion common/features/config/networks/static/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
}
}
};

Expand Down
9 changes: 9 additions & 0 deletions common/libs/nodes/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
]
};

Expand Down
3 changes: 2 additions & 1 deletion shared/types/network.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ type StaticNetworkIds =
| 'EOSC'
| 'ESN'
| 'AQUA'
| 'AKA';
| 'AKA'
| 'PIRL';

export interface BlockExplorerConfig {
name: string;
Expand Down