@trezor/connect 9.2.1 → 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 (44) hide show
  1. package/CHANGELOG.md +26 -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/changeLanguage.js +11 -5
  9. package/lib/api/eos/eosSignTx.d.ts +58 -58
  10. package/lib/api/ethereum/api/ethereumGetPublicKey.d.ts +6 -6
  11. package/lib/api/getCoinInfo.d.ts +22 -22
  12. package/lib/api/getFeatures.d.ts +10 -10
  13. package/lib/api/getPublicKey.d.ts +6 -6
  14. package/lib/api/nem/nemSignTx.d.ts +13 -13
  15. package/lib/api/stellar/stellarSignTx.d.ts +1 -1
  16. package/lib/api/tezos/tezosSignTx.d.ts +18 -18
  17. package/lib/core/index.js +33 -4
  18. package/lib/data/coinInfo.d.ts +117 -117
  19. package/lib/data/config.js +15 -1
  20. package/lib/data/defaultFeeLevels.js +9 -1
  21. package/lib/data/deviceAuthenticityConfig.js +4 -1
  22. package/lib/data/firmwareInfo.d.ts +1 -1
  23. package/lib/data/version.d.ts +1 -1
  24. package/lib/data/version.js +1 -1
  25. package/lib/device/Device.d.ts +3 -2
  26. package/lib/device/Device.js +2 -1
  27. package/lib/device/DeviceCommands.d.ts +7 -7
  28. package/lib/device/resolveDescriptorForTaproot.js +21 -16
  29. package/lib/events/device.d.ts +1 -0
  30. package/lib/events/device.js +1 -0
  31. package/lib/types/api/applySettings.d.ts +6 -6
  32. package/lib/types/api/getAddress.d.ts +5 -5
  33. package/lib/types/api/getPublicKey.js +4 -1
  34. package/lib/types/api/recoveryDevice.d.ts +1 -1
  35. package/lib/types/params.js +6 -2
  36. package/lib/utils/{assets-native.d.ts → assets.native.d.ts} +1 -1
  37. package/lib/utils/{assets-native.js → assets.native.js} +1 -1
  38. package/lib/utils/debug.d.ts +5 -31
  39. package/lib/utils/debug.js +8 -110
  40. package/lib/utils/hdnodeUtils.d.ts +3 -3
  41. package/lib/utils/pathUtils.d.ts +3 -3
  42. package/lib/workers/{workers-react-native.d.ts → workers.native.d.ts} +1 -1
  43. package/lib/workers/{workers-react-native.js → workers.native.js} +1 -1
  44. package/package.json +39 -19
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
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
+
1
27
  # 9.2.1
2
28
 
3
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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @trezor/connect
2
2
 
3
- API version 9.2.1
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,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
  }[];
@@ -14,24 +14,24 @@ export default class EthereumGetPublicKey extends AbstractMethod<'ethereumGetPub
14
14
  xpubSegwit?: string | undefined;
15
15
  descriptorChecksum?: string | undefined;
16
16
  path: number[];
17
- depth: number;
18
- fingerprint: number;
19
- xpub: string;
20
17
  publicKey: string;
21
18
  serializedPath: string;
19
+ depth: number;
20
+ fingerprint: number;
22
21
  chainCode: string;
23
22
  childNum: number;
23
+ xpub: string;
24
24
  } | {
25
25
  xpubSegwit?: string | undefined;
26
26
  descriptorChecksum?: string | undefined;
27
27
  path: number[];
28
- depth: number;
29
- fingerprint: number;
30
- xpub: string;
31
28
  publicKey: string;
32
29
  serializedPath: string;
30
+ depth: number;
31
+ fingerprint: number;
33
32
  chainCode: string;
34
33
  childNum: number;
34
+ xpub: string;
35
35
  }[]>;
36
36
  }
37
37
  export {};
@@ -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,17 +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
14
  language_version_matches?: boolean | undefined;
15
- session_id: string | null;
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;
16
23
  vendor: string;
17
24
  major_version: number;
18
25
  minor_version: number;
@@ -21,8 +28,6 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
21
28
  device_id: string | null;
22
29
  pin_protection: boolean | null;
23
30
  passphrase_protection: boolean | null;
24
- language: string | null;
25
- label: string | null;
26
31
  initialized: boolean | null;
27
32
  revision: string | null;
28
33
  bootloader_hash: string | null;
@@ -30,7 +35,6 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
30
35
  unlocked: boolean | null;
31
36
  firmware_present: boolean | null;
32
37
  needs_backup: boolean | null;
33
- flags: number | null;
34
38
  model: string;
35
39
  fw_major: number | null;
36
40
  fw_minor: number | null;
@@ -44,11 +48,7 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
44
48
  sd_card_present: boolean | null;
