mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
ab5fa1a799
* Make UnlockHeader a PureComponent * MVP * actually disable wallet format if not determined to be valid format for wallet * default to correct derivation in mnemonic modal * cleanup * fix tslint * use enums for HD wallet getPath * Add stricter typing * Fix labels not updating on selector * Ban hardware wallet support for custom network unsupported chainIds * Fix type error * Fix custom node dPath not being saved * Fix mnemonic modal * default path bugfixes * add react-select * misc fixes; rabbit holing hard. * fix tslint * revert identicon changes * reload on network change :/ * actually reload on network change * really really reload on network change * tslint fixes * Update styles * set table width * fix package versioning * push broken sagas * Fix saga test * fix tslint * address round of review * move non-selectors out to utilty; adjust reload timer * cleanup network util comments * manage wallet disable at WalletDecrypt instead of in both WalletDecrypt and WalletButton * Separate WalletDecrypt props into ownProps / StateProps * disable payment requests on non-eth networks * specialize connect; separate props * remove unused state prop * remove bad import * create tests for networks * Clarify Lite-Send error on non-ethereum networkS * remove string option for network config name * Create concept of always-on 'EXTRA_PATHS'; include SINGULAR_DTV legacy dPath in 'EXTRA_PATHS' * fix multiple imports * address PR comments
53 lines
1.0 KiB
TypeScript
53 lines
1.0 KiB
TypeScript
export interface DPath {
|
|
label: string;
|
|
value: string; // TODO determine method for more precise typing for path
|
|
}
|
|
|
|
export const ETH_DEFAULT: DPath = {
|
|
label: 'Default (ETH)',
|
|
value: "m/44'/60'/0'/0"
|
|
};
|
|
|
|
export const ETH_TREZOR: DPath = {
|
|
label: 'TREZOR (ETH)',
|
|
value: "m/44'/60'/0'/0"
|
|
};
|
|
|
|
export const ETH_LEDGER: DPath = {
|
|
label: 'Ledger (ETH)',
|
|
value: "m/44'/60'/0'"
|
|
};
|
|
|
|
export const ETC_LEDGER: DPath = {
|
|
label: 'Ledger (ETC)',
|
|
value: "m/44'/60'/160720'/0'"
|
|
};
|
|
|
|
export const ETC_TREZOR: DPath = {
|
|
label: 'TREZOR (ETC)',
|
|
value: "m/44'/61'/0'/0"
|
|
};
|
|
|
|
export const ETH_TESTNET: DPath = {
|
|
label: 'Testnet (ETH)',
|
|
value: "m/44'/1'/0'/0"
|
|
};
|
|
|
|
export const EXP_DEFAULT: DPath = {
|
|
label: 'Default (EXP)',
|
|
value: "m/44'/40'/0'/0"
|
|
};
|
|
|
|
export const UBQ_DEFAULT: DPath = {
|
|
label: 'Default (UBQ)',
|
|
value: "m/44'/108'/0'/0"
|
|
};
|
|
|
|
export const ETH_SINGULAR: DPath = {
|
|
label: 'SingularDTV',
|
|
value: "m/0'/0'/0'"
|
|
};
|
|
|
|
// PATHS TO BE INCLUDED REGARDLESS OF WALLET FORMAT
|
|
export const EXTRA_PATHS = [ETH_SINGULAR];
|