@dashevo/dapi-grpc 0.25.21 → 1.0.0-beta.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/Cargo.toml +35 -16
- package/build.rs +139 -56
- package/clients/core/v0/nodejs/CorePromiseClient.js +124 -13
- package/clients/core/v0/nodejs/core_pbjs.js +1922 -987
- package/clients/core/v0/nodejs/core_protoc.js +1291 -645
- package/clients/core/v0/rust/core_example.rs +1 -1
- package/clients/core/v0/web/CorePromiseClient.js +49 -5
- package/clients/core/v0/web/core_pb.d.ts +173 -89
- package/clients/core/v0/web/core_pb.js +1291 -645
- package/clients/core/v0/web/core_pb_service.d.ts +59 -10
- package/clients/core/v0/web/core_pb_service.js +134 -6
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +208 -14
- package/clients/platform/v0/nodejs/platform_pbjs.js +22951 -9938
- package/clients/platform/v0/nodejs/platform_protoc.js +22332 -9091
- package/clients/platform/v0/rust/platform_example.rs +1 -1
- package/clients/platform/v0/web/PlatformPromiseClient.js +64 -8
- package/clients/platform/v0/web/platform_pb.d.ts +2057 -302
- package/clients/platform/v0/web/platform_pb.js +22332 -9091
- package/clients/platform/v0/web/platform_pb_service.d.ts +187 -35
- package/clients/platform/v0/web/platform_pb_service.js +355 -35
- package/package.json +2 -2
- package/protos/core/v0/core.proto +45 -23
- package/protos/platform/v0/platform.proto +429 -50
- package/src/lib.rs +26 -2
- package/src/mock/serde_mockable.rs +105 -0
- package/src/mock.rs +130 -0
- package/test/unit/clients/core/v0/nodejs/CorePromiseClient.spec.js +27 -6
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +55 -1
- package/test/unit/getCoreDefinition.spec.js +5 -2
- package/src/core/proto/org.dash.platform.dapi.v0.rs +0 -666
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +0 -2481
|
@@ -52,15 +52,29 @@ class CorePromiseClient {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* @param {!
|
|
55
|
+
* @param {!GetBlockchainStatusRequest} getBlockchainStatusRequest
|
|
56
56
|
* @param {?Object<string, string>} metadata
|
|
57
|
-
* @return {Promise<!
|
|
57
|
+
* @return {Promise<!GetBlockchainStatusResponse>}
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
getBlockchainStatus(getBlockchainStatusRequest, metadata = {}) {
|
|
60
60
|
return promisify(
|
|
61
|
-
this.client.
|
|
61
|
+
this.client.getBlockchainStatus.bind(this.client),
|
|
62
62
|
)(
|
|
63
|
-
|
|
63
|
+
getBlockchainStatusRequest,
|
|
64
|
+
metadata,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @param {!GetMasternodeStatusRequest} getMasternodeStatusRequest
|
|
70
|
+
* @param {?Object<string, string>} metadata
|
|
71
|
+
* @return {Promise<!GetMasternodeStatusResponse>}
|
|
72
|
+
*/
|
|
73
|
+
getMasternodeStatus(getMasternodeStatusRequest, metadata = {}) {
|
|
74
|
+
return promisify(
|
|
75
|
+
this.client.getMasternodeStatus.bind(this.client),
|
|
76
|
+
)(
|
|
77
|
+
getMasternodeStatusRequest,
|
|
64
78
|
metadata,
|
|
65
79
|
);
|
|
66
80
|
}
|
|
@@ -79,6 +93,20 @@ class CorePromiseClient {
|
|
|
79
93
|
);
|
|
80
94
|
}
|
|
81
95
|
|
|
96
|
+
/**
|
|
97
|
+
* @param {!GetBestBlockHeightRequest} getBestBlockHeightRequest
|
|
98
|
+
* @param {?Object<string, string>} metadata
|
|
99
|
+
* @return {Promise<!GetBestBlockHeightResponse>}
|
|
100
|
+
*/
|
|
101
|
+
getBestBlockHeight(getBestBlockHeightRequest, metadata = {}) {
|
|
102
|
+
return promisify(
|
|
103
|
+
this.client.getBestBlockHeight.bind(this.client),
|
|
104
|
+
)(
|
|
105
|
+
getBestBlockHeightRequest,
|
|
106
|
+
metadata,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
82
110
|
/**
|
|
83
111
|
* @param {!BroadcastTransactionRequest} broadcastTransactionRequest
|
|
84
112
|
* @param {?Object<string, string>} metadata
|
|
@@ -154,6 +182,22 @@ class CorePromiseClient {
|
|
|
154
182
|
rewireStream(stream);
|
|
155
183
|
return stream;
|
|
156
184
|
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @param {MasternodeListRequest} masternodeListRequest The request proto
|
|
188
|
+
* @param {?Object<string, string>} metadata User defined call metadata
|
|
189
|
+
* @return {!grpc.web.ClientReadableStream<!MasternodeListResponse>|undefined}
|
|
190
|
+
*/
|
|
191
|
+
subscribeToMasternodeList(masternodeListRequest, metadata = {}) {
|
|
192
|
+
const stream = this.client.subscribeToMasternodeList(
|
|
193
|
+
masternodeListRequest,
|
|
194
|
+
metadata
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
rewireStream(stream);
|
|
198
|
+
|
|
199
|
+
return stream;
|
|
200
|
+
}
|
|
157
201
|
}
|
|
158
202
|
|
|
159
203
|
module.exports = CorePromiseClient;
|
|
@@ -3,73 +3,67 @@
|
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class GetBlockchainStatusRequest extends jspb.Message {
|
|
7
7
|
serializeBinary(): Uint8Array;
|
|
8
|
-
toObject(includeInstance?: boolean):
|
|
9
|
-
static toObject(includeInstance: boolean, msg:
|
|
8
|
+
toObject(includeInstance?: boolean): GetBlockchainStatusRequest.AsObject;
|
|
9
|
+
static toObject(includeInstance: boolean, msg: GetBlockchainStatusRequest): GetBlockchainStatusRequest.AsObject;
|
|
10
10
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
11
11
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
12
|
-
static serializeBinaryToWriter(message:
|
|
13
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
14
|
-
static deserializeBinaryFromReader(message:
|
|
12
|
+
static serializeBinaryToWriter(message: GetBlockchainStatusRequest, writer: jspb.BinaryWriter): void;
|
|
13
|
+
static deserializeBinary(bytes: Uint8Array): GetBlockchainStatusRequest;
|
|
14
|
+
static deserializeBinaryFromReader(message: GetBlockchainStatusRequest, reader: jspb.BinaryReader): GetBlockchainStatusRequest;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export namespace
|
|
17
|
+
export namespace GetBlockchainStatusRequest {
|
|
18
18
|
export type AsObject = {
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export class
|
|
22
|
+
export class GetBlockchainStatusResponse extends jspb.Message {
|
|
23
23
|
hasVersion(): boolean;
|
|
24
24
|
clearVersion(): void;
|
|
25
|
-
getVersion():
|
|
26
|
-
setVersion(value?:
|
|
25
|
+
getVersion(): GetBlockchainStatusResponse.Version | undefined;
|
|
26
|
+
setVersion(value?: GetBlockchainStatusResponse.Version): void;
|
|
27
27
|
|
|
28
28
|
hasTime(): boolean;
|
|
29
29
|
clearTime(): void;
|
|
30
|
-
getTime():
|
|
31
|
-
setTime(value?:
|
|
30
|
+
getTime(): GetBlockchainStatusResponse.Time | undefined;
|
|
31
|
+
setTime(value?: GetBlockchainStatusResponse.Time): void;
|
|
32
32
|
|
|
33
|
-
getStatus():
|
|
34
|
-
setStatus(value:
|
|
33
|
+
getStatus(): GetBlockchainStatusResponse.StatusMap[keyof GetBlockchainStatusResponse.StatusMap];
|
|
34
|
+
setStatus(value: GetBlockchainStatusResponse.StatusMap[keyof GetBlockchainStatusResponse.StatusMap]): void;
|
|
35
35
|
|
|
36
36
|
getSyncProgress(): number;
|
|
37
37
|
setSyncProgress(value: number): void;
|
|
38
38
|
|
|
39
39
|
hasChain(): boolean;
|
|
40
40
|
clearChain(): void;
|
|
41
|
-
getChain():
|
|
42
|
-
setChain(value?:
|
|
43
|
-
|
|
44
|
-
hasMasternode(): boolean;
|
|
45
|
-
clearMasternode(): void;
|
|
46
|
-
getMasternode(): GetStatusResponse.Masternode | undefined;
|
|
47
|
-
setMasternode(value?: GetStatusResponse.Masternode): void;
|
|
41
|
+
getChain(): GetBlockchainStatusResponse.Chain | undefined;
|
|
42
|
+
setChain(value?: GetBlockchainStatusResponse.Chain): void;
|
|
48
43
|
|
|
49
44
|
hasNetwork(): boolean;
|
|
50
45
|
clearNetwork(): void;
|
|
51
|
-
getNetwork():
|
|
52
|
-
setNetwork(value?:
|
|
46
|
+
getNetwork(): GetBlockchainStatusResponse.Network | undefined;
|
|
47
|
+
setNetwork(value?: GetBlockchainStatusResponse.Network): void;
|
|
53
48
|
|
|
54
49
|
serializeBinary(): Uint8Array;
|
|
55
|
-
toObject(includeInstance?: boolean):
|
|
56
|
-
static toObject(includeInstance: boolean, msg:
|
|
50
|
+
toObject(includeInstance?: boolean): GetBlockchainStatusResponse.AsObject;
|
|
51
|
+
static toObject(includeInstance: boolean, msg: GetBlockchainStatusResponse): GetBlockchainStatusResponse.AsObject;
|
|
57
52
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
58
53
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
59
|
-
static serializeBinaryToWriter(message:
|
|
60
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
61
|
-
static deserializeBinaryFromReader(message:
|
|
54
|
+
static serializeBinaryToWriter(message: GetBlockchainStatusResponse, writer: jspb.BinaryWriter): void;
|
|
55
|
+
static deserializeBinary(bytes: Uint8Array): GetBlockchainStatusResponse;
|
|
56
|
+
static deserializeBinaryFromReader(message: GetBlockchainStatusResponse, reader: jspb.BinaryReader): GetBlockchainStatusResponse;
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
export namespace
|
|
59
|
+
export namespace GetBlockchainStatusResponse {
|
|
65
60
|
export type AsObject = {
|
|
66
|
-
version?:
|
|
67
|
-
time?:
|
|
68
|
-
status:
|
|
61
|
+
version?: GetBlockchainStatusResponse.Version.AsObject,
|
|
62
|
+
time?: GetBlockchainStatusResponse.Time.AsObject,
|
|
63
|
+
status: GetBlockchainStatusResponse.StatusMap[keyof GetBlockchainStatusResponse.StatusMap],
|
|
69
64
|
syncProgress: number,
|
|
70
|
-
chain?:
|
|
71
|
-
|
|
72
|
-
network?: GetStatusResponse.Network.AsObject,
|
|
65
|
+
chain?: GetBlockchainStatusResponse.Chain.AsObject,
|
|
66
|
+
network?: GetBlockchainStatusResponse.Network.AsObject,
|
|
73
67
|
}
|
|
74
68
|
|
|
75
69
|
export class Version extends jspb.Message {
|
|
@@ -180,57 +174,6 @@ export namespace GetStatusResponse {
|
|
|
180
174
|
}
|
|
181
175
|
}
|
|
182
176
|
|
|
183
|
-
export class Masternode extends jspb.Message {
|
|
184
|
-
getStatus(): GetStatusResponse.Masternode.StatusMap[keyof GetStatusResponse.Masternode.StatusMap];
|
|
185
|
-
setStatus(value: GetStatusResponse.Masternode.StatusMap[keyof GetStatusResponse.Masternode.StatusMap]): void;
|
|
186
|
-
|
|
187
|
-
getProTxHash(): Uint8Array | string;
|
|
188
|
-
getProTxHash_asU8(): Uint8Array;
|
|
189
|
-
getProTxHash_asB64(): string;
|
|
190
|
-
setProTxHash(value: Uint8Array | string): void;
|
|
191
|
-
|
|
192
|
-
getPosePenalty(): number;
|
|
193
|
-
setPosePenalty(value: number): void;
|
|
194
|
-
|
|
195
|
-
getIsSynced(): boolean;
|
|
196
|
-
setIsSynced(value: boolean): void;
|
|
197
|
-
|
|
198
|
-
getSyncProgress(): number;
|
|
199
|
-
setSyncProgress(value: number): void;
|
|
200
|
-
|
|
201
|
-
serializeBinary(): Uint8Array;
|
|
202
|
-
toObject(includeInstance?: boolean): Masternode.AsObject;
|
|
203
|
-
static toObject(includeInstance: boolean, msg: Masternode): Masternode.AsObject;
|
|
204
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
205
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
206
|
-
static serializeBinaryToWriter(message: Masternode, writer: jspb.BinaryWriter): void;
|
|
207
|
-
static deserializeBinary(bytes: Uint8Array): Masternode;
|
|
208
|
-
static deserializeBinaryFromReader(message: Masternode, reader: jspb.BinaryReader): Masternode;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export namespace Masternode {
|
|
212
|
-
export type AsObject = {
|
|
213
|
-
status: GetStatusResponse.Masternode.StatusMap[keyof GetStatusResponse.Masternode.StatusMap],
|
|
214
|
-
proTxHash: Uint8Array | string,
|
|
215
|
-
posePenalty: number,
|
|
216
|
-
isSynced: boolean,
|
|
217
|
-
syncProgress: number,
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface StatusMap {
|
|
221
|
-
UNKNOWN: 0;
|
|
222
|
-
WAITING_FOR_PROTX: 1;
|
|
223
|
-
POSE_BANNED: 2;
|
|
224
|
-
REMOVED: 3;
|
|
225
|
-
OPERATOR_KEY_CHANGED: 4;
|
|
226
|
-
PROTX_IP_CHANGED: 5;
|
|
227
|
-
READY: 6;
|
|
228
|
-
ERROR: 7;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export const Status: StatusMap;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
177
|
export class NetworkFee extends jspb.Message {
|
|
235
178
|
getRelay(): number;
|
|
236
179
|
setRelay(value: number): void;
|
|
@@ -261,8 +204,8 @@ export namespace GetStatusResponse {
|
|
|
261
204
|
|
|
262
205
|
hasFee(): boolean;
|
|
263
206
|
clearFee(): void;
|
|
264
|
-
getFee():
|
|
265
|
-
setFee(value?:
|
|
207
|
+
getFee(): GetBlockchainStatusResponse.NetworkFee | undefined;
|
|
208
|
+
setFee(value?: GetBlockchainStatusResponse.NetworkFee): void;
|
|
266
209
|
|
|
267
210
|
serializeBinary(): Uint8Array;
|
|
268
211
|
toObject(includeInstance?: boolean): Network.AsObject;
|
|
@@ -277,7 +220,7 @@ export namespace GetStatusResponse {
|
|
|
277
220
|
export namespace Network {
|
|
278
221
|
export type AsObject = {
|
|
279
222
|
peersCount: number,
|
|
280
|
-
fee?:
|
|
223
|
+
fee?: GetBlockchainStatusResponse.NetworkFee.AsObject,
|
|
281
224
|
}
|
|
282
225
|
}
|
|
283
226
|
|
|
@@ -291,6 +234,73 @@ export namespace GetStatusResponse {
|
|
|
291
234
|
export const Status: StatusMap;
|
|
292
235
|
}
|
|
293
236
|
|
|
237
|
+
export class GetMasternodeStatusRequest extends jspb.Message {
|
|
238
|
+
serializeBinary(): Uint8Array;
|
|
239
|
+
toObject(includeInstance?: boolean): GetMasternodeStatusRequest.AsObject;
|
|
240
|
+
static toObject(includeInstance: boolean, msg: GetMasternodeStatusRequest): GetMasternodeStatusRequest.AsObject;
|
|
241
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
242
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
243
|
+
static serializeBinaryToWriter(message: GetMasternodeStatusRequest, writer: jspb.BinaryWriter): void;
|
|
244
|
+
static deserializeBinary(bytes: Uint8Array): GetMasternodeStatusRequest;
|
|
245
|
+
static deserializeBinaryFromReader(message: GetMasternodeStatusRequest, reader: jspb.BinaryReader): GetMasternodeStatusRequest;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export namespace GetMasternodeStatusRequest {
|
|
249
|
+
export type AsObject = {
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export class GetMasternodeStatusResponse extends jspb.Message {
|
|
254
|
+
getStatus(): GetMasternodeStatusResponse.StatusMap[keyof GetMasternodeStatusResponse.StatusMap];
|
|
255
|
+
setStatus(value: GetMasternodeStatusResponse.StatusMap[keyof GetMasternodeStatusResponse.StatusMap]): void;
|
|
256
|
+
|
|
257
|
+
getProTxHash(): Uint8Array | string;
|
|
258
|
+
getProTxHash_asU8(): Uint8Array;
|
|
259
|
+
getProTxHash_asB64(): string;
|
|
260
|
+
setProTxHash(value: Uint8Array | string): void;
|
|
261
|
+
|
|
262
|
+
getPosePenalty(): number;
|
|
263
|
+
setPosePenalty(value: number): void;
|
|
264
|
+
|
|
265
|
+
getIsSynced(): boolean;
|
|
266
|
+
setIsSynced(value: boolean): void;
|
|
267
|
+
|
|
268
|
+
getSyncProgress(): number;
|
|
269
|
+
setSyncProgress(value: number): void;
|
|
270
|
+
|
|
271
|
+
serializeBinary(): Uint8Array;
|
|
272
|
+
toObject(includeInstance?: boolean): GetMasternodeStatusResponse.AsObject;
|
|
273
|
+
static toObject(includeInstance: boolean, msg: GetMasternodeStatusResponse): GetMasternodeStatusResponse.AsObject;
|
|
274
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
275
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
276
|
+
static serializeBinaryToWriter(message: GetMasternodeStatusResponse, writer: jspb.BinaryWriter): void;
|
|
277
|
+
static deserializeBinary(bytes: Uint8Array): GetMasternodeStatusResponse;
|
|
278
|
+
static deserializeBinaryFromReader(message: GetMasternodeStatusResponse, reader: jspb.BinaryReader): GetMasternodeStatusResponse;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export namespace GetMasternodeStatusResponse {
|
|
282
|
+
export type AsObject = {
|
|
283
|
+
status: GetMasternodeStatusResponse.StatusMap[keyof GetMasternodeStatusResponse.StatusMap],
|
|
284
|
+
proTxHash: Uint8Array | string,
|
|
285
|
+
posePenalty: number,
|
|
286
|
+
isSynced: boolean,
|
|
287
|
+
syncProgress: number,
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface StatusMap {
|
|
291
|
+
UNKNOWN: 0;
|
|
292
|
+
WAITING_FOR_PROTX: 1;
|
|
293
|
+
POSE_BANNED: 2;
|
|
294
|
+
REMOVED: 3;
|
|
295
|
+
OPERATOR_KEY_CHANGED: 4;
|
|
296
|
+
PROTX_IP_CHANGED: 5;
|
|
297
|
+
READY: 6;
|
|
298
|
+
ERROR: 7;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export const Status: StatusMap;
|
|
302
|
+
}
|
|
303
|
+
|
|
294
304
|
export class GetBlockRequest extends jspb.Message {
|
|
295
305
|
hasHeight(): boolean;
|
|
296
306
|
clearHeight(): void;
|
|
@@ -348,6 +358,42 @@ export namespace GetBlockResponse {
|
|
|
348
358
|
}
|
|
349
359
|
}
|
|
350
360
|
|
|
361
|
+
export class GetBestBlockHeightRequest extends jspb.Message {
|
|
362
|
+
serializeBinary(): Uint8Array;
|
|
363
|
+
toObject(includeInstance?: boolean): GetBestBlockHeightRequest.AsObject;
|
|
364
|
+
static toObject(includeInstance: boolean, msg: GetBestBlockHeightRequest): GetBestBlockHeightRequest.AsObject;
|
|
365
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
366
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
367
|
+
static serializeBinaryToWriter(message: GetBestBlockHeightRequest, writer: jspb.BinaryWriter): void;
|
|
368
|
+
static deserializeBinary(bytes: Uint8Array): GetBestBlockHeightRequest;
|
|
369
|
+
static deserializeBinaryFromReader(message: GetBestBlockHeightRequest, reader: jspb.BinaryReader): GetBestBlockHeightRequest;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export namespace GetBestBlockHeightRequest {
|
|
373
|
+
export type AsObject = {
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export class GetBestBlockHeightResponse extends jspb.Message {
|
|
378
|
+
getHeight(): number;
|
|
379
|
+
setHeight(value: number): void;
|
|
380
|
+
|
|
381
|
+
serializeBinary(): Uint8Array;
|
|
382
|
+
toObject(includeInstance?: boolean): GetBestBlockHeightResponse.AsObject;
|
|
383
|
+
static toObject(includeInstance: boolean, msg: GetBestBlockHeightResponse): GetBestBlockHeightResponse.AsObject;
|
|
384
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
385
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
386
|
+
static serializeBinaryToWriter(message: GetBestBlockHeightResponse, writer: jspb.BinaryWriter): void;
|
|
387
|
+
static deserializeBinary(bytes: Uint8Array): GetBestBlockHeightResponse;
|
|
388
|
+
static deserializeBinaryFromReader(message: GetBestBlockHeightResponse, reader: jspb.BinaryReader): GetBestBlockHeightResponse;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export namespace GetBestBlockHeightResponse {
|
|
392
|
+
export type AsObject = {
|
|
393
|
+
height: number,
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
351
397
|
export class BroadcastTransactionRequest extends jspb.Message {
|
|
352
398
|
getTransaction(): Uint8Array | string;
|
|
353
399
|
getTransaction_asU8(): Uint8Array;
|
|
@@ -781,3 +827,41 @@ export namespace InstantSendLockMessages {
|
|
|
781
827
|
}
|
|
782
828
|
}
|
|
783
829
|
|
|
830
|
+
export class MasternodeListRequest extends jspb.Message {
|
|
831
|
+
serializeBinary(): Uint8Array;
|
|
832
|
+
toObject(includeInstance?: boolean): MasternodeListRequest.AsObject;
|
|
833
|
+
static toObject(includeInstance: boolean, msg: MasternodeListRequest): MasternodeListRequest.AsObject;
|
|
834
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
835
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
836
|
+
static serializeBinaryToWriter(message: MasternodeListRequest, writer: jspb.BinaryWriter): void;
|
|
837
|
+
static deserializeBinary(bytes: Uint8Array): MasternodeListRequest;
|
|
838
|
+
static deserializeBinaryFromReader(message: MasternodeListRequest, reader: jspb.BinaryReader): MasternodeListRequest;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export namespace MasternodeListRequest {
|
|
842
|
+
export type AsObject = {
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export class MasternodeListResponse extends jspb.Message {
|
|
847
|
+
getMasternodeListDiff(): Uint8Array | string;
|
|
848
|
+
getMasternodeListDiff_asU8(): Uint8Array;
|
|
849
|
+
getMasternodeListDiff_asB64(): string;
|
|
850
|
+
setMasternodeListDiff(value: Uint8Array | string): void;
|
|
851
|
+
|
|
852
|
+
serializeBinary(): Uint8Array;
|
|
853
|
+
toObject(includeInstance?: boolean): MasternodeListResponse.AsObject;
|
|
854
|
+
static toObject(includeInstance: boolean, msg: MasternodeListResponse): MasternodeListResponse.AsObject;
|
|
855
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
856
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
857
|
+
static serializeBinaryToWriter(message: MasternodeListResponse, writer: jspb.BinaryWriter): void;
|
|
858
|
+
static deserializeBinary(bytes: Uint8Array): MasternodeListResponse;
|
|
859
|
+
static deserializeBinaryFromReader(message: MasternodeListResponse, reader: jspb.BinaryReader): MasternodeListResponse;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
export namespace MasternodeListResponse {
|
|
863
|
+
export type AsObject = {
|
|
864
|
+
masternodeListDiff: Uint8Array | string,
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|