@dashevo/dapi-grpc 3.0.0-dev.7 → 3.0.0-dev.9
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/build.rs +6 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +3132 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +3132 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +3025 -144
- package/clients/platform/v0/web/platform_pb.d.ts +383 -0
- package/clients/platform/v0/web/platform_pb.js +3025 -144
- package/clients/platform/v0/web/platform_pb_service.d.ts +38 -0
- package/clients/platform/v0/web/platform_pb_service.js +80 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +67 -0
- package/src/drive/client/org.dash.platform.dapi.v0.rs +286 -0
- package/src/drive/wasm/org.dash.platform.dapi.v0.rs +286 -0
- package/src/platform/client/org.dash.platform.dapi.v0.rs +300 -0
- package/src/platform/wasm/org.dash.platform.dapi.v0.rs +300 -0
|
@@ -2277,6 +2277,72 @@ $root.org = (function() {
|
|
|
2277
2277
|
* @variation 2
|
|
2278
2278
|
*/
|
|
2279
2279
|
|
|
2280
|
+
/**
|
|
2281
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentAddressBalanceChanges}.
|
|
2282
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2283
|
+
* @typedef getRecentAddressBalanceChangesCallback
|
|
2284
|
+
* @type {function}
|
|
2285
|
+
* @param {Error|null} error Error, if any
|
|
2286
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} [response] GetRecentAddressBalanceChangesResponse
|
|
2287
|
+
*/
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Calls getRecentAddressBalanceChanges.
|
|
2291
|
+
* @function getRecentAddressBalanceChanges
|
|
2292
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2293
|
+
* @instance
|
|
2294
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} request GetRecentAddressBalanceChangesRequest message or plain object
|
|
2295
|
+
* @param {org.dash.platform.dapi.v0.Platform.getRecentAddressBalanceChangesCallback} callback Node-style callback called with the error, if any, and GetRecentAddressBalanceChangesResponse
|
|
2296
|
+
* @returns {undefined}
|
|
2297
|
+
* @variation 1
|
|
2298
|
+
*/
|
|
2299
|
+
Object.defineProperty(Platform.prototype.getRecentAddressBalanceChanges = function getRecentAddressBalanceChanges(request, callback) {
|
|
2300
|
+
return this.rpcCall(getRecentAddressBalanceChanges, $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse, request, callback);
|
|
2301
|
+
}, "name", { value: "getRecentAddressBalanceChanges" });
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* Calls getRecentAddressBalanceChanges.
|
|
2305
|
+
* @function getRecentAddressBalanceChanges
|
|
2306
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2307
|
+
* @instance
|
|
2308
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} request GetRecentAddressBalanceChangesRequest message or plain object
|
|
2309
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse>} Promise
|
|
2310
|
+
* @variation 2
|
|
2311
|
+
*/
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentCompactedAddressBalanceChanges}.
|
|
2315
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2316
|
+
* @typedef getRecentCompactedAddressBalanceChangesCallback
|
|
2317
|
+
* @type {function}
|
|
2318
|
+
* @param {Error|null} error Error, if any
|
|
2319
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} [response] GetRecentCompactedAddressBalanceChangesResponse
|
|
2320
|
+
*/
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Calls getRecentCompactedAddressBalanceChanges.
|
|
2324
|
+
* @function getRecentCompactedAddressBalanceChanges
|
|
2325
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2326
|
+
* @instance
|
|
2327
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} request GetRecentCompactedAddressBalanceChangesRequest message or plain object
|
|
2328
|
+
* @param {org.dash.platform.dapi.v0.Platform.getRecentCompactedAddressBalanceChangesCallback} callback Node-style callback called with the error, if any, and GetRecentCompactedAddressBalanceChangesResponse
|
|
2329
|
+
* @returns {undefined}
|
|
2330
|
+
* @variation 1
|
|
2331
|
+
*/
|
|
2332
|
+
Object.defineProperty(Platform.prototype.getRecentCompactedAddressBalanceChanges = function getRecentCompactedAddressBalanceChanges(request, callback) {
|
|
2333
|
+
return this.rpcCall(getRecentCompactedAddressBalanceChanges, $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse, request, callback);
|
|
2334
|
+
}, "name", { value: "getRecentCompactedAddressBalanceChanges" });
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Calls getRecentCompactedAddressBalanceChanges.
|
|
2338
|
+
* @function getRecentCompactedAddressBalanceChanges
|
|
2339
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2340
|
+
* @instance
|
|
2341
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} request GetRecentCompactedAddressBalanceChangesRequest message or plain object
|
|
2342
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse>} Promise
|
|
2343
|
+
* @variation 2
|
|
2344
|
+
*/
|
|
2345
|
+
|
|
2280
2346
|
return Platform;
|
|
2281
2347
|
})();
|
|
2282
2348
|
|
|
@@ -75700,6 +75766,744 @@ $root.org = (function() {
|
|
|
75700
75766
|
return AddressInfoEntries;
|
|
75701
75767
|
})();
|
|
75702
75768
|
|
|
75769
|
+
v0.AddressBalanceChange = (function() {
|
|
75770
|
+
|
|
75771
|
+
/**
|
|
75772
|
+
* Properties of an AddressBalanceChange.
|
|
75773
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75774
|
+
* @interface IAddressBalanceChange
|
|
75775
|
+
* @property {Uint8Array|null} [address] AddressBalanceChange address
|
|
75776
|
+
* @property {number|Long|null} [setBalance] AddressBalanceChange setBalance
|
|
75777
|
+
* @property {number|Long|null} [addToBalance] AddressBalanceChange addToBalance
|
|
75778
|
+
*/
|
|
75779
|
+
|
|
75780
|
+
/**
|
|
75781
|
+
* Constructs a new AddressBalanceChange.
|
|
75782
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75783
|
+
* @classdesc Represents an AddressBalanceChange.
|
|
75784
|
+
* @implements IAddressBalanceChange
|
|
75785
|
+
* @constructor
|
|
75786
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceChange=} [properties] Properties to set
|
|
75787
|
+
*/
|
|
75788
|
+
function AddressBalanceChange(properties) {
|
|
75789
|
+
if (properties)
|
|
75790
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75791
|
+
if (properties[keys[i]] != null)
|
|
75792
|
+
this[keys[i]] = properties[keys[i]];
|
|
75793
|
+
}
|
|
75794
|
+
|
|
75795
|
+
/**
|
|
75796
|
+
* AddressBalanceChange address.
|
|
75797
|
+
* @member {Uint8Array} address
|
|
75798
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75799
|
+
* @instance
|
|
75800
|
+
*/
|
|
75801
|
+
AddressBalanceChange.prototype.address = $util.newBuffer([]);
|
|
75802
|
+
|
|
75803
|
+
/**
|
|
75804
|
+
* AddressBalanceChange setBalance.
|
|
75805
|
+
* @member {number|Long} setBalance
|
|
75806
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75807
|
+
* @instance
|
|
75808
|
+
*/
|
|
75809
|
+
AddressBalanceChange.prototype.setBalance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
75810
|
+
|
|
75811
|
+
/**
|
|
75812
|
+
* AddressBalanceChange addToBalance.
|
|
75813
|
+
* @member {number|Long} addToBalance
|
|
75814
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75815
|
+
* @instance
|
|
75816
|
+
*/
|
|
75817
|
+
AddressBalanceChange.prototype.addToBalance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
75818
|
+
|
|
75819
|
+
// OneOf field names bound to virtual getters and setters
|
|
75820
|
+
var $oneOfFields;
|
|
75821
|
+
|
|
75822
|
+
/**
|
|
75823
|
+
* AddressBalanceChange operation.
|
|
75824
|
+
* @member {"setBalance"|"addToBalance"|undefined} operation
|
|
75825
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75826
|
+
* @instance
|
|
75827
|
+
*/
|
|
75828
|
+
Object.defineProperty(AddressBalanceChange.prototype, "operation", {
|
|
75829
|
+
get: $util.oneOfGetter($oneOfFields = ["setBalance", "addToBalance"]),
|
|
75830
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
75831
|
+
});
|
|
75832
|
+
|
|
75833
|
+
/**
|
|
75834
|
+
* Creates a new AddressBalanceChange instance using the specified properties.
|
|
75835
|
+
* @function create
|
|
75836
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75837
|
+
* @static
|
|
75838
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceChange=} [properties] Properties to set
|
|
75839
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange instance
|
|
75840
|
+
*/
|
|
75841
|
+
AddressBalanceChange.create = function create(properties) {
|
|
75842
|
+
return new AddressBalanceChange(properties);
|
|
75843
|
+
};
|
|
75844
|
+
|
|
75845
|
+
/**
|
|
75846
|
+
* Encodes the specified AddressBalanceChange message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceChange.verify|verify} messages.
|
|
75847
|
+
* @function encode
|
|
75848
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75849
|
+
* @static
|
|
75850
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceChange} message AddressBalanceChange message or plain object to encode
|
|
75851
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75852
|
+
* @returns {$protobuf.Writer} Writer
|
|
75853
|
+
*/
|
|
75854
|
+
AddressBalanceChange.encode = function encode(message, writer) {
|
|
75855
|
+
if (!writer)
|
|
75856
|
+
writer = $Writer.create();
|
|
75857
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
75858
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
|
|
75859
|
+
if (message.setBalance != null && Object.hasOwnProperty.call(message, "setBalance"))
|
|
75860
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.setBalance);
|
|
75861
|
+
if (message.addToBalance != null && Object.hasOwnProperty.call(message, "addToBalance"))
|
|
75862
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.addToBalance);
|
|
75863
|
+
return writer;
|
|
75864
|
+
};
|
|
75865
|
+
|
|
75866
|
+
/**
|
|
75867
|
+
* Encodes the specified AddressBalanceChange message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceChange.verify|verify} messages.
|
|
75868
|
+
* @function encodeDelimited
|
|
75869
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75870
|
+
* @static
|
|
75871
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceChange} message AddressBalanceChange message or plain object to encode
|
|
75872
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75873
|
+
* @returns {$protobuf.Writer} Writer
|
|
75874
|
+
*/
|
|
75875
|
+
AddressBalanceChange.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75876
|
+
return this.encode(message, writer).ldelim();
|
|
75877
|
+
};
|
|
75878
|
+
|
|
75879
|
+
/**
|
|
75880
|
+
* Decodes an AddressBalanceChange message from the specified reader or buffer.
|
|
75881
|
+
* @function decode
|
|
75882
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75883
|
+
* @static
|
|
75884
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75885
|
+
* @param {number} [length] Message length if known beforehand
|
|
75886
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange
|
|
75887
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75888
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75889
|
+
*/
|
|
75890
|
+
AddressBalanceChange.decode = function decode(reader, length) {
|
|
75891
|
+
if (!(reader instanceof $Reader))
|
|
75892
|
+
reader = $Reader.create(reader);
|
|
75893
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressBalanceChange();
|
|
75894
|
+
while (reader.pos < end) {
|
|
75895
|
+
var tag = reader.uint32();
|
|
75896
|
+
switch (tag >>> 3) {
|
|
75897
|
+
case 1:
|
|
75898
|
+
message.address = reader.bytes();
|
|
75899
|
+
break;
|
|
75900
|
+
case 2:
|
|
75901
|
+
message.setBalance = reader.uint64();
|
|
75902
|
+
break;
|
|
75903
|
+
case 3:
|
|
75904
|
+
message.addToBalance = reader.uint64();
|
|
75905
|
+
break;
|
|
75906
|
+
default:
|
|
75907
|
+
reader.skipType(tag & 7);
|
|
75908
|
+
break;
|
|
75909
|
+
}
|
|
75910
|
+
}
|
|
75911
|
+
return message;
|
|
75912
|
+
};
|
|
75913
|
+
|
|
75914
|
+
/**
|
|
75915
|
+
* Decodes an AddressBalanceChange message from the specified reader or buffer, length delimited.
|
|
75916
|
+
* @function decodeDelimited
|
|
75917
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75918
|
+
* @static
|
|
75919
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75920
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange
|
|
75921
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75922
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75923
|
+
*/
|
|
75924
|
+
AddressBalanceChange.decodeDelimited = function decodeDelimited(reader) {
|
|
75925
|
+
if (!(reader instanceof $Reader))
|
|
75926
|
+
reader = new $Reader(reader);
|
|
75927
|
+
return this.decode(reader, reader.uint32());
|
|
75928
|
+
};
|
|
75929
|
+
|
|
75930
|
+
/**
|
|
75931
|
+
* Verifies an AddressBalanceChange message.
|
|
75932
|
+
* @function verify
|
|
75933
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75934
|
+
* @static
|
|
75935
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75936
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75937
|
+
*/
|
|
75938
|
+
AddressBalanceChange.verify = function verify(message) {
|
|
75939
|
+
if (typeof message !== "object" || message === null)
|
|
75940
|
+
return "object expected";
|
|
75941
|
+
var properties = {};
|
|
75942
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
75943
|
+
if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
|
|
75944
|
+
return "address: buffer expected";
|
|
75945
|
+
if (message.setBalance != null && message.hasOwnProperty("setBalance")) {
|
|
75946
|
+
properties.operation = 1;
|
|
75947
|
+
if (!$util.isInteger(message.setBalance) && !(message.setBalance && $util.isInteger(message.setBalance.low) && $util.isInteger(message.setBalance.high)))
|
|
75948
|
+
return "setBalance: integer|Long expected";
|
|
75949
|
+
}
|
|
75950
|
+
if (message.addToBalance != null && message.hasOwnProperty("addToBalance")) {
|
|
75951
|
+
if (properties.operation === 1)
|
|
75952
|
+
return "operation: multiple values";
|
|
75953
|
+
properties.operation = 1;
|
|
75954
|
+
if (!$util.isInteger(message.addToBalance) && !(message.addToBalance && $util.isInteger(message.addToBalance.low) && $util.isInteger(message.addToBalance.high)))
|
|
75955
|
+
return "addToBalance: integer|Long expected";
|
|
75956
|
+
}
|
|
75957
|
+
return null;
|
|
75958
|
+
};
|
|
75959
|
+
|
|
75960
|
+
/**
|
|
75961
|
+
* Creates an AddressBalanceChange message from a plain object. Also converts values to their respective internal types.
|
|
75962
|
+
* @function fromObject
|
|
75963
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
75964
|
+
* @static
|
|
75965
|
+
* @param {Object.<string,*>} object Plain object
|
|
75966
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange
|
|
75967
|
+
*/
|
|
75968
|
+
AddressBalanceChange.fromObject = function fromObject(object) {
|
|
75969
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.AddressBalanceChange)
|
|
75970
|
+
return object;
|
|
75971
|
+
var message = new $root.org.dash.platform.dapi.v0.AddressBalanceChange();
|
|
75972
|
+
if (object.address != null)
|
|
75973
|
+
if (typeof object.address === "string")
|
|
75974
|
+
$util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
|
|
75975
|
+
else if (object.address.length >= 0)
|
|
75976
|
+
message.address = object.address;
|
|
75977
|
+
if (object.setBalance != null)
|
|
75978
|
+
if ($util.Long)
|
|
75979
|
+
(message.setBalance = $util.Long.fromValue(object.setBalance)).unsigned = true;
|
|
75980
|
+
else if (typeof object.setBalance === "string")
|
|
75981
|
+
message.setBalance = parseInt(object.setBalance, 10);
|
|
75982
|
+
else if (typeof object.setBalance === "number")
|
|
75983
|
+
message.setBalance = object.setBalance;
|
|
75984
|
+
else if (typeof object.setBalance === "object")
|
|
75985
|
+
message.setBalance = new $util.LongBits(object.setBalance.low >>> 0, object.setBalance.high >>> 0).toNumber(true);
|
|
75986
|
+
if (object.addToBalance != null)
|
|
75987
|
+
if ($util.Long)
|
|
75988
|
+
(message.addToBalance = $util.Long.fromValue(object.addToBalance)).unsigned = true;
|
|
75989
|
+
else if (typeof object.addToBalance === "string")
|
|
75990
|
+
message.addToBalance = parseInt(object.addToBalance, 10);
|
|
75991
|
+
else if (typeof object.addToBalance === "number")
|
|
75992
|
+
message.addToBalance = object.addToBalance;
|
|
75993
|
+
else if (typeof object.addToBalance === "object")
|
|
75994
|
+
message.addToBalance = new $util.LongBits(object.addToBalance.low >>> 0, object.addToBalance.high >>> 0).toNumber(true);
|
|
75995
|
+
return message;
|
|
75996
|
+
};
|
|
75997
|
+
|
|
75998
|
+
/**
|
|
75999
|
+
* Creates a plain object from an AddressBalanceChange message. Also converts values to other types if specified.
|
|
76000
|
+
* @function toObject
|
|
76001
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
76002
|
+
* @static
|
|
76003
|
+
* @param {org.dash.platform.dapi.v0.AddressBalanceChange} message AddressBalanceChange
|
|
76004
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76005
|
+
* @returns {Object.<string,*>} Plain object
|
|
76006
|
+
*/
|
|
76007
|
+
AddressBalanceChange.toObject = function toObject(message, options) {
|
|
76008
|
+
if (!options)
|
|
76009
|
+
options = {};
|
|
76010
|
+
var object = {};
|
|
76011
|
+
if (options.defaults)
|
|
76012
|
+
if (options.bytes === String)
|
|
76013
|
+
object.address = "";
|
|
76014
|
+
else {
|
|
76015
|
+
object.address = [];
|
|
76016
|
+
if (options.bytes !== Array)
|
|
76017
|
+
object.address = $util.newBuffer(object.address);
|
|
76018
|
+
}
|
|
76019
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
76020
|
+
object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address;
|
|
76021
|
+
if (message.setBalance != null && message.hasOwnProperty("setBalance")) {
|
|
76022
|
+
if (typeof message.setBalance === "number")
|
|
76023
|
+
object.setBalance = options.longs === String ? String(message.setBalance) : message.setBalance;
|
|
76024
|
+
else
|
|
76025
|
+
object.setBalance = options.longs === String ? $util.Long.prototype.toString.call(message.setBalance) : options.longs === Number ? new $util.LongBits(message.setBalance.low >>> 0, message.setBalance.high >>> 0).toNumber(true) : message.setBalance;
|
|
76026
|
+
if (options.oneofs)
|
|
76027
|
+
object.operation = "setBalance";
|
|
76028
|
+
}
|
|
76029
|
+
if (message.addToBalance != null && message.hasOwnProperty("addToBalance")) {
|
|
76030
|
+
if (typeof message.addToBalance === "number")
|
|
76031
|
+
object.addToBalance = options.longs === String ? String(message.addToBalance) : message.addToBalance;
|
|
76032
|
+
else
|
|
76033
|
+
object.addToBalance = options.longs === String ? $util.Long.prototype.toString.call(message.addToBalance) : options.longs === Number ? new $util.LongBits(message.addToBalance.low >>> 0, message.addToBalance.high >>> 0).toNumber(true) : message.addToBalance;
|
|
76034
|
+
if (options.oneofs)
|
|
76035
|
+
object.operation = "addToBalance";
|
|
76036
|
+
}
|
|
76037
|
+
return object;
|
|
76038
|
+
};
|
|
76039
|
+
|
|
76040
|
+
/**
|
|
76041
|
+
* Converts this AddressBalanceChange to JSON.
|
|
76042
|
+
* @function toJSON
|
|
76043
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceChange
|
|
76044
|
+
* @instance
|
|
76045
|
+
* @returns {Object.<string,*>} JSON object
|
|
76046
|
+
*/
|
|
76047
|
+
AddressBalanceChange.prototype.toJSON = function toJSON() {
|
|
76048
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76049
|
+
};
|
|
76050
|
+
|
|
76051
|
+
return AddressBalanceChange;
|
|
76052
|
+
})();
|
|
76053
|
+
|
|
76054
|
+
v0.BlockAddressBalanceChanges = (function() {
|
|
76055
|
+
|
|
76056
|
+
/**
|
|
76057
|
+
* Properties of a BlockAddressBalanceChanges.
|
|
76058
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76059
|
+
* @interface IBlockAddressBalanceChanges
|
|
76060
|
+
* @property {number|Long|null} [blockHeight] BlockAddressBalanceChanges blockHeight
|
|
76061
|
+
* @property {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>|null} [changes] BlockAddressBalanceChanges changes
|
|
76062
|
+
*/
|
|
76063
|
+
|
|
76064
|
+
/**
|
|
76065
|
+
* Constructs a new BlockAddressBalanceChanges.
|
|
76066
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76067
|
+
* @classdesc Represents a BlockAddressBalanceChanges.
|
|
76068
|
+
* @implements IBlockAddressBalanceChanges
|
|
76069
|
+
* @constructor
|
|
76070
|
+
* @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges=} [properties] Properties to set
|
|
76071
|
+
*/
|
|
76072
|
+
function BlockAddressBalanceChanges(properties) {
|
|
76073
|
+
this.changes = [];
|
|
76074
|
+
if (properties)
|
|
76075
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76076
|
+
if (properties[keys[i]] != null)
|
|
76077
|
+
this[keys[i]] = properties[keys[i]];
|
|
76078
|
+
}
|
|
76079
|
+
|
|
76080
|
+
/**
|
|
76081
|
+
* BlockAddressBalanceChanges blockHeight.
|
|
76082
|
+
* @member {number|Long} blockHeight
|
|
76083
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76084
|
+
* @instance
|
|
76085
|
+
*/
|
|
76086
|
+
BlockAddressBalanceChanges.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
76087
|
+
|
|
76088
|
+
/**
|
|
76089
|
+
* BlockAddressBalanceChanges changes.
|
|
76090
|
+
* @member {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>} changes
|
|
76091
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76092
|
+
* @instance
|
|
76093
|
+
*/
|
|
76094
|
+
BlockAddressBalanceChanges.prototype.changes = $util.emptyArray;
|
|
76095
|
+
|
|
76096
|
+
/**
|
|
76097
|
+
* Creates a new BlockAddressBalanceChanges instance using the specified properties.
|
|
76098
|
+
* @function create
|
|
76099
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76100
|
+
* @static
|
|
76101
|
+
* @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges=} [properties] Properties to set
|
|
76102
|
+
* @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges instance
|
|
76103
|
+
*/
|
|
76104
|
+
BlockAddressBalanceChanges.create = function create(properties) {
|
|
76105
|
+
return new BlockAddressBalanceChanges(properties);
|
|
76106
|
+
};
|
|
76107
|
+
|
|
76108
|
+
/**
|
|
76109
|
+
* Encodes the specified BlockAddressBalanceChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.BlockAddressBalanceChanges.verify|verify} messages.
|
|
76110
|
+
* @function encode
|
|
76111
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76112
|
+
* @static
|
|
76113
|
+
* @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges} message BlockAddressBalanceChanges message or plain object to encode
|
|
76114
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76115
|
+
* @returns {$protobuf.Writer} Writer
|
|
76116
|
+
*/
|
|
76117
|
+
BlockAddressBalanceChanges.encode = function encode(message, writer) {
|
|
76118
|
+
if (!writer)
|
|
76119
|
+
writer = $Writer.create();
|
|
76120
|
+
if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight"))
|
|
76121
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.blockHeight);
|
|
76122
|
+
if (message.changes != null && message.changes.length)
|
|
76123
|
+
for (var i = 0; i < message.changes.length; ++i)
|
|
76124
|
+
$root.org.dash.platform.dapi.v0.AddressBalanceChange.encode(message.changes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
76125
|
+
return writer;
|
|
76126
|
+
};
|
|
76127
|
+
|
|
76128
|
+
/**
|
|
76129
|
+
* Encodes the specified BlockAddressBalanceChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BlockAddressBalanceChanges.verify|verify} messages.
|
|
76130
|
+
* @function encodeDelimited
|
|
76131
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76132
|
+
* @static
|
|
76133
|
+
* @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges} message BlockAddressBalanceChanges message or plain object to encode
|
|
76134
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76135
|
+
* @returns {$protobuf.Writer} Writer
|
|
76136
|
+
*/
|
|
76137
|
+
BlockAddressBalanceChanges.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76138
|
+
return this.encode(message, writer).ldelim();
|
|
76139
|
+
};
|
|
76140
|
+
|
|
76141
|
+
/**
|
|
76142
|
+
* Decodes a BlockAddressBalanceChanges message from the specified reader or buffer.
|
|
76143
|
+
* @function decode
|
|
76144
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76145
|
+
* @static
|
|
76146
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76147
|
+
* @param {number} [length] Message length if known beforehand
|
|
76148
|
+
* @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges
|
|
76149
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76150
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76151
|
+
*/
|
|
76152
|
+
BlockAddressBalanceChanges.decode = function decode(reader, length) {
|
|
76153
|
+
if (!(reader instanceof $Reader))
|
|
76154
|
+
reader = $Reader.create(reader);
|
|
76155
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges();
|
|
76156
|
+
while (reader.pos < end) {
|
|
76157
|
+
var tag = reader.uint32();
|
|
76158
|
+
switch (tag >>> 3) {
|
|
76159
|
+
case 1:
|
|
76160
|
+
message.blockHeight = reader.uint64();
|
|
76161
|
+
break;
|
|
76162
|
+
case 2:
|
|
76163
|
+
if (!(message.changes && message.changes.length))
|
|
76164
|
+
message.changes = [];
|
|
76165
|
+
message.changes.push($root.org.dash.platform.dapi.v0.AddressBalanceChange.decode(reader, reader.uint32()));
|
|
76166
|
+
break;
|
|
76167
|
+
default:
|
|
76168
|
+
reader.skipType(tag & 7);
|
|
76169
|
+
break;
|
|
76170
|
+
}
|
|
76171
|
+
}
|
|
76172
|
+
return message;
|
|
76173
|
+
};
|
|
76174
|
+
|
|
76175
|
+
/**
|
|
76176
|
+
* Decodes a BlockAddressBalanceChanges message from the specified reader or buffer, length delimited.
|
|
76177
|
+
* @function decodeDelimited
|
|
76178
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76179
|
+
* @static
|
|
76180
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76181
|
+
* @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges
|
|
76182
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76183
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76184
|
+
*/
|
|
76185
|
+
BlockAddressBalanceChanges.decodeDelimited = function decodeDelimited(reader) {
|
|
76186
|
+
if (!(reader instanceof $Reader))
|
|
76187
|
+
reader = new $Reader(reader);
|
|
76188
|
+
return this.decode(reader, reader.uint32());
|
|
76189
|
+
};
|
|
76190
|
+
|
|
76191
|
+
/**
|
|
76192
|
+
* Verifies a BlockAddressBalanceChanges message.
|
|
76193
|
+
* @function verify
|
|
76194
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76195
|
+
* @static
|
|
76196
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76197
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76198
|
+
*/
|
|
76199
|
+
BlockAddressBalanceChanges.verify = function verify(message) {
|
|
76200
|
+
if (typeof message !== "object" || message === null)
|
|
76201
|
+
return "object expected";
|
|
76202
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
|
|
76203
|
+
if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high)))
|
|
76204
|
+
return "blockHeight: integer|Long expected";
|
|
76205
|
+
if (message.changes != null && message.hasOwnProperty("changes")) {
|
|
76206
|
+
if (!Array.isArray(message.changes))
|
|
76207
|
+
return "changes: array expected";
|
|
76208
|
+
for (var i = 0; i < message.changes.length; ++i) {
|
|
76209
|
+
var error = $root.org.dash.platform.dapi.v0.AddressBalanceChange.verify(message.changes[i]);
|
|
76210
|
+
if (error)
|
|
76211
|
+
return "changes." + error;
|
|
76212
|
+
}
|
|
76213
|
+
}
|
|
76214
|
+
return null;
|
|
76215
|
+
};
|
|
76216
|
+
|
|
76217
|
+
/**
|
|
76218
|
+
* Creates a BlockAddressBalanceChanges message from a plain object. Also converts values to their respective internal types.
|
|
76219
|
+
* @function fromObject
|
|
76220
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76221
|
+
* @static
|
|
76222
|
+
* @param {Object.<string,*>} object Plain object
|
|
76223
|
+
* @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges
|
|
76224
|
+
*/
|
|
76225
|
+
BlockAddressBalanceChanges.fromObject = function fromObject(object) {
|
|
76226
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges)
|
|
76227
|
+
return object;
|
|
76228
|
+
var message = new $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges();
|
|
76229
|
+
if (object.blockHeight != null)
|
|
76230
|
+
if ($util.Long)
|
|
76231
|
+
(message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true;
|
|
76232
|
+
else if (typeof object.blockHeight === "string")
|
|
76233
|
+
message.blockHeight = parseInt(object.blockHeight, 10);
|
|
76234
|
+
else if (typeof object.blockHeight === "number")
|
|
76235
|
+
message.blockHeight = object.blockHeight;
|
|
76236
|
+
else if (typeof object.blockHeight === "object")
|
|
76237
|
+
message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true);
|
|
76238
|
+
if (object.changes) {
|
|
76239
|
+
if (!Array.isArray(object.changes))
|
|
76240
|
+
throw TypeError(".org.dash.platform.dapi.v0.BlockAddressBalanceChanges.changes: array expected");
|
|
76241
|
+
message.changes = [];
|
|
76242
|
+
for (var i = 0; i < object.changes.length; ++i) {
|
|
76243
|
+
if (typeof object.changes[i] !== "object")
|
|
76244
|
+
throw TypeError(".org.dash.platform.dapi.v0.BlockAddressBalanceChanges.changes: object expected");
|
|
76245
|
+
message.changes[i] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.fromObject(object.changes[i]);
|
|
76246
|
+
}
|
|
76247
|
+
}
|
|
76248
|
+
return message;
|
|
76249
|
+
};
|
|
76250
|
+
|
|
76251
|
+
/**
|
|
76252
|
+
* Creates a plain object from a BlockAddressBalanceChanges message. Also converts values to other types if specified.
|
|
76253
|
+
* @function toObject
|
|
76254
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76255
|
+
* @static
|
|
76256
|
+
* @param {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} message BlockAddressBalanceChanges
|
|
76257
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76258
|
+
* @returns {Object.<string,*>} Plain object
|
|
76259
|
+
*/
|
|
76260
|
+
BlockAddressBalanceChanges.toObject = function toObject(message, options) {
|
|
76261
|
+
if (!options)
|
|
76262
|
+
options = {};
|
|
76263
|
+
var object = {};
|
|
76264
|
+
if (options.arrays || options.defaults)
|
|
76265
|
+
object.changes = [];
|
|
76266
|
+
if (options.defaults)
|
|
76267
|
+
if ($util.Long) {
|
|
76268
|
+
var long = new $util.Long(0, 0, true);
|
|
76269
|
+
object.blockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
76270
|
+
} else
|
|
76271
|
+
object.blockHeight = options.longs === String ? "0" : 0;
|
|
76272
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
|
|
76273
|
+
if (typeof message.blockHeight === "number")
|
|
76274
|
+
object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight;
|
|
76275
|
+
else
|
|
76276
|
+
object.blockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.blockHeight) : options.longs === Number ? new $util.LongBits(message.blockHeight.low >>> 0, message.blockHeight.high >>> 0).toNumber(true) : message.blockHeight;
|
|
76277
|
+
if (message.changes && message.changes.length) {
|
|
76278
|
+
object.changes = [];
|
|
76279
|
+
for (var j = 0; j < message.changes.length; ++j)
|
|
76280
|
+
object.changes[j] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.toObject(message.changes[j], options);
|
|
76281
|
+
}
|
|
76282
|
+
return object;
|
|
76283
|
+
};
|
|
76284
|
+
|
|
76285
|
+
/**
|
|
76286
|
+
* Converts this BlockAddressBalanceChanges to JSON.
|
|
76287
|
+
* @function toJSON
|
|
76288
|
+
* @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
|
|
76289
|
+
* @instance
|
|
76290
|
+
* @returns {Object.<string,*>} JSON object
|
|
76291
|
+
*/
|
|
76292
|
+
BlockAddressBalanceChanges.prototype.toJSON = function toJSON() {
|
|
76293
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76294
|
+
};
|
|
76295
|
+
|
|
76296
|
+
return BlockAddressBalanceChanges;
|
|
76297
|
+
})();
|
|
76298
|
+
|
|
76299
|
+
v0.AddressBalanceUpdateEntries = (function() {
|
|
76300
|
+
|
|
76301
|
+
/**
|
|
76302
|
+
* Properties of an AddressBalanceUpdateEntries.
|
|
76303
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76304
|
+
* @interface IAddressBalanceUpdateEntries
|
|
76305
|
+
* @property {Array.<org.dash.platform.dapi.v0.IBlockAddressBalanceChanges>|null} [blockChanges] AddressBalanceUpdateEntries blockChanges
|
|
76306
|
+
*/
|
|
76307
|
+
|
|
76308
|
+
/**
|
|
76309
|
+
* Constructs a new AddressBalanceUpdateEntries.
|
|
76310
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76311
|
+
* @classdesc Represents an AddressBalanceUpdateEntries.
|
|
76312
|
+
* @implements IAddressBalanceUpdateEntries
|
|
76313
|
+
* @constructor
|
|
76314
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries=} [properties] Properties to set
|
|
76315
|
+
*/
|
|
76316
|
+
function AddressBalanceUpdateEntries(properties) {
|
|
76317
|
+
this.blockChanges = [];
|
|
76318
|
+
if (properties)
|
|
76319
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76320
|
+
if (properties[keys[i]] != null)
|
|
76321
|
+
this[keys[i]] = properties[keys[i]];
|
|
76322
|
+
}
|
|
76323
|
+
|
|
76324
|
+
/**
|
|
76325
|
+
* AddressBalanceUpdateEntries blockChanges.
|
|
76326
|
+
* @member {Array.<org.dash.platform.dapi.v0.IBlockAddressBalanceChanges>} blockChanges
|
|
76327
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76328
|
+
* @instance
|
|
76329
|
+
*/
|
|
76330
|
+
AddressBalanceUpdateEntries.prototype.blockChanges = $util.emptyArray;
|
|
76331
|
+
|
|
76332
|
+
/**
|
|
76333
|
+
* Creates a new AddressBalanceUpdateEntries instance using the specified properties.
|
|
76334
|
+
* @function create
|
|
76335
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76336
|
+
* @static
|
|
76337
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries=} [properties] Properties to set
|
|
76338
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries instance
|
|
76339
|
+
*/
|
|
76340
|
+
AddressBalanceUpdateEntries.create = function create(properties) {
|
|
76341
|
+
return new AddressBalanceUpdateEntries(properties);
|
|
76342
|
+
};
|
|
76343
|
+
|
|
76344
|
+
/**
|
|
76345
|
+
* Encodes the specified AddressBalanceUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.verify|verify} messages.
|
|
76346
|
+
* @function encode
|
|
76347
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76348
|
+
* @static
|
|
76349
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries} message AddressBalanceUpdateEntries message or plain object to encode
|
|
76350
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76351
|
+
* @returns {$protobuf.Writer} Writer
|
|
76352
|
+
*/
|
|
76353
|
+
AddressBalanceUpdateEntries.encode = function encode(message, writer) {
|
|
76354
|
+
if (!writer)
|
|
76355
|
+
writer = $Writer.create();
|
|
76356
|
+
if (message.blockChanges != null && message.blockChanges.length)
|
|
76357
|
+
for (var i = 0; i < message.blockChanges.length; ++i)
|
|
76358
|
+
$root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.encode(message.blockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
76359
|
+
return writer;
|
|
76360
|
+
};
|
|
76361
|
+
|
|
76362
|
+
/**
|
|
76363
|
+
* Encodes the specified AddressBalanceUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.verify|verify} messages.
|
|
76364
|
+
* @function encodeDelimited
|
|
76365
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76366
|
+
* @static
|
|
76367
|
+
* @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries} message AddressBalanceUpdateEntries message or plain object to encode
|
|
76368
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76369
|
+
* @returns {$protobuf.Writer} Writer
|
|
76370
|
+
*/
|
|
76371
|
+
AddressBalanceUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76372
|
+
return this.encode(message, writer).ldelim();
|
|
76373
|
+
};
|
|
76374
|
+
|
|
76375
|
+
/**
|
|
76376
|
+
* Decodes an AddressBalanceUpdateEntries message from the specified reader or buffer.
|
|
76377
|
+
* @function decode
|
|
76378
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76379
|
+
* @static
|
|
76380
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76381
|
+
* @param {number} [length] Message length if known beforehand
|
|
76382
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries
|
|
76383
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76384
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76385
|
+
*/
|
|
76386
|
+
AddressBalanceUpdateEntries.decode = function decode(reader, length) {
|
|
76387
|
+
if (!(reader instanceof $Reader))
|
|
76388
|
+
reader = $Reader.create(reader);
|
|
76389
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries();
|
|
76390
|
+
while (reader.pos < end) {
|
|
76391
|
+
var tag = reader.uint32();
|
|
76392
|
+
switch (tag >>> 3) {
|
|
76393
|
+
case 1:
|
|
76394
|
+
if (!(message.blockChanges && message.blockChanges.length))
|
|
76395
|
+
message.blockChanges = [];
|
|
76396
|
+
message.blockChanges.push($root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.decode(reader, reader.uint32()));
|
|
76397
|
+
break;
|
|
76398
|
+
default:
|
|
76399
|
+
reader.skipType(tag & 7);
|
|
76400
|
+
break;
|
|
76401
|
+
}
|
|
76402
|
+
}
|
|
76403
|
+
return message;
|
|
76404
|
+
};
|
|
76405
|
+
|
|
76406
|
+
/**
|
|
76407
|
+
* Decodes an AddressBalanceUpdateEntries message from the specified reader or buffer, length delimited.
|
|
76408
|
+
* @function decodeDelimited
|
|
76409
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76410
|
+
* @static
|
|
76411
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76412
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries
|
|
76413
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76414
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76415
|
+
*/
|
|
76416
|
+
AddressBalanceUpdateEntries.decodeDelimited = function decodeDelimited(reader) {
|
|
76417
|
+
if (!(reader instanceof $Reader))
|
|
76418
|
+
reader = new $Reader(reader);
|
|
76419
|
+
return this.decode(reader, reader.uint32());
|
|
76420
|
+
};
|
|
76421
|
+
|
|
76422
|
+
/**
|
|
76423
|
+
* Verifies an AddressBalanceUpdateEntries message.
|
|
76424
|
+
* @function verify
|
|
76425
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76426
|
+
* @static
|
|
76427
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76428
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76429
|
+
*/
|
|
76430
|
+
AddressBalanceUpdateEntries.verify = function verify(message) {
|
|
76431
|
+
if (typeof message !== "object" || message === null)
|
|
76432
|
+
return "object expected";
|
|
76433
|
+
if (message.blockChanges != null && message.hasOwnProperty("blockChanges")) {
|
|
76434
|
+
if (!Array.isArray(message.blockChanges))
|
|
76435
|
+
return "blockChanges: array expected";
|
|
76436
|
+
for (var i = 0; i < message.blockChanges.length; ++i) {
|
|
76437
|
+
var error = $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.verify(message.blockChanges[i]);
|
|
76438
|
+
if (error)
|
|
76439
|
+
return "blockChanges." + error;
|
|
76440
|
+
}
|
|
76441
|
+
}
|
|
76442
|
+
return null;
|
|
76443
|
+
};
|
|
76444
|
+
|
|
76445
|
+
/**
|
|
76446
|
+
* Creates an AddressBalanceUpdateEntries message from a plain object. Also converts values to their respective internal types.
|
|
76447
|
+
* @function fromObject
|
|
76448
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76449
|
+
* @static
|
|
76450
|
+
* @param {Object.<string,*>} object Plain object
|
|
76451
|
+
* @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries
|
|
76452
|
+
*/
|
|
76453
|
+
AddressBalanceUpdateEntries.fromObject = function fromObject(object) {
|
|
76454
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries)
|
|
76455
|
+
return object;
|
|
76456
|
+
var message = new $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries();
|
|
76457
|
+
if (object.blockChanges) {
|
|
76458
|
+
if (!Array.isArray(object.blockChanges))
|
|
76459
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.blockChanges: array expected");
|
|
76460
|
+
message.blockChanges = [];
|
|
76461
|
+
for (var i = 0; i < object.blockChanges.length; ++i) {
|
|
76462
|
+
if (typeof object.blockChanges[i] !== "object")
|
|
76463
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.blockChanges: object expected");
|
|
76464
|
+
message.blockChanges[i] = $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.fromObject(object.blockChanges[i]);
|
|
76465
|
+
}
|
|
76466
|
+
}
|
|
76467
|
+
return message;
|
|
76468
|
+
};
|
|
76469
|
+
|
|
76470
|
+
/**
|
|
76471
|
+
* Creates a plain object from an AddressBalanceUpdateEntries message. Also converts values to other types if specified.
|
|
76472
|
+
* @function toObject
|
|
76473
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76474
|
+
* @static
|
|
76475
|
+
* @param {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} message AddressBalanceUpdateEntries
|
|
76476
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76477
|
+
* @returns {Object.<string,*>} Plain object
|
|
76478
|
+
*/
|
|
76479
|
+
AddressBalanceUpdateEntries.toObject = function toObject(message, options) {
|
|
76480
|
+
if (!options)
|
|
76481
|
+
options = {};
|
|
76482
|
+
var object = {};
|
|
76483
|
+
if (options.arrays || options.defaults)
|
|
76484
|
+
object.blockChanges = [];
|
|
76485
|
+
if (message.blockChanges && message.blockChanges.length) {
|
|
76486
|
+
object.blockChanges = [];
|
|
76487
|
+
for (var j = 0; j < message.blockChanges.length; ++j)
|
|
76488
|
+
object.blockChanges[j] = $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.toObject(message.blockChanges[j], options);
|
|
76489
|
+
}
|
|
76490
|
+
return object;
|
|
76491
|
+
};
|
|
76492
|
+
|
|
76493
|
+
/**
|
|
76494
|
+
* Converts this AddressBalanceUpdateEntries to JSON.
|
|
76495
|
+
* @function toJSON
|
|
76496
|
+
* @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
|
|
76497
|
+
* @instance
|
|
76498
|
+
* @returns {Object.<string,*>} JSON object
|
|
76499
|
+
*/
|
|
76500
|
+
AddressBalanceUpdateEntries.prototype.toJSON = function toJSON() {
|
|
76501
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76502
|
+
};
|
|
76503
|
+
|
|
76504
|
+
return AddressBalanceUpdateEntries;
|
|
76505
|
+
})();
|
|
76506
|
+
|
|
75703
76507
|
v0.GetAddressInfoResponse = (function() {
|
|
75704
76508
|
|
|
75705
76509
|
/**
|
|
@@ -78783,6 +79587,2334 @@ $root.org = (function() {
|
|
|
78783
79587
|
return GetAddressesBranchStateResponse;
|
|
78784
79588
|
})();
|
|
78785
79589
|
|
|
79590
|
+
v0.GetRecentAddressBalanceChangesRequest = (function() {
|
|
79591
|
+
|
|
79592
|
+
/**
|
|
79593
|
+
* Properties of a GetRecentAddressBalanceChangesRequest.
|
|
79594
|
+
* @memberof org.dash.platform.dapi.v0
|
|
79595
|
+
* @interface IGetRecentAddressBalanceChangesRequest
|
|
79596
|
+
* @property {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0|null} [v0] GetRecentAddressBalanceChangesRequest v0
|
|
79597
|
+
*/
|
|
79598
|
+
|
|
79599
|
+
/**
|
|
79600
|
+
* Constructs a new GetRecentAddressBalanceChangesRequest.
|
|
79601
|
+
* @memberof org.dash.platform.dapi.v0
|
|
79602
|
+
* @classdesc Represents a GetRecentAddressBalanceChangesRequest.
|
|
79603
|
+
* @implements IGetRecentAddressBalanceChangesRequest
|
|
79604
|
+
* @constructor
|
|
79605
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest=} [properties] Properties to set
|
|
79606
|
+
*/
|
|
79607
|
+
function GetRecentAddressBalanceChangesRequest(properties) {
|
|
79608
|
+
if (properties)
|
|
79609
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
79610
|
+
if (properties[keys[i]] != null)
|
|
79611
|
+
this[keys[i]] = properties[keys[i]];
|
|
79612
|
+
}
|
|
79613
|
+
|
|
79614
|
+
/**
|
|
79615
|
+
* GetRecentAddressBalanceChangesRequest v0.
|
|
79616
|
+
* @member {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0|null|undefined} v0
|
|
79617
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79618
|
+
* @instance
|
|
79619
|
+
*/
|
|
79620
|
+
GetRecentAddressBalanceChangesRequest.prototype.v0 = null;
|
|
79621
|
+
|
|
79622
|
+
// OneOf field names bound to virtual getters and setters
|
|
79623
|
+
var $oneOfFields;
|
|
79624
|
+
|
|
79625
|
+
/**
|
|
79626
|
+
* GetRecentAddressBalanceChangesRequest version.
|
|
79627
|
+
* @member {"v0"|undefined} version
|
|
79628
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79629
|
+
* @instance
|
|
79630
|
+
*/
|
|
79631
|
+
Object.defineProperty(GetRecentAddressBalanceChangesRequest.prototype, "version", {
|
|
79632
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
79633
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79634
|
+
});
|
|
79635
|
+
|
|
79636
|
+
/**
|
|
79637
|
+
* Creates a new GetRecentAddressBalanceChangesRequest instance using the specified properties.
|
|
79638
|
+
* @function create
|
|
79639
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79640
|
+
* @static
|
|
79641
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest=} [properties] Properties to set
|
|
79642
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest instance
|
|
79643
|
+
*/
|
|
79644
|
+
GetRecentAddressBalanceChangesRequest.create = function create(properties) {
|
|
79645
|
+
return new GetRecentAddressBalanceChangesRequest(properties);
|
|
79646
|
+
};
|
|
79647
|
+
|
|
79648
|
+
/**
|
|
79649
|
+
* Encodes the specified GetRecentAddressBalanceChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.verify|verify} messages.
|
|
79650
|
+
* @function encode
|
|
79651
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79652
|
+
* @static
|
|
79653
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} message GetRecentAddressBalanceChangesRequest message or plain object to encode
|
|
79654
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79655
|
+
* @returns {$protobuf.Writer} Writer
|
|
79656
|
+
*/
|
|
79657
|
+
GetRecentAddressBalanceChangesRequest.encode = function encode(message, writer) {
|
|
79658
|
+
if (!writer)
|
|
79659
|
+
writer = $Writer.create();
|
|
79660
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
79661
|
+
$root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
79662
|
+
return writer;
|
|
79663
|
+
};
|
|
79664
|
+
|
|
79665
|
+
/**
|
|
79666
|
+
* Encodes the specified GetRecentAddressBalanceChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.verify|verify} messages.
|
|
79667
|
+
* @function encodeDelimited
|
|
79668
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79669
|
+
* @static
|
|
79670
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} message GetRecentAddressBalanceChangesRequest message or plain object to encode
|
|
79671
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79672
|
+
* @returns {$protobuf.Writer} Writer
|
|
79673
|
+
*/
|
|
79674
|
+
GetRecentAddressBalanceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
79675
|
+
return this.encode(message, writer).ldelim();
|
|
79676
|
+
};
|
|
79677
|
+
|
|
79678
|
+
/**
|
|
79679
|
+
* Decodes a GetRecentAddressBalanceChangesRequest message from the specified reader or buffer.
|
|
79680
|
+
* @function decode
|
|
79681
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79682
|
+
* @static
|
|
79683
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79684
|
+
* @param {number} [length] Message length if known beforehand
|
|
79685
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest
|
|
79686
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79687
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79688
|
+
*/
|
|
79689
|
+
GetRecentAddressBalanceChangesRequest.decode = function decode(reader, length) {
|
|
79690
|
+
if (!(reader instanceof $Reader))
|
|
79691
|
+
reader = $Reader.create(reader);
|
|
79692
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest();
|
|
79693
|
+
while (reader.pos < end) {
|
|
79694
|
+
var tag = reader.uint32();
|
|
79695
|
+
switch (tag >>> 3) {
|
|
79696
|
+
case 1:
|
|
79697
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.decode(reader, reader.uint32());
|
|
79698
|
+
break;
|
|
79699
|
+
default:
|
|
79700
|
+
reader.skipType(tag & 7);
|
|
79701
|
+
break;
|
|
79702
|
+
}
|
|
79703
|
+
}
|
|
79704
|
+
return message;
|
|
79705
|
+
};
|
|
79706
|
+
|
|
79707
|
+
/**
|
|
79708
|
+
* Decodes a GetRecentAddressBalanceChangesRequest message from the specified reader or buffer, length delimited.
|
|
79709
|
+
* @function decodeDelimited
|
|
79710
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79711
|
+
* @static
|
|
79712
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79713
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest
|
|
79714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79716
|
+
*/
|
|
79717
|
+
GetRecentAddressBalanceChangesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
79718
|
+
if (!(reader instanceof $Reader))
|
|
79719
|
+
reader = new $Reader(reader);
|
|
79720
|
+
return this.decode(reader, reader.uint32());
|
|
79721
|
+
};
|
|
79722
|
+
|
|
79723
|
+
/**
|
|
79724
|
+
* Verifies a GetRecentAddressBalanceChangesRequest message.
|
|
79725
|
+
* @function verify
|
|
79726
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79727
|
+
* @static
|
|
79728
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
79729
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
79730
|
+
*/
|
|
79731
|
+
GetRecentAddressBalanceChangesRequest.verify = function verify(message) {
|
|
79732
|
+
if (typeof message !== "object" || message === null)
|
|
79733
|
+
return "object expected";
|
|
79734
|
+
var properties = {};
|
|
79735
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
79736
|
+
properties.version = 1;
|
|
79737
|
+
{
|
|
79738
|
+
var error = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.verify(message.v0);
|
|
79739
|
+
if (error)
|
|
79740
|
+
return "v0." + error;
|
|
79741
|
+
}
|
|
79742
|
+
}
|
|
79743
|
+
return null;
|
|
79744
|
+
};
|
|
79745
|
+
|
|
79746
|
+
/**
|
|
79747
|
+
* Creates a GetRecentAddressBalanceChangesRequest message from a plain object. Also converts values to their respective internal types.
|
|
79748
|
+
* @function fromObject
|
|
79749
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79750
|
+
* @static
|
|
79751
|
+
* @param {Object.<string,*>} object Plain object
|
|
79752
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest
|
|
79753
|
+
*/
|
|
79754
|
+
GetRecentAddressBalanceChangesRequest.fromObject = function fromObject(object) {
|
|
79755
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest)
|
|
79756
|
+
return object;
|
|
79757
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest();
|
|
79758
|
+
if (object.v0 != null) {
|
|
79759
|
+
if (typeof object.v0 !== "object")
|
|
79760
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.v0: object expected");
|
|
79761
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.fromObject(object.v0);
|
|
79762
|
+
}
|
|
79763
|
+
return message;
|
|
79764
|
+
};
|
|
79765
|
+
|
|
79766
|
+
/**
|
|
79767
|
+
* Creates a plain object from a GetRecentAddressBalanceChangesRequest message. Also converts values to other types if specified.
|
|
79768
|
+
* @function toObject
|
|
79769
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79770
|
+
* @static
|
|
79771
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} message GetRecentAddressBalanceChangesRequest
|
|
79772
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
79773
|
+
* @returns {Object.<string,*>} Plain object
|
|
79774
|
+
*/
|
|
79775
|
+
GetRecentAddressBalanceChangesRequest.toObject = function toObject(message, options) {
|
|
79776
|
+
if (!options)
|
|
79777
|
+
options = {};
|
|
79778
|
+
var object = {};
|
|
79779
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
79780
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.toObject(message.v0, options);
|
|
79781
|
+
if (options.oneofs)
|
|
79782
|
+
object.version = "v0";
|
|
79783
|
+
}
|
|
79784
|
+
return object;
|
|
79785
|
+
};
|
|
79786
|
+
|
|
79787
|
+
/**
|
|
79788
|
+
* Converts this GetRecentAddressBalanceChangesRequest to JSON.
|
|
79789
|
+
* @function toJSON
|
|
79790
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79791
|
+
* @instance
|
|
79792
|
+
* @returns {Object.<string,*>} JSON object
|
|
79793
|
+
*/
|
|
79794
|
+
GetRecentAddressBalanceChangesRequest.prototype.toJSON = function toJSON() {
|
|
79795
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
79796
|
+
};
|
|
79797
|
+
|
|
79798
|
+
GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0 = (function() {
|
|
79799
|
+
|
|
79800
|
+
/**
|
|
79801
|
+
* Properties of a GetRecentAddressBalanceChangesRequestV0.
|
|
79802
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79803
|
+
* @interface IGetRecentAddressBalanceChangesRequestV0
|
|
79804
|
+
* @property {number|Long|null} [startHeight] GetRecentAddressBalanceChangesRequestV0 startHeight
|
|
79805
|
+
* @property {boolean|null} [prove] GetRecentAddressBalanceChangesRequestV0 prove
|
|
79806
|
+
*/
|
|
79807
|
+
|
|
79808
|
+
/**
|
|
79809
|
+
* Constructs a new GetRecentAddressBalanceChangesRequestV0.
|
|
79810
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
|
|
79811
|
+
* @classdesc Represents a GetRecentAddressBalanceChangesRequestV0.
|
|
79812
|
+
* @implements IGetRecentAddressBalanceChangesRequestV0
|
|
79813
|
+
* @constructor
|
|
79814
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0=} [properties] Properties to set
|
|
79815
|
+
*/
|
|
79816
|
+
function GetRecentAddressBalanceChangesRequestV0(properties) {
|
|
79817
|
+
if (properties)
|
|
79818
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
79819
|
+
if (properties[keys[i]] != null)
|
|
79820
|
+
this[keys[i]] = properties[keys[i]];
|
|
79821
|
+
}
|
|
79822
|
+
|
|
79823
|
+
/**
|
|
79824
|
+
* GetRecentAddressBalanceChangesRequestV0 startHeight.
|
|
79825
|
+
* @member {number|Long} startHeight
|
|
79826
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79827
|
+
* @instance
|
|
79828
|
+
*/
|
|
79829
|
+
GetRecentAddressBalanceChangesRequestV0.prototype.startHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
79830
|
+
|
|
79831
|
+
/**
|
|
79832
|
+
* GetRecentAddressBalanceChangesRequestV0 prove.
|
|
79833
|
+
* @member {boolean} prove
|
|
79834
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79835
|
+
* @instance
|
|
79836
|
+
*/
|
|
79837
|
+
GetRecentAddressBalanceChangesRequestV0.prototype.prove = false;
|
|
79838
|
+
|
|
79839
|
+
/**
|
|
79840
|
+
* Creates a new GetRecentAddressBalanceChangesRequestV0 instance using the specified properties.
|
|
79841
|
+
* @function create
|
|
79842
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79843
|
+
* @static
|
|
79844
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0=} [properties] Properties to set
|
|
79845
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0 instance
|
|
79846
|
+
*/
|
|
79847
|
+
GetRecentAddressBalanceChangesRequestV0.create = function create(properties) {
|
|
79848
|
+
return new GetRecentAddressBalanceChangesRequestV0(properties);
|
|
79849
|
+
};
|
|
79850
|
+
|
|
79851
|
+
/**
|
|
79852
|
+
* Encodes the specified GetRecentAddressBalanceChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.verify|verify} messages.
|
|
79853
|
+
* @function encode
|
|
79854
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79855
|
+
* @static
|
|
79856
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0} message GetRecentAddressBalanceChangesRequestV0 message or plain object to encode
|
|
79857
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79858
|
+
* @returns {$protobuf.Writer} Writer
|
|
79859
|
+
*/
|
|
79860
|
+
GetRecentAddressBalanceChangesRequestV0.encode = function encode(message, writer) {
|
|
79861
|
+
if (!writer)
|
|
79862
|
+
writer = $Writer.create();
|
|
79863
|
+
if (message.startHeight != null && Object.hasOwnProperty.call(message, "startHeight"))
|
|
79864
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startHeight);
|
|
79865
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
79866
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
79867
|
+
return writer;
|
|
79868
|
+
};
|
|
79869
|
+
|
|
79870
|
+
/**
|
|
79871
|
+
* Encodes the specified GetRecentAddressBalanceChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.verify|verify} messages.
|
|
79872
|
+
* @function encodeDelimited
|
|
79873
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79874
|
+
* @static
|
|
79875
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0} message GetRecentAddressBalanceChangesRequestV0 message or plain object to encode
|
|
79876
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79877
|
+
* @returns {$protobuf.Writer} Writer
|
|
79878
|
+
*/
|
|
79879
|
+
GetRecentAddressBalanceChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
79880
|
+
return this.encode(message, writer).ldelim();
|
|
79881
|
+
};
|
|
79882
|
+
|
|
79883
|
+
/**
|
|
79884
|
+
* Decodes a GetRecentAddressBalanceChangesRequestV0 message from the specified reader or buffer.
|
|
79885
|
+
* @function decode
|
|
79886
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79887
|
+
* @static
|
|
79888
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79889
|
+
* @param {number} [length] Message length if known beforehand
|
|
79890
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0
|
|
79891
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79892
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79893
|
+
*/
|
|
79894
|
+
GetRecentAddressBalanceChangesRequestV0.decode = function decode(reader, length) {
|
|
79895
|
+
if (!(reader instanceof $Reader))
|
|
79896
|
+
reader = $Reader.create(reader);
|
|
79897
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0();
|
|
79898
|
+
while (reader.pos < end) {
|
|
79899
|
+
var tag = reader.uint32();
|
|
79900
|
+
switch (tag >>> 3) {
|
|
79901
|
+
case 1:
|
|
79902
|
+
message.startHeight = reader.uint64();
|
|
79903
|
+
break;
|
|
79904
|
+
case 2:
|
|
79905
|
+
message.prove = reader.bool();
|
|
79906
|
+
break;
|
|
79907
|
+
default:
|
|
79908
|
+
reader.skipType(tag & 7);
|
|
79909
|
+
break;
|
|
79910
|
+
}
|
|
79911
|
+
}
|
|
79912
|
+
return message;
|
|
79913
|
+
};
|
|
79914
|
+
|
|
79915
|
+
/**
|
|
79916
|
+
* Decodes a GetRecentAddressBalanceChangesRequestV0 message from the specified reader or buffer, length delimited.
|
|
79917
|
+
* @function decodeDelimited
|
|
79918
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79919
|
+
* @static
|
|
79920
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79921
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0
|
|
79922
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79923
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79924
|
+
*/
|
|
79925
|
+
GetRecentAddressBalanceChangesRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
79926
|
+
if (!(reader instanceof $Reader))
|
|
79927
|
+
reader = new $Reader(reader);
|
|
79928
|
+
return this.decode(reader, reader.uint32());
|
|
79929
|
+
};
|
|
79930
|
+
|
|
79931
|
+
/**
|
|
79932
|
+
* Verifies a GetRecentAddressBalanceChangesRequestV0 message.
|
|
79933
|
+
* @function verify
|
|
79934
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79935
|
+
* @static
|
|
79936
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
79937
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
79938
|
+
*/
|
|
79939
|
+
GetRecentAddressBalanceChangesRequestV0.verify = function verify(message) {
|
|
79940
|
+
if (typeof message !== "object" || message === null)
|
|
79941
|
+
return "object expected";
|
|
79942
|
+
if (message.startHeight != null && message.hasOwnProperty("startHeight"))
|
|
79943
|
+
if (!$util.isInteger(message.startHeight) && !(message.startHeight && $util.isInteger(message.startHeight.low) && $util.isInteger(message.startHeight.high)))
|
|
79944
|
+
return "startHeight: integer|Long expected";
|
|
79945
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
79946
|
+
if (typeof message.prove !== "boolean")
|
|
79947
|
+
return "prove: boolean expected";
|
|
79948
|
+
return null;
|
|
79949
|
+
};
|
|
79950
|
+
|
|
79951
|
+
/**
|
|
79952
|
+
* Creates a GetRecentAddressBalanceChangesRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
79953
|
+
* @function fromObject
|
|
79954
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79955
|
+
* @static
|
|
79956
|
+
* @param {Object.<string,*>} object Plain object
|
|
79957
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0
|
|
79958
|
+
*/
|
|
79959
|
+
GetRecentAddressBalanceChangesRequestV0.fromObject = function fromObject(object) {
|
|
79960
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0)
|
|
79961
|
+
return object;
|
|
79962
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0();
|
|
79963
|
+
if (object.startHeight != null)
|
|
79964
|
+
if ($util.Long)
|
|
79965
|
+
(message.startHeight = $util.Long.fromValue(object.startHeight)).unsigned = true;
|
|
79966
|
+
else if (typeof object.startHeight === "string")
|
|
79967
|
+
message.startHeight = parseInt(object.startHeight, 10);
|
|
79968
|
+
else if (typeof object.startHeight === "number")
|
|
79969
|
+
message.startHeight = object.startHeight;
|
|
79970
|
+
else if (typeof object.startHeight === "object")
|
|
79971
|
+
message.startHeight = new $util.LongBits(object.startHeight.low >>> 0, object.startHeight.high >>> 0).toNumber(true);
|
|
79972
|
+
if (object.prove != null)
|
|
79973
|
+
message.prove = Boolean(object.prove);
|
|
79974
|
+
return message;
|
|
79975
|
+
};
|
|
79976
|
+
|
|
79977
|
+
/**
|
|
79978
|
+
* Creates a plain object from a GetRecentAddressBalanceChangesRequestV0 message. Also converts values to other types if specified.
|
|
79979
|
+
* @function toObject
|
|
79980
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
79981
|
+
* @static
|
|
79982
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} message GetRecentAddressBalanceChangesRequestV0
|
|
79983
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
79984
|
+
* @returns {Object.<string,*>} Plain object
|
|
79985
|
+
*/
|
|
79986
|
+
GetRecentAddressBalanceChangesRequestV0.toObject = function toObject(message, options) {
|
|
79987
|
+
if (!options)
|
|
79988
|
+
options = {};
|
|
79989
|
+
var object = {};
|
|
79990
|
+
if (options.defaults) {
|
|
79991
|
+
if ($util.Long) {
|
|
79992
|
+
var long = new $util.Long(0, 0, true);
|
|
79993
|
+
object.startHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
79994
|
+
} else
|
|
79995
|
+
object.startHeight = options.longs === String ? "0" : 0;
|
|
79996
|
+
object.prove = false;
|
|
79997
|
+
}
|
|
79998
|
+
if (message.startHeight != null && message.hasOwnProperty("startHeight"))
|
|
79999
|
+
if (typeof message.startHeight === "number")
|
|
80000
|
+
object.startHeight = options.longs === String ? String(message.startHeight) : message.startHeight;
|
|
80001
|
+
else
|
|
80002
|
+
object.startHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startHeight) : options.longs === Number ? new $util.LongBits(message.startHeight.low >>> 0, message.startHeight.high >>> 0).toNumber(true) : message.startHeight;
|
|
80003
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
80004
|
+
object.prove = message.prove;
|
|
80005
|
+
return object;
|
|
80006
|
+
};
|
|
80007
|
+
|
|
80008
|
+
/**
|
|
80009
|
+
* Converts this GetRecentAddressBalanceChangesRequestV0 to JSON.
|
|
80010
|
+
* @function toJSON
|
|
80011
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
|
|
80012
|
+
* @instance
|
|
80013
|
+
* @returns {Object.<string,*>} JSON object
|
|
80014
|
+
*/
|
|
80015
|
+
GetRecentAddressBalanceChangesRequestV0.prototype.toJSON = function toJSON() {
|
|
80016
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80017
|
+
};
|
|
80018
|
+
|
|
80019
|
+
return GetRecentAddressBalanceChangesRequestV0;
|
|
80020
|
+
})();
|
|
80021
|
+
|
|
80022
|
+
return GetRecentAddressBalanceChangesRequest;
|
|
80023
|
+
})();
|
|
80024
|
+
|
|
80025
|
+
v0.GetRecentAddressBalanceChangesResponse = (function() {
|
|
80026
|
+
|
|
80027
|
+
/**
|
|
80028
|
+
* Properties of a GetRecentAddressBalanceChangesResponse.
|
|
80029
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80030
|
+
* @interface IGetRecentAddressBalanceChangesResponse
|
|
80031
|
+
* @property {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0|null} [v0] GetRecentAddressBalanceChangesResponse v0
|
|
80032
|
+
*/
|
|
80033
|
+
|
|
80034
|
+
/**
|
|
80035
|
+
* Constructs a new GetRecentAddressBalanceChangesResponse.
|
|
80036
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80037
|
+
* @classdesc Represents a GetRecentAddressBalanceChangesResponse.
|
|
80038
|
+
* @implements IGetRecentAddressBalanceChangesResponse
|
|
80039
|
+
* @constructor
|
|
80040
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse=} [properties] Properties to set
|
|
80041
|
+
*/
|
|
80042
|
+
function GetRecentAddressBalanceChangesResponse(properties) {
|
|
80043
|
+
if (properties)
|
|
80044
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80045
|
+
if (properties[keys[i]] != null)
|
|
80046
|
+
this[keys[i]] = properties[keys[i]];
|
|
80047
|
+
}
|
|
80048
|
+
|
|
80049
|
+
/**
|
|
80050
|
+
* GetRecentAddressBalanceChangesResponse v0.
|
|
80051
|
+
* @member {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0|null|undefined} v0
|
|
80052
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80053
|
+
* @instance
|
|
80054
|
+
*/
|
|
80055
|
+
GetRecentAddressBalanceChangesResponse.prototype.v0 = null;
|
|
80056
|
+
|
|
80057
|
+
// OneOf field names bound to virtual getters and setters
|
|
80058
|
+
var $oneOfFields;
|
|
80059
|
+
|
|
80060
|
+
/**
|
|
80061
|
+
* GetRecentAddressBalanceChangesResponse version.
|
|
80062
|
+
* @member {"v0"|undefined} version
|
|
80063
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80064
|
+
* @instance
|
|
80065
|
+
*/
|
|
80066
|
+
Object.defineProperty(GetRecentAddressBalanceChangesResponse.prototype, "version", {
|
|
80067
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
80068
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80069
|
+
});
|
|
80070
|
+
|
|
80071
|
+
/**
|
|
80072
|
+
* Creates a new GetRecentAddressBalanceChangesResponse instance using the specified properties.
|
|
80073
|
+
* @function create
|
|
80074
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80075
|
+
* @static
|
|
80076
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse=} [properties] Properties to set
|
|
80077
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse instance
|
|
80078
|
+
*/
|
|
80079
|
+
GetRecentAddressBalanceChangesResponse.create = function create(properties) {
|
|
80080
|
+
return new GetRecentAddressBalanceChangesResponse(properties);
|
|
80081
|
+
};
|
|
80082
|
+
|
|
80083
|
+
/**
|
|
80084
|
+
* Encodes the specified GetRecentAddressBalanceChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.verify|verify} messages.
|
|
80085
|
+
* @function encode
|
|
80086
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80087
|
+
* @static
|
|
80088
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse} message GetRecentAddressBalanceChangesResponse message or plain object to encode
|
|
80089
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80090
|
+
* @returns {$protobuf.Writer} Writer
|
|
80091
|
+
*/
|
|
80092
|
+
GetRecentAddressBalanceChangesResponse.encode = function encode(message, writer) {
|
|
80093
|
+
if (!writer)
|
|
80094
|
+
writer = $Writer.create();
|
|
80095
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
80096
|
+
$root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
80097
|
+
return writer;
|
|
80098
|
+
};
|
|
80099
|
+
|
|
80100
|
+
/**
|
|
80101
|
+
* Encodes the specified GetRecentAddressBalanceChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.verify|verify} messages.
|
|
80102
|
+
* @function encodeDelimited
|
|
80103
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80104
|
+
* @static
|
|
80105
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse} message GetRecentAddressBalanceChangesResponse message or plain object to encode
|
|
80106
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80107
|
+
* @returns {$protobuf.Writer} Writer
|
|
80108
|
+
*/
|
|
80109
|
+
GetRecentAddressBalanceChangesResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80110
|
+
return this.encode(message, writer).ldelim();
|
|
80111
|
+
};
|
|
80112
|
+
|
|
80113
|
+
/**
|
|
80114
|
+
* Decodes a GetRecentAddressBalanceChangesResponse message from the specified reader or buffer.
|
|
80115
|
+
* @function decode
|
|
80116
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80117
|
+
* @static
|
|
80118
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80119
|
+
* @param {number} [length] Message length if known beforehand
|
|
80120
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse
|
|
80121
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80122
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80123
|
+
*/
|
|
80124
|
+
GetRecentAddressBalanceChangesResponse.decode = function decode(reader, length) {
|
|
80125
|
+
if (!(reader instanceof $Reader))
|
|
80126
|
+
reader = $Reader.create(reader);
|
|
80127
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse();
|
|
80128
|
+
while (reader.pos < end) {
|
|
80129
|
+
var tag = reader.uint32();
|
|
80130
|
+
switch (tag >>> 3) {
|
|
80131
|
+
case 1:
|
|
80132
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.decode(reader, reader.uint32());
|
|
80133
|
+
break;
|
|
80134
|
+
default:
|
|
80135
|
+
reader.skipType(tag & 7);
|
|
80136
|
+
break;
|
|
80137
|
+
}
|
|
80138
|
+
}
|
|
80139
|
+
return message;
|
|
80140
|
+
};
|
|
80141
|
+
|
|
80142
|
+
/**
|
|
80143
|
+
* Decodes a GetRecentAddressBalanceChangesResponse message from the specified reader or buffer, length delimited.
|
|
80144
|
+
* @function decodeDelimited
|
|
80145
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80146
|
+
* @static
|
|
80147
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80148
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse
|
|
80149
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80150
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80151
|
+
*/
|
|
80152
|
+
GetRecentAddressBalanceChangesResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
80153
|
+
if (!(reader instanceof $Reader))
|
|
80154
|
+
reader = new $Reader(reader);
|
|
80155
|
+
return this.decode(reader, reader.uint32());
|
|
80156
|
+
};
|
|
80157
|
+
|
|
80158
|
+
/**
|
|
80159
|
+
* Verifies a GetRecentAddressBalanceChangesResponse message.
|
|
80160
|
+
* @function verify
|
|
80161
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80162
|
+
* @static
|
|
80163
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80164
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80165
|
+
*/
|
|
80166
|
+
GetRecentAddressBalanceChangesResponse.verify = function verify(message) {
|
|
80167
|
+
if (typeof message !== "object" || message === null)
|
|
80168
|
+
return "object expected";
|
|
80169
|
+
var properties = {};
|
|
80170
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
80171
|
+
properties.version = 1;
|
|
80172
|
+
{
|
|
80173
|
+
var error = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.verify(message.v0);
|
|
80174
|
+
if (error)
|
|
80175
|
+
return "v0." + error;
|
|
80176
|
+
}
|
|
80177
|
+
}
|
|
80178
|
+
return null;
|
|
80179
|
+
};
|
|
80180
|
+
|
|
80181
|
+
/**
|
|
80182
|
+
* Creates a GetRecentAddressBalanceChangesResponse message from a plain object. Also converts values to their respective internal types.
|
|
80183
|
+
* @function fromObject
|
|
80184
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80185
|
+
* @static
|
|
80186
|
+
* @param {Object.<string,*>} object Plain object
|
|
80187
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse
|
|
80188
|
+
*/
|
|
80189
|
+
GetRecentAddressBalanceChangesResponse.fromObject = function fromObject(object) {
|
|
80190
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse)
|
|
80191
|
+
return object;
|
|
80192
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse();
|
|
80193
|
+
if (object.v0 != null) {
|
|
80194
|
+
if (typeof object.v0 !== "object")
|
|
80195
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.v0: object expected");
|
|
80196
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.fromObject(object.v0);
|
|
80197
|
+
}
|
|
80198
|
+
return message;
|
|
80199
|
+
};
|
|
80200
|
+
|
|
80201
|
+
/**
|
|
80202
|
+
* Creates a plain object from a GetRecentAddressBalanceChangesResponse message. Also converts values to other types if specified.
|
|
80203
|
+
* @function toObject
|
|
80204
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80205
|
+
* @static
|
|
80206
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} message GetRecentAddressBalanceChangesResponse
|
|
80207
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80208
|
+
* @returns {Object.<string,*>} Plain object
|
|
80209
|
+
*/
|
|
80210
|
+
GetRecentAddressBalanceChangesResponse.toObject = function toObject(message, options) {
|
|
80211
|
+
if (!options)
|
|
80212
|
+
options = {};
|
|
80213
|
+
var object = {};
|
|
80214
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
80215
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.toObject(message.v0, options);
|
|
80216
|
+
if (options.oneofs)
|
|
80217
|
+
object.version = "v0";
|
|
80218
|
+
}
|
|
80219
|
+
return object;
|
|
80220
|
+
};
|
|
80221
|
+
|
|
80222
|
+
/**
|
|
80223
|
+
* Converts this GetRecentAddressBalanceChangesResponse to JSON.
|
|
80224
|
+
* @function toJSON
|
|
80225
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80226
|
+
* @instance
|
|
80227
|
+
* @returns {Object.<string,*>} JSON object
|
|
80228
|
+
*/
|
|
80229
|
+
GetRecentAddressBalanceChangesResponse.prototype.toJSON = function toJSON() {
|
|
80230
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80231
|
+
};
|
|
80232
|
+
|
|
80233
|
+
GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0 = (function() {
|
|
80234
|
+
|
|
80235
|
+
/**
|
|
80236
|
+
* Properties of a GetRecentAddressBalanceChangesResponseV0.
|
|
80237
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80238
|
+
* @interface IGetRecentAddressBalanceChangesResponseV0
|
|
80239
|
+
* @property {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries|null} [addressBalanceUpdateEntries] GetRecentAddressBalanceChangesResponseV0 addressBalanceUpdateEntries
|
|
80240
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentAddressBalanceChangesResponseV0 proof
|
|
80241
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentAddressBalanceChangesResponseV0 metadata
|
|
80242
|
+
*/
|
|
80243
|
+
|
|
80244
|
+
/**
|
|
80245
|
+
* Constructs a new GetRecentAddressBalanceChangesResponseV0.
|
|
80246
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
|
|
80247
|
+
* @classdesc Represents a GetRecentAddressBalanceChangesResponseV0.
|
|
80248
|
+
* @implements IGetRecentAddressBalanceChangesResponseV0
|
|
80249
|
+
* @constructor
|
|
80250
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0=} [properties] Properties to set
|
|
80251
|
+
*/
|
|
80252
|
+
function GetRecentAddressBalanceChangesResponseV0(properties) {
|
|
80253
|
+
if (properties)
|
|
80254
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80255
|
+
if (properties[keys[i]] != null)
|
|
80256
|
+
this[keys[i]] = properties[keys[i]];
|
|
80257
|
+
}
|
|
80258
|
+
|
|
80259
|
+
/**
|
|
80260
|
+
* GetRecentAddressBalanceChangesResponseV0 addressBalanceUpdateEntries.
|
|
80261
|
+
* @member {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries|null|undefined} addressBalanceUpdateEntries
|
|
80262
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80263
|
+
* @instance
|
|
80264
|
+
*/
|
|
80265
|
+
GetRecentAddressBalanceChangesResponseV0.prototype.addressBalanceUpdateEntries = null;
|
|
80266
|
+
|
|
80267
|
+
/**
|
|
80268
|
+
* GetRecentAddressBalanceChangesResponseV0 proof.
|
|
80269
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
80270
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80271
|
+
* @instance
|
|
80272
|
+
*/
|
|
80273
|
+
GetRecentAddressBalanceChangesResponseV0.prototype.proof = null;
|
|
80274
|
+
|
|
80275
|
+
/**
|
|
80276
|
+
* GetRecentAddressBalanceChangesResponseV0 metadata.
|
|
80277
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
80278
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80279
|
+
* @instance
|
|
80280
|
+
*/
|
|
80281
|
+
GetRecentAddressBalanceChangesResponseV0.prototype.metadata = null;
|
|
80282
|
+
|
|
80283
|
+
// OneOf field names bound to virtual getters and setters
|
|
80284
|
+
var $oneOfFields;
|
|
80285
|
+
|
|
80286
|
+
/**
|
|
80287
|
+
* GetRecentAddressBalanceChangesResponseV0 result.
|
|
80288
|
+
* @member {"addressBalanceUpdateEntries"|"proof"|undefined} result
|
|
80289
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80290
|
+
* @instance
|
|
80291
|
+
*/
|
|
80292
|
+
Object.defineProperty(GetRecentAddressBalanceChangesResponseV0.prototype, "result", {
|
|
80293
|
+
get: $util.oneOfGetter($oneOfFields = ["addressBalanceUpdateEntries", "proof"]),
|
|
80294
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80295
|
+
});
|
|
80296
|
+
|
|
80297
|
+
/**
|
|
80298
|
+
* Creates a new GetRecentAddressBalanceChangesResponseV0 instance using the specified properties.
|
|
80299
|
+
* @function create
|
|
80300
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80301
|
+
* @static
|
|
80302
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0=} [properties] Properties to set
|
|
80303
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0 instance
|
|
80304
|
+
*/
|
|
80305
|
+
GetRecentAddressBalanceChangesResponseV0.create = function create(properties) {
|
|
80306
|
+
return new GetRecentAddressBalanceChangesResponseV0(properties);
|
|
80307
|
+
};
|
|
80308
|
+
|
|
80309
|
+
/**
|
|
80310
|
+
* Encodes the specified GetRecentAddressBalanceChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.verify|verify} messages.
|
|
80311
|
+
* @function encode
|
|
80312
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80313
|
+
* @static
|
|
80314
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0} message GetRecentAddressBalanceChangesResponseV0 message or plain object to encode
|
|
80315
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80316
|
+
* @returns {$protobuf.Writer} Writer
|
|
80317
|
+
*/
|
|
80318
|
+
GetRecentAddressBalanceChangesResponseV0.encode = function encode(message, writer) {
|
|
80319
|
+
if (!writer)
|
|
80320
|
+
writer = $Writer.create();
|
|
80321
|
+
if (message.addressBalanceUpdateEntries != null && Object.hasOwnProperty.call(message, "addressBalanceUpdateEntries"))
|
|
80322
|
+
$root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.encode(message.addressBalanceUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
80323
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
80324
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
80325
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
80326
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
80327
|
+
return writer;
|
|
80328
|
+
};
|
|
80329
|
+
|
|
80330
|
+
/**
|
|
80331
|
+
* Encodes the specified GetRecentAddressBalanceChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.verify|verify} messages.
|
|
80332
|
+
* @function encodeDelimited
|
|
80333
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80334
|
+
* @static
|
|
80335
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0} message GetRecentAddressBalanceChangesResponseV0 message or plain object to encode
|
|
80336
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80337
|
+
* @returns {$protobuf.Writer} Writer
|
|
80338
|
+
*/
|
|
80339
|
+
GetRecentAddressBalanceChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80340
|
+
return this.encode(message, writer).ldelim();
|
|
80341
|
+
};
|
|
80342
|
+
|
|
80343
|
+
/**
|
|
80344
|
+
* Decodes a GetRecentAddressBalanceChangesResponseV0 message from the specified reader or buffer.
|
|
80345
|
+
* @function decode
|
|
80346
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80347
|
+
* @static
|
|
80348
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80349
|
+
* @param {number} [length] Message length if known beforehand
|
|
80350
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0
|
|
80351
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80352
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80353
|
+
*/
|
|
80354
|
+
GetRecentAddressBalanceChangesResponseV0.decode = function decode(reader, length) {
|
|
80355
|
+
if (!(reader instanceof $Reader))
|
|
80356
|
+
reader = $Reader.create(reader);
|
|
80357
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0();
|
|
80358
|
+
while (reader.pos < end) {
|
|
80359
|
+
var tag = reader.uint32();
|
|
80360
|
+
switch (tag >>> 3) {
|
|
80361
|
+
case 1:
|
|
80362
|
+
message.addressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.decode(reader, reader.uint32());
|
|
80363
|
+
break;
|
|
80364
|
+
case 2:
|
|
80365
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
80366
|
+
break;
|
|
80367
|
+
case 3:
|
|
80368
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
80369
|
+
break;
|
|
80370
|
+
default:
|
|
80371
|
+
reader.skipType(tag & 7);
|
|
80372
|
+
break;
|
|
80373
|
+
}
|
|
80374
|
+
}
|
|
80375
|
+
return message;
|
|
80376
|
+
};
|
|
80377
|
+
|
|
80378
|
+
/**
|
|
80379
|
+
* Decodes a GetRecentAddressBalanceChangesResponseV0 message from the specified reader or buffer, length delimited.
|
|
80380
|
+
* @function decodeDelimited
|
|
80381
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80382
|
+
* @static
|
|
80383
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80384
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0
|
|
80385
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80386
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80387
|
+
*/
|
|
80388
|
+
GetRecentAddressBalanceChangesResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
80389
|
+
if (!(reader instanceof $Reader))
|
|
80390
|
+
reader = new $Reader(reader);
|
|
80391
|
+
return this.decode(reader, reader.uint32());
|
|
80392
|
+
};
|
|
80393
|
+
|
|
80394
|
+
/**
|
|
80395
|
+
* Verifies a GetRecentAddressBalanceChangesResponseV0 message.
|
|
80396
|
+
* @function verify
|
|
80397
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80398
|
+
* @static
|
|
80399
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80400
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80401
|
+
*/
|
|
80402
|
+
GetRecentAddressBalanceChangesResponseV0.verify = function verify(message) {
|
|
80403
|
+
if (typeof message !== "object" || message === null)
|
|
80404
|
+
return "object expected";
|
|
80405
|
+
var properties = {};
|
|
80406
|
+
if (message.addressBalanceUpdateEntries != null && message.hasOwnProperty("addressBalanceUpdateEntries")) {
|
|
80407
|
+
properties.result = 1;
|
|
80408
|
+
{
|
|
80409
|
+
var error = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.verify(message.addressBalanceUpdateEntries);
|
|
80410
|
+
if (error)
|
|
80411
|
+
return "addressBalanceUpdateEntries." + error;
|
|
80412
|
+
}
|
|
80413
|
+
}
|
|
80414
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
80415
|
+
if (properties.result === 1)
|
|
80416
|
+
return "result: multiple values";
|
|
80417
|
+
properties.result = 1;
|
|
80418
|
+
{
|
|
80419
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
80420
|
+
if (error)
|
|
80421
|
+
return "proof." + error;
|
|
80422
|
+
}
|
|
80423
|
+
}
|
|
80424
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
80425
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
80426
|
+
if (error)
|
|
80427
|
+
return "metadata." + error;
|
|
80428
|
+
}
|
|
80429
|
+
return null;
|
|
80430
|
+
};
|
|
80431
|
+
|
|
80432
|
+
/**
|
|
80433
|
+
* Creates a GetRecentAddressBalanceChangesResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
80434
|
+
* @function fromObject
|
|
80435
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80436
|
+
* @static
|
|
80437
|
+
* @param {Object.<string,*>} object Plain object
|
|
80438
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0
|
|
80439
|
+
*/
|
|
80440
|
+
GetRecentAddressBalanceChangesResponseV0.fromObject = function fromObject(object) {
|
|
80441
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0)
|
|
80442
|
+
return object;
|
|
80443
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0();
|
|
80444
|
+
if (object.addressBalanceUpdateEntries != null) {
|
|
80445
|
+
if (typeof object.addressBalanceUpdateEntries !== "object")
|
|
80446
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.addressBalanceUpdateEntries: object expected");
|
|
80447
|
+
message.addressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.fromObject(object.addressBalanceUpdateEntries);
|
|
80448
|
+
}
|
|
80449
|
+
if (object.proof != null) {
|
|
80450
|
+
if (typeof object.proof !== "object")
|
|
80451
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.proof: object expected");
|
|
80452
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
80453
|
+
}
|
|
80454
|
+
if (object.metadata != null) {
|
|
80455
|
+
if (typeof object.metadata !== "object")
|
|
80456
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.metadata: object expected");
|
|
80457
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
80458
|
+
}
|
|
80459
|
+
return message;
|
|
80460
|
+
};
|
|
80461
|
+
|
|
80462
|
+
/**
|
|
80463
|
+
* Creates a plain object from a GetRecentAddressBalanceChangesResponseV0 message. Also converts values to other types if specified.
|
|
80464
|
+
* @function toObject
|
|
80465
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80466
|
+
* @static
|
|
80467
|
+
* @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} message GetRecentAddressBalanceChangesResponseV0
|
|
80468
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80469
|
+
* @returns {Object.<string,*>} Plain object
|
|
80470
|
+
*/
|
|
80471
|
+
GetRecentAddressBalanceChangesResponseV0.toObject = function toObject(message, options) {
|
|
80472
|
+
if (!options)
|
|
80473
|
+
options = {};
|
|
80474
|
+
var object = {};
|
|
80475
|
+
if (options.defaults)
|
|
80476
|
+
object.metadata = null;
|
|
80477
|
+
if (message.addressBalanceUpdateEntries != null && message.hasOwnProperty("addressBalanceUpdateEntries")) {
|
|
80478
|
+
object.addressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.toObject(message.addressBalanceUpdateEntries, options);
|
|
80479
|
+
if (options.oneofs)
|
|
80480
|
+
object.result = "addressBalanceUpdateEntries";
|
|
80481
|
+
}
|
|
80482
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
80483
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
80484
|
+
if (options.oneofs)
|
|
80485
|
+
object.result = "proof";
|
|
80486
|
+
}
|
|
80487
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
80488
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
80489
|
+
return object;
|
|
80490
|
+
};
|
|
80491
|
+
|
|
80492
|
+
/**
|
|
80493
|
+
* Converts this GetRecentAddressBalanceChangesResponseV0 to JSON.
|
|
80494
|
+
* @function toJSON
|
|
80495
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
|
|
80496
|
+
* @instance
|
|
80497
|
+
* @returns {Object.<string,*>} JSON object
|
|
80498
|
+
*/
|
|
80499
|
+
GetRecentAddressBalanceChangesResponseV0.prototype.toJSON = function toJSON() {
|
|
80500
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80501
|
+
};
|
|
80502
|
+
|
|
80503
|
+
return GetRecentAddressBalanceChangesResponseV0;
|
|
80504
|
+
})();
|
|
80505
|
+
|
|
80506
|
+
return GetRecentAddressBalanceChangesResponse;
|
|
80507
|
+
})();
|
|
80508
|
+
|
|
80509
|
+
v0.CompactedBlockAddressBalanceChanges = (function() {
|
|
80510
|
+
|
|
80511
|
+
/**
|
|
80512
|
+
* Properties of a CompactedBlockAddressBalanceChanges.
|
|
80513
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80514
|
+
* @interface ICompactedBlockAddressBalanceChanges
|
|
80515
|
+
* @property {number|Long|null} [startBlockHeight] CompactedBlockAddressBalanceChanges startBlockHeight
|
|
80516
|
+
* @property {number|Long|null} [endBlockHeight] CompactedBlockAddressBalanceChanges endBlockHeight
|
|
80517
|
+
* @property {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>|null} [changes] CompactedBlockAddressBalanceChanges changes
|
|
80518
|
+
*/
|
|
80519
|
+
|
|
80520
|
+
/**
|
|
80521
|
+
* Constructs a new CompactedBlockAddressBalanceChanges.
|
|
80522
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80523
|
+
* @classdesc Represents a CompactedBlockAddressBalanceChanges.
|
|
80524
|
+
* @implements ICompactedBlockAddressBalanceChanges
|
|
80525
|
+
* @constructor
|
|
80526
|
+
* @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges=} [properties] Properties to set
|
|
80527
|
+
*/
|
|
80528
|
+
function CompactedBlockAddressBalanceChanges(properties) {
|
|
80529
|
+
this.changes = [];
|
|
80530
|
+
if (properties)
|
|
80531
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80532
|
+
if (properties[keys[i]] != null)
|
|
80533
|
+
this[keys[i]] = properties[keys[i]];
|
|
80534
|
+
}
|
|
80535
|
+
|
|
80536
|
+
/**
|
|
80537
|
+
* CompactedBlockAddressBalanceChanges startBlockHeight.
|
|
80538
|
+
* @member {number|Long} startBlockHeight
|
|
80539
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80540
|
+
* @instance
|
|
80541
|
+
*/
|
|
80542
|
+
CompactedBlockAddressBalanceChanges.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80543
|
+
|
|
80544
|
+
/**
|
|
80545
|
+
* CompactedBlockAddressBalanceChanges endBlockHeight.
|
|
80546
|
+
* @member {number|Long} endBlockHeight
|
|
80547
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80548
|
+
* @instance
|
|
80549
|
+
*/
|
|
80550
|
+
CompactedBlockAddressBalanceChanges.prototype.endBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80551
|
+
|
|
80552
|
+
/**
|
|
80553
|
+
* CompactedBlockAddressBalanceChanges changes.
|
|
80554
|
+
* @member {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>} changes
|
|
80555
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80556
|
+
* @instance
|
|
80557
|
+
*/
|
|
80558
|
+
CompactedBlockAddressBalanceChanges.prototype.changes = $util.emptyArray;
|
|
80559
|
+
|
|
80560
|
+
/**
|
|
80561
|
+
* Creates a new CompactedBlockAddressBalanceChanges instance using the specified properties.
|
|
80562
|
+
* @function create
|
|
80563
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80564
|
+
* @static
|
|
80565
|
+
* @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges=} [properties] Properties to set
|
|
80566
|
+
* @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges instance
|
|
80567
|
+
*/
|
|
80568
|
+
CompactedBlockAddressBalanceChanges.create = function create(properties) {
|
|
80569
|
+
return new CompactedBlockAddressBalanceChanges(properties);
|
|
80570
|
+
};
|
|
80571
|
+
|
|
80572
|
+
/**
|
|
80573
|
+
* Encodes the specified CompactedBlockAddressBalanceChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.verify|verify} messages.
|
|
80574
|
+
* @function encode
|
|
80575
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80576
|
+
* @static
|
|
80577
|
+
* @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges} message CompactedBlockAddressBalanceChanges message or plain object to encode
|
|
80578
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80579
|
+
* @returns {$protobuf.Writer} Writer
|
|
80580
|
+
*/
|
|
80581
|
+
CompactedBlockAddressBalanceChanges.encode = function encode(message, writer) {
|
|
80582
|
+
if (!writer)
|
|
80583
|
+
writer = $Writer.create();
|
|
80584
|
+
if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight"))
|
|
80585
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight);
|
|
80586
|
+
if (message.endBlockHeight != null && Object.hasOwnProperty.call(message, "endBlockHeight"))
|
|
80587
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endBlockHeight);
|
|
80588
|
+
if (message.changes != null && message.changes.length)
|
|
80589
|
+
for (var i = 0; i < message.changes.length; ++i)
|
|
80590
|
+
$root.org.dash.platform.dapi.v0.AddressBalanceChange.encode(message.changes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
80591
|
+
return writer;
|
|
80592
|
+
};
|
|
80593
|
+
|
|
80594
|
+
/**
|
|
80595
|
+
* Encodes the specified CompactedBlockAddressBalanceChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.verify|verify} messages.
|
|
80596
|
+
* @function encodeDelimited
|
|
80597
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80598
|
+
* @static
|
|
80599
|
+
* @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges} message CompactedBlockAddressBalanceChanges message or plain object to encode
|
|
80600
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80601
|
+
* @returns {$protobuf.Writer} Writer
|
|
80602
|
+
*/
|
|
80603
|
+
CompactedBlockAddressBalanceChanges.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80604
|
+
return this.encode(message, writer).ldelim();
|
|
80605
|
+
};
|
|
80606
|
+
|
|
80607
|
+
/**
|
|
80608
|
+
* Decodes a CompactedBlockAddressBalanceChanges message from the specified reader or buffer.
|
|
80609
|
+
* @function decode
|
|
80610
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80611
|
+
* @static
|
|
80612
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80613
|
+
* @param {number} [length] Message length if known beforehand
|
|
80614
|
+
* @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges
|
|
80615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80617
|
+
*/
|
|
80618
|
+
CompactedBlockAddressBalanceChanges.decode = function decode(reader, length) {
|
|
80619
|
+
if (!(reader instanceof $Reader))
|
|
80620
|
+
reader = $Reader.create(reader);
|
|
80621
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges();
|
|
80622
|
+
while (reader.pos < end) {
|
|
80623
|
+
var tag = reader.uint32();
|
|
80624
|
+
switch (tag >>> 3) {
|
|
80625
|
+
case 1:
|
|
80626
|
+
message.startBlockHeight = reader.uint64();
|
|
80627
|
+
break;
|
|
80628
|
+
case 2:
|
|
80629
|
+
message.endBlockHeight = reader.uint64();
|
|
80630
|
+
break;
|
|
80631
|
+
case 3:
|
|
80632
|
+
if (!(message.changes && message.changes.length))
|
|
80633
|
+
message.changes = [];
|
|
80634
|
+
message.changes.push($root.org.dash.platform.dapi.v0.AddressBalanceChange.decode(reader, reader.uint32()));
|
|
80635
|
+
break;
|
|
80636
|
+
default:
|
|
80637
|
+
reader.skipType(tag & 7);
|
|
80638
|
+
break;
|
|
80639
|
+
}
|
|
80640
|
+
}
|
|
80641
|
+
return message;
|
|
80642
|
+
};
|
|
80643
|
+
|
|
80644
|
+
/**
|
|
80645
|
+
* Decodes a CompactedBlockAddressBalanceChanges message from the specified reader or buffer, length delimited.
|
|
80646
|
+
* @function decodeDelimited
|
|
80647
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80648
|
+
* @static
|
|
80649
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80650
|
+
* @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges
|
|
80651
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80652
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80653
|
+
*/
|
|
80654
|
+
CompactedBlockAddressBalanceChanges.decodeDelimited = function decodeDelimited(reader) {
|
|
80655
|
+
if (!(reader instanceof $Reader))
|
|
80656
|
+
reader = new $Reader(reader);
|
|
80657
|
+
return this.decode(reader, reader.uint32());
|
|
80658
|
+
};
|
|
80659
|
+
|
|
80660
|
+
/**
|
|
80661
|
+
* Verifies a CompactedBlockAddressBalanceChanges message.
|
|
80662
|
+
* @function verify
|
|
80663
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80664
|
+
* @static
|
|
80665
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80666
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80667
|
+
*/
|
|
80668
|
+
CompactedBlockAddressBalanceChanges.verify = function verify(message) {
|
|
80669
|
+
if (typeof message !== "object" || message === null)
|
|
80670
|
+
return "object expected";
|
|
80671
|
+
if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
|
|
80672
|
+
if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high)))
|
|
80673
|
+
return "startBlockHeight: integer|Long expected";
|
|
80674
|
+
if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight"))
|
|
80675
|
+
if (!$util.isInteger(message.endBlockHeight) && !(message.endBlockHeight && $util.isInteger(message.endBlockHeight.low) && $util.isInteger(message.endBlockHeight.high)))
|
|
80676
|
+
return "endBlockHeight: integer|Long expected";
|
|
80677
|
+
if (message.changes != null && message.hasOwnProperty("changes")) {
|
|
80678
|
+
if (!Array.isArray(message.changes))
|
|
80679
|
+
return "changes: array expected";
|
|
80680
|
+
for (var i = 0; i < message.changes.length; ++i) {
|
|
80681
|
+
var error = $root.org.dash.platform.dapi.v0.AddressBalanceChange.verify(message.changes[i]);
|
|
80682
|
+
if (error)
|
|
80683
|
+
return "changes." + error;
|
|
80684
|
+
}
|
|
80685
|
+
}
|
|
80686
|
+
return null;
|
|
80687
|
+
};
|
|
80688
|
+
|
|
80689
|
+
/**
|
|
80690
|
+
* Creates a CompactedBlockAddressBalanceChanges message from a plain object. Also converts values to their respective internal types.
|
|
80691
|
+
* @function fromObject
|
|
80692
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80693
|
+
* @static
|
|
80694
|
+
* @param {Object.<string,*>} object Plain object
|
|
80695
|
+
* @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges
|
|
80696
|
+
*/
|
|
80697
|
+
CompactedBlockAddressBalanceChanges.fromObject = function fromObject(object) {
|
|
80698
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges)
|
|
80699
|
+
return object;
|
|
80700
|
+
var message = new $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges();
|
|
80701
|
+
if (object.startBlockHeight != null)
|
|
80702
|
+
if ($util.Long)
|
|
80703
|
+
(message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true;
|
|
80704
|
+
else if (typeof object.startBlockHeight === "string")
|
|
80705
|
+
message.startBlockHeight = parseInt(object.startBlockHeight, 10);
|
|
80706
|
+
else if (typeof object.startBlockHeight === "number")
|
|
80707
|
+
message.startBlockHeight = object.startBlockHeight;
|
|
80708
|
+
else if (typeof object.startBlockHeight === "object")
|
|
80709
|
+
message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true);
|
|
80710
|
+
if (object.endBlockHeight != null)
|
|
80711
|
+
if ($util.Long)
|
|
80712
|
+
(message.endBlockHeight = $util.Long.fromValue(object.endBlockHeight)).unsigned = true;
|
|
80713
|
+
else if (typeof object.endBlockHeight === "string")
|
|
80714
|
+
message.endBlockHeight = parseInt(object.endBlockHeight, 10);
|
|
80715
|
+
else if (typeof object.endBlockHeight === "number")
|
|
80716
|
+
message.endBlockHeight = object.endBlockHeight;
|
|
80717
|
+
else if (typeof object.endBlockHeight === "object")
|
|
80718
|
+
message.endBlockHeight = new $util.LongBits(object.endBlockHeight.low >>> 0, object.endBlockHeight.high >>> 0).toNumber(true);
|
|
80719
|
+
if (object.changes) {
|
|
80720
|
+
if (!Array.isArray(object.changes))
|
|
80721
|
+
throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.changes: array expected");
|
|
80722
|
+
message.changes = [];
|
|
80723
|
+
for (var i = 0; i < object.changes.length; ++i) {
|
|
80724
|
+
if (typeof object.changes[i] !== "object")
|
|
80725
|
+
throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.changes: object expected");
|
|
80726
|
+
message.changes[i] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.fromObject(object.changes[i]);
|
|
80727
|
+
}
|
|
80728
|
+
}
|
|
80729
|
+
return message;
|
|
80730
|
+
};
|
|
80731
|
+
|
|
80732
|
+
/**
|
|
80733
|
+
* Creates a plain object from a CompactedBlockAddressBalanceChanges message. Also converts values to other types if specified.
|
|
80734
|
+
* @function toObject
|
|
80735
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80736
|
+
* @static
|
|
80737
|
+
* @param {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} message CompactedBlockAddressBalanceChanges
|
|
80738
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80739
|
+
* @returns {Object.<string,*>} Plain object
|
|
80740
|
+
*/
|
|
80741
|
+
CompactedBlockAddressBalanceChanges.toObject = function toObject(message, options) {
|
|
80742
|
+
if (!options)
|
|
80743
|
+
options = {};
|
|
80744
|
+
var object = {};
|
|
80745
|
+
if (options.arrays || options.defaults)
|
|
80746
|
+
object.changes = [];
|
|
80747
|
+
if (options.defaults) {
|
|
80748
|
+
if ($util.Long) {
|
|
80749
|
+
var long = new $util.Long(0, 0, true);
|
|
80750
|
+
object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80751
|
+
} else
|
|
80752
|
+
object.startBlockHeight = options.longs === String ? "0" : 0;
|
|
80753
|
+
if ($util.Long) {
|
|
80754
|
+
var long = new $util.Long(0, 0, true);
|
|
80755
|
+
object.endBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80756
|
+
} else
|
|
80757
|
+
object.endBlockHeight = options.longs === String ? "0" : 0;
|
|
80758
|
+
}
|
|
80759
|
+
if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
|
|
80760
|
+
if (typeof message.startBlockHeight === "number")
|
|
80761
|
+
object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight;
|
|
80762
|
+
else
|
|
80763
|
+
object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight;
|
|
80764
|
+
if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight"))
|
|
80765
|
+
if (typeof message.endBlockHeight === "number")
|
|
80766
|
+
object.endBlockHeight = options.longs === String ? String(message.endBlockHeight) : message.endBlockHeight;
|
|
80767
|
+
else
|
|
80768
|
+
object.endBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.endBlockHeight) : options.longs === Number ? new $util.LongBits(message.endBlockHeight.low >>> 0, message.endBlockHeight.high >>> 0).toNumber(true) : message.endBlockHeight;
|
|
80769
|
+
if (message.changes && message.changes.length) {
|
|
80770
|
+
object.changes = [];
|
|
80771
|
+
for (var j = 0; j < message.changes.length; ++j)
|
|
80772
|
+
object.changes[j] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.toObject(message.changes[j], options);
|
|
80773
|
+
}
|
|
80774
|
+
return object;
|
|
80775
|
+
};
|
|
80776
|
+
|
|
80777
|
+
/**
|
|
80778
|
+
* Converts this CompactedBlockAddressBalanceChanges to JSON.
|
|
80779
|
+
* @function toJSON
|
|
80780
|
+
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80781
|
+
* @instance
|
|
80782
|
+
* @returns {Object.<string,*>} JSON object
|
|
80783
|
+
*/
|
|
80784
|
+
CompactedBlockAddressBalanceChanges.prototype.toJSON = function toJSON() {
|
|
80785
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80786
|
+
};
|
|
80787
|
+
|
|
80788
|
+
return CompactedBlockAddressBalanceChanges;
|
|
80789
|
+
})();
|
|
80790
|
+
|
|
80791
|
+
v0.CompactedAddressBalanceUpdateEntries = (function() {
|
|
80792
|
+
|
|
80793
|
+
/**
|
|
80794
|
+
* Properties of a CompactedAddressBalanceUpdateEntries.
|
|
80795
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80796
|
+
* @interface ICompactedAddressBalanceUpdateEntries
|
|
80797
|
+
* @property {Array.<org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges>|null} [compactedBlockChanges] CompactedAddressBalanceUpdateEntries compactedBlockChanges
|
|
80798
|
+
*/
|
|
80799
|
+
|
|
80800
|
+
/**
|
|
80801
|
+
* Constructs a new CompactedAddressBalanceUpdateEntries.
|
|
80802
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80803
|
+
* @classdesc Represents a CompactedAddressBalanceUpdateEntries.
|
|
80804
|
+
* @implements ICompactedAddressBalanceUpdateEntries
|
|
80805
|
+
* @constructor
|
|
80806
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries=} [properties] Properties to set
|
|
80807
|
+
*/
|
|
80808
|
+
function CompactedAddressBalanceUpdateEntries(properties) {
|
|
80809
|
+
this.compactedBlockChanges = [];
|
|
80810
|
+
if (properties)
|
|
80811
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80812
|
+
if (properties[keys[i]] != null)
|
|
80813
|
+
this[keys[i]] = properties[keys[i]];
|
|
80814
|
+
}
|
|
80815
|
+
|
|
80816
|
+
/**
|
|
80817
|
+
* CompactedAddressBalanceUpdateEntries compactedBlockChanges.
|
|
80818
|
+
* @member {Array.<org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges>} compactedBlockChanges
|
|
80819
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80820
|
+
* @instance
|
|
80821
|
+
*/
|
|
80822
|
+
CompactedAddressBalanceUpdateEntries.prototype.compactedBlockChanges = $util.emptyArray;
|
|
80823
|
+
|
|
80824
|
+
/**
|
|
80825
|
+
* Creates a new CompactedAddressBalanceUpdateEntries instance using the specified properties.
|
|
80826
|
+
* @function create
|
|
80827
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80828
|
+
* @static
|
|
80829
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries=} [properties] Properties to set
|
|
80830
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries instance
|
|
80831
|
+
*/
|
|
80832
|
+
CompactedAddressBalanceUpdateEntries.create = function create(properties) {
|
|
80833
|
+
return new CompactedAddressBalanceUpdateEntries(properties);
|
|
80834
|
+
};
|
|
80835
|
+
|
|
80836
|
+
/**
|
|
80837
|
+
* Encodes the specified CompactedAddressBalanceUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.verify|verify} messages.
|
|
80838
|
+
* @function encode
|
|
80839
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80840
|
+
* @static
|
|
80841
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries} message CompactedAddressBalanceUpdateEntries message or plain object to encode
|
|
80842
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80843
|
+
* @returns {$protobuf.Writer} Writer
|
|
80844
|
+
*/
|
|
80845
|
+
CompactedAddressBalanceUpdateEntries.encode = function encode(message, writer) {
|
|
80846
|
+
if (!writer)
|
|
80847
|
+
writer = $Writer.create();
|
|
80848
|
+
if (message.compactedBlockChanges != null && message.compactedBlockChanges.length)
|
|
80849
|
+
for (var i = 0; i < message.compactedBlockChanges.length; ++i)
|
|
80850
|
+
$root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.encode(message.compactedBlockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
80851
|
+
return writer;
|
|
80852
|
+
};
|
|
80853
|
+
|
|
80854
|
+
/**
|
|
80855
|
+
* Encodes the specified CompactedAddressBalanceUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.verify|verify} messages.
|
|
80856
|
+
* @function encodeDelimited
|
|
80857
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80858
|
+
* @static
|
|
80859
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries} message CompactedAddressBalanceUpdateEntries message or plain object to encode
|
|
80860
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80861
|
+
* @returns {$protobuf.Writer} Writer
|
|
80862
|
+
*/
|
|
80863
|
+
CompactedAddressBalanceUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80864
|
+
return this.encode(message, writer).ldelim();
|
|
80865
|
+
};
|
|
80866
|
+
|
|
80867
|
+
/**
|
|
80868
|
+
* Decodes a CompactedAddressBalanceUpdateEntries message from the specified reader or buffer.
|
|
80869
|
+
* @function decode
|
|
80870
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80871
|
+
* @static
|
|
80872
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80873
|
+
* @param {number} [length] Message length if known beforehand
|
|
80874
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries
|
|
80875
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80876
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80877
|
+
*/
|
|
80878
|
+
CompactedAddressBalanceUpdateEntries.decode = function decode(reader, length) {
|
|
80879
|
+
if (!(reader instanceof $Reader))
|
|
80880
|
+
reader = $Reader.create(reader);
|
|
80881
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries();
|
|
80882
|
+
while (reader.pos < end) {
|
|
80883
|
+
var tag = reader.uint32();
|
|
80884
|
+
switch (tag >>> 3) {
|
|
80885
|
+
case 1:
|
|
80886
|
+
if (!(message.compactedBlockChanges && message.compactedBlockChanges.length))
|
|
80887
|
+
message.compactedBlockChanges = [];
|
|
80888
|
+
message.compactedBlockChanges.push($root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.decode(reader, reader.uint32()));
|
|
80889
|
+
break;
|
|
80890
|
+
default:
|
|
80891
|
+
reader.skipType(tag & 7);
|
|
80892
|
+
break;
|
|
80893
|
+
}
|
|
80894
|
+
}
|
|
80895
|
+
return message;
|
|
80896
|
+
};
|
|
80897
|
+
|
|
80898
|
+
/**
|
|
80899
|
+
* Decodes a CompactedAddressBalanceUpdateEntries message from the specified reader or buffer, length delimited.
|
|
80900
|
+
* @function decodeDelimited
|
|
80901
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80902
|
+
* @static
|
|
80903
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80904
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries
|
|
80905
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80906
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80907
|
+
*/
|
|
80908
|
+
CompactedAddressBalanceUpdateEntries.decodeDelimited = function decodeDelimited(reader) {
|
|
80909
|
+
if (!(reader instanceof $Reader))
|
|
80910
|
+
reader = new $Reader(reader);
|
|
80911
|
+
return this.decode(reader, reader.uint32());
|
|
80912
|
+
};
|
|
80913
|
+
|
|
80914
|
+
/**
|
|
80915
|
+
* Verifies a CompactedAddressBalanceUpdateEntries message.
|
|
80916
|
+
* @function verify
|
|
80917
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80918
|
+
* @static
|
|
80919
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80920
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80921
|
+
*/
|
|
80922
|
+
CompactedAddressBalanceUpdateEntries.verify = function verify(message) {
|
|
80923
|
+
if (typeof message !== "object" || message === null)
|
|
80924
|
+
return "object expected";
|
|
80925
|
+
if (message.compactedBlockChanges != null && message.hasOwnProperty("compactedBlockChanges")) {
|
|
80926
|
+
if (!Array.isArray(message.compactedBlockChanges))
|
|
80927
|
+
return "compactedBlockChanges: array expected";
|
|
80928
|
+
for (var i = 0; i < message.compactedBlockChanges.length; ++i) {
|
|
80929
|
+
var error = $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.verify(message.compactedBlockChanges[i]);
|
|
80930
|
+
if (error)
|
|
80931
|
+
return "compactedBlockChanges." + error;
|
|
80932
|
+
}
|
|
80933
|
+
}
|
|
80934
|
+
return null;
|
|
80935
|
+
};
|
|
80936
|
+
|
|
80937
|
+
/**
|
|
80938
|
+
* Creates a CompactedAddressBalanceUpdateEntries message from a plain object. Also converts values to their respective internal types.
|
|
80939
|
+
* @function fromObject
|
|
80940
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80941
|
+
* @static
|
|
80942
|
+
* @param {Object.<string,*>} object Plain object
|
|
80943
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries
|
|
80944
|
+
*/
|
|
80945
|
+
CompactedAddressBalanceUpdateEntries.fromObject = function fromObject(object) {
|
|
80946
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries)
|
|
80947
|
+
return object;
|
|
80948
|
+
var message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries();
|
|
80949
|
+
if (object.compactedBlockChanges) {
|
|
80950
|
+
if (!Array.isArray(object.compactedBlockChanges))
|
|
80951
|
+
throw TypeError(".org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.compactedBlockChanges: array expected");
|
|
80952
|
+
message.compactedBlockChanges = [];
|
|
80953
|
+
for (var i = 0; i < object.compactedBlockChanges.length; ++i) {
|
|
80954
|
+
if (typeof object.compactedBlockChanges[i] !== "object")
|
|
80955
|
+
throw TypeError(".org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.compactedBlockChanges: object expected");
|
|
80956
|
+
message.compactedBlockChanges[i] = $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.fromObject(object.compactedBlockChanges[i]);
|
|
80957
|
+
}
|
|
80958
|
+
}
|
|
80959
|
+
return message;
|
|
80960
|
+
};
|
|
80961
|
+
|
|
80962
|
+
/**
|
|
80963
|
+
* Creates a plain object from a CompactedAddressBalanceUpdateEntries message. Also converts values to other types if specified.
|
|
80964
|
+
* @function toObject
|
|
80965
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80966
|
+
* @static
|
|
80967
|
+
* @param {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} message CompactedAddressBalanceUpdateEntries
|
|
80968
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80969
|
+
* @returns {Object.<string,*>} Plain object
|
|
80970
|
+
*/
|
|
80971
|
+
CompactedAddressBalanceUpdateEntries.toObject = function toObject(message, options) {
|
|
80972
|
+
if (!options)
|
|
80973
|
+
options = {};
|
|
80974
|
+
var object = {};
|
|
80975
|
+
if (options.arrays || options.defaults)
|
|
80976
|
+
object.compactedBlockChanges = [];
|
|
80977
|
+
if (message.compactedBlockChanges && message.compactedBlockChanges.length) {
|
|
80978
|
+
object.compactedBlockChanges = [];
|
|
80979
|
+
for (var j = 0; j < message.compactedBlockChanges.length; ++j)
|
|
80980
|
+
object.compactedBlockChanges[j] = $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.toObject(message.compactedBlockChanges[j], options);
|
|
80981
|
+
}
|
|
80982
|
+
return object;
|
|
80983
|
+
};
|
|
80984
|
+
|
|
80985
|
+
/**
|
|
80986
|
+
* Converts this CompactedAddressBalanceUpdateEntries to JSON.
|
|
80987
|
+
* @function toJSON
|
|
80988
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
|
|
80989
|
+
* @instance
|
|
80990
|
+
* @returns {Object.<string,*>} JSON object
|
|
80991
|
+
*/
|
|
80992
|
+
CompactedAddressBalanceUpdateEntries.prototype.toJSON = function toJSON() {
|
|
80993
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80994
|
+
};
|
|
80995
|
+
|
|
80996
|
+
return CompactedAddressBalanceUpdateEntries;
|
|
80997
|
+
})();
|
|
80998
|
+
|
|
80999
|
+
v0.GetRecentCompactedAddressBalanceChangesRequest = (function() {
|
|
81000
|
+
|
|
81001
|
+
/**
|
|
81002
|
+
* Properties of a GetRecentCompactedAddressBalanceChangesRequest.
|
|
81003
|
+
* @memberof org.dash.platform.dapi.v0
|
|
81004
|
+
* @interface IGetRecentCompactedAddressBalanceChangesRequest
|
|
81005
|
+
* @property {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0|null} [v0] GetRecentCompactedAddressBalanceChangesRequest v0
|
|
81006
|
+
*/
|
|
81007
|
+
|
|
81008
|
+
/**
|
|
81009
|
+
* Constructs a new GetRecentCompactedAddressBalanceChangesRequest.
|
|
81010
|
+
* @memberof org.dash.platform.dapi.v0
|
|
81011
|
+
* @classdesc Represents a GetRecentCompactedAddressBalanceChangesRequest.
|
|
81012
|
+
* @implements IGetRecentCompactedAddressBalanceChangesRequest
|
|
81013
|
+
* @constructor
|
|
81014
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest=} [properties] Properties to set
|
|
81015
|
+
*/
|
|
81016
|
+
function GetRecentCompactedAddressBalanceChangesRequest(properties) {
|
|
81017
|
+
if (properties)
|
|
81018
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81019
|
+
if (properties[keys[i]] != null)
|
|
81020
|
+
this[keys[i]] = properties[keys[i]];
|
|
81021
|
+
}
|
|
81022
|
+
|
|
81023
|
+
/**
|
|
81024
|
+
* GetRecentCompactedAddressBalanceChangesRequest v0.
|
|
81025
|
+
* @member {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0|null|undefined} v0
|
|
81026
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81027
|
+
* @instance
|
|
81028
|
+
*/
|
|
81029
|
+
GetRecentCompactedAddressBalanceChangesRequest.prototype.v0 = null;
|
|
81030
|
+
|
|
81031
|
+
// OneOf field names bound to virtual getters and setters
|
|
81032
|
+
var $oneOfFields;
|
|
81033
|
+
|
|
81034
|
+
/**
|
|
81035
|
+
* GetRecentCompactedAddressBalanceChangesRequest version.
|
|
81036
|
+
* @member {"v0"|undefined} version
|
|
81037
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81038
|
+
* @instance
|
|
81039
|
+
*/
|
|
81040
|
+
Object.defineProperty(GetRecentCompactedAddressBalanceChangesRequest.prototype, "version", {
|
|
81041
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
81042
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
81043
|
+
});
|
|
81044
|
+
|
|
81045
|
+
/**
|
|
81046
|
+
* Creates a new GetRecentCompactedAddressBalanceChangesRequest instance using the specified properties.
|
|
81047
|
+
* @function create
|
|
81048
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81049
|
+
* @static
|
|
81050
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest=} [properties] Properties to set
|
|
81051
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest instance
|
|
81052
|
+
*/
|
|
81053
|
+
GetRecentCompactedAddressBalanceChangesRequest.create = function create(properties) {
|
|
81054
|
+
return new GetRecentCompactedAddressBalanceChangesRequest(properties);
|
|
81055
|
+
};
|
|
81056
|
+
|
|
81057
|
+
/**
|
|
81058
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.verify|verify} messages.
|
|
81059
|
+
* @function encode
|
|
81060
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81061
|
+
* @static
|
|
81062
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} message GetRecentCompactedAddressBalanceChangesRequest message or plain object to encode
|
|
81063
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81064
|
+
* @returns {$protobuf.Writer} Writer
|
|
81065
|
+
*/
|
|
81066
|
+
GetRecentCompactedAddressBalanceChangesRequest.encode = function encode(message, writer) {
|
|
81067
|
+
if (!writer)
|
|
81068
|
+
writer = $Writer.create();
|
|
81069
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
81070
|
+
$root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81071
|
+
return writer;
|
|
81072
|
+
};
|
|
81073
|
+
|
|
81074
|
+
/**
|
|
81075
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.verify|verify} messages.
|
|
81076
|
+
* @function encodeDelimited
|
|
81077
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81078
|
+
* @static
|
|
81079
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} message GetRecentCompactedAddressBalanceChangesRequest message or plain object to encode
|
|
81080
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81081
|
+
* @returns {$protobuf.Writer} Writer
|
|
81082
|
+
*/
|
|
81083
|
+
GetRecentCompactedAddressBalanceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81084
|
+
return this.encode(message, writer).ldelim();
|
|
81085
|
+
};
|
|
81086
|
+
|
|
81087
|
+
/**
|
|
81088
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesRequest message from the specified reader or buffer.
|
|
81089
|
+
* @function decode
|
|
81090
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81091
|
+
* @static
|
|
81092
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81093
|
+
* @param {number} [length] Message length if known beforehand
|
|
81094
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest
|
|
81095
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81096
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81097
|
+
*/
|
|
81098
|
+
GetRecentCompactedAddressBalanceChangesRequest.decode = function decode(reader, length) {
|
|
81099
|
+
if (!(reader instanceof $Reader))
|
|
81100
|
+
reader = $Reader.create(reader);
|
|
81101
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest();
|
|
81102
|
+
while (reader.pos < end) {
|
|
81103
|
+
var tag = reader.uint32();
|
|
81104
|
+
switch (tag >>> 3) {
|
|
81105
|
+
case 1:
|
|
81106
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.decode(reader, reader.uint32());
|
|
81107
|
+
break;
|
|
81108
|
+
default:
|
|
81109
|
+
reader.skipType(tag & 7);
|
|
81110
|
+
break;
|
|
81111
|
+
}
|
|
81112
|
+
}
|
|
81113
|
+
return message;
|
|
81114
|
+
};
|
|
81115
|
+
|
|
81116
|
+
/**
|
|
81117
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesRequest message from the specified reader or buffer, length delimited.
|
|
81118
|
+
* @function decodeDelimited
|
|
81119
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81120
|
+
* @static
|
|
81121
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81122
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest
|
|
81123
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81124
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81125
|
+
*/
|
|
81126
|
+
GetRecentCompactedAddressBalanceChangesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
81127
|
+
if (!(reader instanceof $Reader))
|
|
81128
|
+
reader = new $Reader(reader);
|
|
81129
|
+
return this.decode(reader, reader.uint32());
|
|
81130
|
+
};
|
|
81131
|
+
|
|
81132
|
+
/**
|
|
81133
|
+
* Verifies a GetRecentCompactedAddressBalanceChangesRequest message.
|
|
81134
|
+
* @function verify
|
|
81135
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81136
|
+
* @static
|
|
81137
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
81138
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81139
|
+
*/
|
|
81140
|
+
GetRecentCompactedAddressBalanceChangesRequest.verify = function verify(message) {
|
|
81141
|
+
if (typeof message !== "object" || message === null)
|
|
81142
|
+
return "object expected";
|
|
81143
|
+
var properties = {};
|
|
81144
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
81145
|
+
properties.version = 1;
|
|
81146
|
+
{
|
|
81147
|
+
var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.verify(message.v0);
|
|
81148
|
+
if (error)
|
|
81149
|
+
return "v0." + error;
|
|
81150
|
+
}
|
|
81151
|
+
}
|
|
81152
|
+
return null;
|
|
81153
|
+
};
|
|
81154
|
+
|
|
81155
|
+
/**
|
|
81156
|
+
* Creates a GetRecentCompactedAddressBalanceChangesRequest message from a plain object. Also converts values to their respective internal types.
|
|
81157
|
+
* @function fromObject
|
|
81158
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81159
|
+
* @static
|
|
81160
|
+
* @param {Object.<string,*>} object Plain object
|
|
81161
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest
|
|
81162
|
+
*/
|
|
81163
|
+
GetRecentCompactedAddressBalanceChangesRequest.fromObject = function fromObject(object) {
|
|
81164
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest)
|
|
81165
|
+
return object;
|
|
81166
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest();
|
|
81167
|
+
if (object.v0 != null) {
|
|
81168
|
+
if (typeof object.v0 !== "object")
|
|
81169
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.v0: object expected");
|
|
81170
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.fromObject(object.v0);
|
|
81171
|
+
}
|
|
81172
|
+
return message;
|
|
81173
|
+
};
|
|
81174
|
+
|
|
81175
|
+
/**
|
|
81176
|
+
* Creates a plain object from a GetRecentCompactedAddressBalanceChangesRequest message. Also converts values to other types if specified.
|
|
81177
|
+
* @function toObject
|
|
81178
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81179
|
+
* @static
|
|
81180
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} message GetRecentCompactedAddressBalanceChangesRequest
|
|
81181
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81182
|
+
* @returns {Object.<string,*>} Plain object
|
|
81183
|
+
*/
|
|
81184
|
+
GetRecentCompactedAddressBalanceChangesRequest.toObject = function toObject(message, options) {
|
|
81185
|
+
if (!options)
|
|
81186
|
+
options = {};
|
|
81187
|
+
var object = {};
|
|
81188
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
81189
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.toObject(message.v0, options);
|
|
81190
|
+
if (options.oneofs)
|
|
81191
|
+
object.version = "v0";
|
|
81192
|
+
}
|
|
81193
|
+
return object;
|
|
81194
|
+
};
|
|
81195
|
+
|
|
81196
|
+
/**
|
|
81197
|
+
* Converts this GetRecentCompactedAddressBalanceChangesRequest to JSON.
|
|
81198
|
+
* @function toJSON
|
|
81199
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81200
|
+
* @instance
|
|
81201
|
+
* @returns {Object.<string,*>} JSON object
|
|
81202
|
+
*/
|
|
81203
|
+
GetRecentCompactedAddressBalanceChangesRequest.prototype.toJSON = function toJSON() {
|
|
81204
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81205
|
+
};
|
|
81206
|
+
|
|
81207
|
+
GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0 = (function() {
|
|
81208
|
+
|
|
81209
|
+
/**
|
|
81210
|
+
* Properties of a GetRecentCompactedAddressBalanceChangesRequestV0.
|
|
81211
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81212
|
+
* @interface IGetRecentCompactedAddressBalanceChangesRequestV0
|
|
81213
|
+
* @property {number|Long|null} [startBlockHeight] GetRecentCompactedAddressBalanceChangesRequestV0 startBlockHeight
|
|
81214
|
+
* @property {boolean|null} [prove] GetRecentCompactedAddressBalanceChangesRequestV0 prove
|
|
81215
|
+
*/
|
|
81216
|
+
|
|
81217
|
+
/**
|
|
81218
|
+
* Constructs a new GetRecentCompactedAddressBalanceChangesRequestV0.
|
|
81219
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
|
|
81220
|
+
* @classdesc Represents a GetRecentCompactedAddressBalanceChangesRequestV0.
|
|
81221
|
+
* @implements IGetRecentCompactedAddressBalanceChangesRequestV0
|
|
81222
|
+
* @constructor
|
|
81223
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0=} [properties] Properties to set
|
|
81224
|
+
*/
|
|
81225
|
+
function GetRecentCompactedAddressBalanceChangesRequestV0(properties) {
|
|
81226
|
+
if (properties)
|
|
81227
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81228
|
+
if (properties[keys[i]] != null)
|
|
81229
|
+
this[keys[i]] = properties[keys[i]];
|
|
81230
|
+
}
|
|
81231
|
+
|
|
81232
|
+
/**
|
|
81233
|
+
* GetRecentCompactedAddressBalanceChangesRequestV0 startBlockHeight.
|
|
81234
|
+
* @member {number|Long} startBlockHeight
|
|
81235
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81236
|
+
* @instance
|
|
81237
|
+
*/
|
|
81238
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
81239
|
+
|
|
81240
|
+
/**
|
|
81241
|
+
* GetRecentCompactedAddressBalanceChangesRequestV0 prove.
|
|
81242
|
+
* @member {boolean} prove
|
|
81243
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81244
|
+
* @instance
|
|
81245
|
+
*/
|
|
81246
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.prototype.prove = false;
|
|
81247
|
+
|
|
81248
|
+
/**
|
|
81249
|
+
* Creates a new GetRecentCompactedAddressBalanceChangesRequestV0 instance using the specified properties.
|
|
81250
|
+
* @function create
|
|
81251
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81252
|
+
* @static
|
|
81253
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0=} [properties] Properties to set
|
|
81254
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0 instance
|
|
81255
|
+
*/
|
|
81256
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.create = function create(properties) {
|
|
81257
|
+
return new GetRecentCompactedAddressBalanceChangesRequestV0(properties);
|
|
81258
|
+
};
|
|
81259
|
+
|
|
81260
|
+
/**
|
|
81261
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.verify|verify} messages.
|
|
81262
|
+
* @function encode
|
|
81263
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81264
|
+
* @static
|
|
81265
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0} message GetRecentCompactedAddressBalanceChangesRequestV0 message or plain object to encode
|
|
81266
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81267
|
+
* @returns {$protobuf.Writer} Writer
|
|
81268
|
+
*/
|
|
81269
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.encode = function encode(message, writer) {
|
|
81270
|
+
if (!writer)
|
|
81271
|
+
writer = $Writer.create();
|
|
81272
|
+
if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight"))
|
|
81273
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight);
|
|
81274
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
81275
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
81276
|
+
return writer;
|
|
81277
|
+
};
|
|
81278
|
+
|
|
81279
|
+
/**
|
|
81280
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.verify|verify} messages.
|
|
81281
|
+
* @function encodeDelimited
|
|
81282
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81283
|
+
* @static
|
|
81284
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0} message GetRecentCompactedAddressBalanceChangesRequestV0 message or plain object to encode
|
|
81285
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81286
|
+
* @returns {$protobuf.Writer} Writer
|
|
81287
|
+
*/
|
|
81288
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81289
|
+
return this.encode(message, writer).ldelim();
|
|
81290
|
+
};
|
|
81291
|
+
|
|
81292
|
+
/**
|
|
81293
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesRequestV0 message from the specified reader or buffer.
|
|
81294
|
+
* @function decode
|
|
81295
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81296
|
+
* @static
|
|
81297
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81298
|
+
* @param {number} [length] Message length if known beforehand
|
|
81299
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81300
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81301
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81302
|
+
*/
|
|
81303
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.decode = function decode(reader, length) {
|
|
81304
|
+
if (!(reader instanceof $Reader))
|
|
81305
|
+
reader = $Reader.create(reader);
|
|
81306
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0();
|
|
81307
|
+
while (reader.pos < end) {
|
|
81308
|
+
var tag = reader.uint32();
|
|
81309
|
+
switch (tag >>> 3) {
|
|
81310
|
+
case 1:
|
|
81311
|
+
message.startBlockHeight = reader.uint64();
|
|
81312
|
+
break;
|
|
81313
|
+
case 2:
|
|
81314
|
+
message.prove = reader.bool();
|
|
81315
|
+
break;
|
|
81316
|
+
default:
|
|
81317
|
+
reader.skipType(tag & 7);
|
|
81318
|
+
break;
|
|
81319
|
+
}
|
|
81320
|
+
}
|
|
81321
|
+
return message;
|
|
81322
|
+
};
|
|
81323
|
+
|
|
81324
|
+
/**
|
|
81325
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesRequestV0 message from the specified reader or buffer, length delimited.
|
|
81326
|
+
* @function decodeDelimited
|
|
81327
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81328
|
+
* @static
|
|
81329
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81330
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81331
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81332
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81333
|
+
*/
|
|
81334
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
81335
|
+
if (!(reader instanceof $Reader))
|
|
81336
|
+
reader = new $Reader(reader);
|
|
81337
|
+
return this.decode(reader, reader.uint32());
|
|
81338
|
+
};
|
|
81339
|
+
|
|
81340
|
+
/**
|
|
81341
|
+
* Verifies a GetRecentCompactedAddressBalanceChangesRequestV0 message.
|
|
81342
|
+
* @function verify
|
|
81343
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81344
|
+
* @static
|
|
81345
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
81346
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81347
|
+
*/
|
|
81348
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.verify = function verify(message) {
|
|
81349
|
+
if (typeof message !== "object" || message === null)
|
|
81350
|
+
return "object expected";
|
|
81351
|
+
if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
|
|
81352
|
+
if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high)))
|
|
81353
|
+
return "startBlockHeight: integer|Long expected";
|
|
81354
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
81355
|
+
if (typeof message.prove !== "boolean")
|
|
81356
|
+
return "prove: boolean expected";
|
|
81357
|
+
return null;
|
|
81358
|
+
};
|
|
81359
|
+
|
|
81360
|
+
/**
|
|
81361
|
+
* Creates a GetRecentCompactedAddressBalanceChangesRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
81362
|
+
* @function fromObject
|
|
81363
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81364
|
+
* @static
|
|
81365
|
+
* @param {Object.<string,*>} object Plain object
|
|
81366
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81367
|
+
*/
|
|
81368
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.fromObject = function fromObject(object) {
|
|
81369
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0)
|
|
81370
|
+
return object;
|
|
81371
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0();
|
|
81372
|
+
if (object.startBlockHeight != null)
|
|
81373
|
+
if ($util.Long)
|
|
81374
|
+
(message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true;
|
|
81375
|
+
else if (typeof object.startBlockHeight === "string")
|
|
81376
|
+
message.startBlockHeight = parseInt(object.startBlockHeight, 10);
|
|
81377
|
+
else if (typeof object.startBlockHeight === "number")
|
|
81378
|
+
message.startBlockHeight = object.startBlockHeight;
|
|
81379
|
+
else if (typeof object.startBlockHeight === "object")
|
|
81380
|
+
message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true);
|
|
81381
|
+
if (object.prove != null)
|
|
81382
|
+
message.prove = Boolean(object.prove);
|
|
81383
|
+
return message;
|
|
81384
|
+
};
|
|
81385
|
+
|
|
81386
|
+
/**
|
|
81387
|
+
* Creates a plain object from a GetRecentCompactedAddressBalanceChangesRequestV0 message. Also converts values to other types if specified.
|
|
81388
|
+
* @function toObject
|
|
81389
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81390
|
+
* @static
|
|
81391
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} message GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81392
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81393
|
+
* @returns {Object.<string,*>} Plain object
|
|
81394
|
+
*/
|
|
81395
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.toObject = function toObject(message, options) {
|
|
81396
|
+
if (!options)
|
|
81397
|
+
options = {};
|
|
81398
|
+
var object = {};
|
|
81399
|
+
if (options.defaults) {
|
|
81400
|
+
if ($util.Long) {
|
|
81401
|
+
var long = new $util.Long(0, 0, true);
|
|
81402
|
+
object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
81403
|
+
} else
|
|
81404
|
+
object.startBlockHeight = options.longs === String ? "0" : 0;
|
|
81405
|
+
object.prove = false;
|
|
81406
|
+
}
|
|
81407
|
+
if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
|
|
81408
|
+
if (typeof message.startBlockHeight === "number")
|
|
81409
|
+
object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight;
|
|
81410
|
+
else
|
|
81411
|
+
object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight;
|
|
81412
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
81413
|
+
object.prove = message.prove;
|
|
81414
|
+
return object;
|
|
81415
|
+
};
|
|
81416
|
+
|
|
81417
|
+
/**
|
|
81418
|
+
* Converts this GetRecentCompactedAddressBalanceChangesRequestV0 to JSON.
|
|
81419
|
+
* @function toJSON
|
|
81420
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
|
|
81421
|
+
* @instance
|
|
81422
|
+
* @returns {Object.<string,*>} JSON object
|
|
81423
|
+
*/
|
|
81424
|
+
GetRecentCompactedAddressBalanceChangesRequestV0.prototype.toJSON = function toJSON() {
|
|
81425
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81426
|
+
};
|
|
81427
|
+
|
|
81428
|
+
return GetRecentCompactedAddressBalanceChangesRequestV0;
|
|
81429
|
+
})();
|
|
81430
|
+
|
|
81431
|
+
return GetRecentCompactedAddressBalanceChangesRequest;
|
|
81432
|
+
})();
|
|
81433
|
+
|
|
81434
|
+
v0.GetRecentCompactedAddressBalanceChangesResponse = (function() {
|
|
81435
|
+
|
|
81436
|
+
/**
|
|
81437
|
+
* Properties of a GetRecentCompactedAddressBalanceChangesResponse.
|
|
81438
|
+
* @memberof org.dash.platform.dapi.v0
|
|
81439
|
+
* @interface IGetRecentCompactedAddressBalanceChangesResponse
|
|
81440
|
+
* @property {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0|null} [v0] GetRecentCompactedAddressBalanceChangesResponse v0
|
|
81441
|
+
*/
|
|
81442
|
+
|
|
81443
|
+
/**
|
|
81444
|
+
* Constructs a new GetRecentCompactedAddressBalanceChangesResponse.
|
|
81445
|
+
* @memberof org.dash.platform.dapi.v0
|
|
81446
|
+
* @classdesc Represents a GetRecentCompactedAddressBalanceChangesResponse.
|
|
81447
|
+
* @implements IGetRecentCompactedAddressBalanceChangesResponse
|
|
81448
|
+
* @constructor
|
|
81449
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse=} [properties] Properties to set
|
|
81450
|
+
*/
|
|
81451
|
+
function GetRecentCompactedAddressBalanceChangesResponse(properties) {
|
|
81452
|
+
if (properties)
|
|
81453
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81454
|
+
if (properties[keys[i]] != null)
|
|
81455
|
+
this[keys[i]] = properties[keys[i]];
|
|
81456
|
+
}
|
|
81457
|
+
|
|
81458
|
+
/**
|
|
81459
|
+
* GetRecentCompactedAddressBalanceChangesResponse v0.
|
|
81460
|
+
* @member {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0|null|undefined} v0
|
|
81461
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81462
|
+
* @instance
|
|
81463
|
+
*/
|
|
81464
|
+
GetRecentCompactedAddressBalanceChangesResponse.prototype.v0 = null;
|
|
81465
|
+
|
|
81466
|
+
// OneOf field names bound to virtual getters and setters
|
|
81467
|
+
var $oneOfFields;
|
|
81468
|
+
|
|
81469
|
+
/**
|
|
81470
|
+
* GetRecentCompactedAddressBalanceChangesResponse version.
|
|
81471
|
+
* @member {"v0"|undefined} version
|
|
81472
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81473
|
+
* @instance
|
|
81474
|
+
*/
|
|
81475
|
+
Object.defineProperty(GetRecentCompactedAddressBalanceChangesResponse.prototype, "version", {
|
|
81476
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
81477
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
81478
|
+
});
|
|
81479
|
+
|
|
81480
|
+
/**
|
|
81481
|
+
* Creates a new GetRecentCompactedAddressBalanceChangesResponse instance using the specified properties.
|
|
81482
|
+
* @function create
|
|
81483
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81484
|
+
* @static
|
|
81485
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse=} [properties] Properties to set
|
|
81486
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse instance
|
|
81487
|
+
*/
|
|
81488
|
+
GetRecentCompactedAddressBalanceChangesResponse.create = function create(properties) {
|
|
81489
|
+
return new GetRecentCompactedAddressBalanceChangesResponse(properties);
|
|
81490
|
+
};
|
|
81491
|
+
|
|
81492
|
+
/**
|
|
81493
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.verify|verify} messages.
|
|
81494
|
+
* @function encode
|
|
81495
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81496
|
+
* @static
|
|
81497
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse} message GetRecentCompactedAddressBalanceChangesResponse message or plain object to encode
|
|
81498
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81499
|
+
* @returns {$protobuf.Writer} Writer
|
|
81500
|
+
*/
|
|
81501
|
+
GetRecentCompactedAddressBalanceChangesResponse.encode = function encode(message, writer) {
|
|
81502
|
+
if (!writer)
|
|
81503
|
+
writer = $Writer.create();
|
|
81504
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
81505
|
+
$root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81506
|
+
return writer;
|
|
81507
|
+
};
|
|
81508
|
+
|
|
81509
|
+
/**
|
|
81510
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.verify|verify} messages.
|
|
81511
|
+
* @function encodeDelimited
|
|
81512
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81513
|
+
* @static
|
|
81514
|
+
* @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse} message GetRecentCompactedAddressBalanceChangesResponse message or plain object to encode
|
|
81515
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81516
|
+
* @returns {$protobuf.Writer} Writer
|
|
81517
|
+
*/
|
|
81518
|
+
GetRecentCompactedAddressBalanceChangesResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81519
|
+
return this.encode(message, writer).ldelim();
|
|
81520
|
+
};
|
|
81521
|
+
|
|
81522
|
+
/**
|
|
81523
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesResponse message from the specified reader or buffer.
|
|
81524
|
+
* @function decode
|
|
81525
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81526
|
+
* @static
|
|
81527
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81528
|
+
* @param {number} [length] Message length if known beforehand
|
|
81529
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse
|
|
81530
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81531
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81532
|
+
*/
|
|
81533
|
+
GetRecentCompactedAddressBalanceChangesResponse.decode = function decode(reader, length) {
|
|
81534
|
+
if (!(reader instanceof $Reader))
|
|
81535
|
+
reader = $Reader.create(reader);
|
|
81536
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse();
|
|
81537
|
+
while (reader.pos < end) {
|
|
81538
|
+
var tag = reader.uint32();
|
|
81539
|
+
switch (tag >>> 3) {
|
|
81540
|
+
case 1:
|
|
81541
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.decode(reader, reader.uint32());
|
|
81542
|
+
break;
|
|
81543
|
+
default:
|
|
81544
|
+
reader.skipType(tag & 7);
|
|
81545
|
+
break;
|
|
81546
|
+
}
|
|
81547
|
+
}
|
|
81548
|
+
return message;
|
|
81549
|
+
};
|
|
81550
|
+
|
|
81551
|
+
/**
|
|
81552
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesResponse message from the specified reader or buffer, length delimited.
|
|
81553
|
+
* @function decodeDelimited
|
|
81554
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81555
|
+
* @static
|
|
81556
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81557
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse
|
|
81558
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81559
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81560
|
+
*/
|
|
81561
|
+
GetRecentCompactedAddressBalanceChangesResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
81562
|
+
if (!(reader instanceof $Reader))
|
|
81563
|
+
reader = new $Reader(reader);
|
|
81564
|
+
return this.decode(reader, reader.uint32());
|
|
81565
|
+
};
|
|
81566
|
+
|
|
81567
|
+
/**
|
|
81568
|
+
* Verifies a GetRecentCompactedAddressBalanceChangesResponse message.
|
|
81569
|
+
* @function verify
|
|
81570
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81571
|
+
* @static
|
|
81572
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
81573
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81574
|
+
*/
|
|
81575
|
+
GetRecentCompactedAddressBalanceChangesResponse.verify = function verify(message) {
|
|
81576
|
+
if (typeof message !== "object" || message === null)
|
|
81577
|
+
return "object expected";
|
|
81578
|
+
var properties = {};
|
|
81579
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
81580
|
+
properties.version = 1;
|
|
81581
|
+
{
|
|
81582
|
+
var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.verify(message.v0);
|
|
81583
|
+
if (error)
|
|
81584
|
+
return "v0." + error;
|
|
81585
|
+
}
|
|
81586
|
+
}
|
|
81587
|
+
return null;
|
|
81588
|
+
};
|
|
81589
|
+
|
|
81590
|
+
/**
|
|
81591
|
+
* Creates a GetRecentCompactedAddressBalanceChangesResponse message from a plain object. Also converts values to their respective internal types.
|
|
81592
|
+
* @function fromObject
|
|
81593
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81594
|
+
* @static
|
|
81595
|
+
* @param {Object.<string,*>} object Plain object
|
|
81596
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse
|
|
81597
|
+
*/
|
|
81598
|
+
GetRecentCompactedAddressBalanceChangesResponse.fromObject = function fromObject(object) {
|
|
81599
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse)
|
|
81600
|
+
return object;
|
|
81601
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse();
|
|
81602
|
+
if (object.v0 != null) {
|
|
81603
|
+
if (typeof object.v0 !== "object")
|
|
81604
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.v0: object expected");
|
|
81605
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.fromObject(object.v0);
|
|
81606
|
+
}
|
|
81607
|
+
return message;
|
|
81608
|
+
};
|
|
81609
|
+
|
|
81610
|
+
/**
|
|
81611
|
+
* Creates a plain object from a GetRecentCompactedAddressBalanceChangesResponse message. Also converts values to other types if specified.
|
|
81612
|
+
* @function toObject
|
|
81613
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81614
|
+
* @static
|
|
81615
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} message GetRecentCompactedAddressBalanceChangesResponse
|
|
81616
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81617
|
+
* @returns {Object.<string,*>} Plain object
|
|
81618
|
+
*/
|
|
81619
|
+
GetRecentCompactedAddressBalanceChangesResponse.toObject = function toObject(message, options) {
|
|
81620
|
+
if (!options)
|
|
81621
|
+
options = {};
|
|
81622
|
+
var object = {};
|
|
81623
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
81624
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.toObject(message.v0, options);
|
|
81625
|
+
if (options.oneofs)
|
|
81626
|
+
object.version = "v0";
|
|
81627
|
+
}
|
|
81628
|
+
return object;
|
|
81629
|
+
};
|
|
81630
|
+
|
|
81631
|
+
/**
|
|
81632
|
+
* Converts this GetRecentCompactedAddressBalanceChangesResponse to JSON.
|
|
81633
|
+
* @function toJSON
|
|
81634
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81635
|
+
* @instance
|
|
81636
|
+
* @returns {Object.<string,*>} JSON object
|
|
81637
|
+
*/
|
|
81638
|
+
GetRecentCompactedAddressBalanceChangesResponse.prototype.toJSON = function toJSON() {
|
|
81639
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81640
|
+
};
|
|
81641
|
+
|
|
81642
|
+
GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0 = (function() {
|
|
81643
|
+
|
|
81644
|
+
/**
|
|
81645
|
+
* Properties of a GetRecentCompactedAddressBalanceChangesResponseV0.
|
|
81646
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81647
|
+
* @interface IGetRecentCompactedAddressBalanceChangesResponseV0
|
|
81648
|
+
* @property {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries|null} [compactedAddressBalanceUpdateEntries] GetRecentCompactedAddressBalanceChangesResponseV0 compactedAddressBalanceUpdateEntries
|
|
81649
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentCompactedAddressBalanceChangesResponseV0 proof
|
|
81650
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentCompactedAddressBalanceChangesResponseV0 metadata
|
|
81651
|
+
*/
|
|
81652
|
+
|
|
81653
|
+
/**
|
|
81654
|
+
* Constructs a new GetRecentCompactedAddressBalanceChangesResponseV0.
|
|
81655
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
|
|
81656
|
+
* @classdesc Represents a GetRecentCompactedAddressBalanceChangesResponseV0.
|
|
81657
|
+
* @implements IGetRecentCompactedAddressBalanceChangesResponseV0
|
|
81658
|
+
* @constructor
|
|
81659
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0=} [properties] Properties to set
|
|
81660
|
+
*/
|
|
81661
|
+
function GetRecentCompactedAddressBalanceChangesResponseV0(properties) {
|
|
81662
|
+
if (properties)
|
|
81663
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81664
|
+
if (properties[keys[i]] != null)
|
|
81665
|
+
this[keys[i]] = properties[keys[i]];
|
|
81666
|
+
}
|
|
81667
|
+
|
|
81668
|
+
/**
|
|
81669
|
+
* GetRecentCompactedAddressBalanceChangesResponseV0 compactedAddressBalanceUpdateEntries.
|
|
81670
|
+
* @member {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries|null|undefined} compactedAddressBalanceUpdateEntries
|
|
81671
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81672
|
+
* @instance
|
|
81673
|
+
*/
|
|
81674
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.prototype.compactedAddressBalanceUpdateEntries = null;
|
|
81675
|
+
|
|
81676
|
+
/**
|
|
81677
|
+
* GetRecentCompactedAddressBalanceChangesResponseV0 proof.
|
|
81678
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
81679
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81680
|
+
* @instance
|
|
81681
|
+
*/
|
|
81682
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.prototype.proof = null;
|
|
81683
|
+
|
|
81684
|
+
/**
|
|
81685
|
+
* GetRecentCompactedAddressBalanceChangesResponseV0 metadata.
|
|
81686
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
81687
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81688
|
+
* @instance
|
|
81689
|
+
*/
|
|
81690
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.prototype.metadata = null;
|
|
81691
|
+
|
|
81692
|
+
// OneOf field names bound to virtual getters and setters
|
|
81693
|
+
var $oneOfFields;
|
|
81694
|
+
|
|
81695
|
+
/**
|
|
81696
|
+
* GetRecentCompactedAddressBalanceChangesResponseV0 result.
|
|
81697
|
+
* @member {"compactedAddressBalanceUpdateEntries"|"proof"|undefined} result
|
|
81698
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81699
|
+
* @instance
|
|
81700
|
+
*/
|
|
81701
|
+
Object.defineProperty(GetRecentCompactedAddressBalanceChangesResponseV0.prototype, "result", {
|
|
81702
|
+
get: $util.oneOfGetter($oneOfFields = ["compactedAddressBalanceUpdateEntries", "proof"]),
|
|
81703
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
81704
|
+
});
|
|
81705
|
+
|
|
81706
|
+
/**
|
|
81707
|
+
* Creates a new GetRecentCompactedAddressBalanceChangesResponseV0 instance using the specified properties.
|
|
81708
|
+
* @function create
|
|
81709
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81710
|
+
* @static
|
|
81711
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0=} [properties] Properties to set
|
|
81712
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0 instance
|
|
81713
|
+
*/
|
|
81714
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.create = function create(properties) {
|
|
81715
|
+
return new GetRecentCompactedAddressBalanceChangesResponseV0(properties);
|
|
81716
|
+
};
|
|
81717
|
+
|
|
81718
|
+
/**
|
|
81719
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.verify|verify} messages.
|
|
81720
|
+
* @function encode
|
|
81721
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81722
|
+
* @static
|
|
81723
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0} message GetRecentCompactedAddressBalanceChangesResponseV0 message or plain object to encode
|
|
81724
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81725
|
+
* @returns {$protobuf.Writer} Writer
|
|
81726
|
+
*/
|
|
81727
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.encode = function encode(message, writer) {
|
|
81728
|
+
if (!writer)
|
|
81729
|
+
writer = $Writer.create();
|
|
81730
|
+
if (message.compactedAddressBalanceUpdateEntries != null && Object.hasOwnProperty.call(message, "compactedAddressBalanceUpdateEntries"))
|
|
81731
|
+
$root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.encode(message.compactedAddressBalanceUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81732
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
81733
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
81734
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
81735
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
81736
|
+
return writer;
|
|
81737
|
+
};
|
|
81738
|
+
|
|
81739
|
+
/**
|
|
81740
|
+
* Encodes the specified GetRecentCompactedAddressBalanceChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.verify|verify} messages.
|
|
81741
|
+
* @function encodeDelimited
|
|
81742
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81743
|
+
* @static
|
|
81744
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0} message GetRecentCompactedAddressBalanceChangesResponseV0 message or plain object to encode
|
|
81745
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81746
|
+
* @returns {$protobuf.Writer} Writer
|
|
81747
|
+
*/
|
|
81748
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81749
|
+
return this.encode(message, writer).ldelim();
|
|
81750
|
+
};
|
|
81751
|
+
|
|
81752
|
+
/**
|
|
81753
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesResponseV0 message from the specified reader or buffer.
|
|
81754
|
+
* @function decode
|
|
81755
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81756
|
+
* @static
|
|
81757
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81758
|
+
* @param {number} [length] Message length if known beforehand
|
|
81759
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81760
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81761
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81762
|
+
*/
|
|
81763
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.decode = function decode(reader, length) {
|
|
81764
|
+
if (!(reader instanceof $Reader))
|
|
81765
|
+
reader = $Reader.create(reader);
|
|
81766
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0();
|
|
81767
|
+
while (reader.pos < end) {
|
|
81768
|
+
var tag = reader.uint32();
|
|
81769
|
+
switch (tag >>> 3) {
|
|
81770
|
+
case 1:
|
|
81771
|
+
message.compactedAddressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.decode(reader, reader.uint32());
|
|
81772
|
+
break;
|
|
81773
|
+
case 2:
|
|
81774
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
81775
|
+
break;
|
|
81776
|
+
case 3:
|
|
81777
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
81778
|
+
break;
|
|
81779
|
+
default:
|
|
81780
|
+
reader.skipType(tag & 7);
|
|
81781
|
+
break;
|
|
81782
|
+
}
|
|
81783
|
+
}
|
|
81784
|
+
return message;
|
|
81785
|
+
};
|
|
81786
|
+
|
|
81787
|
+
/**
|
|
81788
|
+
* Decodes a GetRecentCompactedAddressBalanceChangesResponseV0 message from the specified reader or buffer, length delimited.
|
|
81789
|
+
* @function decodeDelimited
|
|
81790
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81791
|
+
* @static
|
|
81792
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81793
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81794
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81795
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81796
|
+
*/
|
|
81797
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
81798
|
+
if (!(reader instanceof $Reader))
|
|
81799
|
+
reader = new $Reader(reader);
|
|
81800
|
+
return this.decode(reader, reader.uint32());
|
|
81801
|
+
};
|
|
81802
|
+
|
|
81803
|
+
/**
|
|
81804
|
+
* Verifies a GetRecentCompactedAddressBalanceChangesResponseV0 message.
|
|
81805
|
+
* @function verify
|
|
81806
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81807
|
+
* @static
|
|
81808
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
81809
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81810
|
+
*/
|
|
81811
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.verify = function verify(message) {
|
|
81812
|
+
if (typeof message !== "object" || message === null)
|
|
81813
|
+
return "object expected";
|
|
81814
|
+
var properties = {};
|
|
81815
|
+
if (message.compactedAddressBalanceUpdateEntries != null && message.hasOwnProperty("compactedAddressBalanceUpdateEntries")) {
|
|
81816
|
+
properties.result = 1;
|
|
81817
|
+
{
|
|
81818
|
+
var error = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.verify(message.compactedAddressBalanceUpdateEntries);
|
|
81819
|
+
if (error)
|
|
81820
|
+
return "compactedAddressBalanceUpdateEntries." + error;
|
|
81821
|
+
}
|
|
81822
|
+
}
|
|
81823
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
81824
|
+
if (properties.result === 1)
|
|
81825
|
+
return "result: multiple values";
|
|
81826
|
+
properties.result = 1;
|
|
81827
|
+
{
|
|
81828
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
81829
|
+
if (error)
|
|
81830
|
+
return "proof." + error;
|
|
81831
|
+
}
|
|
81832
|
+
}
|
|
81833
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
81834
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
81835
|
+
if (error)
|
|
81836
|
+
return "metadata." + error;
|
|
81837
|
+
}
|
|
81838
|
+
return null;
|
|
81839
|
+
};
|
|
81840
|
+
|
|
81841
|
+
/**
|
|
81842
|
+
* Creates a GetRecentCompactedAddressBalanceChangesResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
81843
|
+
* @function fromObject
|
|
81844
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81845
|
+
* @static
|
|
81846
|
+
* @param {Object.<string,*>} object Plain object
|
|
81847
|
+
* @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81848
|
+
*/
|
|
81849
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.fromObject = function fromObject(object) {
|
|
81850
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0)
|
|
81851
|
+
return object;
|
|
81852
|
+
var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0();
|
|
81853
|
+
if (object.compactedAddressBalanceUpdateEntries != null) {
|
|
81854
|
+
if (typeof object.compactedAddressBalanceUpdateEntries !== "object")
|
|
81855
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.compactedAddressBalanceUpdateEntries: object expected");
|
|
81856
|
+
message.compactedAddressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.fromObject(object.compactedAddressBalanceUpdateEntries);
|
|
81857
|
+
}
|
|
81858
|
+
if (object.proof != null) {
|
|
81859
|
+
if (typeof object.proof !== "object")
|
|
81860
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.proof: object expected");
|
|
81861
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
81862
|
+
}
|
|
81863
|
+
if (object.metadata != null) {
|
|
81864
|
+
if (typeof object.metadata !== "object")
|
|
81865
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.metadata: object expected");
|
|
81866
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
81867
|
+
}
|
|
81868
|
+
return message;
|
|
81869
|
+
};
|
|
81870
|
+
|
|
81871
|
+
/**
|
|
81872
|
+
* Creates a plain object from a GetRecentCompactedAddressBalanceChangesResponseV0 message. Also converts values to other types if specified.
|
|
81873
|
+
* @function toObject
|
|
81874
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81875
|
+
* @static
|
|
81876
|
+
* @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} message GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81877
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81878
|
+
* @returns {Object.<string,*>} Plain object
|
|
81879
|
+
*/
|
|
81880
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.toObject = function toObject(message, options) {
|
|
81881
|
+
if (!options)
|
|
81882
|
+
options = {};
|
|
81883
|
+
var object = {};
|
|
81884
|
+
if (options.defaults)
|
|
81885
|
+
object.metadata = null;
|
|
81886
|
+
if (message.compactedAddressBalanceUpdateEntries != null && message.hasOwnProperty("compactedAddressBalanceUpdateEntries")) {
|
|
81887
|
+
object.compactedAddressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.toObject(message.compactedAddressBalanceUpdateEntries, options);
|
|
81888
|
+
if (options.oneofs)
|
|
81889
|
+
object.result = "compactedAddressBalanceUpdateEntries";
|
|
81890
|
+
}
|
|
81891
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
81892
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
81893
|
+
if (options.oneofs)
|
|
81894
|
+
object.result = "proof";
|
|
81895
|
+
}
|
|
81896
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
81897
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
81898
|
+
return object;
|
|
81899
|
+
};
|
|
81900
|
+
|
|
81901
|
+
/**
|
|
81902
|
+
* Converts this GetRecentCompactedAddressBalanceChangesResponseV0 to JSON.
|
|
81903
|
+
* @function toJSON
|
|
81904
|
+
* @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
|
|
81905
|
+
* @instance
|
|
81906
|
+
* @returns {Object.<string,*>} JSON object
|
|
81907
|
+
*/
|
|
81908
|
+
GetRecentCompactedAddressBalanceChangesResponseV0.prototype.toJSON = function toJSON() {
|
|
81909
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81910
|
+
};
|
|
81911
|
+
|
|
81912
|
+
return GetRecentCompactedAddressBalanceChangesResponseV0;
|
|
81913
|
+
})();
|
|
81914
|
+
|
|
81915
|
+
return GetRecentCompactedAddressBalanceChangesResponse;
|
|
81916
|
+
})();
|
|
81917
|
+
|
|
78786
81918
|
return v0;
|
|
78787
81919
|
})();
|
|
78788
81920
|
|