@onekeyfe/hd-transport 0.2.17 → 0.2.18
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.
- package/package.json +2 -2
- package/scripts/protobuf-patches/index.js +281 -281
- package/src/types/messages.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"long": "^4.0.0",
|
|
27
27
|
"protobufjs": "^6.11.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ebdbd2360edeb07fdb5f4cabe253aa7e4a82f265"
|
|
30
30
|
}
|
|
@@ -5,301 +5,301 @@ const UINT_TYPE = 'UintType';
|
|
|
5
5
|
|
|
6
6
|
// type rule fixes, ideally it should not be here
|
|
7
7
|
const RULE_PATCH = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
8
|
+
'MultisigRedeemScriptType.nodes': 'optional', // its valid to be undefined according to implementation/tests
|
|
9
|
+
'MultisigRedeemScriptType.address_n': 'optional', // its valid to be undefined according to implementation/tests
|
|
10
|
+
'TxRequestDetailsType.request_index': 'required',
|
|
11
|
+
'TxRequest.request_type': 'required',
|
|
12
|
+
'TxRequest.details': 'required',
|
|
13
|
+
'TxAckPaymentRequest.memos': 'optional', // protobuf repeated bytes are always optional (fallback to [])
|
|
14
|
+
'CardanoPoolOwnerType.staking_key_path': 'optional',
|
|
15
|
+
'CardanoPoolOwner.staking_key_path': 'optional',
|
|
16
|
+
'CardanoTxCertificateType.path': 'optional',
|
|
17
|
+
'CardanoTxCertificate.path': 'optional',
|
|
18
|
+
'CardanoTxInputType.address_n': 'optional',
|
|
19
|
+
'CardanoTxWithdrawal.path': 'optional',
|
|
20
|
+
'CardanoNativeScript.scripts': 'optional',
|
|
21
|
+
'CardanoNativeScript.key_path': 'optional',
|
|
22
|
+
'CardanoTxRequiredSigner.key_path': 'optional',
|
|
23
|
+
'Success.message': 'required', // didn't find use case where it's not sent
|
|
24
|
+
'SignedIdentity.address': 'required',
|
|
25
|
+
'EosAuthorizationKey.key': 'required', // its valid to be undefined according to implementation/tests
|
|
26
|
+
'EosAuthorizationKey.type': 'optional', // its valid to be undefined according to implementation/tests
|
|
27
|
+
'EosAuthorizationKey.address_n': 'optional', // its valid to be undefined according to implementation/tests
|
|
28
|
+
'EthereumAddress.address': 'required', // address is transformed from legacy type _old_address
|
|
29
|
+
// TODO: Features should be union: bootloader|normal
|
|
30
|
+
// fields below are marked as required because of backward compatibility (suite implementation)
|
|
31
|
+
'Features.vendor': 'required',
|
|
32
|
+
'Features.bootloader_mode': 'required',
|
|
33
|
+
'Features.device_id': 'required',
|
|
34
|
+
'Features.major_version': 'required',
|
|
35
|
+
'Features.minor_version': 'required',
|
|
36
|
+
'Features.patch_version': 'required',
|
|
37
|
+
'Features.pin_protection': 'required',
|
|
38
|
+
'Features.passphrase_protection': 'required',
|
|
39
|
+
'Features.language': 'required',
|
|
40
|
+
'Features.label': 'required',
|
|
41
|
+
'Features.initialized': 'required',
|
|
42
|
+
'Features.revision': 'required',
|
|
43
|
+
'Features.bootloader_hash': 'required',
|
|
44
|
+
'Features.imported': 'required',
|
|
45
|
+
'Features.unlocked': 'required',
|
|
46
|
+
'Features.firmware_present': 'required',
|
|
47
|
+
'Features.needs_backup': 'required',
|
|
48
|
+
'Features.flags': 'required',
|
|
49
|
+
'Features.fw_major': 'required',
|
|
50
|
+
'Features.fw_minor': 'required',
|
|
51
|
+
'Features.fw_patch': 'required',
|
|
52
|
+
'Features.fw_vendor': 'required',
|
|
53
|
+
'Features.model': 'required',
|
|
54
|
+
'Features.unfinished_backup': 'required',
|
|
55
|
+
'Features.no_backup': 'required',
|
|
56
|
+
'Features.recovery_mode': 'required',
|
|
57
|
+
'Features.backup_type': 'required',
|
|
58
|
+
'Features.sd_card_present': 'required',
|
|
59
|
+
'Features.sd_protection': 'required',
|
|
60
|
+
'Features.wipe_code_protection': 'required',
|
|
61
|
+
'Features.session_id': 'required',
|
|
62
|
+
'Features.passphrase_always_on_device': 'required',
|
|
63
|
+
'Features.safety_checks': 'required',
|
|
64
|
+
'Features.auto_lock_delay_ms': 'required',
|
|
65
|
+
'Features.display_rotation': 'required',
|
|
66
|
+
'Features.experimental_features': 'required',
|
|
67
|
+
'GetOwnershipProof.ownership_ids': 'optional', // protobuf repeated bytes are always optional (fallback to [])
|
|
68
|
+
'NEMTransactionCommon.address_n': 'optional', // no address_n in multisig
|
|
69
|
+
'NEMTransfer.mosaics': 'optional', // its valid to be undefined according to implementation/tests
|
|
70
|
+
'NEMMosaicDefinition.networks': 'optional', // never used according to implementation/tests
|
|
71
|
+
'NEMAggregateModification.modifications': 'optional', // its valid to be undefined according to implementation/tests
|
|
72
|
+
'StellarAssetType.code': 'required',
|
|
73
|
+
'StellarPathPaymentStrictReceiveOp.paths': 'optional', // its valid to be undefined according to implementation/tests
|
|
74
|
+
'StellarPathPaymentStrictSendOp.paths': 'optional', // its valid to be undefined according to implementation/tests
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// custom types IN to trezor
|
|
78
78
|
// protobuf lib will handle the translation to required type
|
|
79
79
|
// connect or other 3rd party libs are using compatible types (string as number etc...)
|
|
80
80
|
const TYPE_PATCH = {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
81
|
+
'Features.bootloader_mode': 'boolean | null',
|
|
82
|
+
'Features.device_id': 'string | null',
|
|
83
|
+
'Features.pin_protection': 'boolean | null',
|
|
84
|
+
'Features.passphrase_protection': 'boolean | null',
|
|
85
|
+
'Features.language': 'string | null',
|
|
86
|
+
'Features.label': 'string | null',
|
|
87
|
+
'Features.initialized': 'boolean | null',
|
|
88
|
+
'Features.revision': 'string | null',
|
|
89
|
+
'Features.bootloader_hash': 'string | null',
|
|
90
|
+
'Features.imported': 'boolean | null',
|
|
91
|
+
'Features.unlocked': 'boolean | null',
|
|
92
|
+
'Features.firmware_present': 'boolean | null',
|
|
93
|
+
'Features.needs_backup': 'boolean | null',
|
|
94
|
+
'Features.flags': 'number | null',
|
|
95
|
+
'Features.fw_major': 'number | null',
|
|
96
|
+
'Features.fw_minor': 'number | null',
|
|
97
|
+
'Features.fw_patch': 'number | null',
|
|
98
|
+
'Features.fw_vendor': 'string | null',
|
|
99
|
+
'Features.unfinished_backup': 'boolean | null',
|
|
100
|
+
'Features.no_backup': 'boolean | null',
|
|
101
|
+
'Features.recovery_mode': 'boolean | null',
|
|
102
|
+
'Features.backup_type': 'BackupType | null',
|
|
103
|
+
'Features.sd_card_present': 'boolean | null',
|
|
104
|
+
'Features.sd_protection': 'boolean | null',
|
|
105
|
+
'Features.wipe_code_protection': 'boolean | null',
|
|
106
|
+
'Features.session_id': 'string | null',
|
|
107
|
+
'Features.passphrase_always_on_device': 'boolean | null',
|
|
108
|
+
'Features.safety_checks': 'SafetyCheckLevel | null',
|
|
109
|
+
'Features.auto_lock_delay_ms': 'number | null',
|
|
110
|
+
'Features.display_rotation': 'number | null',
|
|
111
|
+
'Features.experimental_features': 'boolean | null',
|
|
112
|
+
'HDNodePathType.node': 'HDNodeType | string',
|
|
113
|
+
'FirmwareUpload.payload': 'Buffer | ArrayBuffer',
|
|
114
|
+
'CardanoCatalystRegistrationParametersType.nonce': UINT_TYPE,
|
|
115
|
+
'CardanoPoolParametersType.pledge': UINT_TYPE,
|
|
116
|
+
'CardanoPoolParametersType.cost': UINT_TYPE,
|
|
117
|
+
'CardanoPoolParametersType.margin_numerator': UINT_TYPE,
|
|
118
|
+
'CardanoPoolParametersType.margin_denominator': UINT_TYPE,
|
|
119
|
+
'CardanoSignTx.ttl': UINT_TYPE,
|
|
120
|
+
'CardanoSignTx.validity_interval_start': UINT_TYPE,
|
|
121
|
+
'CardanoSignTxInit.ttl': UINT_TYPE,
|
|
122
|
+
'CardanoSignTxInit.validity_interval_start': UINT_TYPE,
|
|
123
|
+
'CardanoToken.mint_amount': UINT_TYPE,
|
|
124
|
+
'CardanoNativeScript.invalid_before': UINT_TYPE,
|
|
125
|
+
'CardanoNativeScript.invalid_hereafter': UINT_TYPE,
|
|
126
|
+
'EosAsset.symbol': 'string',
|
|
127
|
+
'EosPermissionLevel.actor': 'string',
|
|
128
|
+
'EosPermissionLevel.permission': 'string',
|
|
129
|
+
'EosAuthorizationKey.key': 'string',
|
|
130
|
+
'EosActionCommon.account': 'string',
|
|
131
|
+
'EosActionCommon.name': 'string',
|
|
132
|
+
'EosActionTransfer.sender': 'string',
|
|
133
|
+
'EosActionTransfer.receiver': 'string',
|
|
134
|
+
'EosActionDelegate.sender': 'string',
|
|
135
|
+
'EosActionDelegate.receiver': 'string',
|
|
136
|
+
'EosActionUndelegate.sender': 'string',
|
|
137
|
+
'EosActionUndelegate.receiver': 'string',
|
|
138
|
+
'EosActionRefund.owner': 'string',
|
|
139
|
+
'EosActionBuyRam.payer': 'string',
|
|
140
|
+
'EosActionBuyRam.receiver': 'string',
|
|
141
|
+
'EosActionBuyRamBytes.payer': 'string',
|
|
142
|
+
'EosActionBuyRamBytes.receiver': 'string',
|
|
143
|
+
'EosActionSellRam.account': 'string',
|
|
144
|
+
'EosActionVoteProducer.voter': 'string',
|
|
145
|
+
'EosActionVoteProducer.proxy': 'string',
|
|
146
|
+
'EosActionVoteProducer.producers': 'string',
|
|
147
|
+
'EosActionUpdateAuth.account': 'string',
|
|
148
|
+
'EosActionUpdateAuth.permission': 'string',
|
|
149
|
+
'EosActionUpdateAuth.parent': 'string',
|
|
150
|
+
'EosActionDeleteAuth.account': 'string',
|
|
151
|
+
'EosActionDeleteAuth.permission': 'string',
|
|
152
|
+
'EosActionLinkAuth.account': 'string',
|
|
153
|
+
'EosActionLinkAuth.code': 'string',
|
|
154
|
+
'EosActionLinkAuth.type': 'string',
|
|
155
|
+
'EosActionLinkAuth.requirement': 'string',
|
|
156
|
+
'EosActionUnlinkAuth.account': 'string',
|
|
157
|
+
'EosActionUnlinkAuth.code': 'string',
|
|
158
|
+
'EosActionUnlinkAuth.type': 'string',
|
|
159
|
+
'EosActionNewAccount.creator': 'string',
|
|
160
|
+
'EosActionNewAccount.name': 'string',
|
|
161
|
+
'ResetDevice.backup_type': 'string | number', // BackupType is a enum. in Features displayed as string, in resetDevice method param accepted as number
|
|
162
|
+
'StellarAssetType.type': '0 | 1 | 2',
|
|
163
|
+
'StellarSignTx.sequence_number': UINT_TYPE,
|
|
164
|
+
'StellarSignTx.memo_id': 'string',
|
|
165
|
+
'StellarSignTx.memo_hash': 'Buffer | string',
|
|
166
|
+
'StellarCreateAccountOp.starting_balance': UINT_TYPE,
|
|
167
|
+
'StellarPathPaymentStrictReceiveOp.send_max': UINT_TYPE,
|
|
168
|
+
'StellarPathPaymentStrictReceiveOp.destination_amount': UINT_TYPE,
|
|
169
|
+
'StellarPathPaymentStrictSendOp.send_amount': UINT_TYPE,
|
|
170
|
+
'StellarPathPaymentStrictSendOp.destination_min': UINT_TYPE,
|
|
171
|
+
'StellarManageSellOfferOp.offer_id': UINT_TYPE,
|
|
172
|
+
'StellarManageBuyOfferOp.offer_id': UINT_TYPE,
|
|
173
|
+
'StellarSetOptionsOp.master_weight': UINT_TYPE,
|
|
174
|
+
'StellarSetOptionsOp.low_threshold': UINT_TYPE,
|
|
175
|
+
'StellarSetOptionsOp.medium_threshold': UINT_TYPE,
|
|
176
|
+
'StellarSetOptionsOp.high_threshold': UINT_TYPE,
|
|
177
|
+
'StellarSetOptionsOp.signer_key': 'Buffer | string',
|
|
178
|
+
'StellarChangeTrustOp.limit': UINT_TYPE,
|
|
179
|
+
'StellarManageDataOp.value': 'Buffer | string',
|
|
180
|
+
'StellarBumpSequenceOp.bump_to': UINT_TYPE,
|
|
181
|
+
'TezosContractID.tag': 'number',
|
|
182
|
+
'TezosContractID.hash': 'Uint8Array',
|
|
183
|
+
'TezosRevealOp.source': 'Uint8Array',
|
|
184
|
+
'TezosRevealOp.public_key': 'Uint8Array',
|
|
185
|
+
'TezosParametersManager.set_delegate': 'Uint8Array',
|
|
186
|
+
'TezosTransactionOp.source': 'Uint8Array',
|
|
187
|
+
'TezosTransactionOp.parameters': 'number[]',
|
|
188
|
+
'TezosOriginationOp.source': 'Uint8Array',
|
|
189
|
+
'TezosOriginationOp.delegate': 'Uint8Array',
|
|
190
|
+
'TezosOriginationOp.script': 'string | number[]',
|
|
191
|
+
'TezosDelegationOp.source': 'Uint8Array',
|
|
192
|
+
'TezosDelegationOp.delegate': 'Uint8Array',
|
|
193
|
+
'TezosSignTx.branch': 'Uint8Array',
|
|
194
194
|
};
|
|
195
195
|
|
|
196
196
|
const DEFINITION_PATCH = {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
TxInputType: fs.readFileSync(path.join(__dirname, './TxInputType.js'), 'utf8'),
|
|
198
|
+
TxOutputType: fs.readFileSync(path.join(__dirname, './TxOutputType.js'), 'utf8'),
|
|
199
|
+
TxAck: fs.readFileSync(path.join(__dirname, './TxAck.js'), 'utf8'),
|
|
200
200
|
};
|
|
201
201
|
|
|
202
202
|
// skip unnecessary types
|
|
203
203
|
const SKIP = [
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
204
|
+
'MessageType', // connect uses custom definition
|
|
205
|
+
'TransactionType', // connect uses custom definition
|
|
206
|
+
'TxInput', // declared in TxInputType patch
|
|
207
|
+
'TxOutput', // declared in TxOutputType patch
|
|
208
|
+
// not implemented
|
|
209
|
+
'CosiCommit',
|
|
210
|
+
'CosiCommitment',
|
|
211
|
+
'CosiSign',
|
|
212
|
+
'CosiSignature',
|
|
213
|
+
'DebugSwipeDirection',
|
|
214
|
+
'DebugLinkDecision',
|
|
215
|
+
'DebugLinkLayout',
|
|
216
|
+
'DebugLinkReseedRandom',
|
|
217
|
+
'DebugLinkRecordScreen',
|
|
218
|
+
'DebugLinkGetState',
|
|
219
|
+
'DebugLinkState',
|
|
220
|
+
'DebugLinkStop',
|
|
221
|
+
'DebugLinkLog',
|
|
222
|
+
'DebugLinkMemoryRead',
|
|
223
|
+
'DebugLinkMemory',
|
|
224
|
+
'DebugLinkMemoryWrite',
|
|
225
|
+
'DebugLinkFlashErase',
|
|
226
|
+
'DebugLinkEraseSdCard',
|
|
227
|
+
'DebugLinkWatchLayout',
|
|
228
|
+
'LoadDevice',
|
|
229
|
+
'MoneroRctKeyPublic',
|
|
230
|
+
'MoneroOutputEntry',
|
|
231
|
+
'MoneroMultisigKLRki',
|
|
232
|
+
'MoneroTransactionSourceEntry',
|
|
233
|
+
'MoneroAccountPublicAddress',
|
|
234
|
+
'MoneroTransactionDestinationEntry',
|
|
235
|
+
'MoneroTransactionRsigData',
|
|
236
|
+
'MoneroGetAddress',
|
|
237
|
+
'MoneroAddress',
|
|
238
|
+
'MoneroGetWatchKey',
|
|
239
|
+
'MoneroWatchKey',
|
|
240
|
+
'MoneroTransactionData',
|
|
241
|
+
'MoneroTransactionInitRequest',
|
|
242
|
+
'MoneroTransactionInitAck',
|
|
243
|
+
'MoneroTransactionSetInputRequest',
|
|
244
|
+
'MoneroTransactionSetInputAck',
|
|
245
|
+
'MoneroTransactionInputsPermutationRequest',
|
|
246
|
+
'MoneroTransactionInputsPermutationAck',
|
|
247
|
+
'MoneroTransactionInputViniRequest',
|
|
248
|
+
'MoneroTransactionInputViniAck',
|
|
249
|
+
'MoneroTransactionAllInputsSetRequest',
|
|
250
|
+
'MoneroTransactionAllInputsSetAck',
|
|
251
|
+
'MoneroTransactionSetOutputRequest',
|
|
252
|
+
'MoneroTransactionSetOutputAck',
|
|
253
|
+
'MoneroTransactionAllOutSetRequest',
|
|
254
|
+
'MoneroRingCtSig',
|
|
255
|
+
'MoneroTransactionAllOutSetAck',
|
|
256
|
+
'MoneroTransactionSignInputRequest',
|
|
257
|
+
'MoneroTransactionSignInputAck',
|
|
258
|
+
'MoneroTransactionFinalRequest',
|
|
259
|
+
'MoneroTransactionFinalAck',
|
|
260
|
+
'MoneroSubAddressIndicesList',
|
|
261
|
+
'MoneroKeyImageExportInitRequest',
|
|
262
|
+
'MoneroKeyImageExportInitAck',
|
|
263
|
+
'MoneroTransferDetails',
|
|
264
|
+
'MoneroKeyImageSyncStepRequest',
|
|
265
|
+
'MoneroExportedKeyImage',
|
|
266
|
+
'MoneroKeyImageSyncStepAck',
|
|
267
|
+
'MoneroKeyImageSyncFinalRequest',
|
|
268
|
+
'MoneroKeyImageSyncFinalAck',
|
|
269
|
+
'MoneroGetTxKeyRequest',
|
|
270
|
+
'MoneroGetTxKeyAck',
|
|
271
|
+
'MoneroLiveRefreshStartRequest',
|
|
272
|
+
'MoneroLiveRefreshStartAck',
|
|
273
|
+
'MoneroLiveRefreshStepRequest',
|
|
274
|
+
'MoneroLiveRefreshStepAck',
|
|
275
|
+
'MoneroLiveRefreshFinalRequest',
|
|
276
|
+
'MoneroLiveRefreshFinalAck',
|
|
277
|
+
'DebugMoneroDiagRequest',
|
|
278
|
+
'DebugMoneroDiagAck',
|
|
279
|
+
'WebAuthnListResidentCredentials',
|
|
280
|
+
'WebAuthnAddResidentCredential',
|
|
281
|
+
'WebAuthnRemoveResidentCredential',
|
|
282
|
+
'WebAuthnCredential',
|
|
283
|
+
'WebAuthnCredentials',
|
|
284
|
+
'wire_in',
|
|
285
|
+
'wire_out',
|
|
286
|
+
'wire_debug_in',
|
|
287
|
+
'wire_debug_out',
|
|
288
|
+
'wire_tiny',
|
|
289
|
+
'wire_bootloader',
|
|
290
|
+
'wire_no_fsm',
|
|
291
|
+
'bitcoin_only',
|
|
292
|
+
'has_bitcoin_only_values',
|
|
293
|
+
'unstable',
|
|
294
|
+
'wire_type',
|
|
295
|
+
'experimental',
|
|
296
|
+
'include_in_bitcoin_only',
|
|
297
297
|
];
|
|
298
298
|
|
|
299
299
|
module.exports = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
RULE_PATCH,
|
|
301
|
+
TYPE_PATCH,
|
|
302
|
+
DEFINITION_PATCH,
|
|
303
|
+
SKIP,
|
|
304
|
+
UINT_TYPE,
|
|
305
305
|
};
|
package/src/types/messages.ts
CHANGED
|
@@ -3166,5 +3166,5 @@ export type MessageResponse<T extends MessageKey> = {
|
|
|
3166
3166
|
export type TypedCall = <T extends MessageKey, R extends MessageKey>(
|
|
3167
3167
|
type: T,
|
|
3168
3168
|
resType: R,
|
|
3169
|
-
message?: MessageType[T]
|
|
3169
|
+
message?: MessageType[T]
|
|
3170
3170
|
) => Promise<MessageResponse<R>>;
|