@dashevo/dapi-grpc 1.0.0-pr.1875.1 → 1.0.0-pr.1883.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 +1 -1
- package/clients/core/v0/nodejs/CorePromiseClient.js +35 -0
- package/clients/core/v0/nodejs/core_pbjs.js +389 -0
- package/clients/core/v0/nodejs/core_protoc.js +299 -0
- package/clients/core/v0/web/CorePromiseClient.js +16 -0
- package/clients/core/v0/web/core_pb.d.ts +38 -0
- package/clients/core/v0/web/core_pb.js +299 -0
- package/clients/core/v0/web/core_pb_service.d.ts +11 -0
- package/clients/core/v0/web/core_pb_service.js +48 -0
- package/package.json +2 -2
- package/protos/core/v0/core.proto +9 -0
package/Cargo.toml
CHANGED
|
@@ -42,6 +42,8 @@ const {
|
|
|
42
42
|
GetEstimatedTransactionFeeResponse: PBJSGetEstimatedTransactionFeeResponse,
|
|
43
43
|
TransactionsWithProofsRequest: PBJSTransactionsWithProofsRequest,
|
|
44
44
|
TransactionsWithProofsResponse: PBJSTransactionsWithProofsResponse,
|
|
45
|
+
MasternodeListRequest: PBJSMasternodeListRequest,
|
|
46
|
+
MasternodeListResponse: PBJSMasternodeListResponse,
|
|
45
47
|
},
|
|
46
48
|
},
|
|
47
49
|
},
|
|
@@ -59,6 +61,7 @@ const {
|
|
|
59
61
|
BlockHeadersWithChainLocksResponse: ProtocBlockHeadersWithChainLocksResponse,
|
|
60
62
|
GetEstimatedTransactionFeeResponse: ProtocGetEstimatedTransactionFeeResponse,
|
|
61
63
|
TransactionsWithProofsResponse: ProtocTransactionsWithProofsResponse,
|
|
64
|
+
MasternodeListResponse: ProtocMasternodeListResponse,
|
|
62
65
|
} = require('./core_protoc');
|
|
63
66
|
|
|
64
67
|
const getCoreDefinition = require('../../../../lib/getCoreDefinition');
|
|
@@ -398,6 +401,38 @@ class CorePromiseClient {
|
|
|
398
401
|
},
|
|
399
402
|
);
|
|
400
403
|
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @param {MasternodeListRequest} masternodeListRequest The request proto
|
|
407
|
+
* @param {?Object<string, string>} metadata User defined call metadata
|
|
408
|
+
* @param {CallOptions} [options={}]
|
|
409
|
+
* @return {!grpc.web.ClientReadableStream<!MasternodeListResponse>|undefined}
|
|
410
|
+
* The XHR Node Readable Stream
|
|
411
|
+
*/
|
|
412
|
+
subscribeToMasternodeList(masternodeListRequest, metadata = {}, options = {}) {
|
|
413
|
+
if (!isObject(metadata)) {
|
|
414
|
+
throw new Error('metadata must be an object');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
return this.client.subscribeToMasternodeList(
|
|
418
|
+
masternodeListRequest,
|
|
419
|
+
convertObjectToMetadata(metadata),
|
|
420
|
+
{
|
|
421
|
+
interceptors: [
|
|
422
|
+
jsonToProtobufInterceptorFactory(
|
|
423
|
+
jsonToProtobufFactory(
|
|
424
|
+
ProtocMasternodeListResponse,
|
|
425
|
+
PBJSMasternodeListResponse,
|
|
426
|
+
),
|
|
427
|
+
protobufToJsonFactory(
|
|
428
|
+
PBJSMasternodeListRequest,
|
|
429
|
+
),
|
|
430
|
+
),
|
|
431
|
+
],
|
|
432
|
+
...options,
|
|
433
|
+
},
|
|
434
|
+
);
|
|
435
|
+
}
|
|
401
436
|
}
|
|
402
437
|
|
|
403
438
|
module.exports = CorePromiseClient;
|
|
@@ -383,6 +383,39 @@ $root.org = (function() {
|
|
|
383
383
|
* @variation 2
|
|
384
384
|
*/
|
|
385
385
|
|
|
386
|
+
/**
|
|
387
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Core#subscribeToMasternodeList}.
|
|
388
|
+
* @memberof org.dash.platform.dapi.v0.Core
|
|
389
|
+
* @typedef subscribeToMasternodeListCallback
|
|
390
|
+
* @type {function}
|
|
391
|
+
* @param {Error|null} error Error, if any
|
|
392
|
+
* @param {org.dash.platform.dapi.v0.MasternodeListResponse} [response] MasternodeListResponse
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Calls subscribeToMasternodeList.
|
|
397
|
+
* @function subscribeToMasternodeList
|
|
398
|
+
* @memberof org.dash.platform.dapi.v0.Core
|
|
399
|
+
* @instance
|
|
400
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListRequest} request MasternodeListRequest message or plain object
|
|
401
|
+
* @param {org.dash.platform.dapi.v0.Core.subscribeToMasternodeListCallback} callback Node-style callback called with the error, if any, and MasternodeListResponse
|
|
402
|
+
* @returns {undefined}
|
|
403
|
+
* @variation 1
|
|
404
|
+
*/
|
|
405
|
+
Object.defineProperty(Core.prototype.subscribeToMasternodeList = function subscribeToMasternodeList(request, callback) {
|
|
406
|
+
return this.rpcCall(subscribeToMasternodeList, $root.org.dash.platform.dapi.v0.MasternodeListRequest, $root.org.dash.platform.dapi.v0.MasternodeListResponse, request, callback);
|
|
407
|
+
}, "name", { value: "subscribeToMasternodeList" });
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Calls subscribeToMasternodeList.
|
|
411
|
+
* @function subscribeToMasternodeList
|
|
412
|
+
* @memberof org.dash.platform.dapi.v0.Core
|
|
413
|
+
* @instance
|
|
414
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListRequest} request MasternodeListRequest message or plain object
|
|
415
|
+
* @returns {Promise<org.dash.platform.dapi.v0.MasternodeListResponse>} Promise
|
|
416
|
+
* @variation 2
|
|
417
|
+
*/
|
|
418
|
+
|
|
386
419
|
return Core;
|
|
387
420
|
})();
|
|
388
421
|
|
|
@@ -6716,6 +6749,362 @@ $root.org = (function() {
|
|
|
6716
6749
|
return InstantSendLockMessages;
|
|
6717
6750
|
})();
|
|
6718
6751
|
|
|
6752
|
+
v0.MasternodeListRequest = (function() {
|
|
6753
|
+
|
|
6754
|
+
/**
|
|
6755
|
+
* Properties of a MasternodeListRequest.
|
|
6756
|
+
* @memberof org.dash.platform.dapi.v0
|
|
6757
|
+
* @interface IMasternodeListRequest
|
|
6758
|
+
*/
|
|
6759
|
+
|
|
6760
|
+
/**
|
|
6761
|
+
* Constructs a new MasternodeListRequest.
|
|
6762
|
+
* @memberof org.dash.platform.dapi.v0
|
|
6763
|
+
* @classdesc Represents a MasternodeListRequest.
|
|
6764
|
+
* @implements IMasternodeListRequest
|
|
6765
|
+
* @constructor
|
|
6766
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListRequest=} [properties] Properties to set
|
|
6767
|
+
*/
|
|
6768
|
+
function MasternodeListRequest(properties) {
|
|
6769
|
+
if (properties)
|
|
6770
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6771
|
+
if (properties[keys[i]] != null)
|
|
6772
|
+
this[keys[i]] = properties[keys[i]];
|
|
6773
|
+
}
|
|
6774
|
+
|
|
6775
|
+
/**
|
|
6776
|
+
* Creates a new MasternodeListRequest instance using the specified properties.
|
|
6777
|
+
* @function create
|
|
6778
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6779
|
+
* @static
|
|
6780
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListRequest=} [properties] Properties to set
|
|
6781
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListRequest} MasternodeListRequest instance
|
|
6782
|
+
*/
|
|
6783
|
+
MasternodeListRequest.create = function create(properties) {
|
|
6784
|
+
return new MasternodeListRequest(properties);
|
|
6785
|
+
};
|
|
6786
|
+
|
|
6787
|
+
/**
|
|
6788
|
+
* Encodes the specified MasternodeListRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.MasternodeListRequest.verify|verify} messages.
|
|
6789
|
+
* @function encode
|
|
6790
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6791
|
+
* @static
|
|
6792
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListRequest} message MasternodeListRequest message or plain object to encode
|
|
6793
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6794
|
+
* @returns {$protobuf.Writer} Writer
|
|
6795
|
+
*/
|
|
6796
|
+
MasternodeListRequest.encode = function encode(message, writer) {
|
|
6797
|
+
if (!writer)
|
|
6798
|
+
writer = $Writer.create();
|
|
6799
|
+
return writer;
|
|
6800
|
+
};
|
|
6801
|
+
|
|
6802
|
+
/**
|
|
6803
|
+
* Encodes the specified MasternodeListRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.MasternodeListRequest.verify|verify} messages.
|
|
6804
|
+
* @function encodeDelimited
|
|
6805
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6806
|
+
* @static
|
|
6807
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListRequest} message MasternodeListRequest message or plain object to encode
|
|
6808
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6809
|
+
* @returns {$protobuf.Writer} Writer
|
|
6810
|
+
*/
|
|
6811
|
+
MasternodeListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6812
|
+
return this.encode(message, writer).ldelim();
|
|
6813
|
+
};
|
|
6814
|
+
|
|
6815
|
+
/**
|
|
6816
|
+
* Decodes a MasternodeListRequest message from the specified reader or buffer.
|
|
6817
|
+
* @function decode
|
|
6818
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6819
|
+
* @static
|
|
6820
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6821
|
+
* @param {number} [length] Message length if known beforehand
|
|
6822
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListRequest} MasternodeListRequest
|
|
6823
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6824
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6825
|
+
*/
|
|
6826
|
+
MasternodeListRequest.decode = function decode(reader, length) {
|
|
6827
|
+
if (!(reader instanceof $Reader))
|
|
6828
|
+
reader = $Reader.create(reader);
|
|
6829
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.MasternodeListRequest();
|
|
6830
|
+
while (reader.pos < end) {
|
|
6831
|
+
var tag = reader.uint32();
|
|
6832
|
+
switch (tag >>> 3) {
|
|
6833
|
+
default:
|
|
6834
|
+
reader.skipType(tag & 7);
|
|
6835
|
+
break;
|
|
6836
|
+
}
|
|
6837
|
+
}
|
|
6838
|
+
return message;
|
|
6839
|
+
};
|
|
6840
|
+
|
|
6841
|
+
/**
|
|
6842
|
+
* Decodes a MasternodeListRequest message from the specified reader or buffer, length delimited.
|
|
6843
|
+
* @function decodeDelimited
|
|
6844
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6845
|
+
* @static
|
|
6846
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6847
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListRequest} MasternodeListRequest
|
|
6848
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6849
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6850
|
+
*/
|
|
6851
|
+
MasternodeListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
6852
|
+
if (!(reader instanceof $Reader))
|
|
6853
|
+
reader = new $Reader(reader);
|
|
6854
|
+
return this.decode(reader, reader.uint32());
|
|
6855
|
+
};
|
|
6856
|
+
|
|
6857
|
+
/**
|
|
6858
|
+
* Verifies a MasternodeListRequest message.
|
|
6859
|
+
* @function verify
|
|
6860
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6861
|
+
* @static
|
|
6862
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6863
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6864
|
+
*/
|
|
6865
|
+
MasternodeListRequest.verify = function verify(message) {
|
|
6866
|
+
if (typeof message !== "object" || message === null)
|
|
6867
|
+
return "object expected";
|
|
6868
|
+
return null;
|
|
6869
|
+
};
|
|
6870
|
+
|
|
6871
|
+
/**
|
|
6872
|
+
* Creates a MasternodeListRequest message from a plain object. Also converts values to their respective internal types.
|
|
6873
|
+
* @function fromObject
|
|
6874
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6875
|
+
* @static
|
|
6876
|
+
* @param {Object.<string,*>} object Plain object
|
|
6877
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListRequest} MasternodeListRequest
|
|
6878
|
+
*/
|
|
6879
|
+
MasternodeListRequest.fromObject = function fromObject(object) {
|
|
6880
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.MasternodeListRequest)
|
|
6881
|
+
return object;
|
|
6882
|
+
return new $root.org.dash.platform.dapi.v0.MasternodeListRequest();
|
|
6883
|
+
};
|
|
6884
|
+
|
|
6885
|
+
/**
|
|
6886
|
+
* Creates a plain object from a MasternodeListRequest message. Also converts values to other types if specified.
|
|
6887
|
+
* @function toObject
|
|
6888
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6889
|
+
* @static
|
|
6890
|
+
* @param {org.dash.platform.dapi.v0.MasternodeListRequest} message MasternodeListRequest
|
|
6891
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6892
|
+
* @returns {Object.<string,*>} Plain object
|
|
6893
|
+
*/
|
|
6894
|
+
MasternodeListRequest.toObject = function toObject() {
|
|
6895
|
+
return {};
|
|
6896
|
+
};
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* Converts this MasternodeListRequest to JSON.
|
|
6900
|
+
* @function toJSON
|
|
6901
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListRequest
|
|
6902
|
+
* @instance
|
|
6903
|
+
* @returns {Object.<string,*>} JSON object
|
|
6904
|
+
*/
|
|
6905
|
+
MasternodeListRequest.prototype.toJSON = function toJSON() {
|
|
6906
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6907
|
+
};
|
|
6908
|
+
|
|
6909
|
+
return MasternodeListRequest;
|
|
6910
|
+
})();
|
|
6911
|
+
|
|
6912
|
+
v0.MasternodeListResponse = (function() {
|
|
6913
|
+
|
|
6914
|
+
/**
|
|
6915
|
+
* Properties of a MasternodeListResponse.
|
|
6916
|
+
* @memberof org.dash.platform.dapi.v0
|
|
6917
|
+
* @interface IMasternodeListResponse
|
|
6918
|
+
* @property {Uint8Array|null} [masternodeListDiff] MasternodeListResponse masternodeListDiff
|
|
6919
|
+
*/
|
|
6920
|
+
|
|
6921
|
+
/**
|
|
6922
|
+
* Constructs a new MasternodeListResponse.
|
|
6923
|
+
* @memberof org.dash.platform.dapi.v0
|
|
6924
|
+
* @classdesc Represents a MasternodeListResponse.
|
|
6925
|
+
* @implements IMasternodeListResponse
|
|
6926
|
+
* @constructor
|
|
6927
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListResponse=} [properties] Properties to set
|
|
6928
|
+
*/
|
|
6929
|
+
function MasternodeListResponse(properties) {
|
|
6930
|
+
if (properties)
|
|
6931
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6932
|
+
if (properties[keys[i]] != null)
|
|
6933
|
+
this[keys[i]] = properties[keys[i]];
|
|
6934
|
+
}
|
|
6935
|
+
|
|
6936
|
+
/**
|
|
6937
|
+
* MasternodeListResponse masternodeListDiff.
|
|
6938
|
+
* @member {Uint8Array} masternodeListDiff
|
|
6939
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
6940
|
+
* @instance
|
|
6941
|
+
*/
|
|
6942
|
+
MasternodeListResponse.prototype.masternodeListDiff = $util.newBuffer([]);
|
|
6943
|
+
|
|
6944
|
+
/**
|
|
6945
|
+
* Creates a new MasternodeListResponse instance using the specified properties.
|
|
6946
|
+
* @function create
|
|
6947
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
6948
|
+
* @static
|
|
6949
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListResponse=} [properties] Properties to set
|
|
6950
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListResponse} MasternodeListResponse instance
|
|
6951
|
+
*/
|
|
6952
|
+
MasternodeListResponse.create = function create(properties) {
|
|
6953
|
+
return new MasternodeListResponse(properties);
|
|
6954
|
+
};
|
|
6955
|
+
|
|
6956
|
+
/**
|
|
6957
|
+
* Encodes the specified MasternodeListResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.MasternodeListResponse.verify|verify} messages.
|
|
6958
|
+
* @function encode
|
|
6959
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
6960
|
+
* @static
|
|
6961
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListResponse} message MasternodeListResponse message or plain object to encode
|
|
6962
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6963
|
+
* @returns {$protobuf.Writer} Writer
|
|
6964
|
+
*/
|
|
6965
|
+
MasternodeListResponse.encode = function encode(message, writer) {
|
|
6966
|
+
if (!writer)
|
|
6967
|
+
writer = $Writer.create();
|
|
6968
|
+
if (message.masternodeListDiff != null && Object.hasOwnProperty.call(message, "masternodeListDiff"))
|
|
6969
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.masternodeListDiff);
|
|
6970
|
+
return writer;
|
|
6971
|
+
};
|
|
6972
|
+
|
|
6973
|
+
/**
|
|
6974
|
+
* Encodes the specified MasternodeListResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.MasternodeListResponse.verify|verify} messages.
|
|
6975
|
+
* @function encodeDelimited
|
|
6976
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
6977
|
+
* @static
|
|
6978
|
+
* @param {org.dash.platform.dapi.v0.IMasternodeListResponse} message MasternodeListResponse message or plain object to encode
|
|
6979
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6980
|
+
* @returns {$protobuf.Writer} Writer
|
|
6981
|
+
*/
|
|
6982
|
+
MasternodeListResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6983
|
+
return this.encode(message, writer).ldelim();
|
|
6984
|
+
};
|
|
6985
|
+
|
|
6986
|
+
/**
|
|
6987
|
+
* Decodes a MasternodeListResponse message from the specified reader or buffer.
|
|
6988
|
+
* @function decode
|
|
6989
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
6990
|
+
* @static
|
|
6991
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6992
|
+
* @param {number} [length] Message length if known beforehand
|
|
6993
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListResponse} MasternodeListResponse
|
|
6994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6996
|
+
*/
|
|
6997
|
+
MasternodeListResponse.decode = function decode(reader, length) {
|
|
6998
|
+
if (!(reader instanceof $Reader))
|
|
6999
|
+
reader = $Reader.create(reader);
|
|
7000
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.MasternodeListResponse();
|
|
7001
|
+
while (reader.pos < end) {
|
|
7002
|
+
var tag = reader.uint32();
|
|
7003
|
+
switch (tag >>> 3) {
|
|
7004
|
+
case 1:
|
|
7005
|
+
message.masternodeListDiff = reader.bytes();
|
|
7006
|
+
break;
|
|
7007
|
+
default:
|
|
7008
|
+
reader.skipType(tag & 7);
|
|
7009
|
+
break;
|
|
7010
|
+
}
|
|
7011
|
+
}
|
|
7012
|
+
return message;
|
|
7013
|
+
};
|
|
7014
|
+
|
|
7015
|
+
/**
|
|
7016
|
+
* Decodes a MasternodeListResponse message from the specified reader or buffer, length delimited.
|
|
7017
|
+
* @function decodeDelimited
|
|
7018
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
7019
|
+
* @static
|
|
7020
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7021
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListResponse} MasternodeListResponse
|
|
7022
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7023
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7024
|
+
*/
|
|
7025
|
+
MasternodeListResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
7026
|
+
if (!(reader instanceof $Reader))
|
|
7027
|
+
reader = new $Reader(reader);
|
|
7028
|
+
return this.decode(reader, reader.uint32());
|
|
7029
|
+
};
|
|
7030
|
+
|
|
7031
|
+
/**
|
|
7032
|
+
* Verifies a MasternodeListResponse message.
|
|
7033
|
+
* @function verify
|
|
7034
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
7035
|
+
* @static
|
|
7036
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7037
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7038
|
+
*/
|
|
7039
|
+
MasternodeListResponse.verify = function verify(message) {
|
|
7040
|
+
if (typeof message !== "object" || message === null)
|
|
7041
|
+
return "object expected";
|
|
7042
|
+
if (message.masternodeListDiff != null && message.hasOwnProperty("masternodeListDiff"))
|
|
7043
|
+
if (!(message.masternodeListDiff && typeof message.masternodeListDiff.length === "number" || $util.isString(message.masternodeListDiff)))
|
|
7044
|
+
return "masternodeListDiff: buffer expected";
|
|
7045
|
+
return null;
|
|
7046
|
+
};
|
|
7047
|
+
|
|
7048
|
+
/**
|
|
7049
|
+
* Creates a MasternodeListResponse message from a plain object. Also converts values to their respective internal types.
|
|
7050
|
+
* @function fromObject
|
|
7051
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
7052
|
+
* @static
|
|
7053
|
+
* @param {Object.<string,*>} object Plain object
|
|
7054
|
+
* @returns {org.dash.platform.dapi.v0.MasternodeListResponse} MasternodeListResponse
|
|
7055
|
+
*/
|
|
7056
|
+
MasternodeListResponse.fromObject = function fromObject(object) {
|
|
7057
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.MasternodeListResponse)
|
|
7058
|
+
return object;
|
|
7059
|
+
var message = new $root.org.dash.platform.dapi.v0.MasternodeListResponse();
|
|
7060
|
+
if (object.masternodeListDiff != null)
|
|
7061
|
+
if (typeof object.masternodeListDiff === "string")
|
|
7062
|
+
$util.base64.decode(object.masternodeListDiff, message.masternodeListDiff = $util.newBuffer($util.base64.length(object.masternodeListDiff)), 0);
|
|
7063
|
+
else if (object.masternodeListDiff.length >= 0)
|
|
7064
|
+
message.masternodeListDiff = object.masternodeListDiff;
|
|
7065
|
+
return message;
|
|
7066
|
+
};
|
|
7067
|
+
|
|
7068
|
+
/**
|
|
7069
|
+
* Creates a plain object from a MasternodeListResponse message. Also converts values to other types if specified.
|
|
7070
|
+
* @function toObject
|
|
7071
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
7072
|
+
* @static
|
|
7073
|
+
* @param {org.dash.platform.dapi.v0.MasternodeListResponse} message MasternodeListResponse
|
|
7074
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7075
|
+
* @returns {Object.<string,*>} Plain object
|
|
7076
|
+
*/
|
|
7077
|
+
MasternodeListResponse.toObject = function toObject(message, options) {
|
|
7078
|
+
if (!options)
|
|
7079
|
+
options = {};
|
|
7080
|
+
var object = {};
|
|
7081
|
+
if (options.defaults)
|
|
7082
|
+
if (options.bytes === String)
|
|
7083
|
+
object.masternodeListDiff = "";
|
|
7084
|
+
else {
|
|
7085
|
+
object.masternodeListDiff = [];
|
|
7086
|
+
if (options.bytes !== Array)
|
|
7087
|
+
object.masternodeListDiff = $util.newBuffer(object.masternodeListDiff);
|
|
7088
|
+
}
|
|
7089
|
+
if (message.masternodeListDiff != null && message.hasOwnProperty("masternodeListDiff"))
|
|
7090
|
+
object.masternodeListDiff = options.bytes === String ? $util.base64.encode(message.masternodeListDiff, 0, message.masternodeListDiff.length) : options.bytes === Array ? Array.prototype.slice.call(message.masternodeListDiff) : message.masternodeListDiff;
|
|
7091
|
+
return object;
|
|
7092
|
+
};
|
|
7093
|
+
|
|
7094
|
+
/**
|
|
7095
|
+
* Converts this MasternodeListResponse to JSON.
|
|
7096
|
+
* @function toJSON
|
|
7097
|
+
* @memberof org.dash.platform.dapi.v0.MasternodeListResponse
|
|
7098
|
+
* @instance
|
|
7099
|
+
* @returns {Object.<string,*>} JSON object
|
|
7100
|
+
*/
|
|
7101
|
+
MasternodeListResponse.prototype.toJSON = function toJSON() {
|
|
7102
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7103
|
+
};
|
|
7104
|
+
|
|
7105
|
+
return MasternodeListResponse;
|
|
7106
|
+
})();
|
|
7107
|
+
|
|
6719
7108
|
return v0;
|
|
6720
7109
|
})();
|
|
6721
7110
|
|
|
@@ -44,6 +44,8 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.S
|
|
|
44
44
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, { proto });
|
|
45
45
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, { proto });
|
|
46
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 });
|
|
47
49
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.RawTransactions', null, { proto });
|
|
48
50
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest', null, { proto });
|
|
49
51
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest.FromBlockCase', null, { proto });
|
|
@@ -616,6 +618,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
616
618
|
*/
|
|
617
619
|
proto.org.dash.platform.dapi.v0.InstantSendLockMessages.displayName = 'proto.org.dash.platform.dapi.v0.InstantSendLockMessages';
|
|
618
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
|
+
}
|
|
619
663
|
|
|
620
664
|
|
|
621
665
|
|
|
@@ -6225,4 +6269,259 @@ proto.org.dash.platform.dapi.v0.InstantSendLockMessages.prototype.clearMessagesL
|
|
|
6225
6269
|
};
|
|
6226
6270
|
|
|
6227
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
|
+
|
|
6228
6527
|
goog.object.extend(exports, proto.org.dash.platform.dapi.v0);
|
|
@@ -182,6 +182,22 @@ class CorePromiseClient {
|
|
|
182
182
|
rewireStream(stream);
|
|
183
183
|
return stream;
|
|
184
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
|
+
}
|
|
185
201
|
}
|
|
186
202
|
|
|
187
203
|
module.exports = CorePromiseClient;
|
|
@@ -827,3 +827,41 @@ export namespace InstantSendLockMessages {
|
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
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
|
+
|
|
@@ -44,6 +44,8 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.S
|
|
|
44
44
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, { proto });
|
|
45
45
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, { proto });
|
|
46
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 });
|
|
47
49
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.RawTransactions', null, { proto });
|
|
48
50
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest', null, { proto });
|
|
49
51
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest.FromBlockCase', null, { proto });
|
|
@@ -616,6 +618,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
616
618
|
*/
|
|
617
619
|
proto.org.dash.platform.dapi.v0.InstantSendLockMessages.displayName = 'proto.org.dash.platform.dapi.v0.InstantSendLockMessages';
|
|
618
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
|
+
}
|
|
619
663
|
|
|
620
664
|
|
|
621
665
|
|
|
@@ -6225,4 +6269,259 @@ proto.org.dash.platform.dapi.v0.InstantSendLockMessages.prototype.clearMessagesL
|
|
|
6225
6269
|
};
|
|
6226
6270
|
|
|
6227
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
|
+
|
|
6228
6527
|
goog.object.extend(exports, proto.org.dash.platform.dapi.v0);
|
|
@@ -85,6 +85,15 @@ type CoresubscribeToTransactionsWithProofs = {
|
|
|
85
85
|
readonly responseType: typeof core_pb.TransactionsWithProofsResponse;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
type CoresubscribeToMasternodeList = {
|
|
89
|
+
readonly methodName: string;
|
|
90
|
+
readonly service: typeof Core;
|
|
91
|
+
readonly requestStream: false;
|
|
92
|
+
readonly responseStream: true;
|
|
93
|
+
readonly requestType: typeof core_pb.MasternodeListRequest;
|
|
94
|
+
readonly responseType: typeof core_pb.MasternodeListResponse;
|
|
95
|
+
};
|
|
96
|
+
|
|
88
97
|
export class Core {
|
|
89
98
|
static readonly serviceName: string;
|
|
90
99
|
static readonly getBlockchainStatus: CoregetBlockchainStatus;
|
|
@@ -96,6 +105,7 @@ export class Core {
|
|
|
96
105
|
static readonly getEstimatedTransactionFee: CoregetEstimatedTransactionFee;
|
|
97
106
|
static readonly subscribeToBlockHeadersWithChainLocks: CoresubscribeToBlockHeadersWithChainLocks;
|
|
98
107
|
static readonly subscribeToTransactionsWithProofs: CoresubscribeToTransactionsWithProofs;
|
|
108
|
+
static readonly subscribeToMasternodeList: CoresubscribeToMasternodeList;
|
|
99
109
|
}
|
|
100
110
|
|
|
101
111
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -195,5 +205,6 @@ export class CoreClient {
|
|
|
195
205
|
): UnaryResponse;
|
|
196
206
|
subscribeToBlockHeadersWithChainLocks(requestMessage: core_pb.BlockHeadersWithChainLocksRequest, metadata?: grpc.Metadata): ResponseStream<core_pb.BlockHeadersWithChainLocksResponse>;
|
|
197
207
|
subscribeToTransactionsWithProofs(requestMessage: core_pb.TransactionsWithProofsRequest, metadata?: grpc.Metadata): ResponseStream<core_pb.TransactionsWithProofsResponse>;
|
|
208
|
+
subscribeToMasternodeList(requestMessage: core_pb.MasternodeListRequest, metadata?: grpc.Metadata): ResponseStream<core_pb.MasternodeListResponse>;
|
|
198
209
|
}
|
|
199
210
|
|
|
@@ -91,6 +91,15 @@ Core.subscribeToTransactionsWithProofs = {
|
|
|
91
91
|
responseType: core_pb.TransactionsWithProofsResponse
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
+
Core.subscribeToMasternodeList = {
|
|
95
|
+
methodName: "subscribeToMasternodeList",
|
|
96
|
+
service: Core,
|
|
97
|
+
requestStream: false,
|
|
98
|
+
responseStream: true,
|
|
99
|
+
requestType: core_pb.MasternodeListRequest,
|
|
100
|
+
responseType: core_pb.MasternodeListResponse
|
|
101
|
+
};
|
|
102
|
+
|
|
94
103
|
exports.Core = Core;
|
|
95
104
|
|
|
96
105
|
function CoreClient(serviceHost, options) {
|
|
@@ -393,5 +402,44 @@ CoreClient.prototype.subscribeToTransactionsWithProofs = function subscribeToTra
|
|
|
393
402
|
};
|
|
394
403
|
};
|
|
395
404
|
|
|
405
|
+
CoreClient.prototype.subscribeToMasternodeList = function subscribeToMasternodeList(requestMessage, metadata) {
|
|
406
|
+
var listeners = {
|
|
407
|
+
data: [],
|
|
408
|
+
end: [],
|
|
409
|
+
status: []
|
|
410
|
+
};
|
|
411
|
+
var client = grpc.invoke(Core.subscribeToMasternodeList, {
|
|
412
|
+
request: requestMessage,
|
|
413
|
+
host: this.serviceHost,
|
|
414
|
+
metadata: metadata,
|
|
415
|
+
transport: this.options.transport,
|
|
416
|
+
debug: this.options.debug,
|
|
417
|
+
onMessage: function (responseMessage) {
|
|
418
|
+
listeners.data.forEach(function (handler) {
|
|
419
|
+
handler(responseMessage);
|
|
420
|
+
});
|
|
421
|
+
},
|
|
422
|
+
onEnd: function (status, statusMessage, trailers) {
|
|
423
|
+
listeners.status.forEach(function (handler) {
|
|
424
|
+
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
425
|
+
});
|
|
426
|
+
listeners.end.forEach(function (handler) {
|
|
427
|
+
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
428
|
+
});
|
|
429
|
+
listeners = null;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
return {
|
|
433
|
+
on: function (type, handler) {
|
|
434
|
+
listeners[type].push(handler);
|
|
435
|
+
return this;
|
|
436
|
+
},
|
|
437
|
+
cancel: function () {
|
|
438
|
+
listeners = null;
|
|
439
|
+
client.close();
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
|
|
396
444
|
exports.CoreClient = CoreClient;
|
|
397
445
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-grpc",
|
|
3
|
-
"version": "1.0.0-pr.
|
|
3
|
+
"version": "1.0.0-pr.1883.1",
|
|
4
4
|
"description": "DAPI GRPC definition file and generated clients",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "node.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/dashevo/dapi-grpc#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dashevo/grpc-common": "1.0.0-pr.
|
|
48
|
+
"@dashevo/grpc-common": "1.0.0-pr.1883.1",
|
|
49
49
|
"@dashevo/protobufjs": "6.10.5",
|
|
50
50
|
"@grpc/grpc-js": "1.4.4",
|
|
51
51
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
@@ -12,6 +12,7 @@ service Core {
|
|
|
12
12
|
rpc getEstimatedTransactionFee (GetEstimatedTransactionFeeRequest) returns (GetEstimatedTransactionFeeResponse);
|
|
13
13
|
rpc subscribeToBlockHeadersWithChainLocks (BlockHeadersWithChainLocksRequest) returns (stream BlockHeadersWithChainLocksResponse);
|
|
14
14
|
rpc subscribeToTransactionsWithProofs (TransactionsWithProofsRequest) returns (stream TransactionsWithProofsResponse);
|
|
15
|
+
rpc subscribeToMasternodeList (MasternodeListRequest) returns (stream MasternodeListResponse);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
message GetBlockchainStatusRequest {
|
|
@@ -195,3 +196,11 @@ message RawTransactions {
|
|
|
195
196
|
message InstantSendLockMessages {
|
|
196
197
|
repeated bytes messages = 1;
|
|
197
198
|
}
|
|
199
|
+
|
|
200
|
+
message MasternodeListRequest {
|
|
201
|
+
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
message MasternodeListResponse {
|
|
205
|
+
bytes masternode_list_diff = 1;
|
|
206
|
+
}
|