@keepkey/device-protocol 7.10.0 → 7.10.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.
- package/lib/messages-binance_pb.d.ts +428 -0
- package/lib/messages-binance_pb.js +1 -7
- package/lib/messages-cosmos_pb.d.ts +466 -0
- package/lib/messages-cosmos_pb.js +1 -7
- package/lib/messages-eos_pb.d.ts +1057 -0
- package/lib/messages-eos_pb.js +1 -7
- package/lib/messages-ethereum_pb.d.ts +530 -0
- package/lib/messages-ethereum_pb.js +1 -7
- package/lib/messages-nano_pb.d.ts +207 -0
- package/lib/messages-nano_pb.js +1 -7
- package/lib/messages-osmosis_pb.d.ts +774 -0
- package/lib/messages-osmosis_pb.js +1 -7
- package/lib/messages-ripple_pb.d.ts +173 -0
- package/lib/messages-ripple_pb.js +1 -7
- package/lib/messages-tendermint_pb.d.ts +526 -0
- package/lib/messages-tendermint_pb.js +1 -7
- package/lib/messages-thorchain_pb.d.ts +288 -0
- package/lib/messages-thorchain_pb.js +1 -7
- package/lib/messages_pb.d.ts +2357 -0
- package/lib/messages_pb.js +1 -7
- package/lib/types_pb.d.ts +843 -0
- package/lib/types_pb.js +1 -7
- package/package.json +2 -2
@@ -0,0 +1,843 @@
|
|
1
|
+
// package:
|
2
|
+
// file: types.proto
|
3
|
+
|
4
|
+
import * as jspb from "google-protobuf";
|
5
|
+
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
|
6
|
+
|
7
|
+
export class HDNodeType extends jspb.Message {
|
8
|
+
hasDepth(): boolean;
|
9
|
+
clearDepth(): void;
|
10
|
+
getDepth(): number | undefined;
|
11
|
+
setDepth(value: number): void;
|
12
|
+
|
13
|
+
hasFingerprint(): boolean;
|
14
|
+
clearFingerprint(): void;
|
15
|
+
getFingerprint(): number | undefined;
|
16
|
+
setFingerprint(value: number): void;
|
17
|
+
|
18
|
+
hasChildNum(): boolean;
|
19
|
+
clearChildNum(): void;
|
20
|
+
getChildNum(): number | undefined;
|
21
|
+
setChildNum(value: number): void;
|
22
|
+
|
23
|
+
hasChainCode(): boolean;
|
24
|
+
clearChainCode(): void;
|
25
|
+
getChainCode(): Uint8Array | string;
|
26
|
+
getChainCode_asU8(): Uint8Array;
|
27
|
+
getChainCode_asB64(): string;
|
28
|
+
setChainCode(value: Uint8Array | string): void;
|
29
|
+
|
30
|
+
hasPrivateKey(): boolean;
|
31
|
+
clearPrivateKey(): void;
|
32
|
+
getPrivateKey(): Uint8Array | string;
|
33
|
+
getPrivateKey_asU8(): Uint8Array;
|
34
|
+
getPrivateKey_asB64(): string;
|
35
|
+
setPrivateKey(value: Uint8Array | string): void;
|
36
|
+
|
37
|
+
hasPublicKey(): boolean;
|
38
|
+
clearPublicKey(): void;
|
39
|
+
getPublicKey(): Uint8Array | string;
|
40
|
+
getPublicKey_asU8(): Uint8Array;
|
41
|
+
getPublicKey_asB64(): string;
|
42
|
+
setPublicKey(value: Uint8Array | string): void;
|
43
|
+
|
44
|
+
serializeBinary(): Uint8Array;
|
45
|
+
toObject(includeInstance?: boolean): HDNodeType.AsObject;
|
46
|
+
static toObject(includeInstance: boolean, msg: HDNodeType): HDNodeType.AsObject;
|
47
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
48
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
49
|
+
static serializeBinaryToWriter(message: HDNodeType, writer: jspb.BinaryWriter): void;
|
50
|
+
static deserializeBinary(bytes: Uint8Array): HDNodeType;
|
51
|
+
static deserializeBinaryFromReader(message: HDNodeType, reader: jspb.BinaryReader): HDNodeType;
|
52
|
+
}
|
53
|
+
|
54
|
+
export namespace HDNodeType {
|
55
|
+
export type AsObject = {
|
56
|
+
depth?: number,
|
57
|
+
fingerprint?: number,
|
58
|
+
childNum?: number,
|
59
|
+
chainCode: Uint8Array | string,
|
60
|
+
privateKey: Uint8Array | string,
|
61
|
+
publicKey: Uint8Array | string,
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
export class HDNodePathType extends jspb.Message {
|
66
|
+
hasNode(): boolean;
|
67
|
+
clearNode(): void;
|
68
|
+
getNode(): HDNodeType;
|
69
|
+
setNode(value?: HDNodeType): void;
|
70
|
+
|
71
|
+
clearAddressNList(): void;
|
72
|
+
getAddressNList(): Array<number>;
|
73
|
+
setAddressNList(value: Array<number>): void;
|
74
|
+
addAddressN(value: number, index?: number): number;
|
75
|
+
|
76
|
+
serializeBinary(): Uint8Array;
|
77
|
+
toObject(includeInstance?: boolean): HDNodePathType.AsObject;
|
78
|
+
static toObject(includeInstance: boolean, msg: HDNodePathType): HDNodePathType.AsObject;
|
79
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
80
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
81
|
+
static serializeBinaryToWriter(message: HDNodePathType, writer: jspb.BinaryWriter): void;
|
82
|
+
static deserializeBinary(bytes: Uint8Array): HDNodePathType;
|
83
|
+
static deserializeBinaryFromReader(message: HDNodePathType, reader: jspb.BinaryReader): HDNodePathType;
|
84
|
+
}
|
85
|
+
|
86
|
+
export namespace HDNodePathType {
|
87
|
+
export type AsObject = {
|
88
|
+
node: HDNodeType.AsObject,
|
89
|
+
addressNList: Array<number>,
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
export class CoinType extends jspb.Message {
|
94
|
+
hasCoinName(): boolean;
|
95
|
+
clearCoinName(): void;
|
96
|
+
getCoinName(): string | undefined;
|
97
|
+
setCoinName(value: string): void;
|
98
|
+
|
99
|
+
hasCoinShortcut(): boolean;
|
100
|
+
clearCoinShortcut(): void;
|
101
|
+
getCoinShortcut(): string | undefined;
|
102
|
+
setCoinShortcut(value: string): void;
|
103
|
+
|
104
|
+
hasAddressType(): boolean;
|
105
|
+
clearAddressType(): void;
|
106
|
+
getAddressType(): number | undefined;
|
107
|
+
setAddressType(value: number): void;
|
108
|
+
|
109
|
+
hasMaxfeeKb(): boolean;
|
110
|
+
clearMaxfeeKb(): void;
|
111
|
+
getMaxfeeKb(): number | undefined;
|
112
|
+
setMaxfeeKb(value: number): void;
|
113
|
+
|
114
|
+
hasAddressTypeP2sh(): boolean;
|
115
|
+
clearAddressTypeP2sh(): void;
|
116
|
+
getAddressTypeP2sh(): number | undefined;
|
117
|
+
setAddressTypeP2sh(value: number): void;
|
118
|
+
|
119
|
+
hasSignedMessageHeader(): boolean;
|
120
|
+
clearSignedMessageHeader(): void;
|
121
|
+
getSignedMessageHeader(): string | undefined;
|
122
|
+
setSignedMessageHeader(value: string): void;
|
123
|
+
|
124
|
+
hasBip44AccountPath(): boolean;
|
125
|
+
clearBip44AccountPath(): void;
|
126
|
+
getBip44AccountPath(): number | undefined;
|
127
|
+
setBip44AccountPath(value: number): void;
|
128
|
+
|
129
|
+
hasForkid(): boolean;
|
130
|
+
clearForkid(): void;
|
131
|
+
getForkid(): number | undefined;
|
132
|
+
setForkid(value: number): void;
|
133
|
+
|
134
|
+
hasDecimals(): boolean;
|
135
|
+
clearDecimals(): void;
|
136
|
+
getDecimals(): number | undefined;
|
137
|
+
setDecimals(value: number): void;
|
138
|
+
|
139
|
+
hasContractAddress(): boolean;
|
140
|
+
clearContractAddress(): void;
|
141
|
+
getContractAddress(): Uint8Array | string;
|
142
|
+
getContractAddress_asU8(): Uint8Array;
|
143
|
+
getContractAddress_asB64(): string;
|
144
|
+
setContractAddress(value: Uint8Array | string): void;
|
145
|
+
|
146
|
+
hasXpubMagic(): boolean;
|
147
|
+
clearXpubMagic(): void;
|
148
|
+
getXpubMagic(): number | undefined;
|
149
|
+
setXpubMagic(value: number): void;
|
150
|
+
|
151
|
+
hasSegwit(): boolean;
|
152
|
+
clearSegwit(): void;
|
153
|
+
getSegwit(): boolean | undefined;
|
154
|
+
setSegwit(value: boolean): void;
|
155
|
+
|
156
|
+
hasForceBip143(): boolean;
|
157
|
+
clearForceBip143(): void;
|
158
|
+
getForceBip143(): boolean | undefined;
|
159
|
+
setForceBip143(value: boolean): void;
|
160
|
+
|
161
|
+
hasCurveName(): boolean;
|
162
|
+
clearCurveName(): void;
|
163
|
+
getCurveName(): string | undefined;
|
164
|
+
setCurveName(value: string): void;
|
165
|
+
|
166
|
+
hasCashaddrPrefix(): boolean;
|
167
|
+
clearCashaddrPrefix(): void;
|
168
|
+
getCashaddrPrefix(): string | undefined;
|
169
|
+
setCashaddrPrefix(value: string): void;
|
170
|
+
|
171
|
+
hasBech32Prefix(): boolean;
|
172
|
+
clearBech32Prefix(): void;
|
173
|
+
getBech32Prefix(): string | undefined;
|
174
|
+
setBech32Prefix(value: string): void;
|
175
|
+
|
176
|
+
hasDecred(): boolean;
|
177
|
+
clearDecred(): void;
|
178
|
+
getDecred(): boolean | undefined;
|
179
|
+
setDecred(value: boolean): void;
|
180
|
+
|
181
|
+
hasXpubMagicSegwitP2sh(): boolean;
|
182
|
+
clearXpubMagicSegwitP2sh(): void;
|
183
|
+
getXpubMagicSegwitP2sh(): number | undefined;
|
184
|
+
setXpubMagicSegwitP2sh(value: number): void;
|
185
|
+
|
186
|
+
hasXpubMagicSegwitNative(): boolean;
|
187
|
+
clearXpubMagicSegwitNative(): void;
|
188
|
+
getXpubMagicSegwitNative(): number | undefined;
|
189
|
+
setXpubMagicSegwitNative(value: number): void;
|
190
|
+
|
191
|
+
hasNanoaddrPrefix(): boolean;
|
192
|
+
clearNanoaddrPrefix(): void;
|
193
|
+
getNanoaddrPrefix(): string | undefined;
|
194
|
+
setNanoaddrPrefix(value: string): void;
|
195
|
+
|
196
|
+
serializeBinary(): Uint8Array;
|
197
|
+
toObject(includeInstance?: boolean): CoinType.AsObject;
|
198
|
+
static toObject(includeInstance: boolean, msg: CoinType): CoinType.AsObject;
|
199
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
200
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
201
|
+
static serializeBinaryToWriter(message: CoinType, writer: jspb.BinaryWriter): void;
|
202
|
+
static deserializeBinary(bytes: Uint8Array): CoinType;
|
203
|
+
static deserializeBinaryFromReader(message: CoinType, reader: jspb.BinaryReader): CoinType;
|
204
|
+
}
|
205
|
+
|
206
|
+
export namespace CoinType {
|
207
|
+
export type AsObject = {
|
208
|
+
coinName?: string,
|
209
|
+
coinShortcut?: string,
|
210
|
+
addressType?: number,
|
211
|
+
maxfeeKb?: number,
|
212
|
+
addressTypeP2sh?: number,
|
213
|
+
signedMessageHeader?: string,
|
214
|
+
bip44AccountPath?: number,
|
215
|
+
forkid?: number,
|
216
|
+
decimals?: number,
|
217
|
+
contractAddress: Uint8Array | string,
|
218
|
+
xpubMagic?: number,
|
219
|
+
segwit?: boolean,
|
220
|
+
forceBip143?: boolean,
|
221
|
+
curveName?: string,
|
222
|
+
cashaddrPrefix?: string,
|
223
|
+
bech32Prefix?: string,
|
224
|
+
decred?: boolean,
|
225
|
+
xpubMagicSegwitP2sh?: number,
|
226
|
+
xpubMagicSegwitNative?: number,
|
227
|
+
nanoaddrPrefix?: string,
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
export class MultisigRedeemScriptType extends jspb.Message {
|
232
|
+
clearPubkeysList(): void;
|
233
|
+
getPubkeysList(): Array<HDNodePathType>;
|
234
|
+
setPubkeysList(value: Array<HDNodePathType>): void;
|
235
|
+
addPubkeys(value?: HDNodePathType, index?: number): HDNodePathType;
|
236
|
+
|
237
|
+
clearSignaturesList(): void;
|
238
|
+
getSignaturesList(): Array<Uint8Array | string>;
|
239
|
+
getSignaturesList_asU8(): Array<Uint8Array>;
|
240
|
+
getSignaturesList_asB64(): Array<string>;
|
241
|
+
setSignaturesList(value: Array<Uint8Array | string>): void;
|
242
|
+
addSignatures(value: Uint8Array | string, index?: number): Uint8Array | string;
|
243
|
+
|
244
|
+
hasM(): boolean;
|
245
|
+
clearM(): void;
|
246
|
+
getM(): number | undefined;
|
247
|
+
setM(value: number): void;
|
248
|
+
|
249
|
+
serializeBinary(): Uint8Array;
|
250
|
+
toObject(includeInstance?: boolean): MultisigRedeemScriptType.AsObject;
|
251
|
+
static toObject(includeInstance: boolean, msg: MultisigRedeemScriptType): MultisigRedeemScriptType.AsObject;
|
252
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
253
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
254
|
+
static serializeBinaryToWriter(message: MultisigRedeemScriptType, writer: jspb.BinaryWriter): void;
|
255
|
+
static deserializeBinary(bytes: Uint8Array): MultisigRedeemScriptType;
|
256
|
+
static deserializeBinaryFromReader(message: MultisigRedeemScriptType, reader: jspb.BinaryReader): MultisigRedeemScriptType;
|
257
|
+
}
|
258
|
+
|
259
|
+
export namespace MultisigRedeemScriptType {
|
260
|
+
export type AsObject = {
|
261
|
+
pubkeysList: Array<HDNodePathType.AsObject>,
|
262
|
+
signaturesList: Array<Uint8Array | string>,
|
263
|
+
m?: number,
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
export class TxInputType extends jspb.Message {
|
268
|
+
clearAddressNList(): void;
|
269
|
+
getAddressNList(): Array<number>;
|
270
|
+
setAddressNList(value: Array<number>): void;
|
271
|
+
addAddressN(value: number, index?: number): number;
|
272
|
+
|
273
|
+
hasPrevHash(): boolean;
|
274
|
+
clearPrevHash(): void;
|
275
|
+
getPrevHash(): Uint8Array | string;
|
276
|
+
getPrevHash_asU8(): Uint8Array;
|
277
|
+
getPrevHash_asB64(): string;
|
278
|
+
setPrevHash(value: Uint8Array | string): void;
|
279
|
+
|
280
|
+
hasPrevIndex(): boolean;
|
281
|
+
clearPrevIndex(): void;
|
282
|
+
getPrevIndex(): number | undefined;
|
283
|
+
setPrevIndex(value: number): void;
|
284
|
+
|
285
|
+
hasScriptSig(): boolean;
|
286
|
+
clearScriptSig(): void;
|
287
|
+
getScriptSig(): Uint8Array | string;
|
288
|
+
getScriptSig_asU8(): Uint8Array;
|
289
|
+
getScriptSig_asB64(): string;
|
290
|
+
setScriptSig(value: Uint8Array | string): void;
|
291
|
+
|
292
|
+
hasSequence(): boolean;
|
293
|
+
clearSequence(): void;
|
294
|
+
getSequence(): number | undefined;
|
295
|
+
setSequence(value: number): void;
|
296
|
+
|
297
|
+
hasScriptType(): boolean;
|
298
|
+
clearScriptType(): void;
|
299
|
+
getScriptType(): InputScriptTypeMap[keyof InputScriptTypeMap] | undefined;
|
300
|
+
setScriptType(value: InputScriptTypeMap[keyof InputScriptTypeMap]): void;
|
301
|
+
|
302
|
+
hasMultisig(): boolean;
|
303
|
+
clearMultisig(): void;
|
304
|
+
getMultisig(): MultisigRedeemScriptType | undefined;
|
305
|
+
setMultisig(value?: MultisigRedeemScriptType): void;
|
306
|
+
|
307
|
+
hasAmount(): boolean;
|
308
|
+
clearAmount(): void;
|
309
|
+
getAmount(): number | undefined;
|
310
|
+
setAmount(value: number): void;
|
311
|
+
|
312
|
+
hasDecredTree(): boolean;
|
313
|
+
clearDecredTree(): void;
|
314
|
+
getDecredTree(): number | undefined;
|
315
|
+
setDecredTree(value: number): void;
|
316
|
+
|
317
|
+
hasDecredScriptVersion(): boolean;
|
318
|
+
clearDecredScriptVersion(): void;
|
319
|
+
getDecredScriptVersion(): number | undefined;
|
320
|
+
setDecredScriptVersion(value: number): void;
|
321
|
+
|
322
|
+
serializeBinary(): Uint8Array;
|
323
|
+
toObject(includeInstance?: boolean): TxInputType.AsObject;
|
324
|
+
static toObject(includeInstance: boolean, msg: TxInputType): TxInputType.AsObject;
|
325
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
326
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
327
|
+
static serializeBinaryToWriter(message: TxInputType, writer: jspb.BinaryWriter): void;
|
328
|
+
static deserializeBinary(bytes: Uint8Array): TxInputType;
|
329
|
+
static deserializeBinaryFromReader(message: TxInputType, reader: jspb.BinaryReader): TxInputType;
|
330
|
+
}
|
331
|
+
|
332
|
+
export namespace TxInputType {
|
333
|
+
export type AsObject = {
|
334
|
+
addressNList: Array<number>,
|
335
|
+
prevHash: Uint8Array | string,
|
336
|
+
prevIndex?: number,
|
337
|
+
scriptSig: Uint8Array | string,
|
338
|
+
sequence?: number,
|
339
|
+
scriptType?: InputScriptTypeMap[keyof InputScriptTypeMap],
|
340
|
+
multisig?: MultisigRedeemScriptType.AsObject,
|
341
|
+
amount?: number,
|
342
|
+
decredTree?: number,
|
343
|
+
decredScriptVersion?: number,
|
344
|
+
}
|
345
|
+
}
|
346
|
+
|
347
|
+
export class TxOutputType extends jspb.Message {
|
348
|
+
hasAddress(): boolean;
|
349
|
+
clearAddress(): void;
|
350
|
+
getAddress(): string | undefined;
|
351
|
+
setAddress(value: string): void;
|
352
|
+
|
353
|
+
clearAddressNList(): void;
|
354
|
+
getAddressNList(): Array<number>;
|
355
|
+
setAddressNList(value: Array<number>): void;
|
356
|
+
addAddressN(value: number, index?: number): number;
|
357
|
+
|
358
|
+
hasAmount(): boolean;
|
359
|
+
clearAmount(): void;
|
360
|
+
getAmount(): number | undefined;
|
361
|
+
setAmount(value: number): void;
|
362
|
+
|
363
|
+
hasScriptType(): boolean;
|
364
|
+
clearScriptType(): void;
|
365
|
+
getScriptType(): OutputScriptTypeMap[keyof OutputScriptTypeMap] | undefined;
|
366
|
+
setScriptType(value: OutputScriptTypeMap[keyof OutputScriptTypeMap]): void;
|
367
|
+
|
368
|
+
hasMultisig(): boolean;
|
369
|
+
clearMultisig(): void;
|
370
|
+
getMultisig(): MultisigRedeemScriptType | undefined;
|
371
|
+
setMultisig(value?: MultisigRedeemScriptType): void;
|
372
|
+
|
373
|
+
hasOpReturnData(): boolean;
|
374
|
+
clearOpReturnData(): void;
|
375
|
+
getOpReturnData(): Uint8Array | string;
|
376
|
+
getOpReturnData_asU8(): Uint8Array;
|
377
|
+
getOpReturnData_asB64(): string;
|
378
|
+
setOpReturnData(value: Uint8Array | string): void;
|
379
|
+
|
380
|
+
hasAddressType(): boolean;
|
381
|
+
clearAddressType(): void;
|
382
|
+
getAddressType(): OutputAddressTypeMap[keyof OutputAddressTypeMap] | undefined;
|
383
|
+
setAddressType(value: OutputAddressTypeMap[keyof OutputAddressTypeMap]): void;
|
384
|
+
|
385
|
+
hasDecredScriptVersion(): boolean;
|
386
|
+
clearDecredScriptVersion(): void;
|
387
|
+
getDecredScriptVersion(): number | undefined;
|
388
|
+
setDecredScriptVersion(value: number): void;
|
389
|
+
|
390
|
+
serializeBinary(): Uint8Array;
|
391
|
+
toObject(includeInstance?: boolean): TxOutputType.AsObject;
|
392
|
+
static toObject(includeInstance: boolean, msg: TxOutputType): TxOutputType.AsObject;
|
393
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
394
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
395
|
+
static serializeBinaryToWriter(message: TxOutputType, writer: jspb.BinaryWriter): void;
|
396
|
+
static deserializeBinary(bytes: Uint8Array): TxOutputType;
|
397
|
+
static deserializeBinaryFromReader(message: TxOutputType, reader: jspb.BinaryReader): TxOutputType;
|
398
|
+
}
|
399
|
+
|
400
|
+
export namespace TxOutputType {
|
401
|
+
export type AsObject = {
|
402
|
+
address?: string,
|
403
|
+
addressNList: Array<number>,
|
404
|
+
amount?: number,
|
405
|
+
scriptType?: OutputScriptTypeMap[keyof OutputScriptTypeMap],
|
406
|
+
multisig?: MultisigRedeemScriptType.AsObject,
|
407
|
+
opReturnData: Uint8Array | string,
|
408
|
+
addressType?: OutputAddressTypeMap[keyof OutputAddressTypeMap],
|
409
|
+
decredScriptVersion?: number,
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
export class TxOutputBinType extends jspb.Message {
|
414
|
+
hasAmount(): boolean;
|
415
|
+
clearAmount(): void;
|
416
|
+
getAmount(): number | undefined;
|
417
|
+
setAmount(value: number): void;
|
418
|
+
|
419
|
+
hasScriptPubkey(): boolean;
|
420
|
+
clearScriptPubkey(): void;
|
421
|
+
getScriptPubkey(): Uint8Array | string;
|
422
|
+
getScriptPubkey_asU8(): Uint8Array;
|
423
|
+
getScriptPubkey_asB64(): string;
|
424
|
+
setScriptPubkey(value: Uint8Array | string): void;
|
425
|
+
|
426
|
+
hasDecredScriptVersion(): boolean;
|
427
|
+
clearDecredScriptVersion(): void;
|
428
|
+
getDecredScriptVersion(): number | undefined;
|
429
|
+
setDecredScriptVersion(value: number): void;
|
430
|
+
|
431
|
+
serializeBinary(): Uint8Array;
|
432
|
+
toObject(includeInstance?: boolean): TxOutputBinType.AsObject;
|
433
|
+
static toObject(includeInstance: boolean, msg: TxOutputBinType): TxOutputBinType.AsObject;
|
434
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
435
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
436
|
+
static serializeBinaryToWriter(message: TxOutputBinType, writer: jspb.BinaryWriter): void;
|
437
|
+
static deserializeBinary(bytes: Uint8Array): TxOutputBinType;
|
438
|
+
static deserializeBinaryFromReader(message: TxOutputBinType, reader: jspb.BinaryReader): TxOutputBinType;
|
439
|
+
}
|
440
|
+
|
441
|
+
export namespace TxOutputBinType {
|
442
|
+
export type AsObject = {
|
443
|
+
amount?: number,
|
444
|
+
scriptPubkey: Uint8Array | string,
|
445
|
+
decredScriptVersion?: number,
|
446
|
+
}
|
447
|
+
}
|
448
|
+
|
449
|
+
export class TransactionType extends jspb.Message {
|
450
|
+
hasVersion(): boolean;
|
451
|
+
clearVersion(): void;
|
452
|
+
getVersion(): number | undefined;
|
453
|
+
setVersion(value: number): void;
|
454
|
+
|
455
|
+
clearInputsList(): void;
|
456
|
+
getInputsList(): Array<TxInputType>;
|
457
|
+
setInputsList(value: Array<TxInputType>): void;
|
458
|
+
addInputs(value?: TxInputType, index?: number): TxInputType;
|
459
|
+
|
460
|
+
clearBinOutputsList(): void;
|
461
|
+
getBinOutputsList(): Array<TxOutputBinType>;
|
462
|
+
setBinOutputsList(value: Array<TxOutputBinType>): void;
|
463
|
+
addBinOutputs(value?: TxOutputBinType, index?: number): TxOutputBinType;
|
464
|
+
|
465
|
+
clearOutputsList(): void;
|
466
|
+
getOutputsList(): Array<TxOutputType>;
|
467
|
+
setOutputsList(value: Array<TxOutputType>): void;
|
468
|
+
addOutputs(value?: TxOutputType, index?: number): TxOutputType;
|
469
|
+
|
470
|
+
hasLockTime(): boolean;
|
471
|
+
clearLockTime(): void;
|
472
|
+
getLockTime(): number | undefined;
|
473
|
+
setLockTime(value: number): void;
|
474
|
+
|
475
|
+
hasInputsCnt(): boolean;
|
476
|
+
clearInputsCnt(): void;
|
477
|
+
getInputsCnt(): number | undefined;
|
478
|
+
setInputsCnt(value: number): void;
|
479
|
+
|
480
|
+
hasOutputsCnt(): boolean;
|
481
|
+
clearOutputsCnt(): void;
|
482
|
+
getOutputsCnt(): number | undefined;
|
483
|
+
setOutputsCnt(value: number): void;
|
484
|
+
|
485
|
+
hasExtraData(): boolean;
|
486
|
+
clearExtraData(): void;
|
487
|
+
getExtraData(): Uint8Array | string;
|
488
|
+
getExtraData_asU8(): Uint8Array;
|
489
|
+
getExtraData_asB64(): string;
|
490
|
+
setExtraData(value: Uint8Array | string): void;
|
491
|
+
|
492
|
+
hasExtraDataLen(): boolean;
|
493
|
+
clearExtraDataLen(): void;
|
494
|
+
getExtraDataLen(): number | undefined;
|
495
|
+
setExtraDataLen(value: number): void;
|
496
|
+
|
497
|
+
hasExpiry(): boolean;
|
498
|
+
clearExpiry(): void;
|
499
|
+
getExpiry(): number | undefined;
|
500
|
+
setExpiry(value: number): void;
|
501
|
+
|
502
|
+
hasOverwintered(): boolean;
|
503
|
+
clearOverwintered(): void;
|
504
|
+
getOverwintered(): boolean | undefined;
|
505
|
+
setOverwintered(value: boolean): void;
|
506
|
+
|
507
|
+
hasVersionGroupId(): boolean;
|
508
|
+
clearVersionGroupId(): void;
|
509
|
+
getVersionGroupId(): number | undefined;
|
510
|
+
setVersionGroupId(value: number): void;
|
511
|
+
|
512
|
+
hasBranchId(): boolean;
|
513
|
+
clearBranchId(): void;
|
514
|
+
getBranchId(): number | undefined;
|
515
|
+
setBranchId(value: number): void;
|
516
|
+
|
517
|
+
serializeBinary(): Uint8Array;
|
518
|
+
toObject(includeInstance?: boolean): TransactionType.AsObject;
|
519
|
+
static toObject(includeInstance: boolean, msg: TransactionType): TransactionType.AsObject;
|
520
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
521
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
522
|
+
static serializeBinaryToWriter(message: TransactionType, writer: jspb.BinaryWriter): void;
|
523
|
+
static deserializeBinary(bytes: Uint8Array): TransactionType;
|
524
|
+
static deserializeBinaryFromReader(message: TransactionType, reader: jspb.BinaryReader): TransactionType;
|
525
|
+
}
|
526
|
+
|
527
|
+
export namespace TransactionType {
|
528
|
+
export type AsObject = {
|
529
|
+
version?: number,
|
530
|
+
inputsList: Array<TxInputType.AsObject>,
|
531
|
+
binOutputsList: Array<TxOutputBinType.AsObject>,
|
532
|
+
outputsList: Array<TxOutputType.AsObject>,
|
533
|
+
lockTime?: number,
|
534
|
+
inputsCnt?: number,
|
535
|
+
outputsCnt?: number,
|
536
|
+
extraData: Uint8Array | string,
|
537
|
+
extraDataLen?: number,
|
538
|
+
expiry?: number,
|
539
|
+
overwintered?: boolean,
|
540
|
+
versionGroupId?: number,
|
541
|
+
branchId?: number,
|
542
|
+
}
|
543
|
+
}
|
544
|
+
|
545
|
+
export class RawTransactionType extends jspb.Message {
|
546
|
+
hasPayload(): boolean;
|
547
|
+
clearPayload(): void;
|
548
|
+
getPayload(): Uint8Array | string;
|
549
|
+
getPayload_asU8(): Uint8Array;
|
550
|
+
getPayload_asB64(): string;
|
551
|
+
setPayload(value: Uint8Array | string): void;
|
552
|
+
|
553
|
+
serializeBinary(): Uint8Array;
|
554
|
+
toObject(includeInstance?: boolean): RawTransactionType.AsObject;
|
555
|
+
static toObject(includeInstance: boolean, msg: RawTransactionType): RawTransactionType.AsObject;
|
556
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
557
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
558
|
+
static serializeBinaryToWriter(message: RawTransactionType, writer: jspb.BinaryWriter): void;
|
559
|
+
static deserializeBinary(bytes: Uint8Array): RawTransactionType;
|
560
|
+
static deserializeBinaryFromReader(message: RawTransactionType, reader: jspb.BinaryReader): RawTransactionType;
|
561
|
+
}
|
562
|
+
|
563
|
+
export namespace RawTransactionType {
|
564
|
+
export type AsObject = {
|
565
|
+
payload: Uint8Array | string,
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
export class TxRequestDetailsType extends jspb.Message {
|
570
|
+
hasRequestIndex(): boolean;
|
571
|
+
clearRequestIndex(): void;
|
572
|
+
getRequestIndex(): number | undefined;
|
573
|
+
setRequestIndex(value: number): void;
|
574
|
+
|
575
|
+
hasTxHash(): boolean;
|
576
|
+
clearTxHash(): void;
|
577
|
+
getTxHash(): Uint8Array | string;
|
578
|
+
getTxHash_asU8(): Uint8Array;
|
579
|
+
getTxHash_asB64(): string;
|
580
|
+
setTxHash(value: Uint8Array | string): void;
|
581
|
+
|
582
|
+
hasExtraDataLen(): boolean;
|
583
|
+
clearExtraDataLen(): void;
|
584
|
+
getExtraDataLen(): number | undefined;
|
585
|
+
setExtraDataLen(value: number): void;
|
586
|
+
|
587
|
+
hasExtraDataOffset(): boolean;
|
588
|
+
clearExtraDataOffset(): void;
|
589
|
+
getExtraDataOffset(): number | undefined;
|
590
|
+
setExtraDataOffset(value: number): void;
|
591
|
+
|
592
|
+
serializeBinary(): Uint8Array;
|
593
|
+
toObject(includeInstance?: boolean): TxRequestDetailsType.AsObject;
|
594
|
+
static toObject(includeInstance: boolean, msg: TxRequestDetailsType): TxRequestDetailsType.AsObject;
|
595
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
596
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
597
|
+
static serializeBinaryToWriter(message: TxRequestDetailsType, writer: jspb.BinaryWriter): void;
|
598
|
+
static deserializeBinary(bytes: Uint8Array): TxRequestDetailsType;
|
599
|
+
static deserializeBinaryFromReader(message: TxRequestDetailsType, reader: jspb.BinaryReader): TxRequestDetailsType;
|
600
|
+
}
|
601
|
+
|
602
|
+
export namespace TxRequestDetailsType {
|
603
|
+
export type AsObject = {
|
604
|
+
requestIndex?: number,
|
605
|
+
txHash: Uint8Array | string,
|
606
|
+
extraDataLen?: number,
|
607
|
+
extraDataOffset?: number,
|
608
|
+
}
|
609
|
+
}
|
610
|
+
|
611
|
+
export class TxRequestSerializedType extends jspb.Message {
|
612
|
+
hasSignatureIndex(): boolean;
|
613
|
+
clearSignatureIndex(): void;
|
614
|
+
getSignatureIndex(): number | undefined;
|
615
|
+
setSignatureIndex(value: number): void;
|
616
|
+
|
617
|
+
hasSignature(): boolean;
|
618
|
+
clearSignature(): void;
|
619
|
+
getSignature(): Uint8Array | string;
|
620
|
+
getSignature_asU8(): Uint8Array;
|
621
|
+
getSignature_asB64(): string;
|
622
|
+
setSignature(value: Uint8Array | string): void;
|
623
|
+
|
624
|
+
hasSerializedTx(): boolean;
|
625
|
+
clearSerializedTx(): void;
|
626
|
+
getSerializedTx(): Uint8Array | string;
|
627
|
+
getSerializedTx_asU8(): Uint8Array;
|
628
|
+
getSerializedTx_asB64(): string;
|
629
|
+
setSerializedTx(value: Uint8Array | string): void;
|
630
|
+
|
631
|
+
serializeBinary(): Uint8Array;
|
632
|
+
toObject(includeInstance?: boolean): TxRequestSerializedType.AsObject;
|
633
|
+
static toObject(includeInstance: boolean, msg: TxRequestSerializedType): TxRequestSerializedType.AsObject;
|
634
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
635
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
636
|
+
static serializeBinaryToWriter(message: TxRequestSerializedType, writer: jspb.BinaryWriter): void;
|
637
|
+
static deserializeBinary(bytes: Uint8Array): TxRequestSerializedType;
|
638
|
+
static deserializeBinaryFromReader(message: TxRequestSerializedType, reader: jspb.BinaryReader): TxRequestSerializedType;
|
639
|
+
}
|
640
|
+
|
641
|
+
export namespace TxRequestSerializedType {
|
642
|
+
export type AsObject = {
|
643
|
+
signatureIndex?: number,
|
644
|
+
signature: Uint8Array | string,
|
645
|
+
serializedTx: Uint8Array | string,
|
646
|
+
}
|
647
|
+
}
|
648
|
+
|
649
|
+
export class IdentityType extends jspb.Message {
|
650
|
+
hasProto(): boolean;
|
651
|
+
clearProto(): void;
|
652
|
+
getProto(): string | undefined;
|
653
|
+
setProto(value: string): void;
|
654
|
+
|
655
|
+
hasUser(): boolean;
|
656
|
+
clearUser(): void;
|
657
|
+
getUser(): string | undefined;
|
658
|
+
setUser(value: string): void;
|
659
|
+
|
660
|
+
hasHost(): boolean;
|
661
|
+
clearHost(): void;
|
662
|
+
getHost(): string | undefined;
|
663
|
+
setHost(value: string): void;
|
664
|
+
|
665
|
+
hasPort(): boolean;
|
666
|
+
clearPort(): void;
|
667
|
+
getPort(): string | undefined;
|
668
|
+
setPort(value: string): void;
|
669
|
+
|
670
|
+
hasPath(): boolean;
|
671
|
+
clearPath(): void;
|
672
|
+
getPath(): string | undefined;
|
673
|
+
setPath(value: string): void;
|
674
|
+
|
675
|
+
hasIndex(): boolean;
|
676
|
+
clearIndex(): void;
|
677
|
+
getIndex(): number | undefined;
|
678
|
+
setIndex(value: number): void;
|
679
|
+
|
680
|
+
serializeBinary(): Uint8Array;
|
681
|
+
toObject(includeInstance?: boolean): IdentityType.AsObject;
|
682
|
+
static toObject(includeInstance: boolean, msg: IdentityType): IdentityType.AsObject;
|
683
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
684
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
685
|
+
static serializeBinaryToWriter(message: IdentityType, writer: jspb.BinaryWriter): void;
|
686
|
+
static deserializeBinary(bytes: Uint8Array): IdentityType;
|
687
|
+
static deserializeBinaryFromReader(message: IdentityType, reader: jspb.BinaryReader): IdentityType;
|
688
|
+
}
|
689
|
+
|
690
|
+
export namespace IdentityType {
|
691
|
+
export type AsObject = {
|
692
|
+
proto?: string,
|
693
|
+
user?: string,
|
694
|
+
host?: string,
|
695
|
+
port?: string,
|
696
|
+
path?: string,
|
697
|
+
index?: number,
|
698
|
+
}
|
699
|
+
}
|
700
|
+
|
701
|
+
export class PolicyType extends jspb.Message {
|
702
|
+
hasPolicyName(): boolean;
|
703
|
+
clearPolicyName(): void;
|
704
|
+
getPolicyName(): string | undefined;
|
705
|
+
setPolicyName(value: string): void;
|
706
|
+
|
707
|
+
hasEnabled(): boolean;
|
708
|
+
clearEnabled(): void;
|
709
|
+
getEnabled(): boolean | undefined;
|
710
|
+
setEnabled(value: boolean): void;
|
711
|
+
|
712
|
+
serializeBinary(): Uint8Array;
|
713
|
+
toObject(includeInstance?: boolean): PolicyType.AsObject;
|
714
|
+
static toObject(includeInstance: boolean, msg: PolicyType): PolicyType.AsObject;
|
715
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
716
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
717
|
+
static serializeBinaryToWriter(message: PolicyType, writer: jspb.BinaryWriter): void;
|
718
|
+
static deserializeBinary(bytes: Uint8Array): PolicyType;
|
719
|
+
static deserializeBinaryFromReader(message: PolicyType, reader: jspb.BinaryReader): PolicyType;
|
720
|
+
}
|
721
|
+
|
722
|
+
export namespace PolicyType {
|
723
|
+
export type AsObject = {
|
724
|
+
policyName?: string,
|
725
|
+
enabled?: boolean,
|
726
|
+
}
|
727
|
+
}
|
728
|
+
|
729
|
+
export const wireIn: jspb.ExtensionFieldInfo<boolean>;
|
730
|
+
|
731
|
+
export const wireOut: jspb.ExtensionFieldInfo<boolean>;
|
732
|
+
|
733
|
+
export const wireDebugIn: jspb.ExtensionFieldInfo<boolean>;
|
734
|
+
|
735
|
+
export const wireDebugOut: jspb.ExtensionFieldInfo<boolean>;
|
736
|
+
|
737
|
+
export interface FailureTypeMap {
|
738
|
+
FAILURE_UNEXPECTEDMESSAGE: 1;
|
739
|
+
FAILURE_BUTTONEXPECTED: 2;
|
740
|
+
FAILURE_SYNTAXERROR: 3;
|
741
|
+
FAILURE_ACTIONCANCELLED: 4;
|
742
|
+
FAILURE_PINEXPECTED: 5;
|
743
|
+
FAILURE_PINCANCELLED: 6;
|
744
|
+
FAILURE_PININVALID: 7;
|
745
|
+
FAILURE_INVALIDSIGNATURE: 8;
|
746
|
+
FAILURE_OTHER: 9;
|
747
|
+
FAILURE_NOTENOUGHFUNDS: 10;
|
748
|
+
FAILURE_NOTINITIALIZED: 11;
|
749
|
+
FAILURE_PINMISMATCH: 12;
|
750
|
+
FAILURE_FIRMWAREERROR: 99;
|
751
|
+
}
|
752
|
+
|
753
|
+
export const FailureType: FailureTypeMap;
|
754
|
+
|
755
|
+
export interface OutputScriptTypeMap {
|
756
|
+
PAYTOADDRESS: 0;
|
757
|
+
PAYTOSCRIPTHASH: 1;
|
758
|
+
PAYTOMULTISIG: 2;
|
759
|
+
PAYTOOPRETURN: 3;
|
760
|
+
PAYTOWITNESS: 4;
|
761
|
+
PAYTOP2SHWITNESS: 5;
|
762
|
+
}
|
763
|
+
|
764
|
+
export const OutputScriptType: OutputScriptTypeMap;
|
765
|
+
|
766
|
+
export interface InputScriptTypeMap {
|
767
|
+
SPENDADDRESS: 0;
|
768
|
+
SPENDMULTISIG: 1;
|
769
|
+
EXTERNAL: 2;
|
770
|
+
SPENDWITNESS: 3;
|
771
|
+
SPENDP2SHWITNESS: 4;
|
772
|
+
}
|
773
|
+
|
774
|
+
export const InputScriptType: InputScriptTypeMap;
|
775
|
+
|
776
|
+
export interface RequestTypeMap {
|
777
|
+
TXINPUT: 0;
|
778
|
+
TXOUTPUT: 1;
|
779
|
+
TXMETA: 2;
|
780
|
+
TXFINISHED: 3;
|
781
|
+
TXEXTRADATA: 4;
|
782
|
+
}
|
783
|
+
|
784
|
+
export const RequestType: RequestTypeMap;
|
785
|
+
|
786
|
+
export interface OutputAddressTypeMap {
|
787
|
+
SPEND: 0;
|
788
|
+
TRANSFER: 1;
|
789
|
+
CHANGE: 2;
|
790
|
+
}
|
791
|
+
|
792
|
+
export const OutputAddressType: OutputAddressTypeMap;
|
793
|
+
|
794
|
+
export interface ButtonRequestTypeMap {
|
795
|
+
BUTTONREQUEST_OTHER: 1;
|
796
|
+
BUTTONREQUEST_FEEOVERTHRESHOLD: 2;
|
797
|
+
BUTTONREQUEST_CONFIRMOUTPUT: 3;
|
798
|
+
BUTTONREQUEST_RESETDEVICE: 4;
|
799
|
+
BUTTONREQUEST_CONFIRMWORD: 5;
|
800
|
+
BUTTONREQUEST_WIPEDEVICE: 6;
|
801
|
+
BUTTONREQUEST_PROTECTCALL: 7;
|
802
|
+
BUTTONREQUEST_SIGNTX: 8;
|
803
|
+
BUTTONREQUEST_FIRMWARECHECK: 9;
|
804
|
+
BUTTONREQUEST_ADDRESS: 10;
|
805
|
+
BUTTONREQUEST_FIRMWAREERASE: 11;
|
806
|
+
BUTTONREQUEST_CONFIRMTRANSFERTOACCOUNT: 12;
|
807
|
+
BUTTONREQUEST_CONFIRMTRANSFERTONODEPATH: 13;
|
808
|
+
BUTTONREQUEST_CHANGELABEL: 14;
|
809
|
+
BUTTONREQUEST_CHANGELANGUAGE: 15;
|
810
|
+
BUTTONREQUEST_ENABLEPASSPHRASE: 16;
|
811
|
+
BUTTONREQUEST_DISABLEPASSPHRASE: 17;
|
812
|
+
BUTTONREQUEST_ENCRYPTANDSIGNMESSAGE: 18;
|
813
|
+
BUTTONREQUEST_ENCRYPTMESSAGE: 19;
|
814
|
+
BUTTONREQUEST_IMPORTPRIVATEKEY: 20;
|
815
|
+
BUTTONREQUEST_IMPORTRECOVERYSENTENCE: 21;
|
816
|
+
BUTTONREQUEST_SIGNIDENTITY: 22;
|
817
|
+
BUTTONREQUEST_PING: 23;
|
818
|
+
BUTTONREQUEST_REMOVEPIN: 24;
|
819
|
+
BUTTONREQUEST_CHANGEPIN: 25;
|
820
|
+
BUTTONREQUEST_CREATEPIN: 26;
|
821
|
+
BUTTONREQUEST_GETENTROPY: 27;
|
822
|
+
BUTTONREQUEST_SIGNMESSAGE: 28;
|
823
|
+
BUTTONREQUEST_APPLYPOLICIES: 29;
|
824
|
+
BUTTONREQUEST_AUTOLOCKDELAYMS: 31;
|
825
|
+
BUTTONREQUEST_U2FCOUNTER: 32;
|
826
|
+
BUTTONREQUEST_CONFIRMEOSACTION: 33;
|
827
|
+
BUTTONREQUEST_CONFIRMEOSBUDGET: 34;
|
828
|
+
BUTTONREQUEST_CONFIRMMEMO: 35;
|
829
|
+
BUTTONREQUEST_REMOVEWIPECODE: 36;
|
830
|
+
BUTTONREQUEST_CHANGEWIPECODE: 37;
|
831
|
+
BUTTONREQUEST_CREATEWIPECODE: 38;
|
832
|
+
}
|
833
|
+
|
834
|
+
export const ButtonRequestType: ButtonRequestTypeMap;
|
835
|
+
|
836
|
+
export interface PinMatrixRequestTypeMap {
|
837
|
+
PINMATRIXREQUESTTYPE_CURRENT: 1;
|
838
|
+
PINMATRIXREQUESTTYPE_NEWFIRST: 2;
|
839
|
+
PINMATRIXREQUESTTYPE_NEWSECOND: 3;
|
840
|
+
}
|
841
|
+
|
842
|
+
export const PinMatrixRequestType: PinMatrixRequestTypeMap;
|
843
|
+
|