@trezor/connect 9.2.0 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -1
  3. package/lib/api/binance/api/binanceSignTransaction.d.ts +1 -1
  4. package/lib/api/binance/binanceSignTx.d.ts +1 -1
  5. package/lib/api/bitcoin/Fees.d.ts +2 -2
  6. package/lib/api/bitcoin/TransactionComposer.d.ts +2 -2
  7. package/lib/api/blockchainEstimateFee.js +1 -0
  8. package/lib/api/cardano/cardanoOutputs.d.ts +1 -1
  9. package/lib/api/cardano/cardanoTokenBundle.d.ts +2 -2
  10. package/lib/api/changeLanguage.js +11 -5
  11. package/lib/api/eos/eosSignTx.d.ts +58 -58
  12. package/lib/api/ethereum/api/ethereumGetPublicKey.d.ts +8 -6
  13. package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +4 -4
  14. package/lib/api/getAccountInfo.d.ts +2 -2
  15. package/lib/api/getAccountInfo.js +3 -0
  16. package/lib/api/getCoinInfo.d.ts +22 -22
  17. package/lib/api/getFeatures.d.ts +13 -12
  18. package/lib/api/getPublicKey.d.ts +8 -6
  19. package/lib/api/nem/nemSignTx.d.ts +13 -13
  20. package/lib/api/stellar/stellarSignTx.d.ts +1 -1
  21. package/lib/api/tezos/tezosSignTx.d.ts +18 -18
  22. package/lib/backend/BackendManager.d.ts +1 -2
  23. package/lib/backend/BackendManager.js +15 -15
  24. package/lib/backend/Blockchain.d.ts +1 -1
  25. package/lib/backend/Blockchain.js +1 -1
  26. package/lib/core/index.js +33 -4
  27. package/lib/data/coinInfo.d.ts +117 -117
  28. package/lib/data/config.js +15 -1
  29. package/lib/data/defaultFeeLevels.js +9 -1
  30. package/lib/data/deviceAuthenticityConfig.js +4 -1
  31. package/lib/data/firmwareInfo.d.ts +1 -1
  32. package/lib/data/version.d.ts +1 -1
  33. package/lib/data/version.js +1 -1
  34. package/lib/device/Device.d.ts +3 -2
  35. package/lib/device/Device.js +2 -1
  36. package/lib/device/DeviceCommands.d.ts +10 -6
  37. package/lib/device/DeviceCommands.js +8 -5
  38. package/lib/device/resolveDescriptorForTaproot.d.ts +15 -0
  39. package/lib/device/resolveDescriptorForTaproot.js +31 -0
  40. package/lib/events/device.d.ts +1 -0
  41. package/lib/events/device.js +1 -0
  42. package/lib/types/account.d.ts +2 -0
  43. package/lib/types/api/applySettings.d.ts +6 -6
  44. package/lib/types/api/binance/index.d.ts +10 -10
  45. package/lib/types/api/cardano/index.d.ts +4 -4
  46. package/lib/types/api/changeLanguage.d.ts +1 -1
  47. package/lib/types/api/cipherKeyValue.d.ts +2 -2
  48. package/lib/types/api/eos/index.d.ts +3 -3
  49. package/lib/types/api/ethereum/index.d.ts +3 -3
  50. package/lib/types/api/firmwareUpdate.d.ts +1 -1
  51. package/lib/types/api/getAddress.d.ts +5 -5
  52. package/lib/types/api/getPublicKey.d.ts +1 -0
  53. package/lib/types/api/getPublicKey.js +5 -1
  54. package/lib/types/api/nem/index.d.ts +7 -7
  55. package/lib/types/api/recoveryDevice.d.ts +1 -1
  56. package/lib/types/api/stellar/index.d.ts +146 -146
  57. package/lib/types/params.js +6 -2
  58. package/lib/utils/{assets-native.d.ts → assets.native.d.ts} +1 -1
  59. package/lib/utils/{assets-native.js → assets.native.js} +1 -1
  60. package/lib/utils/debug.d.ts +5 -31
  61. package/lib/utils/debug.js +8 -110
  62. package/lib/utils/hdnodeUtils.d.ts +3 -3
  63. package/lib/utils/pathUtils.d.ts +3 -3
  64. package/lib/workers/{workers-react-native.d.ts → workers.native.d.ts} +1 -1
  65. package/lib/workers/{workers-react-native.js → workers.native.js} +1 -1
  66. package/package.json +39 -19
