Skip to content

Commit

Permalink
derivation path added
Browse files Browse the repository at this point in the history
  • Loading branch information
Hynek Jina authored and Hynek Jina committed Oct 23, 2023
1 parent 328ab76 commit e535a92
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
9 changes: 9 additions & 0 deletions packages/suite/src/support/messages.ts
Expand Up @@ -3650,6 +3650,15 @@ export default defineMessages({
id: 'TR_ACCOUNT_DETAILS_TYPE_HEADER',
defaultMessage: 'Account type',
},
TR_ACCOUNT_DETAILS_PATH_HEADER: {
id: 'TR_ACCOUNT_DETAILS_PATH_HEADER',
defaultMessage: 'Derivation path',
},
TR_ACCOUNT_DETAILS_PATH_DESC: {
id: 'TR_ACCOUNT_DETAILS_PATH_DESC',
defaultMessage:
'Derivation path is a parameter according to which the Hierarchical Deterministic (HD) wallet derives individual keys within the tree of keys.',
},
TR_ACCOUNT_TYPE_BIP84_DESC: {
id: 'TR_ACCOUNT_TYPE_BIP84_DESC',
defaultMessage:
Expand Down
30 changes: 21 additions & 9 deletions packages/suite/src/views/wallet/details/index.tsx
@@ -1,20 +1,20 @@
import styled from 'styled-components';

import { P, variables } from '@trezor/components';
import { HELP_CENTER_XPUB_URL } from '@trezor/urls';
import { WalletLayout } from 'src/components/wallet';
import { useDevice, useDispatch, useSelector } from 'src/hooks/suite';
import { Card, Translation } from 'src/components/suite';
import {
getAccountTypeDesc,
getAccountTypeName,
getAccountTypeTech,
getAccountTypeUrl,
getAccountTypeDesc,
} from '@suite-common/wallet-utils';
import { ActionColumn, Row, TextColumn, ActionButton } from 'src/components/suite/Settings';
import { CARD_PADDING_SIZE } from 'src/constants/suite/layout';
} from '@suite-common/wallet-utils'; //
import { P, variables } from '@trezor/components';
import { HELP_CENTER_BIP32_URL, HELP_CENTER_XPUB_URL } from '@trezor/urls';
import { showXpub } from 'src/actions/wallet/publicKeyActions';
import { Card, Translation } from 'src/components/suite';
import { ActionButton, ActionColumn, Row, TextColumn } from 'src/components/suite/Settings';
import { WalletLayout } from 'src/components/wallet';
import { NETWORKS } from 'src/config/wallet';
import { CARD_PADDING_SIZE } from 'src/constants/suite/layout';
import { useDevice, useDispatch, useSelector } from 'src/hooks/suite';
import { CoinjoinLogs } from './CoinjoinLogs';
import { CoinjoinSetup } from './CoinjoinSetup/CoinjoinSetup';
import { RescanAccount } from './RescanAccount';
Expand Down Expand Up @@ -130,6 +130,18 @@ const Details = () => {
</P>
</AccountTypeLabel>
</Row>
<Row>
<TextColumn
title={<Translation id="TR_ACCOUNT_DETAILS_PATH_HEADER" />}
description={<Translation id="TR_ACCOUNT_DETAILS_PATH_DESC" />}
buttonLink={HELP_CENTER_BIP32_URL}
/>
<AccountTypeLabel>
<P size="small" weight="medium">
{account.path}
</P>
</AccountTypeLabel>
</Row>
{!isCoinjoinAccount ? (
<Row>
<TextColumn
Expand Down
1 change: 1 addition & 0 deletions packages/urls/src/urls.ts
Expand Up @@ -52,6 +52,7 @@ export const HELP_CENTER_FAILED_BACKUP_URL = 'https://trezor.io/support/a/trezor
export const HELP_CENTER_ADVANCED_RECOVERY_URL =
'https://trezor.io/learn/a/advanced-recovery-on-trezor-model-one';
export const HELP_CENTER_XPUB_URL = 'https://trezor.io/learn/a/trezor-suite-app-public-keys-xpub';
export const HELP_CENTER_BIP32_URL = 'https://trezor.io/learn/a/what-is-bip32';
export const HELP_FIRMWARE_TYPE = 'https://trezor.io/learn/a/bitcoin-only-firmware-on-trezor';
export const HELP_CENTER_ZERO_VALUE_ATTACKS =
'https://trezor.io/support/a/address-poisoning-attacks';
Expand Down

0 comments on commit e535a92

Please sign in to comment.