@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.
@@ -0,0 +1,207 @@
1
+ // package:
2
+ // file: messages-nano.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class NanoGetAddress extends jspb.Message {
7
+ clearAddressNList(): void;
8
+ getAddressNList(): Array<number>;
9
+ setAddressNList(value: Array<number>): void;
10
+ addAddressN(value: number, index?: number): number;
11
+
12
+ hasCoinName(): boolean;
13
+ clearCoinName(): void;
14
+ getCoinName(): string | undefined;
15
+ setCoinName(value: string): void;
16
+
17
+ hasShowDisplay(): boolean;
18
+ clearShowDisplay(): void;
19
+ getShowDisplay(): boolean | undefined;
20
+ setShowDisplay(value: boolean): void;
21
+
22
+ serializeBinary(): Uint8Array;
23
+ toObject(includeInstance?: boolean): NanoGetAddress.AsObject;
24
+ static toObject(includeInstance: boolean, msg: NanoGetAddress): NanoGetAddress.AsObject;
25
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
26
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
27
+ static serializeBinaryToWriter(message: NanoGetAddress, writer: jspb.BinaryWriter): void;
28
+ static deserializeBinary(bytes: Uint8Array): NanoGetAddress;
29
+ static deserializeBinaryFromReader(message: NanoGetAddress, reader: jspb.BinaryReader): NanoGetAddress;
30
+ }
31
+
32
+ export namespace NanoGetAddress {
33
+ export type AsObject = {
34
+ addressNList: Array<number>,
35
+ coinName?: string,
36
+ showDisplay?: boolean,
37
+ }
38
+ }
39
+
40
+ export class NanoAddress extends jspb.Message {
41
+ hasAddress(): boolean;
42
+ clearAddress(): void;
43
+ getAddress(): string | undefined;
44
+ setAddress(value: string): void;
45
+
46
+ serializeBinary(): Uint8Array;
47
+ toObject(includeInstance?: boolean): NanoAddress.AsObject;
48
+ static toObject(includeInstance: boolean, msg: NanoAddress): NanoAddress.AsObject;
49
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
50
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
51
+ static serializeBinaryToWriter(message: NanoAddress, writer: jspb.BinaryWriter): void;
52
+ static deserializeBinary(bytes: Uint8Array): NanoAddress;
53
+ static deserializeBinaryFromReader(message: NanoAddress, reader: jspb.BinaryReader): NanoAddress;
54
+ }
55
+
56
+ export namespace NanoAddress {
57
+ export type AsObject = {
58
+ address?: string,
59
+ }
60
+ }
61
+
62
+ export class NanoSignTx extends jspb.Message {
63
+ clearAddressNList(): void;
64
+ getAddressNList(): Array<number>;
65
+ setAddressNList(value: Array<number>): void;
66
+ addAddressN(value: number, index?: number): number;
67
+
68
+ hasCoinName(): boolean;
69
+ clearCoinName(): void;
70
+ getCoinName(): string | undefined;
71
+ setCoinName(value: string): void;
72
+
73
+ hasParentBlock(): boolean;
74
+ clearParentBlock(): void;
75
+ getParentBlock(): NanoSignTx.ParentBlock | undefined;
76
+ setParentBlock(value?: NanoSignTx.ParentBlock): void;
77
+
78
+ hasLinkHash(): boolean;
79
+ clearLinkHash(): void;
80
+ getLinkHash(): Uint8Array | string;
81
+ getLinkHash_asU8(): Uint8Array;
82
+ getLinkHash_asB64(): string;
83
+ setLinkHash(value: Uint8Array | string): void;
84
+
85
+ hasLinkRecipient(): boolean;
86
+ clearLinkRecipient(): void;
87
+ getLinkRecipient(): string | undefined;
88
+ setLinkRecipient(value: string): void;
89
+
90
+ clearLinkRecipientNList(): void;
91
+ getLinkRecipientNList(): Array<number>;
92
+ setLinkRecipientNList(value: Array<number>): void;
93
+ addLinkRecipientN(value: number, index?: number): number;
94
+
95
+ hasRepresentative(): boolean;
96
+ clearRepresentative(): void;
97
+ getRepresentative(): string | undefined;
98
+ setRepresentative(value: string): void;
99
+
100
+ hasBalance(): boolean;
101
+ clearBalance(): void;
102
+ getBalance(): Uint8Array | string;
103
+ getBalance_asU8(): Uint8Array;
104
+ getBalance_asB64(): string;
105
+ setBalance(value: Uint8Array | string): void;
106
+
107
+ serializeBinary(): Uint8Array;
108
+ toObject(includeInstance?: boolean): NanoSignTx.AsObject;
109
+ static toObject(includeInstance: boolean, msg: NanoSignTx): NanoSignTx.AsObject;
110
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
111
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
112
+ static serializeBinaryToWriter(message: NanoSignTx, writer: jspb.BinaryWriter): void;
113
+ static deserializeBinary(bytes: Uint8Array): NanoSignTx;
114
+ static deserializeBinaryFromReader(message: NanoSignTx, reader: jspb.BinaryReader): NanoSignTx;
115
+ }
116
+
117
+ export namespace NanoSignTx {
118
+ export type AsObject = {
119
+ addressNList: Array<number>,
120
+ coinName?: string,
121
+ parentBlock?: NanoSignTx.ParentBlock.AsObject,
122
+ linkHash: Uint8Array | string,
123
+ linkRecipient?: string,
124
+ linkRecipientNList: Array<number>,
125
+ representative?: string,
126
+ balance: Uint8Array | string,
127
+ }
128
+
129
+ export class ParentBlock extends jspb.Message {
130
+ hasParentHash(): boolean;
131
+ clearParentHash(): void;
132
+ getParentHash(): Uint8Array | string;
133
+ getParentHash_asU8(): Uint8Array;
134
+ getParentHash_asB64(): string;
135
+ setParentHash(value: Uint8Array | string): void;
136
+
137
+ hasLink(): boolean;
138
+ clearLink(): void;
139
+ getLink(): Uint8Array | string;
140
+ getLink_asU8(): Uint8Array;
141
+ getLink_asB64(): string;
142
+ setLink(value: Uint8Array | string): void;
143
+
144
+ hasRepresentative(): boolean;
145
+ clearRepresentative(): void;
146
+ getRepresentative(): string | undefined;
147
+ setRepresentative(value: string): void;
148
+
149
+ hasBalance(): boolean;
150
+ clearBalance(): void;
151
+ getBalance(): Uint8Array | string;
152
+ getBalance_asU8(): Uint8Array;
153
+ getBalance_asB64(): string;
154
+ setBalance(value: Uint8Array | string): void;
155
+
156
+ serializeBinary(): Uint8Array;
157
+ toObject(includeInstance?: boolean): ParentBlock.AsObject;
158
+ static toObject(includeInstance: boolean, msg: ParentBlock): ParentBlock.AsObject;
159
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
160
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
161
+ static serializeBinaryToWriter(message: ParentBlock, writer: jspb.BinaryWriter): void;
162
+ static deserializeBinary(bytes: Uint8Array): ParentBlock;
163
+ static deserializeBinaryFromReader(message: ParentBlock, reader: jspb.BinaryReader): ParentBlock;
164
+ }
165
+
166
+ export namespace ParentBlock {
167
+ export type AsObject = {
168
+ parentHash: Uint8Array | string,
169
+ link: Uint8Array | string,
170
+ representative?: string,
171
+ balance: Uint8Array | string,
172
+ }
173
+ }
174
+ }
175
+
176
+ export class NanoSignedTx extends jspb.Message {
177
+ hasSignature(): boolean;
178
+ clearSignature(): void;
179
+ getSignature(): Uint8Array | string;
180
+ getSignature_asU8(): Uint8Array;
181
+ getSignature_asB64(): string;
182
+ setSignature(value: Uint8Array | string): void;
183
+
184
+ hasBlockHash(): boolean;
185
+ clearBlockHash(): void;
186
+ getBlockHash(): Uint8Array | string;
187
+ getBlockHash_asU8(): Uint8Array;
188
+ getBlockHash_asB64(): string;
189
+ setBlockHash(value: Uint8Array | string): void;
190
+
191
+ serializeBinary(): Uint8Array;
192
+ toObject(includeInstance?: boolean): NanoSignedTx.AsObject;
193
+ static toObject(includeInstance: boolean, msg: NanoSignedTx): NanoSignedTx.AsObject;
194
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
195
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
196
+ static serializeBinaryToWriter(message: NanoSignedTx, writer: jspb.BinaryWriter): void;
197
+ static deserializeBinary(bytes: Uint8Array): NanoSignedTx;
198
+ static deserializeBinaryFromReader(message: NanoSignedTx, reader: jspb.BinaryReader): NanoSignedTx;
199
+ }
200
+
201
+ export namespace NanoSignedTx {
202
+ export type AsObject = {
203
+ signature: Uint8Array | string,
204
+ blockHash: Uint8Array | string,
205
+ }
206
+ }
207
+
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
23
17
 
24
18
  goog.exportSymbol('proto.NanoAddress', null, global);
25
19
  goog.exportSymbol('proto.NanoGetAddress', null, global);