@dashevo/dapi-grpc 0.24.0-dev.5 → 0.25.0-dev.1
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/README.md +3 -3
- package/browser.js +13 -5
- package/clients/core/v0/nodejs/CorePromiseClient.js +2 -1
- package/clients/core/v0/nodejs/core_protoc.js +33 -33
- package/clients/core/v0/web/CorePromiseClient.js +159 -0
- package/clients/core/v0/web/core_pb.d.ts +783 -0
- package/clients/core/v0/web/core_pb.js +33 -33
- package/clients/core/v0/web/core_pb_service.d.ts +161 -0
- package/clients/core/v0/web/core_pb_service.js +317 -0
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +2 -1
- package/clients/platform/v0/nodejs/platform_pbjs.js +348 -20
- package/clients/platform/v0/nodejs/platform_protoc.js +131 -39
- package/clients/platform/v0/web/PlatformPromiseClient.js +130 -0
- package/clients/platform/v0/web/platform_pb.d.ts +608 -0
- package/clients/platform/v0/web/platform_pb.js +131 -39
- package/clients/platform/v0/web/platform_pb_service.d.ts +177 -0
- package/clients/platform/v0/web/platform_pb_service.js +301 -0
- package/lib/utils/parseMetadata.js +27 -0
- package/node.js +4 -0
- package/package.json +4 -4
- package/protos/platform/v0/platform.proto +6 -1
- package/scripts/build.sh +3 -3
- package/scripts/patch-protobuf-js.sh +30 -0
- package/clients/core/v0/web/core_grpc_web_pb.js +0 -499
- package/clients/platform/v0/web/platform_grpc_web_pb.js +0 -509
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
// package: org.dash.platform.dapi.v0
|
|
2
|
+
// file: platform.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
6
|
+
|
|
7
|
+
export class Proof extends jspb.Message {
|
|
8
|
+
getMerkleProof(): Uint8Array | string;
|
|
9
|
+
getMerkleProof_asU8(): Uint8Array;
|
|
10
|
+
getMerkleProof_asB64(): string;
|
|
11
|
+
setMerkleProof(value: Uint8Array | string): void;
|
|
12
|
+
|
|
13
|
+
getQuorumHash(): Uint8Array | string;
|
|
14
|
+
getQuorumHash_asU8(): Uint8Array;
|
|
15
|
+
getQuorumHash_asB64(): string;
|
|
16
|
+
setQuorumHash(value: Uint8Array | string): void;
|
|
17
|
+
|
|
18
|
+
getSignature(): Uint8Array | string;
|
|
19
|
+
getSignature_asU8(): Uint8Array;
|
|
20
|
+
getSignature_asB64(): string;
|
|
21
|
+
setSignature(value: Uint8Array | string): void;
|
|
22
|
+
|
|
23
|
+
getRound(): number;
|
|
24
|
+
setRound(value: number): void;
|
|
25
|
+
|
|
26
|
+
serializeBinary(): Uint8Array;
|
|
27
|
+
toObject(includeInstance?: boolean): Proof.AsObject;
|
|
28
|
+
static toObject(includeInstance: boolean, msg: Proof): Proof.AsObject;
|
|
29
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
30
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
31
|
+
static serializeBinaryToWriter(message: Proof, writer: jspb.BinaryWriter): void;
|
|
32
|
+
static deserializeBinary(bytes: Uint8Array): Proof;
|
|
33
|
+
static deserializeBinaryFromReader(message: Proof, reader: jspb.BinaryReader): Proof;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace Proof {
|
|
37
|
+
export type AsObject = {
|
|
38
|
+
merkleProof: Uint8Array | string,
|
|
39
|
+
quorumHash: Uint8Array | string,
|
|
40
|
+
signature: Uint8Array | string,
|
|
41
|
+
round: number,
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class ResponseMetadata extends jspb.Message {
|
|
46
|
+
getHeight(): number;
|
|
47
|
+
setHeight(value: number): void;
|
|
48
|
+
|
|
49
|
+
getCoreChainLockedHeight(): number;
|
|
50
|
+
setCoreChainLockedHeight(value: number): void;
|
|
51
|
+
|
|
52
|
+
getTimeMs(): number;
|
|
53
|
+
setTimeMs(value: number): void;
|
|
54
|
+
|
|
55
|
+
getProtocolVersion(): number;
|
|
56
|
+
setProtocolVersion(value: number): void;
|
|
57
|
+
|
|
58
|
+
serializeBinary(): Uint8Array;
|
|
59
|
+
toObject(includeInstance?: boolean): ResponseMetadata.AsObject;
|
|
60
|
+
static toObject(includeInstance: boolean, msg: ResponseMetadata): ResponseMetadata.AsObject;
|
|
61
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
62
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
63
|
+
static serializeBinaryToWriter(message: ResponseMetadata, writer: jspb.BinaryWriter): void;
|
|
64
|
+
static deserializeBinary(bytes: Uint8Array): ResponseMetadata;
|
|
65
|
+
static deserializeBinaryFromReader(message: ResponseMetadata, reader: jspb.BinaryReader): ResponseMetadata;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace ResponseMetadata {
|
|
69
|
+
export type AsObject = {
|
|
70
|
+
height: number,
|
|
71
|
+
coreChainLockedHeight: number,
|
|
72
|
+
timeMs: number,
|
|
73
|
+
protocolVersion: number,
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class StateTransitionBroadcastError extends jspb.Message {
|
|
78
|
+
getCode(): number;
|
|
79
|
+
setCode(value: number): void;
|
|
80
|
+
|
|
81
|
+
getMessage(): string;
|
|
82
|
+
setMessage(value: string): void;
|
|
83
|
+
|
|
84
|
+
getData(): Uint8Array | string;
|
|
85
|
+
getData_asU8(): Uint8Array;
|
|
86
|
+
getData_asB64(): string;
|
|
87
|
+
setData(value: Uint8Array | string): void;
|
|
88
|
+
|
|
89
|
+
serializeBinary(): Uint8Array;
|
|
90
|
+
toObject(includeInstance?: boolean): StateTransitionBroadcastError.AsObject;
|
|
91
|
+
static toObject(includeInstance: boolean, msg: StateTransitionBroadcastError): StateTransitionBroadcastError.AsObject;
|
|
92
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
93
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
94
|
+
static serializeBinaryToWriter(message: StateTransitionBroadcastError, writer: jspb.BinaryWriter): void;
|
|
95
|
+
static deserializeBinary(bytes: Uint8Array): StateTransitionBroadcastError;
|
|
96
|
+
static deserializeBinaryFromReader(message: StateTransitionBroadcastError, reader: jspb.BinaryReader): StateTransitionBroadcastError;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace StateTransitionBroadcastError {
|
|
100
|
+
export type AsObject = {
|
|
101
|
+
code: number,
|
|
102
|
+
message: string,
|
|
103
|
+
data: Uint8Array | string,
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export class BroadcastStateTransitionRequest extends jspb.Message {
|
|
108
|
+
getStateTransition(): Uint8Array | string;
|
|
109
|
+
getStateTransition_asU8(): Uint8Array;
|
|
110
|
+
getStateTransition_asB64(): string;
|
|
111
|
+
setStateTransition(value: Uint8Array | string): void;
|
|
112
|
+
|
|
113
|
+
serializeBinary(): Uint8Array;
|
|
114
|
+
toObject(includeInstance?: boolean): BroadcastStateTransitionRequest.AsObject;
|
|
115
|
+
static toObject(includeInstance: boolean, msg: BroadcastStateTransitionRequest): BroadcastStateTransitionRequest.AsObject;
|
|
116
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
117
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
118
|
+
static serializeBinaryToWriter(message: BroadcastStateTransitionRequest, writer: jspb.BinaryWriter): void;
|
|
119
|
+
static deserializeBinary(bytes: Uint8Array): BroadcastStateTransitionRequest;
|
|
120
|
+
static deserializeBinaryFromReader(message: BroadcastStateTransitionRequest, reader: jspb.BinaryReader): BroadcastStateTransitionRequest;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export namespace BroadcastStateTransitionRequest {
|
|
124
|
+
export type AsObject = {
|
|
125
|
+
stateTransition: Uint8Array | string,
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class BroadcastStateTransitionResponse extends jspb.Message {
|
|
130
|
+
serializeBinary(): Uint8Array;
|
|
131
|
+
toObject(includeInstance?: boolean): BroadcastStateTransitionResponse.AsObject;
|
|
132
|
+
static toObject(includeInstance: boolean, msg: BroadcastStateTransitionResponse): BroadcastStateTransitionResponse.AsObject;
|
|
133
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
134
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
135
|
+
static serializeBinaryToWriter(message: BroadcastStateTransitionResponse, writer: jspb.BinaryWriter): void;
|
|
136
|
+
static deserializeBinary(bytes: Uint8Array): BroadcastStateTransitionResponse;
|
|
137
|
+
static deserializeBinaryFromReader(message: BroadcastStateTransitionResponse, reader: jspb.BinaryReader): BroadcastStateTransitionResponse;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export namespace BroadcastStateTransitionResponse {
|
|
141
|
+
export type AsObject = {
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class GetIdentityRequest extends jspb.Message {
|
|
146
|
+
getId(): Uint8Array | string;
|
|
147
|
+
getId_asU8(): Uint8Array;
|
|
148
|
+
getId_asB64(): string;
|
|
149
|
+
setId(value: Uint8Array | string): void;
|
|
150
|
+
|
|
151
|
+
getProve(): boolean;
|
|
152
|
+
setProve(value: boolean): void;
|
|
153
|
+
|
|
154
|
+
serializeBinary(): Uint8Array;
|
|
155
|
+
toObject(includeInstance?: boolean): GetIdentityRequest.AsObject;
|
|
156
|
+
static toObject(includeInstance: boolean, msg: GetIdentityRequest): GetIdentityRequest.AsObject;
|
|
157
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
158
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
159
|
+
static serializeBinaryToWriter(message: GetIdentityRequest, writer: jspb.BinaryWriter): void;
|
|
160
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityRequest;
|
|
161
|
+
static deserializeBinaryFromReader(message: GetIdentityRequest, reader: jspb.BinaryReader): GetIdentityRequest;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export namespace GetIdentityRequest {
|
|
165
|
+
export type AsObject = {
|
|
166
|
+
id: Uint8Array | string,
|
|
167
|
+
prove: boolean,
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export class GetIdentityResponse extends jspb.Message {
|
|
172
|
+
getIdentity(): Uint8Array | string;
|
|
173
|
+
getIdentity_asU8(): Uint8Array;
|
|
174
|
+
getIdentity_asB64(): string;
|
|
175
|
+
setIdentity(value: Uint8Array | string): void;
|
|
176
|
+
|
|
177
|
+
hasProof(): boolean;
|
|
178
|
+
clearProof(): void;
|
|
179
|
+
getProof(): Proof | undefined;
|
|
180
|
+
setProof(value?: Proof): void;
|
|
181
|
+
|
|
182
|
+
hasMetadata(): boolean;
|
|
183
|
+
clearMetadata(): void;
|
|
184
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
185
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
186
|
+
|
|
187
|
+
serializeBinary(): Uint8Array;
|
|
188
|
+
toObject(includeInstance?: boolean): GetIdentityResponse.AsObject;
|
|
189
|
+
static toObject(includeInstance: boolean, msg: GetIdentityResponse): GetIdentityResponse.AsObject;
|
|
190
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
191
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
192
|
+
static serializeBinaryToWriter(message: GetIdentityResponse, writer: jspb.BinaryWriter): void;
|
|
193
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentityResponse;
|
|
194
|
+
static deserializeBinaryFromReader(message: GetIdentityResponse, reader: jspb.BinaryReader): GetIdentityResponse;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export namespace GetIdentityResponse {
|
|
198
|
+
export type AsObject = {
|
|
199
|
+
identity: Uint8Array | string,
|
|
200
|
+
proof?: Proof.AsObject,
|
|
201
|
+
metadata?: ResponseMetadata.AsObject,
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export class GetDataContractRequest extends jspb.Message {
|
|
206
|
+
getId(): Uint8Array | string;
|
|
207
|
+
getId_asU8(): Uint8Array;
|
|
208
|
+
getId_asB64(): string;
|
|
209
|
+
setId(value: Uint8Array | string): void;
|
|
210
|
+
|
|
211
|
+
getProve(): boolean;
|
|
212
|
+
setProve(value: boolean): void;
|
|
213
|
+
|
|
214
|
+
serializeBinary(): Uint8Array;
|
|
215
|
+
toObject(includeInstance?: boolean): GetDataContractRequest.AsObject;
|
|
216
|
+
static toObject(includeInstance: boolean, msg: GetDataContractRequest): GetDataContractRequest.AsObject;
|
|
217
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
218
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
219
|
+
static serializeBinaryToWriter(message: GetDataContractRequest, writer: jspb.BinaryWriter): void;
|
|
220
|
+
static deserializeBinary(bytes: Uint8Array): GetDataContractRequest;
|
|
221
|
+
static deserializeBinaryFromReader(message: GetDataContractRequest, reader: jspb.BinaryReader): GetDataContractRequest;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export namespace GetDataContractRequest {
|
|
225
|
+
export type AsObject = {
|
|
226
|
+
id: Uint8Array | string,
|
|
227
|
+
prove: boolean,
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export class GetDataContractResponse extends jspb.Message {
|
|
232
|
+
getDataContract(): Uint8Array | string;
|
|
233
|
+
getDataContract_asU8(): Uint8Array;
|
|
234
|
+
getDataContract_asB64(): string;
|
|
235
|
+
setDataContract(value: Uint8Array | string): void;
|
|
236
|
+
|
|
237
|
+
hasProof(): boolean;
|
|
238
|
+
clearProof(): void;
|
|
239
|
+
getProof(): Proof | undefined;
|
|
240
|
+
setProof(value?: Proof): void;
|
|
241
|
+
|
|
242
|
+
hasMetadata(): boolean;
|
|
243
|
+
clearMetadata(): void;
|
|
244
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
245
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
246
|
+
|
|
247
|
+
serializeBinary(): Uint8Array;
|
|
248
|
+
toObject(includeInstance?: boolean): GetDataContractResponse.AsObject;
|
|
249
|
+
static toObject(includeInstance: boolean, msg: GetDataContractResponse): GetDataContractResponse.AsObject;
|
|
250
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
251
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
252
|
+
static serializeBinaryToWriter(message: GetDataContractResponse, writer: jspb.BinaryWriter): void;
|
|
253
|
+
static deserializeBinary(bytes: Uint8Array): GetDataContractResponse;
|
|
254
|
+
static deserializeBinaryFromReader(message: GetDataContractResponse, reader: jspb.BinaryReader): GetDataContractResponse;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export namespace GetDataContractResponse {
|
|
258
|
+
export type AsObject = {
|
|
259
|
+
dataContract: Uint8Array | string,
|
|
260
|
+
proof?: Proof.AsObject,
|
|
261
|
+
metadata?: ResponseMetadata.AsObject,
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export class GetDocumentsRequest extends jspb.Message {
|
|
266
|
+
getDataContractId(): Uint8Array | string;
|
|
267
|
+
getDataContractId_asU8(): Uint8Array;
|
|
268
|
+
getDataContractId_asB64(): string;
|
|
269
|
+
setDataContractId(value: Uint8Array | string): void;
|
|
270
|
+
|
|
271
|
+
getDocumentType(): string;
|
|
272
|
+
setDocumentType(value: string): void;
|
|
273
|
+
|
|
274
|
+
getWhere(): Uint8Array | string;
|
|
275
|
+
getWhere_asU8(): Uint8Array;
|
|
276
|
+
getWhere_asB64(): string;
|
|
277
|
+
setWhere(value: Uint8Array | string): void;
|
|
278
|
+
|
|
279
|
+
getOrderBy(): Uint8Array | string;
|
|
280
|
+
getOrderBy_asU8(): Uint8Array;
|
|
281
|
+
getOrderBy_asB64(): string;
|
|
282
|
+
setOrderBy(value: Uint8Array | string): void;
|
|
283
|
+
|
|
284
|
+
getLimit(): number;
|
|
285
|
+
setLimit(value: number): void;
|
|
286
|
+
|
|
287
|
+
hasStartAfter(): boolean;
|
|
288
|
+
clearStartAfter(): void;
|
|
289
|
+
getStartAfter(): Uint8Array | string;
|
|
290
|
+
getStartAfter_asU8(): Uint8Array;
|
|
291
|
+
getStartAfter_asB64(): string;
|
|
292
|
+
setStartAfter(value: Uint8Array | string): void;
|
|
293
|
+
|
|
294
|
+
hasStartAt(): boolean;
|
|
295
|
+
clearStartAt(): void;
|
|
296
|
+
getStartAt(): Uint8Array | string;
|
|
297
|
+
getStartAt_asU8(): Uint8Array;
|
|
298
|
+
getStartAt_asB64(): string;
|
|
299
|
+
setStartAt(value: Uint8Array | string): void;
|
|
300
|
+
|
|
301
|
+
getProve(): boolean;
|
|
302
|
+
setProve(value: boolean): void;
|
|
303
|
+
|
|
304
|
+
getStartCase(): GetDocumentsRequest.StartCase;
|
|
305
|
+
serializeBinary(): Uint8Array;
|
|
306
|
+
toObject(includeInstance?: boolean): GetDocumentsRequest.AsObject;
|
|
307
|
+
static toObject(includeInstance: boolean, msg: GetDocumentsRequest): GetDocumentsRequest.AsObject;
|
|
308
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
309
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
310
|
+
static serializeBinaryToWriter(message: GetDocumentsRequest, writer: jspb.BinaryWriter): void;
|
|
311
|
+
static deserializeBinary(bytes: Uint8Array): GetDocumentsRequest;
|
|
312
|
+
static deserializeBinaryFromReader(message: GetDocumentsRequest, reader: jspb.BinaryReader): GetDocumentsRequest;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export namespace GetDocumentsRequest {
|
|
316
|
+
export type AsObject = {
|
|
317
|
+
dataContractId: Uint8Array | string,
|
|
318
|
+
documentType: string,
|
|
319
|
+
where: Uint8Array | string,
|
|
320
|
+
orderBy: Uint8Array | string,
|
|
321
|
+
limit: number,
|
|
322
|
+
startAfter: Uint8Array | string,
|
|
323
|
+
startAt: Uint8Array | string,
|
|
324
|
+
prove: boolean,
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export enum StartCase {
|
|
328
|
+
START_NOT_SET = 0,
|
|
329
|
+
START_AFTER = 6,
|
|
330
|
+
START_AT = 7,
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export class GetDocumentsResponse extends jspb.Message {
|
|
335
|
+
clearDocumentsList(): void;
|
|
336
|
+
getDocumentsList(): Array<Uint8Array | string>;
|
|
337
|
+
getDocumentsList_asU8(): Array<Uint8Array>;
|
|
338
|
+
getDocumentsList_asB64(): Array<string>;
|
|
339
|
+
setDocumentsList(value: Array<Uint8Array | string>): void;
|
|
340
|
+
addDocuments(value: Uint8Array | string, index?: number): Uint8Array | string;
|
|
341
|
+
|
|
342
|
+
hasProof(): boolean;
|
|
343
|
+
clearProof(): void;
|
|
344
|
+
getProof(): Proof | undefined;
|
|
345
|
+
setProof(value?: Proof): void;
|
|
346
|
+
|
|
347
|
+
hasMetadata(): boolean;
|
|
348
|
+
clearMetadata(): void;
|
|
349
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
350
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
351
|
+
|
|
352
|
+
serializeBinary(): Uint8Array;
|
|
353
|
+
toObject(includeInstance?: boolean): GetDocumentsResponse.AsObject;
|
|
354
|
+
static toObject(includeInstance: boolean, msg: GetDocumentsResponse): GetDocumentsResponse.AsObject;
|
|
355
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
356
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
357
|
+
static serializeBinaryToWriter(message: GetDocumentsResponse, writer: jspb.BinaryWriter): void;
|
|
358
|
+
static deserializeBinary(bytes: Uint8Array): GetDocumentsResponse;
|
|
359
|
+
static deserializeBinaryFromReader(message: GetDocumentsResponse, reader: jspb.BinaryReader): GetDocumentsResponse;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export namespace GetDocumentsResponse {
|
|
363
|
+
export type AsObject = {
|
|
364
|
+
documentsList: Array<Uint8Array | string>,
|
|
365
|
+
proof?: Proof.AsObject,
|
|
366
|
+
metadata?: ResponseMetadata.AsObject,
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export class GetIdentitiesByPublicKeyHashesRequest extends jspb.Message {
|
|
371
|
+
clearPublicKeyHashesList(): void;
|
|
372
|
+
getPublicKeyHashesList(): Array<Uint8Array | string>;
|
|
373
|
+
getPublicKeyHashesList_asU8(): Array<Uint8Array>;
|
|
374
|
+
getPublicKeyHashesList_asB64(): Array<string>;
|
|
375
|
+
setPublicKeyHashesList(value: Array<Uint8Array | string>): void;
|
|
376
|
+
addPublicKeyHashes(value: Uint8Array | string, index?: number): Uint8Array | string;
|
|
377
|
+
|
|
378
|
+
getProve(): boolean;
|
|
379
|
+
setProve(value: boolean): void;
|
|
380
|
+
|
|
381
|
+
serializeBinary(): Uint8Array;
|
|
382
|
+
toObject(includeInstance?: boolean): GetIdentitiesByPublicKeyHashesRequest.AsObject;
|
|
383
|
+
static toObject(includeInstance: boolean, msg: GetIdentitiesByPublicKeyHashesRequest): GetIdentitiesByPublicKeyHashesRequest.AsObject;
|
|
384
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
385
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
386
|
+
static serializeBinaryToWriter(message: GetIdentitiesByPublicKeyHashesRequest, writer: jspb.BinaryWriter): void;
|
|
387
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentitiesByPublicKeyHashesRequest;
|
|
388
|
+
static deserializeBinaryFromReader(message: GetIdentitiesByPublicKeyHashesRequest, reader: jspb.BinaryReader): GetIdentitiesByPublicKeyHashesRequest;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export namespace GetIdentitiesByPublicKeyHashesRequest {
|
|
392
|
+
export type AsObject = {
|
|
393
|
+
publicKeyHashesList: Array<Uint8Array | string>,
|
|
394
|
+
prove: boolean,
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export class GetIdentitiesByPublicKeyHashesResponse extends jspb.Message {
|
|
399
|
+
clearIdentitiesList(): void;
|
|
400
|
+
getIdentitiesList(): Array<Uint8Array | string>;
|
|
401
|
+
getIdentitiesList_asU8(): Array<Uint8Array>;
|
|
402
|
+
getIdentitiesList_asB64(): Array<string>;
|
|
403
|
+
setIdentitiesList(value: Array<Uint8Array | string>): void;
|
|
404
|
+
addIdentities(value: Uint8Array | string, index?: number): Uint8Array | string;
|
|
405
|
+
|
|
406
|
+
hasProof(): boolean;
|
|
407
|
+
clearProof(): void;
|
|
408
|
+
getProof(): Proof | undefined;
|
|
409
|
+
setProof(value?: Proof): void;
|
|
410
|
+
|
|
411
|
+
hasMetadata(): boolean;
|
|
412
|
+
clearMetadata(): void;
|
|
413
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
414
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
415
|
+
|
|
416
|
+
serializeBinary(): Uint8Array;
|
|
417
|
+
toObject(includeInstance?: boolean): GetIdentitiesByPublicKeyHashesResponse.AsObject;
|
|
418
|
+
static toObject(includeInstance: boolean, msg: GetIdentitiesByPublicKeyHashesResponse): GetIdentitiesByPublicKeyHashesResponse.AsObject;
|
|
419
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
420
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
421
|
+
static serializeBinaryToWriter(message: GetIdentitiesByPublicKeyHashesResponse, writer: jspb.BinaryWriter): void;
|
|
422
|
+
static deserializeBinary(bytes: Uint8Array): GetIdentitiesByPublicKeyHashesResponse;
|
|
423
|
+
static deserializeBinaryFromReader(message: GetIdentitiesByPublicKeyHashesResponse, reader: jspb.BinaryReader): GetIdentitiesByPublicKeyHashesResponse;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export namespace GetIdentitiesByPublicKeyHashesResponse {
|
|
427
|
+
export type AsObject = {
|
|
428
|
+
identitiesList: Array<Uint8Array | string>,
|
|
429
|
+
proof?: Proof.AsObject,
|
|
430
|
+
metadata?: ResponseMetadata.AsObject,
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export class WaitForStateTransitionResultRequest extends jspb.Message {
|
|
435
|
+
getStateTransitionHash(): Uint8Array | string;
|
|
436
|
+
getStateTransitionHash_asU8(): Uint8Array;
|
|
437
|
+
getStateTransitionHash_asB64(): string;
|
|
438
|
+
setStateTransitionHash(value: Uint8Array | string): void;
|
|
439
|
+
|
|
440
|
+
getProve(): boolean;
|
|
441
|
+
setProve(value: boolean): void;
|
|
442
|
+
|
|
443
|
+
serializeBinary(): Uint8Array;
|
|
444
|
+
toObject(includeInstance?: boolean): WaitForStateTransitionResultRequest.AsObject;
|
|
445
|
+
static toObject(includeInstance: boolean, msg: WaitForStateTransitionResultRequest): WaitForStateTransitionResultRequest.AsObject;
|
|
446
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
447
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
448
|
+
static serializeBinaryToWriter(message: WaitForStateTransitionResultRequest, writer: jspb.BinaryWriter): void;
|
|
449
|
+
static deserializeBinary(bytes: Uint8Array): WaitForStateTransitionResultRequest;
|
|
450
|
+
static deserializeBinaryFromReader(message: WaitForStateTransitionResultRequest, reader: jspb.BinaryReader): WaitForStateTransitionResultRequest;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export namespace WaitForStateTransitionResultRequest {
|
|
454
|
+
export type AsObject = {
|
|
455
|
+
stateTransitionHash: Uint8Array | string,
|
|
456
|
+
prove: boolean,
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export class WaitForStateTransitionResultResponse extends jspb.Message {
|
|
461
|
+
hasError(): boolean;
|
|
462
|
+
clearError(): void;
|
|
463
|
+
getError(): StateTransitionBroadcastError | undefined;
|
|
464
|
+
setError(value?: StateTransitionBroadcastError): void;
|
|
465
|
+
|
|
466
|
+
hasProof(): boolean;
|
|
467
|
+
clearProof(): void;
|
|
468
|
+
getProof(): Proof | undefined;
|
|
469
|
+
setProof(value?: Proof): void;
|
|
470
|
+
|
|
471
|
+
hasMetadata(): boolean;
|
|
472
|
+
clearMetadata(): void;
|
|
473
|
+
getMetadata(): ResponseMetadata | undefined;
|
|
474
|
+
setMetadata(value?: ResponseMetadata): void;
|
|
475
|
+
|
|
476
|
+
getResponsesCase(): WaitForStateTransitionResultResponse.ResponsesCase;
|
|
477
|
+
serializeBinary(): Uint8Array;
|
|
478
|
+
toObject(includeInstance?: boolean): WaitForStateTransitionResultResponse.AsObject;
|
|
479
|
+
static toObject(includeInstance: boolean, msg: WaitForStateTransitionResultResponse): WaitForStateTransitionResultResponse.AsObject;
|
|
480
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
481
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
482
|
+
static serializeBinaryToWriter(message: WaitForStateTransitionResultResponse, writer: jspb.BinaryWriter): void;
|
|
483
|
+
static deserializeBinary(bytes: Uint8Array): WaitForStateTransitionResultResponse;
|
|
484
|
+
static deserializeBinaryFromReader(message: WaitForStateTransitionResultResponse, reader: jspb.BinaryReader): WaitForStateTransitionResultResponse;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export namespace WaitForStateTransitionResultResponse {
|
|
488
|
+
export type AsObject = {
|
|
489
|
+
error?: StateTransitionBroadcastError.AsObject,
|
|
490
|
+
proof?: Proof.AsObject,
|
|
491
|
+
metadata?: ResponseMetadata.AsObject,
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export enum ResponsesCase {
|
|
495
|
+
RESPONSES_NOT_SET = 0,
|
|
496
|
+
ERROR = 1,
|
|
497
|
+
PROOF = 2,
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export class ConsensusParamsBlock extends jspb.Message {
|
|
502
|
+
getMaxBytes(): string;
|
|
503
|
+
setMaxBytes(value: string): void;
|
|
504
|
+
|
|
505
|
+
getMaxGas(): string;
|
|
506
|
+
setMaxGas(value: string): void;
|
|
507
|
+
|
|
508
|
+
getTimeIotaMs(): string;
|
|
509
|
+
setTimeIotaMs(value: string): void;
|
|
510
|
+
|
|
511
|
+
serializeBinary(): Uint8Array;
|
|
512
|
+
toObject(includeInstance?: boolean): ConsensusParamsBlock.AsObject;
|
|
513
|
+
static toObject(includeInstance: boolean, msg: ConsensusParamsBlock): ConsensusParamsBlock.AsObject;
|
|
514
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
515
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
516
|
+
static serializeBinaryToWriter(message: ConsensusParamsBlock, writer: jspb.BinaryWriter): void;
|
|
517
|
+
static deserializeBinary(bytes: Uint8Array): ConsensusParamsBlock;
|
|
518
|
+
static deserializeBinaryFromReader(message: ConsensusParamsBlock, reader: jspb.BinaryReader): ConsensusParamsBlock;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export namespace ConsensusParamsBlock {
|
|
522
|
+
export type AsObject = {
|
|
523
|
+
maxBytes: string,
|
|
524
|
+
maxGas: string,
|
|
525
|
+
timeIotaMs: string,
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export class ConsensusParamsEvidence extends jspb.Message {
|
|
530
|
+
getMaxAgeNumBlocks(): string;
|
|
531
|
+
setMaxAgeNumBlocks(value: string): void;
|
|
532
|
+
|
|
533
|
+
getMaxAgeDuration(): string;
|
|
534
|
+
setMaxAgeDuration(value: string): void;
|
|
535
|
+
|
|
536
|
+
getMaxBytes(): string;
|
|
537
|
+
setMaxBytes(value: string): void;
|
|
538
|
+
|
|
539
|
+
serializeBinary(): Uint8Array;
|
|
540
|
+
toObject(includeInstance?: boolean): ConsensusParamsEvidence.AsObject;
|
|
541
|
+
static toObject(includeInstance: boolean, msg: ConsensusParamsEvidence): ConsensusParamsEvidence.AsObject;
|
|
542
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
543
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
544
|
+
static serializeBinaryToWriter(message: ConsensusParamsEvidence, writer: jspb.BinaryWriter): void;
|
|
545
|
+
static deserializeBinary(bytes: Uint8Array): ConsensusParamsEvidence;
|
|
546
|
+
static deserializeBinaryFromReader(message: ConsensusParamsEvidence, reader: jspb.BinaryReader): ConsensusParamsEvidence;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export namespace ConsensusParamsEvidence {
|
|
550
|
+
export type AsObject = {
|
|
551
|
+
maxAgeNumBlocks: string,
|
|
552
|
+
maxAgeDuration: string,
|
|
553
|
+
maxBytes: string,
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export class GetConsensusParamsRequest extends jspb.Message {
|
|
558
|
+
getHeight(): number;
|
|
559
|
+
setHeight(value: number): void;
|
|
560
|
+
|
|
561
|
+
getProve(): boolean;
|
|
562
|
+
setProve(value: boolean): void;
|
|
563
|
+
|
|
564
|
+
serializeBinary(): Uint8Array;
|
|
565
|
+
toObject(includeInstance?: boolean): GetConsensusParamsRequest.AsObject;
|
|
566
|
+
static toObject(includeInstance: boolean, msg: GetConsensusParamsRequest): GetConsensusParamsRequest.AsObject;
|
|
567
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
568
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
569
|
+
static serializeBinaryToWriter(message: GetConsensusParamsRequest, writer: jspb.BinaryWriter): void;
|
|
570
|
+
static deserializeBinary(bytes: Uint8Array): GetConsensusParamsRequest;
|
|
571
|
+
static deserializeBinaryFromReader(message: GetConsensusParamsRequest, reader: jspb.BinaryReader): GetConsensusParamsRequest;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export namespace GetConsensusParamsRequest {
|
|
575
|
+
export type AsObject = {
|
|
576
|
+
height: number,
|
|
577
|
+
prove: boolean,
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export class GetConsensusParamsResponse extends jspb.Message {
|
|
582
|
+
hasBlock(): boolean;
|
|
583
|
+
clearBlock(): void;
|
|
584
|
+
getBlock(): ConsensusParamsBlock | undefined;
|
|
585
|
+
setBlock(value?: ConsensusParamsBlock): void;
|
|
586
|
+
|
|
587
|
+
hasEvidence(): boolean;
|
|
588
|
+
clearEvidence(): void;
|
|
589
|
+
getEvidence(): ConsensusParamsEvidence | undefined;
|
|
590
|
+
setEvidence(value?: ConsensusParamsEvidence): void;
|
|
591
|
+
|
|
592
|
+
serializeBinary(): Uint8Array;
|
|
593
|
+
toObject(includeInstance?: boolean): GetConsensusParamsResponse.AsObject;
|
|
594
|
+
static toObject(includeInstance: boolean, msg: GetConsensusParamsResponse): GetConsensusParamsResponse.AsObject;
|
|
595
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
596
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
597
|
+
static serializeBinaryToWriter(message: GetConsensusParamsResponse, writer: jspb.BinaryWriter): void;
|
|
598
|
+
static deserializeBinary(bytes: Uint8Array): GetConsensusParamsResponse;
|
|
599
|
+
static deserializeBinaryFromReader(message: GetConsensusParamsResponse, reader: jspb.BinaryReader): GetConsensusParamsResponse;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export namespace GetConsensusParamsResponse {
|
|
603
|
+
export type AsObject = {
|
|
604
|
+
block?: ConsensusParamsBlock.AsObject,
|
|
605
|
+
evidence?: ConsensusParamsEvidence.AsObject,
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|