45
49
  sd_protection: boolean | null;
46
50
  wipe_code_protection: boolean | null;
47
- passphrase_always_on_device: boolean | null;
48
- safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
49
- auto_lock_delay_ms: number | null;
50
- display_rotation: number | null;
51
- experimental_features: boolean | null;
51
+ session_id: string | null;
52
52
  internal_model: import("@trezor/protobuf").DeviceModelInternal;
53
53
  }>;
54
54
  }
@@ -17,24 +17,24 @@ export default class GetPublicKey extends AbstractMethod<'getPublicKey', Params[
17
17
  xpubSegwit?: string | undefined;
18
18
  descriptorChecksum?: string | undefined;
19
19
  path: number[];
20
- depth: number;
21
- fingerprint: number;
22
- xpub: string;
23
20
  publicKey: string;
24
21
  serializedPath: string;
22
+ depth: number;
23
+ fingerprint: number;
25
24
  chainCode: string;
26
25
  childNum: number;
26
+ xpub: string;
27
27
  } | {
28
28
  xpubSegwit?: string | undefined;
29
29
  descriptorChecksum?: string | undefined;
30
30
  path: number[];
31
- depth: number;
32
- fingerprint: number;
33
- xpub: string;
34
31
  publicKey: string;
35
32
  serializedPath: string;
33
+ depth: number;
34
+ fingerprint: number;
36
35
  chainCode: string;
37
36
  childNum: number;
37
+ xpub: string;
38
38
  }[]>;
39
39
  }
40
40
  export {};
@@ -2,14 +2,6 @@ import { PROTO } from '../../constants';
2
2
  import * as $T from '../../types/api/nem';
3
3
  export declare const createTx: (tx: $T.NEMTransaction, address_n: number[], chunkify?: boolean) => {
4
4
  chunkify?: boolean | undefined;
5
- multisig?: {
6
- address_n?: number[] | undefined;
7
- network?: number | undefined;
8
- signer?: string | undefined;
9
- timestamp: number;
10
- fee: string | number;
11
- deadline: number;
12
- } | undefined;
13
5
  transfer?: {
14
6
  public_key?: string | undefined;
15
7
  payload?: string | undefined;
@@ -21,6 +13,14 @@ export declare const createTx: (tx: $T.NEMTransaction, address_n: number[], chun
21
13
  amount: string | number;
22
14
  recipient: string;
23
15
  } | undefined;
16
+ multisig?: {
17
+ address_n?: number[] | undefined;
18
+ network?: number | undefined;
19
+ signer?: string | undefined;
20
+ timestamp: number;
21
+ fee: string | number;
22
+ deadline: number;
23
+ } | undefined;
24
24
  cosigning?: boolean | undefined;
25
25
  provision_namespace?: {
26
26
  parent?: string | undefined;
@@ -32,17 +32,17 @@ export declare const createTx: (tx: $T.NEMTransaction, address_n: number[], chun
32
32
  fee: string | number;
33
33
  sink: string;
34
34
  definition: {
35
- fee?: string | number | undefined;
36
35
  name?: string | undefined;
37
- ticker?: string | undefined;
38
- divisibility?: number | undefined;
36
+ fee?: string | number | undefined;
39
37
  levy?: PROTO.NEMMosaicLevy | undefined;
38
+ divisibility?: number | undefined;
39
+ transferable?: boolean | undefined;
40
+ ticker?: string | undefined;
40
41
  levy_address?: string | undefined;
41
42
  levy_namespace?: string | undefined;
42
43
  levy_mosaic?: string | undefined;
43
44
  supply?: number | undefined;
44
45
  mutable_supply?: boolean | undefined;
45
- transferable?: boolean | undefined;
46
46
  networks?: number[] | undefined;
47
47
  description: string;
48
48
  namespace: string;
@@ -51,9 +51,9 @@ export declare const createTx: (tx: $T.NEMTransaction, address_n: number[], chun
51
51
  } | undefined;
52
52
  supply_change?: {
53
53
  type: PROTO.NEMSupplyChangeType;
54
+ delta: number;
54
55
  namespace: string;
55
56
  mosaic: string;
56
- delta: number;
57
57
  } | undefined;
58
58
  aggregate_modification?: {
59
59
  modifications?: {
@@ -1,7 +1,7 @@
1
1
  import type { TypedCall } from '../../device/DeviceCommands';
2
2
  import { StellarTransaction } from '../../types/api/stellar';
3
3
  export declare const stellarSignTx: (typedCall: TypedCall, address_n: number[], networkPassphrase: string, tx: StellarTransaction) => Promise<{
4
- public_key: string;
5
4
  signature: string;
5
+ public_key: string;
6
6
  }>;
7
7
  //# sourceMappingURL=stellarSignTx.d.ts.map