@dashevo/dapi-grpc 1.0.0-dev.15 → 1.0.0-dev.16
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 +9 -7
- package/build.rs +57 -40
- package/clients/core/v0/nodejs/CorePromiseClient.js +73 -0
- package/clients/core/v0/nodejs/core_pbjs.js +783 -14
- package/clients/core/v0/nodejs/core_protoc.js +574 -0
- package/clients/core/v0/web/CorePromiseClient.js +30 -0
- package/clients/core/v0/web/core_pb.d.ts +74 -0
- package/clients/core/v0/web/core_pb.js +574 -0
- package/clients/core/v0/web/core_pb_service.d.ts +30 -0
- package/clients/core/v0/web/core_pb_service.js +88 -0
- package/package.json +2 -2
- package/protos/core/v0/core.proto +18 -0
- package/src/lib.rs +19 -2
- package/src/core/proto/org.dash.platform.dapi.v0.rs +0 -1338
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +0 -4060
|
@@ -23,6 +23,8 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRes
|
|
|
23
23
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BloomFilter', null, { proto });
|
|
24
24
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest', null, { proto });
|
|
25
25
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse', null, { proto });
|
|
26
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest', null, { proto });
|
|
27
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse', null, { proto });
|
|
26
28
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, { proto });
|
|
27
29
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, { proto });
|
|
28
30
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, { proto });
|
|
@@ -42,6 +44,8 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.S
|
|
|
42
44
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, { proto });
|
|
43
45
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, { proto });
|
|
44
46
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.InstantSendLockMessages', null, { proto });
|
|
47
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListRequest', null, { proto });
|
|
48
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListResponse', null, { proto });
|
|
45
49
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.RawTransactions', null, { proto });
|
|
46
50
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest', null, { proto });
|
|
47
51
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest.FromBlockCase', null, { proto });
|
|
@@ -278,6 +282,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
278
282
|
*/
|
|
279
283
|
proto.org.dash.platform.dapi.v0.GetBlockResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockResponse';
|
|
280
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Generated by JsPbCodeGenerator.
|
|
287
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
288
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
289
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
290
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
291
|
+
* valid.
|
|
292
|
+
* @extends {jspb.Message}
|
|
293
|
+
* @constructor
|
|
294
|
+
*/
|
|
295
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest = function(opt_data) {
|
|
296
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
297
|
+
};
|
|
298
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest, jspb.Message);
|
|
299
|
+
if (goog.DEBUG && !COMPILED) {
|
|
300
|
+
/**
|
|
301
|
+
* @public
|
|
302
|
+
* @override
|
|
303
|
+
*/
|
|
304
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest';
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Generated by JsPbCodeGenerator.
|
|
308
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
309
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
310
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
311
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
312
|
+
* valid.
|
|
313
|
+
* @extends {jspb.Message}
|
|
314
|
+
* @constructor
|
|
315
|
+
*/
|
|
316
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse = function(opt_data) {
|
|
317
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
318
|
+
};
|
|
319
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse, jspb.Message);
|
|
320
|
+
if (goog.DEBUG && !COMPILED) {
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
* @override
|
|
324
|
+
*/
|
|
325
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse';
|
|
326
|
+
}
|
|
281
327
|
/**
|
|
282
328
|
* Generated by JsPbCodeGenerator.
|
|
283
329
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -572,6 +618,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
572
618
|
*/
|
|
573
619
|
proto.org.dash.platform.dapi.v0.InstantSendLockMessages.displayName = 'proto.org.dash.platform.dapi.v0.InstantSendLockMessages';
|
|
574
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* Generated by JsPbCodeGenerator.
|
|
623
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
624
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
625
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
626
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
627
|
+
* valid.
|
|
628
|
+
* @extends {jspb.Message}
|
|
629
|
+
* @constructor
|
|
630
|
+
*/
|
|
631
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest = function(opt_data) {
|
|
632
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
633
|
+
};
|
|
634
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.MasternodeListRequest, jspb.Message);
|
|
635
|
+
if (goog.DEBUG && !COMPILED) {
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* @override
|
|
639
|
+
*/
|
|
640
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.displayName = 'proto.org.dash.platform.dapi.v0.MasternodeListRequest';
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Generated by JsPbCodeGenerator.
|
|
644
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
645
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
646
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
647
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
648
|
+
* valid.
|
|
649
|
+
* @extends {jspb.Message}
|
|
650
|
+
* @constructor
|
|
651
|
+
*/
|
|
652
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse = function(opt_data) {
|
|
653
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
654
|
+
};
|
|
655
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.MasternodeListResponse, jspb.Message);
|
|
656
|
+
if (goog.DEBUG && !COMPILED) {
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
* @override
|
|
660
|
+
*/
|
|
661
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.displayName = 'proto.org.dash.platform.dapi.v0.MasternodeListResponse';
|
|
662
|
+
}
|
|
575
663
|
|
|
576
664
|
|
|
577
665
|
|
|
@@ -2924,6 +3012,237 @@ proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.setBlock = function(v
|
|
|
2924
3012
|
|
|
2925
3013
|
|
|
2926
3014
|
|
|
3015
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3016
|
+
/**
|
|
3017
|
+
* Creates an object representation of this proto.
|
|
3018
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3019
|
+
* Optional fields that are not set will be set to undefined.
|
|
3020
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3021
|
+
* For the list of reserved names please see:
|
|
3022
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3023
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3024
|
+
* JSPB instance for transitional soy proto support:
|
|
3025
|
+
* http://goto/soy-param-migration
|
|
3026
|
+
* @return {!Object}
|
|
3027
|
+
*/
|
|
3028
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3029
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.toObject(opt_includeInstance, this);
|
|
3030
|
+
};
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
/**
|
|
3034
|
+
* Static version of the {@see toObject} method.
|
|
3035
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3036
|
+
* the JSPB instance for transitional soy proto support:
|
|
3037
|
+
* http://goto/soy-param-migration
|
|
3038
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest} msg The msg instance to transform.
|
|
3039
|
+
* @return {!Object}
|
|
3040
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3041
|
+
*/
|
|
3042
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.toObject = function(includeInstance, msg) {
|
|
3043
|
+
var f, obj = {
|
|
3044
|
+
|
|
3045
|
+
};
|
|
3046
|
+
|
|
3047
|
+
if (includeInstance) {
|
|
3048
|
+
obj.$jspbMessageInstance = msg;
|
|
3049
|
+
}
|
|
3050
|
+
return obj;
|
|
3051
|
+
};
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3057
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3058
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest}
|
|
3059
|
+
*/
|
|
3060
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.deserializeBinary = function(bytes) {
|
|
3061
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3062
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest;
|
|
3063
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.deserializeBinaryFromReader(msg, reader);
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3069
|
+
* given reader into the given message object.
|
|
3070
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest} msg The message object to deserialize into.
|
|
3071
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3072
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest}
|
|
3073
|
+
*/
|
|
3074
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3075
|
+
while (reader.nextField()) {
|
|
3076
|
+
if (reader.isEndGroup()) {
|
|
3077
|
+
break;
|
|
3078
|
+
}
|
|
3079
|
+
var field = reader.getFieldNumber();
|
|
3080
|
+
switch (field) {
|
|
3081
|
+
default:
|
|
3082
|
+
reader.skipField();
|
|
3083
|
+
break;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
return msg;
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3092
|
+
* @return {!Uint8Array}
|
|
3093
|
+
*/
|
|
3094
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.prototype.serializeBinary = function() {
|
|
3095
|
+
var writer = new jspb.BinaryWriter();
|
|
3096
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.serializeBinaryToWriter(this, writer);
|
|
3097
|
+
return writer.getResultBuffer();
|
|
3098
|
+
};
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3103
|
+
* format), writing to the given BinaryWriter.
|
|
3104
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest} message
|
|
3105
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3106
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3107
|
+
*/
|
|
3108
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3109
|
+
var f = undefined;
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3117
|
+
/**
|
|
3118
|
+
* Creates an object representation of this proto.
|
|
3119
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3120
|
+
* Optional fields that are not set will be set to undefined.
|
|
3121
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3122
|
+
* For the list of reserved names please see:
|
|
3123
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3124
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3125
|
+
* JSPB instance for transitional soy proto support:
|
|
3126
|
+
* http://goto/soy-param-migration
|
|
3127
|
+
* @return {!Object}
|
|
3128
|
+
*/
|
|
3129
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3130
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.toObject(opt_includeInstance, this);
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Static version of the {@see toObject} method.
|
|
3136
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3137
|
+
* the JSPB instance for transitional soy proto support:
|
|
3138
|
+
* http://goto/soy-param-migration
|
|
3139
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} msg The msg instance to transform.
|
|
3140
|
+
* @return {!Object}
|
|
3141
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3142
|
+
*/
|
|
3143
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.toObject = function(includeInstance, msg) {
|
|
3144
|
+
var f, obj = {
|
|
3145
|
+
height: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3146
|
+
};
|
|
3147
|
+
|
|
3148
|
+
if (includeInstance) {
|
|
3149
|
+
obj.$jspbMessageInstance = msg;
|
|
3150
|
+
}
|
|
3151
|
+
return obj;
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
/**
|
|
3157
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3158
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3159
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse}
|
|
3160
|
+
*/
|
|
3161
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.deserializeBinary = function(bytes) {
|
|
3162
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3163
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse;
|
|
3164
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.deserializeBinaryFromReader(msg, reader);
|
|
3165
|
+
};
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
/**
|
|
3169
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3170
|
+
* given reader into the given message object.
|
|
3171
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} msg The message object to deserialize into.
|
|
3172
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3173
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse}
|
|
3174
|
+
*/
|
|
3175
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3176
|
+
while (reader.nextField()) {
|
|
3177
|
+
if (reader.isEndGroup()) {
|
|
3178
|
+
break;
|
|
3179
|
+
}
|
|
3180
|
+
var field = reader.getFieldNumber();
|
|
3181
|
+
switch (field) {
|
|
3182
|
+
case 1:
|
|
3183
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
3184
|
+
msg.setHeight(value);
|
|
3185
|
+
break;
|
|
3186
|
+
default:
|
|
3187
|
+
reader.skipField();
|
|
3188
|
+
break;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
return msg;
|
|
3192
|
+
};
|
|
3193
|
+
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3197
|
+
* @return {!Uint8Array}
|
|
3198
|
+
*/
|
|
3199
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.serializeBinary = function() {
|
|
3200
|
+
var writer = new jspb.BinaryWriter();
|
|
3201
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.serializeBinaryToWriter(this, writer);
|
|
3202
|
+
return writer.getResultBuffer();
|
|
3203
|
+
};
|
|
3204
|
+
|
|
3205
|
+
|
|
3206
|
+
/**
|
|
3207
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3208
|
+
* format), writing to the given BinaryWriter.
|
|
3209
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} message
|
|
3210
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3211
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3212
|
+
*/
|
|
3213
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3214
|
+
var f = undefined;
|
|
3215
|
+
f = message.getHeight();
|
|
3216
|
+
if (f !== 0) {
|
|
3217
|
+
writer.writeUint32(
|
|
3218
|
+
1,
|
|
3219
|
+
f
|
|
3220
|
+
);
|
|
3221
|
+
}
|
|
3222
|
+
};
|
|
3223
|
+
|
|
3224
|
+
|
|
3225
|
+
/**
|
|
3226
|
+
* optional uint32 height = 1;
|
|
3227
|
+
* @return {number}
|
|
3228
|
+
*/
|
|
3229
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.getHeight = function() {
|
|
3230
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3231
|
+
};
|
|
3232
|
+
|
|
3233
|
+
|
|
3234
|
+
/**
|
|
3235
|
+
* @param {number} value
|
|
3236
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} returns this
|
|
3237
|
+
*/
|
|
3238
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.setHeight = function(value) {
|
|
3239
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
|
|
2927
3246
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2928
3247
|
/**
|
|
2929
3248
|
* Creates an object representation of this proto.
|
|
@@ -5950,4 +6269,259 @@ proto.org.dash.platform.dapi.v0.InstantSendLockMessages.prototype.clearMessagesL
|
|
|
5950
6269
|
};
|
|
5951
6270
|
|
|
5952
6271
|
|
|
6272
|
+
|
|
6273
|
+
|
|
6274
|
+
|
|
6275
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6276
|
+
/**
|
|
6277
|
+
* Creates an object representation of this proto.
|
|
6278
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6279
|
+
* Optional fields that are not set will be set to undefined.
|
|
6280
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6281
|
+
* For the list of reserved names please see:
|
|
6282
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6283
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6284
|
+
* JSPB instance for transitional soy proto support:
|
|
6285
|
+
* http://goto/soy-param-migration
|
|
6286
|
+
* @return {!Object}
|
|
6287
|
+
*/
|
|
6288
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6289
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListRequest.toObject(opt_includeInstance, this);
|
|
6290
|
+
};
|
|
6291
|
+
|
|
6292
|
+
|
|
6293
|
+
/**
|
|
6294
|
+
* Static version of the {@see toObject} method.
|
|
6295
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6296
|
+
* the JSPB instance for transitional soy proto support:
|
|
6297
|
+
* http://goto/soy-param-migration
|
|
6298
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListRequest} msg The msg instance to transform.
|
|
6299
|
+
* @return {!Object}
|
|
6300
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6301
|
+
*/
|
|
6302
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.toObject = function(includeInstance, msg) {
|
|
6303
|
+
var f, obj = {
|
|
6304
|
+
|
|
6305
|
+
};
|
|
6306
|
+
|
|
6307
|
+
if (includeInstance) {
|
|
6308
|
+
obj.$jspbMessageInstance = msg;
|
|
6309
|
+
}
|
|
6310
|
+
return obj;
|
|
6311
|
+
};
|
|
6312
|
+
}
|
|
6313
|
+
|
|
6314
|
+
|
|
6315
|
+
/**
|
|
6316
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6317
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6318
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListRequest}
|
|
6319
|
+
*/
|
|
6320
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.deserializeBinary = function(bytes) {
|
|
6321
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6322
|
+
var msg = new proto.org.dash.platform.dapi.v0.MasternodeListRequest;
|
|
6323
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListRequest.deserializeBinaryFromReader(msg, reader);
|
|
6324
|
+
};
|
|
6325
|
+
|
|
6326
|
+
|
|
6327
|
+
/**
|
|
6328
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6329
|
+
* given reader into the given message object.
|
|
6330
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListRequest} msg The message object to deserialize into.
|
|
6331
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6332
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListRequest}
|
|
6333
|
+
*/
|
|
6334
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6335
|
+
while (reader.nextField()) {
|
|
6336
|
+
if (reader.isEndGroup()) {
|
|
6337
|
+
break;
|
|
6338
|
+
}
|
|
6339
|
+
var field = reader.getFieldNumber();
|
|
6340
|
+
switch (field) {
|
|
6341
|
+
default:
|
|
6342
|
+
reader.skipField();
|
|
6343
|
+
break;
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
return msg;
|
|
6347
|
+
};
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
/**
|
|
6351
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6352
|
+
* @return {!Uint8Array}
|
|
6353
|
+
*/
|
|
6354
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.prototype.serializeBinary = function() {
|
|
6355
|
+
var writer = new jspb.BinaryWriter();
|
|
6356
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.serializeBinaryToWriter(this, writer);
|
|
6357
|
+
return writer.getResultBuffer();
|
|
6358
|
+
};
|
|
6359
|
+
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6363
|
+
* format), writing to the given BinaryWriter.
|
|
6364
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListRequest} message
|
|
6365
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6367
|
+
*/
|
|
6368
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6369
|
+
var f = undefined;
|
|
6370
|
+
};
|
|
6371
|
+
|
|
6372
|
+
|
|
6373
|
+
|
|
6374
|
+
|
|
6375
|
+
|
|
6376
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6377
|
+
/**
|
|
6378
|
+
* Creates an object representation of this proto.
|
|
6379
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6380
|
+
* Optional fields that are not set will be set to undefined.
|
|
6381
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6382
|
+
* For the list of reserved names please see:
|
|
6383
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6384
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6385
|
+
* JSPB instance for transitional soy proto support:
|
|
6386
|
+
* http://goto/soy-param-migration
|
|
6387
|
+
* @return {!Object}
|
|
6388
|
+
*/
|
|
6389
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6390
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListResponse.toObject(opt_includeInstance, this);
|
|
6391
|
+
};
|
|
6392
|
+
|
|
6393
|
+
|
|
6394
|
+
/**
|
|
6395
|
+
* Static version of the {@see toObject} method.
|
|
6396
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6397
|
+
* the JSPB instance for transitional soy proto support:
|
|
6398
|
+
* http://goto/soy-param-migration
|
|
6399
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} msg The msg instance to transform.
|
|
6400
|
+
* @return {!Object}
|
|
6401
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6402
|
+
*/
|
|
6403
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.toObject = function(includeInstance, msg) {
|
|
6404
|
+
var f, obj = {
|
|
6405
|
+
masternodeListDiff: msg.getMasternodeListDiff_asB64()
|
|
6406
|
+
};
|
|
6407
|
+
|
|
6408
|
+
if (includeInstance) {
|
|
6409
|
+
obj.$jspbMessageInstance = msg;
|
|
6410
|
+
}
|
|
6411
|
+
return obj;
|
|
6412
|
+
};
|
|
6413
|
+
}
|
|
6414
|
+
|
|
6415
|
+
|
|
6416
|
+
/**
|
|
6417
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6418
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6419
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListResponse}
|
|
6420
|
+
*/
|
|
6421
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.deserializeBinary = function(bytes) {
|
|
6422
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6423
|
+
var msg = new proto.org.dash.platform.dapi.v0.MasternodeListResponse;
|
|
6424
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListResponse.deserializeBinaryFromReader(msg, reader);
|
|
6425
|
+
};
|
|
6426
|
+
|
|
6427
|
+
|
|
6428
|
+
/**
|
|
6429
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6430
|
+
* given reader into the given message object.
|
|
6431
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} msg The message object to deserialize into.
|
|
6432
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6433
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListResponse}
|
|
6434
|
+
*/
|
|
6435
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6436
|
+
while (reader.nextField()) {
|
|
6437
|
+
if (reader.isEndGroup()) {
|
|
6438
|
+
break;
|
|
6439
|
+
}
|
|
6440
|
+
var field = reader.getFieldNumber();
|
|
6441
|
+
switch (field) {
|
|
6442
|
+
case 1:
|
|
6443
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
6444
|
+
msg.setMasternodeListDiff(value);
|
|
6445
|
+
break;
|
|
6446
|
+
default:
|
|
6447
|
+
reader.skipField();
|
|
6448
|
+
break;
|
|
6449
|
+
}
|
|
6450
|
+
}
|
|
6451
|
+
return msg;
|
|
6452
|
+
};
|
|
6453
|
+
|
|
6454
|
+
|
|
6455
|
+
/**
|
|
6456
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6457
|
+
* @return {!Uint8Array}
|
|
6458
|
+
*/
|
|
6459
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.serializeBinary = function() {
|
|
6460
|
+
var writer = new jspb.BinaryWriter();
|
|
6461
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.serializeBinaryToWriter(this, writer);
|
|
6462
|
+
return writer.getResultBuffer();
|
|
6463
|
+
};
|
|
6464
|
+
|
|
6465
|
+
|
|
6466
|
+
/**
|
|
6467
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6468
|
+
* format), writing to the given BinaryWriter.
|
|
6469
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} message
|
|
6470
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6472
|
+
*/
|
|
6473
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6474
|
+
var f = undefined;
|
|
6475
|
+
f = message.getMasternodeListDiff_asU8();
|
|
6476
|
+
if (f.length > 0) {
|
|
6477
|
+
writer.writeBytes(
|
|
6478
|
+
1,
|
|
6479
|
+
f
|
|
6480
|
+
);
|
|
6481
|
+
}
|
|
6482
|
+
};
|
|
6483
|
+
|
|
6484
|
+
|
|
6485
|
+
/**
|
|
6486
|
+
* optional bytes masternode_list_diff = 1;
|
|
6487
|
+
* @return {string}
|
|
6488
|
+
*/
|
|
6489
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.getMasternodeListDiff = function() {
|
|
6490
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6491
|
+
};
|
|
6492
|
+
|
|
6493
|
+
|
|
6494
|
+
/**
|
|
6495
|
+
* optional bytes masternode_list_diff = 1;
|
|
6496
|
+
* This is a type-conversion wrapper around `getMasternodeListDiff()`
|
|
6497
|
+
* @return {string}
|
|
6498
|
+
*/
|
|
6499
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.getMasternodeListDiff_asB64 = function() {
|
|
6500
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
6501
|
+
this.getMasternodeListDiff()));
|
|
6502
|
+
};
|
|
6503
|
+
|
|
6504
|
+
|
|
6505
|
+
/**
|
|
6506
|
+
* optional bytes masternode_list_diff = 1;
|
|
6507
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
6508
|
+
* @see http://caniuse.com/Uint8Array
|
|
6509
|
+
* This is a type-conversion wrapper around `getMasternodeListDiff()`
|
|
6510
|
+
* @return {!Uint8Array}
|
|
6511
|
+
*/
|
|
6512
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.getMasternodeListDiff_asU8 = function() {
|
|
6513
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
6514
|
+
this.getMasternodeListDiff()));
|
|
6515
|
+
};
|
|
6516
|
+
|
|
6517
|
+
|
|
6518
|
+
/**
|
|
6519
|
+
* @param {!(string|Uint8Array)} value
|
|
6520
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} returns this
|
|
6521
|
+
*/
|
|
6522
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.setMasternodeListDiff = function(value) {
|
|
6523
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
6524
|
+
};
|
|
6525
|
+
|
|
6526
|
+
|
|
5953
6527
|
goog.object.extend(exports, proto.org.dash.platform.dapi.v0);
|
|
@@ -93,6 +93,20 @@ class CorePromiseClient {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
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
|
+
|
|
96
110
|
/**
|
|
97
111
|
* @param {!BroadcastTransactionRequest} broadcastTransactionRequest
|
|
98
112
|
* @param {?Object<string, string>} metadata
|
|
@@ -168,6 +182,22 @@ class CorePromiseClient {
|
|
|
168
182
|
rewireStream(stream);
|
|
169
183
|
return stream;
|
|
170
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
|
+
}
|
|
171
201
|
}
|
|
172
202
|
|
|
173
203
|
module.exports = CorePromiseClient;
|