package/CHANGELOG.md CHANGED
@@ -1,3 +1,47 @@
1
+ # 9.2.2
2
+
3
+ Main focus of this release is to allow saving device sessions in webextension, so user's don't have to enter the passphrase repeatedly.
4
+
5
+ - fix(connect): webextension save sessions (efed18e4ea)
6
+ - feat(connect): set default Solana fees (d8cfa5123d)
7
+ - fix(connect): add missing isCreatingAccount param validation in blockchainEstimateFee (698ebf625d)
8
+ - chore(components): replace Tippy for FloatingUI (a6e3c86759)
9
+ - fix(connect): enable changeLanguage in initialize mode (0af5c35f3f)
10
+ - chore(suite): remove goerli (8eb6b271a5)
11
+ - chore(connect): Add Rainbow Browser Extension to knownHosts (6213f06a58, e648074ec8)
12
+ - chore: crowdin translation update (aa9a0d5bfe)
13
+ - chore(connect): move logs to @trezor/utils (28c2b9fe57)
14
+ - chore(connect): add new CA pubkeys and update timestamp (9b8f4eeb81)
15
+ - fix(connect): be more defensive in descriptor parsing (7cf1f02dc4)
16
+ - fix(connect): More robust conversion of e.g. 44h to 44' (1ea29b5d6c)
17
+ - docs(connect-examples): udpate README with webextensions (8ed2db3ecc)
18
+ - chore: upgrade styled-components to v6 (c4bd333501)
19
+ - chore(connect-web): add dev URL used for tests (487742a930)
20
+ - chore: TS project references for build:libs + buildless utxo-lib (#11526) (4d857722fe)
21
+ - fix(connect): no request device in suite (ad6d28e315)
22
+ - feat(connect): add translations for Trezor Firmware (a3ebb33571)
23
+ - chore(connect-common): add firmware binaries 2.7.0 (4c14b45bd6)
24
+ - fix(connect): fix connect for RN (#11489) (14814fd54b)
25
+ - chore(repo): mostly buildless monorepo (#11464) (637ad88dcf)
26
+
27
+ # 9.2.1
28
+
29
+ Main motivation for this release was [issue](https://github.com/trezor/trezor-suite/issues/11442) introduced in 9.2.0 release in @trezor/connect-web npm package.
30
+
31
+ - fix(connect): fix build of connect-web (50f35cb) [related issue](https://github.com/trezor/trezor-suite/issues/11442)
32
+ - feat(connect): return checksum in the xpub for taproot (458ddf9)
33
+ - fix(connect-ui): analytics button to reflect state (cc59ef9)
34
+ - chore(connect): unify failed connection and disconnection (c863646)
35
+ - feat(connect): leave sticky backend after some time (021ec5c)
36
+ - chore(connect-iframe): fix conflicting variable webpack warning on build:lib (cdbdfb2)
37
+
38
+ ## Dependencies update
39
+
40
+ - npm-release: @trezor/blockchain-link 2.1.27
41
+ - npm-release: @trezor/connect-common 0.0.30
42
+ - npm-release: @trezor/transport 1.1.26
43
+ - npm-release: @trezor/protobuf 1.0.10
44
+
1
45
  # 9.2.0
2
46
 
3
47
  ## @trezor/connect-web npm package
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @trezor/connect
2
2
 
3
- API version 9.2.0
3
+ API version 9.2.2
4
4
 
5
5
  [![Build Status](https://github.com/trezor/trezor-suite/actions/workflows/connect-test.yml/badge.svg)](https://github.com/trezor/trezor-suite/actions/workflows/connect-test.yml)
6
6
  [![NPM](https://img.shields.io/npm/v/@trezor/connect.svg)](https://www.npmjs.org/package/@trezor/connect)
@@ -9,8 +9,8 @@ export default class BinanceSignTransaction extends AbstractMethod<'binanceSignT
9
9
  init(): void;
10
10
  get info(): string;
11
11
  run(): Promise<{
12
- public_key: string;
13
12
  signature: string;
13
+ public_key: string;
14
14
  }>;
15
15
  }
16
16
  export {};
@@ -81,7 +81,7 @@ export declare const validate: (tx: BinanceSDKTransaction) => {
81
81
  }))[];
82
82
  };
83
83
  export declare const signTx: (typedCall: TypedCall, address_n: number[], tx: BinancePreparedTransaction, chunkify?: boolean) => Promise<{
84
- public_key: string;
85
84
  signature: string;
85
+ public_key: string;
86
86
  }>;
87
87
  //# sourceMappingURL=binanceSignTx.d.ts.map
@@ -10,14 +10,14 @@ export declare class FeeLevels {
10
10
  loadMisc(blockchain: Blockchain): Promise<{
11
11
  feeLimit?: string | undefined;
12
12
  feePerTx?: string | undefined;
13
- label: "normal" | "high" | "economy" | "low" | "custom";
13
+ label: "high" | "normal" | "economy" | "low" | "custom";
14
14
  feePerUnit: string;
15
15
  blocks: number;
16
16
  }[]>;
17
17
  load(blockchain: Blockchain): Promise<{
18
18
  feeLimit?: string | undefined;
19
19
  feePerTx?: string | undefined;
20
- label: "normal" | "high" | "economy" | "low" | "custom";
20
+ label: "high" | "normal" | "economy" | "low" | "custom";
21
21
  feePerUnit: string;
22
22
  blocks: number;
23
23
  }[]>;
@@ -29,12 +29,12 @@ export declare class TransactionComposer {
29
29
  composeCustomFee(fee: string): void;
30
30
  getFeeLevelList(): ({
31
31
  feePerByte?: undefined;
32
- fee: "0";
33
32
  name: string;
33
+ fee: "0";
34
34
  disabled: true;
35
35
  } | {
36
- fee: string;
37
36
  name: string;
37
+ fee: string;
38
38
  feePerByte: string;
39
39
  minutes: number;
40
40
  total: string;
@@ -29,6 +29,7 @@ class BlockchainEstimateFee extends AbstractMethod_1.AbstractMethod {
29
29
  { name: 'from', type: 'string' },
30
30
  { name: 'to', type: 'string' },
31
31
  { name: 'txsize', type: 'number' },
32
+ { name: 'isCreatingAccount', type: 'boolean' },
32
33
  ]);
33
34
  }
34
35
  }
@@ -8,7 +8,7 @@ export type OutputWithData = {
8
8
  };
9
9
  export declare const OutputValidation: import("@sinclair/typebox").TObject<{
10
10
  address: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
- amount: import("@trezor/schema-utils/src/custom-types/uint").TUint;
11
+ amount: import("@trezor/schema-utils/lib/custom-types/uint").TUint;
12
12
  tokenBundle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
13
13
  policyId: import("@sinclair/typebox").TString;
14
14
  tokenAmounts: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
@@ -5,8 +5,8 @@ export declare const AssetGroupWithTokens: import("@sinclair/typebox").TObject<{
5
5
  policyId: import("@sinclair/typebox").TString;
6
6
  tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
7
7
  asset_name_bytes: import("@sinclair/typebox").TString;
8
- amount: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/src/custom-types/uint").TUint>;
9
- mint_amount: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/src/custom-types/uint").TUint>;
8
+ amount: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/uint").TUint>;
9
+ mint_amount: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/uint").TUint>;
10
10
  }>>;
11
11
  }>;
12
12
  export declare const tokenBundleToProto: (tokenBundle: CardanoAssetGroup[]) => AssetGroupWithTokens[];
@@ -8,6 +8,7 @@ const changeLanguage_1 = require("../types/api/changeLanguage");
8
8
  const assets_1 = require("../utils/assets");
9
9
  class ChangeLanguage extends AbstractMethod_1.AbstractMethod {
10
10
  init() {
11
+ this.allowDeviceMode = [events_1.UI.INITIALIZE, events_1.UI.SEEDLESS];
11
12
  this.useEmptyPassphrase = true;
12
13
  this.requiredPermissions = ['management'];
13
14
  this.useDeviceState = false;
@@ -40,13 +41,15 @@ class ChangeLanguage extends AbstractMethod_1.AbstractMethod {
40
41
  return uiResp.payload;
41
42
  }
42
43
  async uploadTranslationData(payload) {
43
- const length = payload.byteLength;
44
44
  if (!this.device.commands) {
45
45
  throw constants_1.ERRORS.TypedError('Runtime', 'uploadTranslationData: device.commands is not set');
46
46
  }
47
- let response = await this.device.commands.typedCall('ChangeLanguage', ['TranslationDataRequest', 'Success'], {
48
- data_length: length,
49
- });
47
+ if (payload === null) {
48
+ const response = await this.device.commands.typedCall('ChangeLanguage', ['Success'], { data_length: 0 });
49
+ return response.message;
50
+ }
51
+ const length = payload.byteLength;
52
+ let response = await this.device.commands.typedCall('ChangeLanguage', ['TranslationDataRequest', 'Success'], { data_length: length });
50
53
  while (response.type !== 'Success') {
51
54
  const start = response.message.data_offset;
52
55
  const end = response.message.data_offset + response.message.data_length;
@@ -59,12 +62,15 @@ class ChangeLanguage extends AbstractMethod_1.AbstractMethod {
59
62
  }
60
63
  async run() {
61
64
  const { language, binary, baseUrl } = this.params;
65
+ if (language === 'en-US') {
66
+ return this.uploadTranslationData(null);
67
+ }
62
68
  if (binary) {
63
69
  return this.uploadTranslationData(binary);
64
70
  }
65
71
  const version = this.device.getVersion().join('.');
66
72
  const model = this.device.features.internal_model;
67
- const url = `${baseUrl}/data/translations/translation-${model}-${language}-${version}-unsigned.bin`;
73
+ const url = `${baseUrl}/firmware/translations/${model.toLowerCase()}/translation-${model.toUpperCase()}-${language}-${version}.bin`;
68
74
  const downloadedBinary = await (0, assets_1.httpRequest)(url, 'binary');
69
75
  return this.uploadTranslationData(downloadedBinary);
70
76
  }
@@ -21,7 +21,59 @@ export declare const validate: (tx: EosSDKTransaction) => {
21
21
  sender: string;
22
22
  receiver: string;
23
23
  } | undefined;
24
+ refund?: {
25
+ owner: string;
26
+ } | undefined;
27
+ unknown?: {
28
+ data_size: number;
29
+ data_chunk: string;
30
+ } | undefined;
31
+ new_account?: {
32
+ name: string;
33
+ owner: {
34
+ keys: {
35
+ address_n?: number[] | undefined;
36
+ type?: number | undefined;
37
+ weight: number;
38
+ key: string;
39
+ }[];
40
+ threshold: number;
41
+ accounts: {
42
+ weight: number;
43
+ account: {
44
+ permission: string;
45
+ actor: string;
46
+ };
47
+ }[];
48
+ waits: {
49
+ weight: number;
50
+ wait_sec: number;
51
+ }[];
52
+ };
53
+ creator: string;
54
+ active: {
55
+ keys: {
56
+ address_n?: number[] | undefined;
57
+ type?: number | undefined;
58
+ weight: number;
59
+ key: string;
60
+ }[];
61
+ threshold: number;
62
+ accounts: {
63
+ weight: number;
64
+ account: {
65
+ permission: string;
66
+ actor: string;
67
+ };
68
+ }[];
69
+ waits: {
70
+ weight: number;
71
+ wait_sec: number;
72
+ }[];
73
+ };
74
+ } | undefined;
24
75
  delegate?: {
76
+ transfer: boolean;
25
77
  sender: string;
26
78
  receiver: string;
27
79
  net_quantity: {
@@ -32,7 +84,6 @@ export declare const validate: (tx: EosSDKTransaction) => {
32
84
  symbol: string;
33
85
  amount: string | number;
34
86
  };
35
- transfer: boolean;
36
87
  } | undefined;
37
88
  undelegate?: {
38
89
  sender: string;
@@ -46,9 +97,6 @@ export declare const validate: (tx: EosSDKTransaction) => {
46
97
  amount: string | number;
47
98
  };
48
99
  } | undefined;
49
- refund?: {
50
- owner: string;
51
- } | undefined;
52
100
  buy_ram?: {
53
101
  quantity: {
54
102
  symbol: string;
@@ -77,8 +125,8 @@ export declare const validate: (tx: EosSDKTransaction) => {
77
125
  parent: string;
78
126
  auth: {
79
127
  keys: {
80
- type?: number | undefined;
81
128
  address_n?: number[] | undefined;
129
+ type?: number | undefined;
82
130
  weight: number;
83
131
  key: string;
84
132
  }[];
@@ -86,8 +134,8 @@ export declare const validate: (tx: EosSDKTransaction) => {
86
134
  accounts: {
87
135
  weight: number;
88
136
  account: {
89
- actor: string;
90
137
  permission: string;
138
+ actor: string;
91
139
  };
92
140
  }[];
93
141
  waits: {
@@ -102,69 +150,21 @@ export declare const validate: (tx: EosSDKTransaction) => {
102
150
  } | undefined;
103
151
  link_auth?: {
104
152
  type: string;
105
- code: string;
106
153
  account: string;
154
+ code: string;
107
155
  requirement: string;
108
156
  } | undefined;
109
157
  unlink_auth?: {
110
158
  type: string;
111
- code: string;
112
159
  account: string;
113
- } | undefined;
114
- new_account?: {
115
- name: string;
116
- owner: {
117
- keys: {
118
- type?: number | undefined;
119
- address_n?: number[] | undefined;
120
- weight: number;
121
- key: string;
122
- }[];
123
- threshold: number;
124
- accounts: {
125
- weight: number;
126
- account: {
127
- actor: string;
128
- permission: string;
129
- };
130
- }[];
131
- waits: {
132
- weight: number;
133
- wait_sec: number;
134
- }[];
135
- };
136
- creator: string;
137
- active: {
138
- keys: {
139
- type?: number | undefined;
140
- address_n?: number[] | undefined;
141
- weight: number;
142
- key: string;
143
- }[];
144
- threshold: number;
145
- accounts: {
146
- weight: number;
147
- account: {
148
- actor: string;
149
- permission: string;
150
- };
151
- }[];
152
- waits: {
153
- weight: number;
154
- wait_sec: number;
155
- }[];
156
- };
157
- } | undefined;
158
- unknown?: {
159
- data_size: number;
160
- data_chunk: string;
160
+ code: string;
161
161
  } | undefined;
162
162
  common: {
163
- account: string;
164
163
  name: string;
164
+ account: string;
165
165
  authorization: {
166
- actor: string;
167
166
  permission: string;
167
+ actor: string;
168
168
  }[];
169
169
  };
170
170
  }[];
@@ -12,24 +12,26 @@ export default class EthereumGetPublicKey extends AbstractMethod<'ethereumGetPub
12
12
  confirmation(): Promise<boolean>;
13
13
  run(): Promise<{
14
14
  xpubSegwit?: string | undefined;
15
+ descriptorChecksum?: string | undefined;
15
16
  path: number[];
16
- depth: number;
17
- fingerprint: number;
18
- xpub: string;
19
17
  publicKey: string;
20
18
  serializedPath: string;
19
+ depth: number;
20
+ fingerprint: number;
21
21
  chainCode: string;
22
22
  childNum: number;
23
+ xpub: string;
23
24
  } | {
24
25
  xpubSegwit?: string | undefined;
26
+ descriptorChecksum?: string | undefined;
25
27
  path: number[];
26
- depth: number;
27
- fingerprint: number;
28
- xpub: string;
29
28
  publicKey: string;
30
29
  serializedPath: string;
30
+ depth: number;
31
+ fingerprint: number;
31
32
  chainCode: string;
32
33
  childNum: number;
34
+ xpub: string;
33
35
  }[]>;
34
36
  }
35
37
  export {};
@@ -21,7 +21,7 @@ declare const Params: import("@sinclair/typebox").TIntersect<[import("@sinclair/
21
21
  version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
22
  chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>>;
23
23
  verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
- salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@trezor/schema-utils/src/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox").TString]>>;
24
+ salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox").TString]>>;
25
25
  }>;
26
26
  message: import("@sinclair/typebox").TObject<{}>;
27
27
  }>;
@@ -42,7 +42,7 @@ declare const Params: import("@sinclair/typebox").TIntersect<[import("@sinclair/
42
42
  version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
43
43
  chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>>;
44
44
  verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
- salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@trezor/schema-utils/src/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox").TString]>>;
45
+ salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox").TString]>>;
46
46
  }>;
47
47
  message: import("@sinclair/typebox").TObject<{}>;
48
48
  }>;
@@ -83,8 +83,8 @@ declare const Params: import("@sinclair/typebox").TIntersect<[import("@sinclair/
83
83
  network: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
84
84
  }>]>>;
85
85
  definitions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
86
- encoded_network: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/src/custom-types/array-buffer").TArrayBuffer>;
87
- encoded_token: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/src/custom-types/array-buffer").TArrayBuffer>;
86
+ encoded_network: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
87
+ encoded_token: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
88
88
  }>>;
89
89
  }>]>;
90
90
  export default class EthereumSignTypedData extends AbstractMethod<'ethereumSignTypedData', Params> {
@@ -54,7 +54,7 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
54
54
  ledger: number;
55
55
  seq: number;
56
56
  } | undefined;
57
- stakingPools?: import("@trezor/blockchain-link-types/lib").StakingPool[] | undefined;
57
+ stakingPools?: import("@trezor/blockchain-link-types").StakingPool[] | undefined;
58
58
  path: string;
59
59
  }>;
60
60
  discover(request: Request): Promise<{
@@ -96,7 +96,7 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
96
96
  ledger: number;
97
97
  seq: number;
98
98
  } | undefined;
99
- stakingPools?: import("@trezor/blockchain-link-types/lib").StakingPool[] | undefined;
99
+ stakingPools?: import("@trezor/blockchain-link-types").StakingPool[] | undefined;
100
100
  path: string;
101
101
  }>;
102
102
  dispose(): void;
@@ -171,6 +171,7 @@ class GetAccountInfo extends AbstractMethod_1.AbstractMethod {
171
171
  const { address_n } = request;
172
172
  let { descriptor } = request;
173
173
  let legacyXpub;
174
+ let descriptorChecksum;
174
175
  if (this.disposed)
175
176
  break;
176
177
  if (address_n && typeof descriptor !== 'string') {
@@ -183,6 +184,7 @@ class GetAccountInfo extends AbstractMethod_1.AbstractMethod {
183
184
  if (accountDescriptor) {
184
185
  descriptor = accountDescriptor.descriptor;
185
186
  legacyXpub = accountDescriptor.legacyXpub;
187
+ descriptorChecksum = accountDescriptor.descriptorChecksum;
186
188
  }
187
189
  }
188
190
  catch (error) {
@@ -233,6 +235,7 @@ class GetAccountInfo extends AbstractMethod_1.AbstractMethod {
233
235
  descriptor,
234
236
  legacyXpub,
235
237
  utxo,
238
+ descriptorChecksum,
236
239
  };
237
240
  responses.push(account);
238
241
  sendProgress(i, account);
@@ -10,24 +10,24 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
10
10
  type: string;
11
11
  url: string[];
12
12
  } | undefined;
13
- name: string;
14
- slip44: number;
15
- decimals: number;
16
13
  label: string;
17
14
  blockTime: number;
18
15
  minFee: number;
19
16
  maxFee: number;
17
+ name: string;
20
18
  shortcut: string;
19
+ slip44: number;
21
20
  support: {
22
21
  T1B1: string | false;
23
22
  T2T1: string | false;
24
23
  T2B1: string | false;
25
24
  connect: boolean;
26
25
  };
26
+ decimals: number;
27
27
  defaultFees: {
28
28
  feeLimit?: string | undefined;
29
29
  feePerTx?: string | undefined;
30
- label: "normal" | "high" | "economy" | "low" | "custom";
30
+ label: "high" | "normal" | "economy" | "low" | "custom";
31
31
  feePerUnit: string;
32
32
  blocks: number;
33
33
  }[];
@@ -37,6 +37,16 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
37
37
  xPubMagicSegwit?: number | undefined;
38
38
  taproot?: boolean | undefined;
39
39
  type: "bitcoin";
40
+ dustLimit: number;
41
+ curveName: string;
42
+ forceBip143: boolean;
43
+ hashGenesisBlock: string;
44
+ maxAddressLength: number;
45
+ maxFeeSatoshiKb: number;
46
+ minAddressLength: number;
47
+ minFeeSatoshiKb: number;
48
+ segwit: boolean;
49
+ xPubMagic: number;
40
50
  network: {
41
51
  forkId?: number | undefined;
42
52
  messagePrefix: string;
@@ -49,40 +59,30 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
49
59
  scriptHash: number;
50
60
  wif: number;
51
61
  };
52
- dustLimit: number;
53
- curveName: string;
54
- forceBip143: boolean;
55
- hashGenesisBlock: string;
56
- maxAddressLength: number;
57
- maxFeeSatoshiKb: number;
58
- minAddressLength: number;
59
- minFeeSatoshiKb: number;
60
- segwit: boolean;
61
- xPubMagic: number;
62
62
  isBitcoin: boolean;
63
63
  }) | ({
64
64
  blockchainLink?: {
65
65
  type: string;
66
66
  url: string[];
67
67
  } | undefined;
68
- name: string;
69
- slip44: number;
70
- decimals: number;
71
68
  label: string;
72
69
  blockTime: number;
73
70
  minFee: number;
74
71
  maxFee: number;
72
+ name: string;
75
73
  shortcut: string;
74
+ slip44: number;
76
75
  support: {
77
76
  T1B1: string | false;
78
77
  T2T1: string | false;
79
78
  T2B1: string | false;
80
79
  connect: boolean;
81
80
  };
81
+ decimals: number;
82
82
  defaultFees: {
83
83
  feeLimit?: string | undefined;
84
84
  feePerTx?: string | undefined;
85
- label: "normal" | "high" | "economy" | "low" | "custom";
85
+ label: "high" | "normal" | "economy" | "low" | "custom";
86
86
  feePerUnit: string;
87
87
  blocks: number;
88
88
  }[];
@@ -95,24 +95,24 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
95
95
  type: string;
96
96
  url: string[];
97
97
  } | undefined;
98
- name: string;
99
- slip44: number;
100
- decimals: number;
101
98
  label: string;
102
99
  blockTime: number;
103
100
  minFee: number;
104
101
  maxFee: number;
102
+ name: string;
105
103
  shortcut: string;
104
+ slip44: number;
106
105
  support: {
107
106
  T1B1: string | false;
108
107
  T2T1: string | false;
109
108
  T2B1: string | false;
110
109
  connect: boolean;
111
110
  };
111
+ decimals: number;
112
112
  defaultFees: {
113
113
  feeLimit?: string | undefined;
114
114
  feePerTx?: string | undefined;
115
- label: "normal" | "high" | "economy" | "low" | "custom";
115
+ label: "high" | "normal" | "economy" | "low" | "custom";
116
116
  feePerUnit: string;
117
117
  blocks: number;
118
118
  }[];
@@ -2,16 +2,24 @@ import { AbstractMethod } from '../core/AbstractMethod';
2
2
  export default class GetFeatures extends AbstractMethod<'getFeatures'> {
3
3
  init(): void;
4
4
  run(): Promise<{
5
+ hide_passphrase_from_host?: boolean | undefined;
5
6
  _passphrase_cached?: boolean | undefined;
6
7
  busy?: boolean | undefined;
7
8
  homescreen_format?: "Toif" | "Jpeg" | "ToiG" | undefined;
8
- hide_passphrase_from_host?: boolean | undefined;
9
9
  unit_color?: number | undefined;
10
10
  unit_btconly?: boolean | undefined;
11
11
  homescreen_width?: number | undefined;
12
12
  homescreen_height?: number | undefined;
13
13
  bootloader_locked?: boolean | undefined;
14
- session_id: string | null;
14
+ language_version_matches?: boolean | undefined;
15
+ flags: number | null;
16
+ language: string | null;
17
+ label: string | null;
18
+ auto_lock_delay_ms: number | null;
19
+ display_rotation: number | null;
20
+ passphrase_always_on_device: boolean | null;
21
+ safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
22
+ experimental_features: boolean | null;
15
23
  vendor: string;
16
24
  major_version: number;
17
25
  minor_version: number;
@@ -20,8 +28,6 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
20
28
  device_id: string | null;
21
29
  pin_protection: boolean | null;
22
30
  passphrase_protection: boolean | null;
23
- language: string | null;
24
- label: string | null;
25
31
  initialized: boolean | null;
26
32
  revision: string | null;
27
33
  bootloader_hash: string | null;
@@ -29,7 +35,6 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
29
35
  unlocked: boolean | null;
30
36
  firmware_present: boolean | null;
31
37
  needs_backup: boolean | null;
32
- flags: number | null;
33
38
  model: string;
34
39
  fw_major: number | null;
35
40
  fw_minor: number | null;
@@ -38,17 +43,13 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
38
43
  unfinished_backup: boolean | null;
39
44
  no_backup: boolean | null;
40
45
  recovery_mode: boolean | null;
41
- capabilities: ("Capability_Bitcoin" | "Capability_Bitcoin_like" | "Capability_Binance" | "Capability_Cardano" | "Capability_Crypto" | "Capability_EOS" | "Capability_Ethereum" | "Capability_Lisk" | "Capability_Monero" | "Capability_NEM" | "Capability_Ripple" | "Capability_Stellar" | "Capability_Tezos" | "Capability_U2F" | "Capability_Shamir" | "Capability_ShamirGroups" | "Capability_PassphraseEntry" | "Capability_Solana")[];
46
+ capabilities: ("Capability_Bitcoin" | "Capability_Bitcoin_like" | "Capability_Binance" | "Capability_Cardano" | "Capability_Crypto" | "Capability_EOS" | "Capability_Ethereum" | "Capability_Lisk" | "Capability_Monero" | "Capability_NEM" | "Capability_Ripple" | "Capability_Stellar" | "Capability_Tezos" | "Capability_U2F" | "Capability_Shamir" | "Capability_ShamirGroups" | "Capability_PassphraseEntry" | "Capability_Solana" | "Capability_Translations")[];
42
47
  backup_type: "Bip39" | "Slip39_Basic" | "Slip39_Advanced" | null;
43
48
  sd_card_present: boolean | null;
44
49
  sd_protection: boolean | null;
45
50
  wipe_code_protection: boolean | null;
46
- passphrase_always_on_device: boolean | null;
47
- safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
48
- auto_lock_delay_ms: number | null;
49
- display_rotation: number | null;
50
- experimental_features: boolean | null;
51
- internal_model: import("@trezor/protobuf/src").DeviceModelInternal;
51
+ session_id: string | null;
52
+ internal_model: import("@trezor/protobuf").DeviceModelInternal;
52
53
  }>;
53
54
  }
54
55
  //# sourceMappingURL=getFeatures.d.ts.map