@dashevo/dapi-grpc 2.0.0-rc.1 → 2.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/build.rs +4 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +1810 -243
- package/clients/platform/v0/nodejs/platform_pbjs.js +1810 -243
- package/clients/platform/v0/nodejs/platform_protoc.js +1755 -117
- package/clients/platform/v0/web/platform_pb.d.ts +218 -0
- package/clients/platform/v0/web/platform_pb.js +1755 -117
- package/clients/platform/v0/web/platform_pb_service.d.ts +19 -0
- package/clients/platform/v0/web/platform_pb_service.js +40 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +57 -2
- package/src/deserialization.rs +1 -1
|
@@ -1881,6 +1881,39 @@ $root.org = (function() {
|
|
|
1881
1881
|
* @variation 2
|
|
1882
1882
|
*/
|
|
1883
1883
|
|
|
1884
|
+
/**
|
|
1885
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenPerpetualDistributionLastClaim}.
|
|
1886
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1887
|
+
* @typedef getTokenPerpetualDistributionLastClaimCallback
|
|
1888
|
+
* @type {function}
|
|
1889
|
+
* @param {Error|null} error Error, if any
|
|
1890
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} [response] GetTokenPerpetualDistributionLastClaimResponse
|
|
1891
|
+
*/
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Calls getTokenPerpetualDistributionLastClaim.
|
|
1895
|
+
* @function getTokenPerpetualDistributionLastClaim
|
|
1896
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1897
|
+
* @instance
|
|
1898
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} request GetTokenPerpetualDistributionLastClaimRequest message or plain object
|
|
1899
|
+
* @param {org.dash.platform.dapi.v0.Platform.getTokenPerpetualDistributionLastClaimCallback} callback Node-style callback called with the error, if any, and GetTokenPerpetualDistributionLastClaimResponse
|
|
1900
|
+
* @returns {undefined}
|
|
1901
|
+
* @variation 1
|
|
1902
|
+
*/
|
|
1903
|
+
Object.defineProperty(Platform.prototype.getTokenPerpetualDistributionLastClaim = function getTokenPerpetualDistributionLastClaim(request, callback) {
|
|
1904
|
+
return this.rpcCall(getTokenPerpetualDistributionLastClaim, $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest, $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse, request, callback);
|
|
1905
|
+
}, "name", { value: "getTokenPerpetualDistributionLastClaim" });
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Calls getTokenPerpetualDistributionLastClaim.
|
|
1909
|
+
* @function getTokenPerpetualDistributionLastClaim
|
|
1910
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1911
|
+
* @instance
|
|
1912
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} request GetTokenPerpetualDistributionLastClaimRequest message or plain object
|
|
1913
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse>} Promise
|
|
1914
|
+
* @variation 2
|
|
1915
|
+
*/
|
|
1916
|
+
|
|
1884
1917
|
/**
|
|
1885
1918
|
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenTotalSupply}.
|
|
1886
1919
|
* @memberof org.dash.platform.dapi.v0.Platform
|
|
@@ -57611,24 +57644,24 @@ $root.org = (function() {
|
|
|
57611
57644
|
return GetTokenPreProgrammedDistributionsResponse;
|
|
57612
57645
|
})();
|
|
57613
57646
|
|
|
57614
|
-
v0.
|
|
57647
|
+
v0.GetTokenPerpetualDistributionLastClaimRequest = (function() {
|
|
57615
57648
|
|
|
57616
57649
|
/**
|
|
57617
|
-
* Properties of a
|
|
57650
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimRequest.
|
|
57618
57651
|
* @memberof org.dash.platform.dapi.v0
|
|
57619
|
-
* @interface
|
|
57620
|
-
* @property {org.dash.platform.dapi.v0.
|
|
57652
|
+
* @interface IGetTokenPerpetualDistributionLastClaimRequest
|
|
57653
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null} [v0] GetTokenPerpetualDistributionLastClaimRequest v0
|
|
57621
57654
|
*/
|
|
57622
57655
|
|
|
57623
57656
|
/**
|
|
57624
|
-
* Constructs a new
|
|
57657
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimRequest.
|
|
57625
57658
|
* @memberof org.dash.platform.dapi.v0
|
|
57626
|
-
* @classdesc Represents a
|
|
57627
|
-
* @implements
|
|
57659
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimRequest.
|
|
57660
|
+
* @implements IGetTokenPerpetualDistributionLastClaimRequest
|
|
57628
57661
|
* @constructor
|
|
57629
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57662
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
|
|
57630
57663
|
*/
|
|
57631
|
-
function
|
|
57664
|
+
function GetTokenPerpetualDistributionLastClaimRequest(properties) {
|
|
57632
57665
|
if (properties)
|
|
57633
57666
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57634
57667
|
if (properties[keys[i]] != null)
|
|
@@ -57636,89 +57669,89 @@ $root.org = (function() {
|
|
|
57636
57669
|
}
|
|
57637
57670
|
|
|
57638
57671
|
/**
|
|
57639
|
-
*
|
|
57640
|
-
* @member {org.dash.platform.dapi.v0.
|
|
57641
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57672
|
+
* GetTokenPerpetualDistributionLastClaimRequest v0.
|
|
57673
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null|undefined} v0
|
|
57674
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57642
57675
|
* @instance
|
|
57643
57676
|
*/
|
|
57644
|
-
|
|
57677
|
+
GetTokenPerpetualDistributionLastClaimRequest.prototype.v0 = null;
|
|
57645
57678
|
|
|
57646
57679
|
// OneOf field names bound to virtual getters and setters
|
|
57647
57680
|
var $oneOfFields;
|
|
57648
57681
|
|
|
57649
57682
|
/**
|
|
57650
|
-
*
|
|
57683
|
+
* GetTokenPerpetualDistributionLastClaimRequest version.
|
|
57651
57684
|
* @member {"v0"|undefined} version
|
|
57652
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57685
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57653
57686
|
* @instance
|
|
57654
57687
|
*/
|
|
57655
|
-
Object.defineProperty(
|
|
57688
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimRequest.prototype, "version", {
|
|
57656
57689
|
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
57657
57690
|
set: $util.oneOfSetter($oneOfFields)
|
|
57658
57691
|
});
|
|
57659
57692
|
|
|
57660
57693
|
/**
|
|
57661
|
-
* Creates a new
|
|
57694
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimRequest instance using the specified properties.
|
|
57662
57695
|
* @function create
|
|
57663
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57696
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57664
57697
|
* @static
|
|
57665
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57666
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57698
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
|
|
57699
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest instance
|
|
57667
57700
|
*/
|
|
57668
|
-
|
|
57669
|
-
return new
|
|
57701
|
+
GetTokenPerpetualDistributionLastClaimRequest.create = function create(properties) {
|
|
57702
|
+
return new GetTokenPerpetualDistributionLastClaimRequest(properties);
|
|
57670
57703
|
};
|
|
57671
57704
|
|
|
57672
57705
|
/**
|
|
57673
|
-
* Encodes the specified
|
|
57706
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
|
|
57674
57707
|
* @function encode
|
|
57675
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57708
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57676
57709
|
* @static
|
|
57677
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57710
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
|
|
57678
57711
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57679
57712
|
* @returns {$protobuf.Writer} Writer
|
|
57680
57713
|
*/
|
|
57681
|
-
|
|
57714
|
+
GetTokenPerpetualDistributionLastClaimRequest.encode = function encode(message, writer) {
|
|
57682
57715
|
if (!writer)
|
|
57683
57716
|
writer = $Writer.create();
|
|
57684
57717
|
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
57685
|
-
$root.org.dash.platform.dapi.v0.
|
|
57718
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
57686
57719
|
return writer;
|
|
57687
57720
|
};
|
|
57688
57721
|
|
|
57689
57722
|
/**
|
|
57690
|
-
* Encodes the specified
|
|
57723
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
|
|
57691
57724
|
* @function encodeDelimited
|
|
57692
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57725
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57693
57726
|
* @static
|
|
57694
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57727
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
|
|
57695
57728
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57696
57729
|
* @returns {$protobuf.Writer} Writer
|
|
57697
57730
|
*/
|
|
57698
|
-
|
|
57731
|
+
GetTokenPerpetualDistributionLastClaimRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57699
57732
|
return this.encode(message, writer).ldelim();
|
|
57700
57733
|
};
|
|
57701
57734
|
|
|
57702
57735
|
/**
|
|
57703
|
-
* Decodes a
|
|
57736
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer.
|
|
57704
57737
|
* @function decode
|
|
57705
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57738
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57706
57739
|
* @static
|
|
57707
57740
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57708
57741
|
* @param {number} [length] Message length if known beforehand
|
|
57709
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57742
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57710
57743
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57711
57744
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57712
57745
|
*/
|
|
57713
|
-
|
|
57746
|
+
GetTokenPerpetualDistributionLastClaimRequest.decode = function decode(reader, length) {
|
|
57714
57747
|
if (!(reader instanceof $Reader))
|
|
57715
57748
|
reader = $Reader.create(reader);
|
|
57716
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
57749
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
|
|
57717
57750
|
while (reader.pos < end) {
|
|
57718
57751
|
var tag = reader.uint32();
|
|
57719
57752
|
switch (tag >>> 3) {
|
|
57720
57753
|
case 1:
|
|
57721
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
57754
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.decode(reader, reader.uint32());
|
|
57722
57755
|
break;
|
|
57723
57756
|
default:
|
|
57724
57757
|
reader.skipType(tag & 7);
|
|
@@ -57729,37 +57762,37 @@ $root.org = (function() {
|
|
|
57729
57762
|
};
|
|
57730
57763
|
|
|
57731
57764
|
/**
|
|
57732
|
-
* Decodes a
|
|
57765
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer, length delimited.
|
|
57733
57766
|
* @function decodeDelimited
|
|
57734
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57767
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57735
57768
|
* @static
|
|
57736
57769
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57737
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57770
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57738
57771
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57739
57772
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57740
57773
|
*/
|
|
57741
|
-
|
|
57774
|
+
GetTokenPerpetualDistributionLastClaimRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
57742
57775
|
if (!(reader instanceof $Reader))
|
|
57743
57776
|
reader = new $Reader(reader);
|
|
57744
57777
|
return this.decode(reader, reader.uint32());
|
|
57745
57778
|
};
|
|
57746
57779
|
|
|
57747
57780
|
/**
|
|
57748
|
-
* Verifies a
|
|
57781
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimRequest message.
|
|
57749
57782
|
* @function verify
|
|
57750
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57783
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57751
57784
|
* @static
|
|
57752
57785
|
* @param {Object.<string,*>} message Plain object to verify
|
|
57753
57786
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57754
57787
|
*/
|
|
57755
|
-
|
|
57788
|
+
GetTokenPerpetualDistributionLastClaimRequest.verify = function verify(message) {
|
|
57756
57789
|
if (typeof message !== "object" || message === null)
|
|
57757
57790
|
return "object expected";
|
|
57758
57791
|
var properties = {};
|
|
57759
57792
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57760
57793
|
properties.version = 1;
|
|
57761
57794
|
{
|
|
57762
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
57795
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify(message.v0);
|
|
57763
57796
|
if (error)
|
|
57764
57797
|
return "v0." + error;
|
|
57765
57798
|
}
|
|
@@ -57768,40 +57801,40 @@ $root.org = (function() {
|
|
|
57768
57801
|
};
|
|
57769
57802
|
|
|
57770
57803
|
/**
|
|
57771
|
-
* Creates a
|
|
57804
|
+
* Creates a GetTokenPerpetualDistributionLastClaimRequest message from a plain object. Also converts values to their respective internal types.
|
|
57772
57805
|
* @function fromObject
|
|
57773
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57806
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57774
57807
|
* @static
|
|
57775
57808
|
* @param {Object.<string,*>} object Plain object
|
|
57776
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57809
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57777
57810
|
*/
|
|
57778
|
-
|
|
57779
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
57811
|
+
GetTokenPerpetualDistributionLastClaimRequest.fromObject = function fromObject(object) {
|
|
57812
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest)
|
|
57780
57813
|
return object;
|
|
57781
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
57814
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
|
|
57782
57815
|
if (object.v0 != null) {
|
|
57783
57816
|
if (typeof object.v0 !== "object")
|
|
57784
|
-
throw TypeError(".org.dash.platform.dapi.v0.
|
|
57785
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
57817
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.v0: object expected");
|
|
57818
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.fromObject(object.v0);
|
|
57786
57819
|
}
|
|
57787
57820
|
return message;
|
|
57788
57821
|
};
|
|
57789
57822
|
|
|
57790
57823
|
/**
|
|
57791
|
-
* Creates a plain object from a
|
|
57824
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequest message. Also converts values to other types if specified.
|
|
57792
57825
|
* @function toObject
|
|
57793
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57826
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57794
57827
|
* @static
|
|
57795
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57828
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest
|
|
57796
57829
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57797
57830
|
* @returns {Object.<string,*>} Plain object
|
|
57798
57831
|
*/
|
|
57799
|
-
|
|
57832
|
+
GetTokenPerpetualDistributionLastClaimRequest.toObject = function toObject(message, options) {
|
|
57800
57833
|
if (!options)
|
|
57801
57834
|
options = {};
|
|
57802
57835
|
var object = {};
|
|
57803
57836
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57804
|
-
object.v0 = $root.org.dash.platform.dapi.v0.
|
|
57837
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.toObject(message.v0, options);
|
|
57805
57838
|
if (options.oneofs)
|
|
57806
57839
|
object.version = "v0";
|
|
57807
57840
|
}
|
|
@@ -57809,35 +57842,35 @@ $root.org = (function() {
|
|
|
57809
57842
|
};
|
|
57810
57843
|
|
|
57811
57844
|
/**
|
|
57812
|
-
* Converts this
|
|
57845
|
+
* Converts this GetTokenPerpetualDistributionLastClaimRequest to JSON.
|
|
57813
57846
|
* @function toJSON
|
|
57814
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57847
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57815
57848
|
* @instance
|
|
57816
57849
|
* @returns {Object.<string,*>} JSON object
|
|
57817
57850
|
*/
|
|
57818
|
-
|
|
57851
|
+
GetTokenPerpetualDistributionLastClaimRequest.prototype.toJSON = function toJSON() {
|
|
57819
57852
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57820
57853
|
};
|
|
57821
57854
|
|
|
57822
|
-
|
|
57855
|
+
GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo = (function() {
|
|
57823
57856
|
|
|
57824
57857
|
/**
|
|
57825
|
-
* Properties of a
|
|
57826
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57827
|
-
* @interface
|
|
57828
|
-
* @property {Uint8Array|null} [
|
|
57829
|
-
* @property {
|
|
57858
|
+
* Properties of a ContractTokenInfo.
|
|
57859
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57860
|
+
* @interface IContractTokenInfo
|
|
57861
|
+
* @property {Uint8Array|null} [contractId] ContractTokenInfo contractId
|
|
57862
|
+
* @property {number|null} [tokenContractPosition] ContractTokenInfo tokenContractPosition
|
|
57830
57863
|
*/
|
|
57831
57864
|
|
|
57832
57865
|
/**
|
|
57833
|
-
* Constructs a new
|
|
57834
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57835
|
-
* @classdesc Represents a
|
|
57836
|
-
* @implements
|
|
57866
|
+
* Constructs a new ContractTokenInfo.
|
|
57867
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57868
|
+
* @classdesc Represents a ContractTokenInfo.
|
|
57869
|
+
* @implements IContractTokenInfo
|
|
57837
57870
|
* @constructor
|
|
57838
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57871
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo=} [properties] Properties to set
|
|
57839
57872
|
*/
|
|
57840
|
-
function
|
|
57873
|
+
function ContractTokenInfo(properties) {
|
|
57841
57874
|
if (properties)
|
|
57842
57875
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57843
57876
|
if (properties[keys[i]] != null)
|
|
@@ -57845,80 +57878,321 @@ $root.org = (function() {
|
|
|
57845
57878
|
}
|
|
57846
57879
|
|
|
57847
57880
|
/**
|
|
57848
|
-
*
|
|
57881
|
+
* ContractTokenInfo contractId.
|
|
57882
|
+
* @member {Uint8Array} contractId
|
|
57883
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57884
|
+
* @instance
|
|
57885
|
+
*/
|
|
57886
|
+
ContractTokenInfo.prototype.contractId = $util.newBuffer([]);
|
|
57887
|
+
|
|
57888
|
+
/**
|
|
57889
|
+
* ContractTokenInfo tokenContractPosition.
|
|
57890
|
+
* @member {number} tokenContractPosition
|
|
57891
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57892
|
+
* @instance
|
|
57893
|
+
*/
|
|
57894
|
+
ContractTokenInfo.prototype.tokenContractPosition = 0;
|
|
57895
|
+
|
|
57896
|
+
/**
|
|
57897
|
+
* Creates a new ContractTokenInfo instance using the specified properties.
|
|
57898
|
+
* @function create
|
|
57899
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57900
|
+
* @static
|
|
57901
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo=} [properties] Properties to set
|
|
57902
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo instance
|
|
57903
|
+
*/
|
|
57904
|
+
ContractTokenInfo.create = function create(properties) {
|
|
57905
|
+
return new ContractTokenInfo(properties);
|
|
57906
|
+
};
|
|
57907
|
+
|
|
57908
|
+
/**
|
|
57909
|
+
* Encodes the specified ContractTokenInfo message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.verify|verify} messages.
|
|
57910
|
+
* @function encode
|
|
57911
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57912
|
+
* @static
|
|
57913
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo} message ContractTokenInfo message or plain object to encode
|
|
57914
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57915
|
+
* @returns {$protobuf.Writer} Writer
|
|
57916
|
+
*/
|
|
57917
|
+
ContractTokenInfo.encode = function encode(message, writer) {
|
|
57918
|
+
if (!writer)
|
|
57919
|
+
writer = $Writer.create();
|
|
57920
|
+
if (message.contractId != null && Object.hasOwnProperty.call(message, "contractId"))
|
|
57921
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.contractId);
|
|
57922
|
+
if (message.tokenContractPosition != null && Object.hasOwnProperty.call(message, "tokenContractPosition"))
|
|
57923
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.tokenContractPosition);
|
|
57924
|
+
return writer;
|
|
57925
|
+
};
|
|
57926
|
+
|
|
57927
|
+
/**
|
|
57928
|
+
* Encodes the specified ContractTokenInfo message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.verify|verify} messages.
|
|
57929
|
+
* @function encodeDelimited
|
|
57930
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57931
|
+
* @static
|
|
57932
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo} message ContractTokenInfo message or plain object to encode
|
|
57933
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57934
|
+
* @returns {$protobuf.Writer} Writer
|
|
57935
|
+
*/
|
|
57936
|
+
ContractTokenInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57937
|
+
return this.encode(message, writer).ldelim();
|
|
57938
|
+
};
|
|
57939
|
+
|
|
57940
|
+
/**
|
|
57941
|
+
* Decodes a ContractTokenInfo message from the specified reader or buffer.
|
|
57942
|
+
* @function decode
|
|
57943
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57944
|
+
* @static
|
|
57945
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57946
|
+
* @param {number} [length] Message length if known beforehand
|
|
57947
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo
|
|
57948
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57949
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57950
|
+
*/
|
|
57951
|
+
ContractTokenInfo.decode = function decode(reader, length) {
|
|
57952
|
+
if (!(reader instanceof $Reader))
|
|
57953
|
+
reader = $Reader.create(reader);
|
|
57954
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo();
|
|
57955
|
+
while (reader.pos < end) {
|
|
57956
|
+
var tag = reader.uint32();
|
|
57957
|
+
switch (tag >>> 3) {
|
|
57958
|
+
case 1:
|
|
57959
|
+
message.contractId = reader.bytes();
|
|
57960
|
+
break;
|
|
57961
|
+
case 2:
|
|
57962
|
+
message.tokenContractPosition = reader.uint32();
|
|
57963
|
+
break;
|
|
57964
|
+
default:
|
|
57965
|
+
reader.skipType(tag & 7);
|
|
57966
|
+
break;
|
|
57967
|
+
}
|
|
57968
|
+
}
|
|
57969
|
+
return message;
|
|
57970
|
+
};
|
|
57971
|
+
|
|
57972
|
+
/**
|
|
57973
|
+
* Decodes a ContractTokenInfo message from the specified reader or buffer, length delimited.
|
|
57974
|
+
* @function decodeDelimited
|
|
57975
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57976
|
+
* @static
|
|
57977
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57978
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo
|
|
57979
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57980
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57981
|
+
*/
|
|
57982
|
+
ContractTokenInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
57983
|
+
if (!(reader instanceof $Reader))
|
|
57984
|
+
reader = new $Reader(reader);
|
|
57985
|
+
return this.decode(reader, reader.uint32());
|
|
57986
|
+
};
|
|
57987
|
+
|
|
57988
|
+
/**
|
|
57989
|
+
* Verifies a ContractTokenInfo message.
|
|
57990
|
+
* @function verify
|
|
57991
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
57992
|
+
* @static
|
|
57993
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
57994
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57995
|
+
*/
|
|
57996
|
+
ContractTokenInfo.verify = function verify(message) {
|
|
57997
|
+
if (typeof message !== "object" || message === null)
|
|
57998
|
+
return "object expected";
|
|
57999
|
+
if (message.contractId != null && message.hasOwnProperty("contractId"))
|
|
58000
|
+
if (!(message.contractId && typeof message.contractId.length === "number" || $util.isString(message.contractId)))
|
|
58001
|
+
return "contractId: buffer expected";
|
|
58002
|
+
if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
|
|
58003
|
+
if (!$util.isInteger(message.tokenContractPosition))
|
|
58004
|
+
return "tokenContractPosition: integer expected";
|
|
58005
|
+
return null;
|
|
58006
|
+
};
|
|
58007
|
+
|
|
58008
|
+
/**
|
|
58009
|
+
* Creates a ContractTokenInfo message from a plain object. Also converts values to their respective internal types.
|
|
58010
|
+
* @function fromObject
|
|
58011
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
58012
|
+
* @static
|
|
58013
|
+
* @param {Object.<string,*>} object Plain object
|
|
58014
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo
|
|
58015
|
+
*/
|
|
58016
|
+
ContractTokenInfo.fromObject = function fromObject(object) {
|
|
58017
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo)
|
|
58018
|
+
return object;
|
|
58019
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo();
|
|
58020
|
+
if (object.contractId != null)
|
|
58021
|
+
if (typeof object.contractId === "string")
|
|
58022
|
+
$util.base64.decode(object.contractId, message.contractId = $util.newBuffer($util.base64.length(object.contractId)), 0);
|
|
58023
|
+
else if (object.contractId.length >= 0)
|
|
58024
|
+
message.contractId = object.contractId;
|
|
58025
|
+
if (object.tokenContractPosition != null)
|
|
58026
|
+
message.tokenContractPosition = object.tokenContractPosition >>> 0;
|
|
58027
|
+
return message;
|
|
58028
|
+
};
|
|
58029
|
+
|
|
58030
|
+
/**
|
|
58031
|
+
* Creates a plain object from a ContractTokenInfo message. Also converts values to other types if specified.
|
|
58032
|
+
* @function toObject
|
|
58033
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
58034
|
+
* @static
|
|
58035
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} message ContractTokenInfo
|
|
58036
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58037
|
+
* @returns {Object.<string,*>} Plain object
|
|
58038
|
+
*/
|
|
58039
|
+
ContractTokenInfo.toObject = function toObject(message, options) {
|
|
58040
|
+
if (!options)
|
|
58041
|
+
options = {};
|
|
58042
|
+
var object = {};
|
|
58043
|
+
if (options.defaults) {
|
|
58044
|
+
if (options.bytes === String)
|
|
58045
|
+
object.contractId = "";
|
|
58046
|
+
else {
|
|
58047
|
+
object.contractId = [];
|
|
58048
|
+
if (options.bytes !== Array)
|
|
58049
|
+
object.contractId = $util.newBuffer(object.contractId);
|
|
58050
|
+
}
|
|
58051
|
+
object.tokenContractPosition = 0;
|
|
58052
|
+
}
|
|
58053
|
+
if (message.contractId != null && message.hasOwnProperty("contractId"))
|
|
58054
|
+
object.contractId = options.bytes === String ? $util.base64.encode(message.contractId, 0, message.contractId.length) : options.bytes === Array ? Array.prototype.slice.call(message.contractId) : message.contractId;
|
|
58055
|
+
if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
|
|
58056
|
+
object.tokenContractPosition = message.tokenContractPosition;
|
|
58057
|
+
return object;
|
|
58058
|
+
};
|
|
58059
|
+
|
|
58060
|
+
/**
|
|
58061
|
+
* Converts this ContractTokenInfo to JSON.
|
|
58062
|
+
* @function toJSON
|
|
58063
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
|
|
58064
|
+
* @instance
|
|
58065
|
+
* @returns {Object.<string,*>} JSON object
|
|
58066
|
+
*/
|
|
58067
|
+
ContractTokenInfo.prototype.toJSON = function toJSON() {
|
|
58068
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58069
|
+
};
|
|
58070
|
+
|
|
58071
|
+
return ContractTokenInfo;
|
|
58072
|
+
})();
|
|
58073
|
+
|
|
58074
|
+
GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0 = (function() {
|
|
58075
|
+
|
|
58076
|
+
/**
|
|
58077
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimRequestV0.
|
|
58078
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
58079
|
+
* @interface IGetTokenPerpetualDistributionLastClaimRequestV0
|
|
58080
|
+
* @property {Uint8Array|null} [tokenId] GetTokenPerpetualDistributionLastClaimRequestV0 tokenId
|
|
58081
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo|null} [contractInfo] GetTokenPerpetualDistributionLastClaimRequestV0 contractInfo
|
|
58082
|
+
* @property {Uint8Array|null} [identityId] GetTokenPerpetualDistributionLastClaimRequestV0 identityId
|
|
58083
|
+
* @property {boolean|null} [prove] GetTokenPerpetualDistributionLastClaimRequestV0 prove
|
|
58084
|
+
*/
|
|
58085
|
+
|
|
58086
|
+
/**
|
|
58087
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimRequestV0.
|
|
58088
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
58089
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimRequestV0.
|
|
58090
|
+
* @implements IGetTokenPerpetualDistributionLastClaimRequestV0
|
|
58091
|
+
* @constructor
|
|
58092
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0=} [properties] Properties to set
|
|
58093
|
+
*/
|
|
58094
|
+
function GetTokenPerpetualDistributionLastClaimRequestV0(properties) {
|
|
58095
|
+
if (properties)
|
|
58096
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58097
|
+
if (properties[keys[i]] != null)
|
|
58098
|
+
this[keys[i]] = properties[keys[i]];
|
|
58099
|
+
}
|
|
58100
|
+
|
|
58101
|
+
/**
|
|
58102
|
+
* GetTokenPerpetualDistributionLastClaimRequestV0 tokenId.
|
|
57849
58103
|
* @member {Uint8Array} tokenId
|
|
57850
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58104
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57851
58105
|
* @instance
|
|
57852
58106
|
*/
|
|
57853
|
-
|
|
58107
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
57854
58108
|
|
|
57855
58109
|
/**
|
|
57856
|
-
*
|
|
58110
|
+
* GetTokenPerpetualDistributionLastClaimRequestV0 contractInfo.
|
|
58111
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo|null|undefined} contractInfo
|
|
58112
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58113
|
+
* @instance
|
|
58114
|
+
*/
|
|
58115
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.contractInfo = null;
|
|
58116
|
+
|
|
58117
|
+
/**
|
|
58118
|
+
* GetTokenPerpetualDistributionLastClaimRequestV0 identityId.
|
|
58119
|
+
* @member {Uint8Array} identityId
|
|
58120
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58121
|
+
* @instance
|
|
58122
|
+
*/
|
|
58123
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.identityId = $util.newBuffer([]);
|
|
58124
|
+
|
|
58125
|
+
/**
|
|
58126
|
+
* GetTokenPerpetualDistributionLastClaimRequestV0 prove.
|
|
57857
58127
|
* @member {boolean} prove
|
|
57858
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58128
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57859
58129
|
* @instance
|
|
57860
58130
|
*/
|
|
57861
|
-
|
|
58131
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.prove = false;
|
|
57862
58132
|
|
|
57863
58133
|
/**
|
|
57864
|
-
* Creates a new
|
|
58134
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimRequestV0 instance using the specified properties.
|
|
57865
58135
|
* @function create
|
|
57866
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58136
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57867
58137
|
* @static
|
|
57868
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57869
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58138
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0=} [properties] Properties to set
|
|
58139
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0 instance
|
|
57870
58140
|
*/
|
|
57871
|
-
|
|
57872
|
-
return new
|
|
58141
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.create = function create(properties) {
|
|
58142
|
+
return new GetTokenPerpetualDistributionLastClaimRequestV0(properties);
|
|
57873
58143
|
};
|
|
57874
58144
|
|
|
57875
58145
|
/**
|
|
57876
|
-
* Encodes the specified
|
|
58146
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
|
|
57877
58147
|
* @function encode
|
|
57878
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58148
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57879
58149
|
* @static
|
|
57880
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58150
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
|
|
57881
58151
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57882
58152
|
* @returns {$protobuf.Writer} Writer
|
|
57883
58153
|
*/
|
|
57884
|
-
|
|
58154
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.encode = function encode(message, writer) {
|
|
57885
58155
|
if (!writer)
|
|
57886
58156
|
writer = $Writer.create();
|
|
57887
58157
|
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
57888
58158
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenId);
|
|
58159
|
+
if (message.contractInfo != null && Object.hasOwnProperty.call(message, "contractInfo"))
|
|
58160
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.encode(message.contractInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58161
|
+
if (message.identityId != null && Object.hasOwnProperty.call(message, "identityId"))
|
|
58162
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.identityId);
|
|
57889
58163
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
57890
|
-
writer.uint32(/* id
|
|
58164
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.prove);
|
|
57891
58165
|
return writer;
|
|
57892
58166
|
};
|
|
57893
58167
|
|
|
57894
58168
|
/**
|
|
57895
|
-
* Encodes the specified
|
|
58169
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
|
|
57896
58170
|
* @function encodeDelimited
|
|
57897
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58171
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57898
58172
|
* @static
|
|
57899
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58173
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
|
|
57900
58174
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57901
58175
|
* @returns {$protobuf.Writer} Writer
|
|
57902
58176
|
*/
|
|
57903
|
-
|
|
58177
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57904
58178
|
return this.encode(message, writer).ldelim();
|
|
57905
58179
|
};
|
|
57906
58180
|
|
|
57907
58181
|
/**
|
|
57908
|
-
* Decodes a
|
|
58182
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer.
|
|
57909
58183
|
* @function decode
|
|
57910
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58184
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57911
58185
|
* @static
|
|
57912
58186
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57913
58187
|
* @param {number} [length] Message length if known beforehand
|
|
57914
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58188
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57915
58189
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57916
58190
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57917
58191
|
*/
|
|
57918
|
-
|
|
58192
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.decode = function decode(reader, length) {
|
|
57919
58193
|
if (!(reader instanceof $Reader))
|
|
57920
58194
|
reader = $Reader.create(reader);
|
|
57921
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
58195
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
|
|
57922
58196
|
while (reader.pos < end) {
|
|
57923
58197
|
var tag = reader.uint32();
|
|
57924
58198
|
switch (tag >>> 3) {
|
|
@@ -57926,6 +58200,12 @@ $root.org = (function() {
|
|
|
57926
58200
|
message.tokenId = reader.bytes();
|
|
57927
58201
|
break;
|
|
57928
58202
|
case 2:
|
|
58203
|
+
message.contractInfo = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.decode(reader, reader.uint32());
|
|
58204
|
+
break;
|
|
58205
|
+
case 4:
|
|
58206
|
+
message.identityId = reader.bytes();
|
|
58207
|
+
break;
|
|
58208
|
+
case 5:
|
|
57929
58209
|
message.prove = reader.bool();
|
|
57930
58210
|
break;
|
|
57931
58211
|
default:
|
|
@@ -57937,35 +58217,43 @@ $root.org = (function() {
|
|
|
57937
58217
|
};
|
|
57938
58218
|
|
|
57939
58219
|
/**
|
|
57940
|
-
* Decodes a
|
|
58220
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer, length delimited.
|
|
57941
58221
|
* @function decodeDelimited
|
|
57942
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58222
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57943
58223
|
* @static
|
|
57944
58224
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57945
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58225
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57946
58226
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57947
58227
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57948
58228
|
*/
|
|
57949
|
-
|
|
58229
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
57950
58230
|
if (!(reader instanceof $Reader))
|
|
57951
58231
|
reader = new $Reader(reader);
|
|
57952
58232
|
return this.decode(reader, reader.uint32());
|
|
57953
58233
|
};
|
|
57954
58234
|
|
|
57955
58235
|
/**
|
|
57956
|
-
* Verifies a
|
|
58236
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimRequestV0 message.
|
|
57957
58237
|
* @function verify
|
|
57958
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58238
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57959
58239
|
* @static
|
|
57960
58240
|
* @param {Object.<string,*>} message Plain object to verify
|
|
57961
58241
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57962
58242
|
*/
|
|
57963
|
-
|
|
58243
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.verify = function verify(message) {
|
|
57964
58244
|
if (typeof message !== "object" || message === null)
|
|
57965
58245
|
return "object expected";
|
|
57966
58246
|
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
57967
58247
|
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
57968
58248
|
return "tokenId: buffer expected";
|
|
58249
|
+
if (message.contractInfo != null && message.hasOwnProperty("contractInfo")) {
|
|
58250
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.verify(message.contractInfo);
|
|
58251
|
+
if (error)
|
|
58252
|
+
return "contractInfo." + error;
|
|
58253
|
+
}
|
|
58254
|
+
if (message.identityId != null && message.hasOwnProperty("identityId"))
|
|
58255
|
+
if (!(message.identityId && typeof message.identityId.length === "number" || $util.isString(message.identityId)))
|
|
58256
|
+
return "identityId: buffer expected";
|
|
57969
58257
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
57970
58258
|
if (typeof message.prove !== "boolean")
|
|
57971
58259
|
return "prove: boolean expected";
|
|
@@ -57973,37 +58261,47 @@ $root.org = (function() {
|
|
|
57973
58261
|
};
|
|
57974
58262
|
|
|
57975
58263
|
/**
|
|
57976
|
-
* Creates a
|
|
58264
|
+
* Creates a GetTokenPerpetualDistributionLastClaimRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
57977
58265
|
* @function fromObject
|
|
57978
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58266
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57979
58267
|
* @static
|
|
57980
58268
|
* @param {Object.<string,*>} object Plain object
|
|
57981
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58269
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57982
58270
|
*/
|
|
57983
|
-
|
|
57984
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
58271
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.fromObject = function fromObject(object) {
|
|
58272
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0)
|
|
57985
58273
|
return object;
|
|
57986
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
58274
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
|
|
57987
58275
|
if (object.tokenId != null)
|
|
57988
58276
|
if (typeof object.tokenId === "string")
|
|
57989
58277
|
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
57990
58278
|
else if (object.tokenId.length >= 0)
|
|
57991
58279
|
message.tokenId = object.tokenId;
|
|
58280
|
+
if (object.contractInfo != null) {
|
|
58281
|
+
if (typeof object.contractInfo !== "object")
|
|
58282
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.contractInfo: object expected");
|
|
58283
|
+
message.contractInfo = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.fromObject(object.contractInfo);
|
|
58284
|
+
}
|
|
58285
|
+
if (object.identityId != null)
|
|
58286
|
+
if (typeof object.identityId === "string")
|
|
58287
|
+
$util.base64.decode(object.identityId, message.identityId = $util.newBuffer($util.base64.length(object.identityId)), 0);
|
|
58288
|
+
else if (object.identityId.length >= 0)
|
|
58289
|
+
message.identityId = object.identityId;
|
|
57992
58290
|
if (object.prove != null)
|
|
57993
58291
|
message.prove = Boolean(object.prove);
|
|
57994
58292
|
return message;
|
|
57995
58293
|
};
|
|
57996
58294
|
|
|
57997
58295
|
/**
|
|
57998
|
-
* Creates a plain object from a
|
|
58296
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequestV0 message. Also converts values to other types if specified.
|
|
57999
58297
|
* @function toObject
|
|
58000
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58298
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58001
58299
|
* @static
|
|
58002
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58300
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58003
58301
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58004
58302
|
* @returns {Object.<string,*>} Plain object
|
|
58005
58303
|
*/
|
|
58006
|
-
|
|
58304
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.toObject = function toObject(message, options) {
|
|
58007
58305
|
if (!options)
|
|
58008
58306
|
options = {};
|
|
58009
58307
|
var object = {};
|
|
@@ -58015,50 +58313,62 @@ $root.org = (function() {
|
|
|
58015
58313
|
if (options.bytes !== Array)
|
|
58016
58314
|
object.tokenId = $util.newBuffer(object.tokenId);
|
|
58017
58315
|
}
|
|
58316
|
+
object.contractInfo = null;
|
|
58317
|
+
if (options.bytes === String)
|
|
58318
|
+
object.identityId = "";
|
|
58319
|
+
else {
|
|
58320
|
+
object.identityId = [];
|
|
58321
|
+
if (options.bytes !== Array)
|
|
58322
|
+
object.identityId = $util.newBuffer(object.identityId);
|
|
58323
|
+
}
|
|
58018
58324
|
object.prove = false;
|
|
58019
58325
|
}
|
|
58020
58326
|
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
58021
58327
|
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
58328
|
+
if (message.contractInfo != null && message.hasOwnProperty("contractInfo"))
|
|
58329
|
+
object.contractInfo = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.toObject(message.contractInfo, options);
|
|
58330
|
+
if (message.identityId != null && message.hasOwnProperty("identityId"))
|
|
58331
|
+
object.identityId = options.bytes === String ? $util.base64.encode(message.identityId, 0, message.identityId.length) : options.bytes === Array ? Array.prototype.slice.call(message.identityId) : message.identityId;
|
|
58022
58332
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
58023
58333
|
object.prove = message.prove;
|
|
58024
58334
|
return object;
|
|
58025
58335
|
};
|
|
58026
58336
|
|
|
58027
58337
|
/**
|
|
58028
|
-
* Converts this
|
|
58338
|
+
* Converts this GetTokenPerpetualDistributionLastClaimRequestV0 to JSON.
|
|
58029
58339
|
* @function toJSON
|
|
58030
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58340
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58031
58341
|
* @instance
|
|
58032
58342
|
* @returns {Object.<string,*>} JSON object
|
|
58033
58343
|
*/
|
|
58034
|
-
|
|
58344
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.toJSON = function toJSON() {
|
|
58035
58345
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58036
58346
|
};
|
|
58037
58347
|
|
|
58038
|
-
return
|
|
58348
|
+
return GetTokenPerpetualDistributionLastClaimRequestV0;
|
|
58039
58349
|
})();
|
|
58040
58350
|
|
|
58041
|
-
return
|
|
58351
|
+
return GetTokenPerpetualDistributionLastClaimRequest;
|
|
58042
58352
|
})();
|
|
58043
58353
|
|
|
58044
|
-
v0.
|
|
58354
|
+
v0.GetTokenPerpetualDistributionLastClaimResponse = (function() {
|
|
58045
58355
|
|
|
58046
58356
|
/**
|
|
58047
|
-
* Properties of a
|
|
58357
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimResponse.
|
|
58048
58358
|
* @memberof org.dash.platform.dapi.v0
|
|
58049
|
-
* @interface
|
|
58050
|
-
* @property {org.dash.platform.dapi.v0.
|
|
58359
|
+
* @interface IGetTokenPerpetualDistributionLastClaimResponse
|
|
58360
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null} [v0] GetTokenPerpetualDistributionLastClaimResponse v0
|
|
58051
58361
|
*/
|
|
58052
58362
|
|
|
58053
58363
|
/**
|
|
58054
|
-
* Constructs a new
|
|
58364
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimResponse.
|
|
58055
58365
|
* @memberof org.dash.platform.dapi.v0
|
|
58056
|
-
* @classdesc Represents a
|
|
58057
|
-
* @implements
|
|
58366
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponse.
|
|
58367
|
+
* @implements IGetTokenPerpetualDistributionLastClaimResponse
|
|
58058
58368
|
* @constructor
|
|
58059
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58369
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
|
|
58060
58370
|
*/
|
|
58061
|
-
function
|
|
58371
|
+
function GetTokenPerpetualDistributionLastClaimResponse(properties) {
|
|
58062
58372
|
if (properties)
|
|
58063
58373
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58064
58374
|
if (properties[keys[i]] != null)
|
|
@@ -58066,89 +58376,89 @@ $root.org = (function() {
|
|
|
58066
58376
|
}
|
|
58067
58377
|
|
|
58068
58378
|
/**
|
|
58069
|
-
*
|
|
58070
|
-
* @member {org.dash.platform.dapi.v0.
|
|
58071
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58379
|
+
* GetTokenPerpetualDistributionLastClaimResponse v0.
|
|
58380
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null|undefined} v0
|
|
58381
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58072
58382
|
* @instance
|
|
58073
58383
|
*/
|
|
58074
|
-
|
|
58384
|
+
GetTokenPerpetualDistributionLastClaimResponse.prototype.v0 = null;
|
|
58075
58385
|
|
|
58076
58386
|
// OneOf field names bound to virtual getters and setters
|
|
58077
58387
|
var $oneOfFields;
|
|
58078
58388
|
|
|
58079
58389
|
/**
|
|
58080
|
-
*
|
|
58390
|
+
* GetTokenPerpetualDistributionLastClaimResponse version.
|
|
58081
58391
|
* @member {"v0"|undefined} version
|
|
58082
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58392
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58083
58393
|
* @instance
|
|
58084
58394
|
*/
|
|
58085
|
-
Object.defineProperty(
|
|
58395
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponse.prototype, "version", {
|
|
58086
58396
|
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
58087
58397
|
set: $util.oneOfSetter($oneOfFields)
|
|
58088
58398
|
});
|
|
58089
58399
|
|
|
58090
58400
|
/**
|
|
58091
|
-
* Creates a new
|
|
58401
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimResponse instance using the specified properties.
|
|
58092
58402
|
* @function create
|
|
58093
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58403
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58094
58404
|
* @static
|
|
58095
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58096
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58405
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
|
|
58406
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse instance
|
|
58097
58407
|
*/
|
|
58098
|
-
|
|
58099
|
-
return new
|
|
58408
|
+
GetTokenPerpetualDistributionLastClaimResponse.create = function create(properties) {
|
|
58409
|
+
return new GetTokenPerpetualDistributionLastClaimResponse(properties);
|
|
58100
58410
|
};
|
|
58101
58411
|
|
|
58102
58412
|
/**
|
|
58103
|
-
* Encodes the specified
|
|
58413
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
|
|
58104
58414
|
* @function encode
|
|
58105
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58415
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58106
58416
|
* @static
|
|
58107
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58417
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
|
|
58108
58418
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58109
58419
|
* @returns {$protobuf.Writer} Writer
|
|
58110
58420
|
*/
|
|
58111
|
-
|
|
58421
|
+
GetTokenPerpetualDistributionLastClaimResponse.encode = function encode(message, writer) {
|
|
58112
58422
|
if (!writer)
|
|
58113
58423
|
writer = $Writer.create();
|
|
58114
58424
|
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
58115
|
-
$root.org.dash.platform.dapi.v0.
|
|
58425
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
58116
58426
|
return writer;
|
|
58117
58427
|
};
|
|
58118
58428
|
|
|
58119
58429
|
/**
|
|
58120
|
-
* Encodes the specified
|
|
58430
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
|
|
58121
58431
|
* @function encodeDelimited
|
|
58122
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58432
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58123
58433
|
* @static
|
|
58124
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58434
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
|
|
58125
58435
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58126
58436
|
* @returns {$protobuf.Writer} Writer
|
|
58127
58437
|
*/
|
|
58128
|
-
|
|
58438
|
+
GetTokenPerpetualDistributionLastClaimResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58129
58439
|
return this.encode(message, writer).ldelim();
|
|
58130
58440
|
};
|
|
58131
58441
|
|
|
58132
58442
|
/**
|
|
58133
|
-
* Decodes a
|
|
58443
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer.
|
|
58134
58444
|
* @function decode
|
|
58135
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58445
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58136
58446
|
* @static
|
|
58137
58447
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58138
58448
|
* @param {number} [length] Message length if known beforehand
|
|
58139
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58449
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
58140
58450
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58141
58451
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58142
58452
|
*/
|
|
58143
|
-
|
|
58453
|
+
GetTokenPerpetualDistributionLastClaimResponse.decode = function decode(reader, length) {
|
|
58144
58454
|
if (!(reader instanceof $Reader))
|
|
58145
58455
|
reader = $Reader.create(reader);
|
|
58146
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
58456
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
|
|
58147
58457
|
while (reader.pos < end) {
|
|
58148
58458
|
var tag = reader.uint32();
|
|
58149
58459
|
switch (tag >>> 3) {
|
|
58150
58460
|
case 1:
|
|
58151
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
58461
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.decode(reader, reader.uint32());
|
|
58152
58462
|
break;
|
|
58153
58463
|
default:
|
|
58154
58464
|
reader.skipType(tag & 7);
|
|
@@ -58159,37 +58469,37 @@ $root.org = (function() {
|
|
|
58159
58469
|
};
|
|
58160
58470
|
|
|
58161
58471
|
/**
|
|
58162
|
-
* Decodes a
|
|
58472
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer, length delimited.
|
|
58163
58473
|
* @function decodeDelimited
|
|
58164
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58474
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58165
58475
|
* @static
|
|
58166
58476
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58167
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58477
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
58168
58478
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58169
58479
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58170
58480
|
*/
|
|
58171
|
-
|
|
58481
|
+
GetTokenPerpetualDistributionLastClaimResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
58172
58482
|
if (!(reader instanceof $Reader))
|
|
58173
58483
|
reader = new $Reader(reader);
|
|
58174
58484
|
return this.decode(reader, reader.uint32());
|
|
58175
58485
|
};
|
|
58176
58486
|
|
|
58177
58487
|
/**
|
|
58178
|
-
* Verifies a
|
|
58488
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimResponse message.
|
|
58179
58489
|
* @function verify
|
|
58180
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58490
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58181
58491
|
* @static
|
|
58182
58492
|
* @param {Object.<string,*>} message Plain object to verify
|
|
58183
58493
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58184
58494
|
*/
|
|
58185
|
-
|
|
58495
|
+
GetTokenPerpetualDistributionLastClaimResponse.verify = function verify(message) {
|
|
58186
58496
|
if (typeof message !== "object" || message === null)
|
|
58187
58497
|
return "object expected";
|
|
58188
58498
|
var properties = {};
|
|
58189
58499
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
58190
58500
|
properties.version = 1;
|
|
58191
58501
|
{
|
|
58192
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
58502
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify(message.v0);
|
|
58193
58503
|
if (error)
|
|
58194
58504
|
return "v0." + error;
|
|
58195
58505
|
}
|
|
@@ -58198,40 +58508,40 @@ $root.org = (function() {
|
|
|
58198
58508
|
};
|
|
58199
58509
|
|
|
58200
58510
|
/**
|
|
58201
|
-
* Creates a
|
|
58511
|
+
* Creates a GetTokenPerpetualDistributionLastClaimResponse message from a plain object. Also converts values to their respective internal types.
|
|
58202
58512
|
* @function fromObject
|
|
58203
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58513
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58204
58514
|
* @static
|
|
58205
58515
|
* @param {Object.<string,*>} object Plain object
|
|
58206
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58516
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
58207
58517
|
*/
|
|
58208
|
-
|
|
58209
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
58518
|
+
GetTokenPerpetualDistributionLastClaimResponse.fromObject = function fromObject(object) {
|
|
58519
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse)
|
|
58210
58520
|
return object;
|
|
58211
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
58521
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
|
|
58212
58522
|
if (object.v0 != null) {
|
|
58213
58523
|
if (typeof object.v0 !== "object")
|
|
58214
|
-
throw TypeError(".org.dash.platform.dapi.v0.
|
|
58215
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
58524
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.v0: object expected");
|
|
58525
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.fromObject(object.v0);
|
|
58216
58526
|
}
|
|
58217
58527
|
return message;
|
|
58218
58528
|
};
|
|
58219
58529
|
|
|
58220
58530
|
/**
|
|
58221
|
-
* Creates a plain object from a
|
|
58531
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimResponse message. Also converts values to other types if specified.
|
|
58222
58532
|
* @function toObject
|
|
58223
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58533
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58224
58534
|
* @static
|
|
58225
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58535
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse
|
|
58226
58536
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58227
58537
|
* @returns {Object.<string,*>} Plain object
|
|
58228
58538
|
*/
|
|
58229
|
-
|
|
58539
|
+
GetTokenPerpetualDistributionLastClaimResponse.toObject = function toObject(message, options) {
|
|
58230
58540
|
if (!options)
|
|
58231
58541
|
options = {};
|
|
58232
58542
|
var object = {};
|
|
58233
58543
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
58234
|
-
object.v0 = $root.org.dash.platform.dapi.v0.
|
|
58544
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.toObject(message.v0, options);
|
|
58235
58545
|
if (options.oneofs)
|
|
58236
58546
|
object.version = "v0";
|
|
58237
58547
|
}
|
|
@@ -58239,36 +58549,36 @@ $root.org = (function() {
|
|
|
58239
58549
|
};
|
|
58240
58550
|
|
|
58241
58551
|
/**
|
|
58242
|
-
* Converts this
|
|
58552
|
+
* Converts this GetTokenPerpetualDistributionLastClaimResponse to JSON.
|
|
58243
58553
|
* @function toJSON
|
|
58244
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58554
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58245
58555
|
* @instance
|
|
58246
58556
|
* @returns {Object.<string,*>} JSON object
|
|
58247
58557
|
*/
|
|
58248
|
-
|
|
58558
|
+
GetTokenPerpetualDistributionLastClaimResponse.prototype.toJSON = function toJSON() {
|
|
58249
58559
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58250
58560
|
};
|
|
58251
58561
|
|
|
58252
|
-
|
|
58562
|
+
GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0 = (function() {
|
|
58253
58563
|
|
|
58254
58564
|
/**
|
|
58255
|
-
* Properties of a
|
|
58256
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58257
|
-
* @interface
|
|
58258
|
-
* @property {org.dash.platform.dapi.v0.
|
|
58259
|
-
* @property {org.dash.platform.dapi.v0.IProof|null} [proof]
|
|
58260
|
-
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata]
|
|
58565
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58566
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58567
|
+
* @interface IGetTokenPerpetualDistributionLastClaimResponseV0
|
|
58568
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo|null} [lastClaim] GetTokenPerpetualDistributionLastClaimResponseV0 lastClaim
|
|
58569
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTokenPerpetualDistributionLastClaimResponseV0 proof
|
|
58570
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTokenPerpetualDistributionLastClaimResponseV0 metadata
|
|
58261
58571
|
*/
|
|
58262
58572
|
|
|
58263
58573
|
/**
|
|
58264
|
-
* Constructs a new
|
|
58265
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58266
|
-
* @classdesc Represents a
|
|
58267
|
-
* @implements
|
|
58574
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58575
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58576
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58577
|
+
* @implements IGetTokenPerpetualDistributionLastClaimResponseV0
|
|
58268
58578
|
* @constructor
|
|
58269
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58579
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
|
|
58270
58580
|
*/
|
|
58271
|
-
function
|
|
58581
|
+
function GetTokenPerpetualDistributionLastClaimResponseV0(properties) {
|
|
58272
58582
|
if (properties)
|
|
58273
58583
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58274
58584
|
if (properties[keys[i]] != null)
|
|
@@ -58276,69 +58586,69 @@ $root.org = (function() {
|
|
|
58276
58586
|
}
|
|
58277
58587
|
|
|
58278
58588
|
/**
|
|
58279
|
-
*
|
|
58280
|
-
* @member {org.dash.platform.dapi.v0.
|
|
58281
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58589
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 lastClaim.
|
|
58590
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo|null|undefined} lastClaim
|
|
58591
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58282
58592
|
* @instance
|
|
58283
58593
|
*/
|
|
58284
|
-
|
|
58594
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.lastClaim = null;
|
|
58285
58595
|
|
|
58286
58596
|
/**
|
|
58287
|
-
*
|
|
58597
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 proof.
|
|
58288
58598
|
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
58289
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58599
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58290
58600
|
* @instance
|
|
58291
58601
|
*/
|
|
58292
|
-
|
|
58602
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.proof = null;
|
|
58293
58603
|
|
|
58294
58604
|
/**
|
|
58295
|
-
*
|
|
58605
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 metadata.
|
|
58296
58606
|
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
58297
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58607
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58298
58608
|
* @instance
|
|
58299
58609
|
*/
|
|
58300
|
-
|
|
58610
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.metadata = null;
|
|
58301
58611
|
|
|
58302
58612
|
// OneOf field names bound to virtual getters and setters
|
|
58303
58613
|
var $oneOfFields;
|
|
58304
58614
|
|
|
58305
58615
|
/**
|
|
58306
|
-
*
|
|
58307
|
-
* @member {"
|
|
58308
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58616
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 result.
|
|
58617
|
+
* @member {"lastClaim"|"proof"|undefined} result
|
|
58618
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58309
58619
|
* @instance
|
|
58310
58620
|
*/
|
|
58311
|
-
Object.defineProperty(
|
|
58312
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
58621
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponseV0.prototype, "result", {
|
|
58622
|
+
get: $util.oneOfGetter($oneOfFields = ["lastClaim", "proof"]),
|
|
58313
58623
|
set: $util.oneOfSetter($oneOfFields)
|
|
58314
58624
|
});
|
|
58315
58625
|
|
|
58316
58626
|
/**
|
|
58317
|
-
* Creates a new
|
|
58627
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimResponseV0 instance using the specified properties.
|
|
58318
58628
|
* @function create
|
|
58319
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58629
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58320
58630
|
* @static
|
|
58321
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58322
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58631
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
|
|
58632
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0 instance
|
|
58323
58633
|
*/
|
|
58324
|
-
|
|
58325
|
-
return new
|
|
58634
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.create = function create(properties) {
|
|
58635
|
+
return new GetTokenPerpetualDistributionLastClaimResponseV0(properties);
|
|
58326
58636
|
};
|
|
58327
58637
|
|
|
58328
58638
|
/**
|
|
58329
|
-
* Encodes the specified
|
|
58639
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
|
|
58330
58640
|
* @function encode
|
|
58331
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58641
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58332
58642
|
* @static
|
|
58333
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58643
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
|
|
58334
58644
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58335
58645
|
* @returns {$protobuf.Writer} Writer
|
|
58336
58646
|
*/
|
|
58337
|
-
|
|
58647
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.encode = function encode(message, writer) {
|
|
58338
58648
|
if (!writer)
|
|
58339
58649
|
writer = $Writer.create();
|
|
58340
|
-
if (message.
|
|
58341
|
-
$root.org.dash.platform.dapi.v0.
|
|
58650
|
+
if (message.lastClaim != null && Object.hasOwnProperty.call(message, "lastClaim"))
|
|
58651
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.encode(message.lastClaim, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
58342
58652
|
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
58343
58653
|
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58344
58654
|
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
@@ -58347,38 +58657,38 @@ $root.org = (function() {
|
|
|
58347
58657
|
};
|
|
58348
58658
|
|
|
58349
58659
|
/**
|
|
58350
|
-
* Encodes the specified
|
|
58660
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
|
|
58351
58661
|
* @function encodeDelimited
|
|
58352
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58662
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58353
58663
|
* @static
|
|
58354
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58664
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
|
|
58355
58665
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58356
58666
|
* @returns {$protobuf.Writer} Writer
|
|
58357
58667
|
*/
|
|
58358
|
-
|
|
58668
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58359
58669
|
return this.encode(message, writer).ldelim();
|
|
58360
58670
|
};
|
|
58361
58671
|
|
|
58362
58672
|
/**
|
|
58363
|
-
* Decodes a
|
|
58673
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer.
|
|
58364
58674
|
* @function decode
|
|
58365
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58675
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58366
58676
|
* @static
|
|
58367
58677
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58368
58678
|
* @param {number} [length] Message length if known beforehand
|
|
58369
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58679
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58370
58680
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58371
58681
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58372
58682
|
*/
|
|
58373
|
-
|
|
58683
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.decode = function decode(reader, length) {
|
|
58374
58684
|
if (!(reader instanceof $Reader))
|
|
58375
58685
|
reader = $Reader.create(reader);
|
|
58376
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
58686
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0();
|
|
58377
58687
|
while (reader.pos < end) {
|
|
58378
58688
|
var tag = reader.uint32();
|
|
58379
58689
|
switch (tag >>> 3) {
|
|
58380
58690
|
case 1:
|
|
58381
|
-
message.
|
|
58691
|
+
message.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.decode(reader, reader.uint32());
|
|
58382
58692
|
break;
|
|
58383
58693
|
case 2:
|
|
58384
58694
|
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
@@ -58395,39 +58705,1265 @@ $root.org = (function() {
|
|
|
58395
58705
|
};
|
|
58396
58706
|
|
|
58397
58707
|
/**
|
|
58398
|
-
* Decodes a
|
|
58708
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer, length delimited.
|
|
58399
58709
|
* @function decodeDelimited
|
|
58400
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58710
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58401
58711
|
* @static
|
|
58402
58712
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58403
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58713
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58404
58714
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58405
58715
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58406
58716
|
*/
|
|
58407
|
-
|
|
58717
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
58408
58718
|
if (!(reader instanceof $Reader))
|
|
58409
58719
|
reader = new $Reader(reader);
|
|
58410
58720
|
return this.decode(reader, reader.uint32());
|
|
58411
58721
|
};
|
|
58412
58722
|
|
|
58413
58723
|
/**
|
|
58414
|
-
* Verifies a
|
|
58724
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimResponseV0 message.
|
|
58415
58725
|
* @function verify
|
|
58416
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58726
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58417
58727
|
* @static
|
|
58418
58728
|
* @param {Object.<string,*>} message Plain object to verify
|
|
58419
58729
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58420
58730
|
*/
|
|
58421
|
-
|
|
58731
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.verify = function verify(message) {
|
|
58422
58732
|
if (typeof message !== "object" || message === null)
|
|
58423
58733
|
return "object expected";
|
|
58424
58734
|
var properties = {};
|
|
58425
|
-
if (message.
|
|
58735
|
+
if (message.lastClaim != null && message.hasOwnProperty("lastClaim")) {
|
|
58426
58736
|
properties.result = 1;
|
|
58427
58737
|
{
|
|
58428
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
58738
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify(message.lastClaim);
|
|
58429
58739
|
if (error)
|
|
58430
|
-
return "
|
|
58740
|
+
return "lastClaim." + error;
|
|
58741
|
+
}
|
|
58742
|
+
}
|
|
58743
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
58744
|
+
if (properties.result === 1)
|
|
58745
|
+
return "result: multiple values";
|
|
58746
|
+
properties.result = 1;
|
|
58747
|
+
{
|
|
58748
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
58749
|
+
if (error)
|
|
58750
|
+
return "proof." + error;
|
|
58751
|
+
}
|
|
58752
|
+
}
|
|
58753
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
58754
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
58755
|
+
if (error)
|
|
58756
|
+
return "metadata." + error;
|
|
58757
|
+
}
|
|
58758
|
+
return null;
|
|
58759
|
+
};
|
|
58760
|
+
|
|
58761
|
+
/**
|
|
58762
|
+
* Creates a GetTokenPerpetualDistributionLastClaimResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
58763
|
+
* @function fromObject
|
|
58764
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58765
|
+
* @static
|
|
58766
|
+
* @param {Object.<string,*>} object Plain object
|
|
58767
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58768
|
+
*/
|
|
58769
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.fromObject = function fromObject(object) {
|
|
58770
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0)
|
|
58771
|
+
return object;
|
|
58772
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0();
|
|
58773
|
+
if (object.lastClaim != null) {
|
|
58774
|
+
if (typeof object.lastClaim !== "object")
|
|
58775
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.lastClaim: object expected");
|
|
58776
|
+
message.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.fromObject(object.lastClaim);
|
|
58777
|
+
}
|
|
58778
|
+
if (object.proof != null) {
|
|
58779
|
+
if (typeof object.proof !== "object")
|
|
58780
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.proof: object expected");
|
|
58781
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
58782
|
+
}
|
|
58783
|
+
if (object.metadata != null) {
|
|
58784
|
+
if (typeof object.metadata !== "object")
|
|
58785
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.metadata: object expected");
|
|
58786
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
58787
|
+
}
|
|
58788
|
+
return message;
|
|
58789
|
+
};
|
|
58790
|
+
|
|
58791
|
+
/**
|
|
58792
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimResponseV0 message. Also converts values to other types if specified.
|
|
58793
|
+
* @function toObject
|
|
58794
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58795
|
+
* @static
|
|
58796
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58797
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58798
|
+
* @returns {Object.<string,*>} Plain object
|
|
58799
|
+
*/
|
|
58800
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.toObject = function toObject(message, options) {
|
|
58801
|
+
if (!options)
|
|
58802
|
+
options = {};
|
|
58803
|
+
var object = {};
|
|
58804
|
+
if (options.defaults)
|
|
58805
|
+
object.metadata = null;
|
|
58806
|
+
if (message.lastClaim != null && message.hasOwnProperty("lastClaim")) {
|
|
58807
|
+
object.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.toObject(message.lastClaim, options);
|
|
58808
|
+
if (options.oneofs)
|
|
58809
|
+
object.result = "lastClaim";
|
|
58810
|
+
}
|
|
58811
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
58812
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
58813
|
+
if (options.oneofs)
|
|
58814
|
+
object.result = "proof";
|
|
58815
|
+
}
|
|
58816
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
58817
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
58818
|
+
return object;
|
|
58819
|
+
};
|
|
58820
|
+
|
|
58821
|
+
/**
|
|
58822
|
+
* Converts this GetTokenPerpetualDistributionLastClaimResponseV0 to JSON.
|
|
58823
|
+
* @function toJSON
|
|
58824
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58825
|
+
* @instance
|
|
58826
|
+
* @returns {Object.<string,*>} JSON object
|
|
58827
|
+
*/
|
|
58828
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.toJSON = function toJSON() {
|
|
58829
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58830
|
+
};
|
|
58831
|
+
|
|
58832
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo = (function() {
|
|
58833
|
+
|
|
58834
|
+
/**
|
|
58835
|
+
* Properties of a LastClaimInfo.
|
|
58836
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58837
|
+
* @interface ILastClaimInfo
|
|
58838
|
+
* @property {number|Long|null} [timestampMs] LastClaimInfo timestampMs
|
|
58839
|
+
* @property {number|Long|null} [blockHeight] LastClaimInfo blockHeight
|
|
58840
|
+
* @property {number|null} [epoch] LastClaimInfo epoch
|
|
58841
|
+
* @property {Uint8Array|null} [rawBytes] LastClaimInfo rawBytes
|
|
58842
|
+
*/
|
|
58843
|
+
|
|
58844
|
+
/**
|
|
58845
|
+
* Constructs a new LastClaimInfo.
|
|
58846
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58847
|
+
* @classdesc Represents a LastClaimInfo.
|
|
58848
|
+
* @implements ILastClaimInfo
|
|
58849
|
+
* @constructor
|
|
58850
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo=} [properties] Properties to set
|
|
58851
|
+
*/
|
|
58852
|
+
function LastClaimInfo(properties) {
|
|
58853
|
+
if (properties)
|
|
58854
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58855
|
+
if (properties[keys[i]] != null)
|
|
58856
|
+
this[keys[i]] = properties[keys[i]];
|
|
58857
|
+
}
|
|
58858
|
+
|
|
58859
|
+
/**
|
|
58860
|
+
* LastClaimInfo timestampMs.
|
|
58861
|
+
* @member {number|Long} timestampMs
|
|
58862
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58863
|
+
* @instance
|
|
58864
|
+
*/
|
|
58865
|
+
LastClaimInfo.prototype.timestampMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
58866
|
+
|
|
58867
|
+
/**
|
|
58868
|
+
* LastClaimInfo blockHeight.
|
|
58869
|
+
* @member {number|Long} blockHeight
|
|
58870
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58871
|
+
* @instance
|
|
58872
|
+
*/
|
|
58873
|
+
LastClaimInfo.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
58874
|
+
|
|
58875
|
+
/**
|
|
58876
|
+
* LastClaimInfo epoch.
|
|
58877
|
+
* @member {number} epoch
|
|
58878
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58879
|
+
* @instance
|
|
58880
|
+
*/
|
|
58881
|
+
LastClaimInfo.prototype.epoch = 0;
|
|
58882
|
+
|
|
58883
|
+
/**
|
|
58884
|
+
* LastClaimInfo rawBytes.
|
|
58885
|
+
* @member {Uint8Array} rawBytes
|
|
58886
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58887
|
+
* @instance
|
|
58888
|
+
*/
|
|
58889
|
+
LastClaimInfo.prototype.rawBytes = $util.newBuffer([]);
|
|
58890
|
+
|
|
58891
|
+
// OneOf field names bound to virtual getters and setters
|
|
58892
|
+
var $oneOfFields;
|
|
58893
|
+
|
|
58894
|
+
/**
|
|
58895
|
+
* LastClaimInfo paidAt.
|
|
58896
|
+
* @member {"timestampMs"|"blockHeight"|"epoch"|"rawBytes"|undefined} paidAt
|
|
58897
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58898
|
+
* @instance
|
|
58899
|
+
*/
|
|
58900
|
+
Object.defineProperty(LastClaimInfo.prototype, "paidAt", {
|
|
58901
|
+
get: $util.oneOfGetter($oneOfFields = ["timestampMs", "blockHeight", "epoch", "rawBytes"]),
|
|
58902
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
58903
|
+
});
|
|
58904
|
+
|
|
58905
|
+
/**
|
|
58906
|
+
* Creates a new LastClaimInfo instance using the specified properties.
|
|
58907
|
+
* @function create
|
|
58908
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58909
|
+
* @static
|
|
58910
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo=} [properties] Properties to set
|
|
58911
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo instance
|
|
58912
|
+
*/
|
|
58913
|
+
LastClaimInfo.create = function create(properties) {
|
|
58914
|
+
return new LastClaimInfo(properties);
|
|
58915
|
+
};
|
|
58916
|
+
|
|
58917
|
+
/**
|
|
58918
|
+
* Encodes the specified LastClaimInfo message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify|verify} messages.
|
|
58919
|
+
* @function encode
|
|
58920
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58921
|
+
* @static
|
|
58922
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo} message LastClaimInfo message or plain object to encode
|
|
58923
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58924
|
+
* @returns {$protobuf.Writer} Writer
|
|
58925
|
+
*/
|
|
58926
|
+
LastClaimInfo.encode = function encode(message, writer) {
|
|
58927
|
+
if (!writer)
|
|
58928
|
+
writer = $Writer.create();
|
|
58929
|
+
if (message.timestampMs != null && Object.hasOwnProperty.call(message, "timestampMs"))
|
|
58930
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestampMs);
|
|
58931
|
+
if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight"))
|
|
58932
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.blockHeight);
|
|
58933
|
+
if (message.epoch != null && Object.hasOwnProperty.call(message, "epoch"))
|
|
58934
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.epoch);
|
|
58935
|
+
if (message.rawBytes != null && Object.hasOwnProperty.call(message, "rawBytes"))
|
|
58936
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.rawBytes);
|
|
58937
|
+
return writer;
|
|
58938
|
+
};
|
|
58939
|
+
|
|
58940
|
+
/**
|
|
58941
|
+
* Encodes the specified LastClaimInfo message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify|verify} messages.
|
|
58942
|
+
* @function encodeDelimited
|
|
58943
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58944
|
+
* @static
|
|
58945
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo} message LastClaimInfo message or plain object to encode
|
|
58946
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58947
|
+
* @returns {$protobuf.Writer} Writer
|
|
58948
|
+
*/
|
|
58949
|
+
LastClaimInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58950
|
+
return this.encode(message, writer).ldelim();
|
|
58951
|
+
};
|
|
58952
|
+
|
|
58953
|
+
/**
|
|
58954
|
+
* Decodes a LastClaimInfo message from the specified reader or buffer.
|
|
58955
|
+
* @function decode
|
|
58956
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58957
|
+
* @static
|
|
58958
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58959
|
+
* @param {number} [length] Message length if known beforehand
|
|
58960
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo
|
|
58961
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58962
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58963
|
+
*/
|
|
58964
|
+
LastClaimInfo.decode = function decode(reader, length) {
|
|
58965
|
+
if (!(reader instanceof $Reader))
|
|
58966
|
+
reader = $Reader.create(reader);
|
|
58967
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo();
|
|
58968
|
+
while (reader.pos < end) {
|
|
58969
|
+
var tag = reader.uint32();
|
|
58970
|
+
switch (tag >>> 3) {
|
|
58971
|
+
case 1:
|
|
58972
|
+
message.timestampMs = reader.uint64();
|
|
58973
|
+
break;
|
|
58974
|
+
case 2:
|
|
58975
|
+
message.blockHeight = reader.uint64();
|
|
58976
|
+
break;
|
|
58977
|
+
case 3:
|
|
58978
|
+
message.epoch = reader.uint32();
|
|
58979
|
+
break;
|
|
58980
|
+
case 4:
|
|
58981
|
+
message.rawBytes = reader.bytes();
|
|
58982
|
+
break;
|
|
58983
|
+
default:
|
|
58984
|
+
reader.skipType(tag & 7);
|
|
58985
|
+
break;
|
|
58986
|
+
}
|
|
58987
|
+
}
|
|
58988
|
+
return message;
|
|
58989
|
+
};
|
|
58990
|
+
|
|
58991
|
+
/**
|
|
58992
|
+
* Decodes a LastClaimInfo message from the specified reader or buffer, length delimited.
|
|
58993
|
+
* @function decodeDelimited
|
|
58994
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
58995
|
+
* @static
|
|
58996
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58997
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo
|
|
58998
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58999
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59000
|
+
*/
|
|
59001
|
+
LastClaimInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
59002
|
+
if (!(reader instanceof $Reader))
|
|
59003
|
+
reader = new $Reader(reader);
|
|
59004
|
+
return this.decode(reader, reader.uint32());
|
|
59005
|
+
};
|
|
59006
|
+
|
|
59007
|
+
/**
|
|
59008
|
+
* Verifies a LastClaimInfo message.
|
|
59009
|
+
* @function verify
|
|
59010
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
59011
|
+
* @static
|
|
59012
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59013
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59014
|
+
*/
|
|
59015
|
+
LastClaimInfo.verify = function verify(message) {
|
|
59016
|
+
if (typeof message !== "object" || message === null)
|
|
59017
|
+
return "object expected";
|
|
59018
|
+
var properties = {};
|
|
59019
|
+
if (message.timestampMs != null && message.hasOwnProperty("timestampMs")) {
|
|
59020
|
+
properties.paidAt = 1;
|
|
59021
|
+
if (!$util.isInteger(message.timestampMs) && !(message.timestampMs && $util.isInteger(message.timestampMs.low) && $util.isInteger(message.timestampMs.high)))
|
|
59022
|
+
return "timestampMs: integer|Long expected";
|
|
59023
|
+
}
|
|
59024
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) {
|
|
59025
|
+
if (properties.paidAt === 1)
|
|
59026
|
+
return "paidAt: multiple values";
|
|
59027
|
+
properties.paidAt = 1;
|
|
59028
|
+
if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high)))
|
|
59029
|
+
return "blockHeight: integer|Long expected";
|
|
59030
|
+
}
|
|
59031
|
+
if (message.epoch != null && message.hasOwnProperty("epoch")) {
|
|
59032
|
+
if (properties.paidAt === 1)
|
|
59033
|
+
return "paidAt: multiple values";
|
|
59034
|
+
properties.paidAt = 1;
|
|
59035
|
+
if (!$util.isInteger(message.epoch))
|
|
59036
|
+
return "epoch: integer expected";
|
|
59037
|
+
}
|
|
59038
|
+
if (message.rawBytes != null && message.hasOwnProperty("rawBytes")) {
|
|
59039
|
+
if (properties.paidAt === 1)
|
|
59040
|
+
return "paidAt: multiple values";
|
|
59041
|
+
properties.paidAt = 1;
|
|
59042
|
+
if (!(message.rawBytes && typeof message.rawBytes.length === "number" || $util.isString(message.rawBytes)))
|
|
59043
|
+
return "rawBytes: buffer expected";
|
|
59044
|
+
}
|
|
59045
|
+
return null;
|
|
59046
|
+
};
|
|
59047
|
+
|
|
59048
|
+
/**
|
|
59049
|
+
* Creates a LastClaimInfo message from a plain object. Also converts values to their respective internal types.
|
|
59050
|
+
* @function fromObject
|
|
59051
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
59052
|
+
* @static
|
|
59053
|
+
* @param {Object.<string,*>} object Plain object
|
|
59054
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo
|
|
59055
|
+
*/
|
|
59056
|
+
LastClaimInfo.fromObject = function fromObject(object) {
|
|
59057
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo)
|
|
59058
|
+
return object;
|
|
59059
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo();
|
|
59060
|
+
if (object.timestampMs != null)
|
|
59061
|
+
if ($util.Long)
|
|
59062
|
+
(message.timestampMs = $util.Long.fromValue(object.timestampMs)).unsigned = true;
|
|
59063
|
+
else if (typeof object.timestampMs === "string")
|
|
59064
|
+
message.timestampMs = parseInt(object.timestampMs, 10);
|
|
59065
|
+
else if (typeof object.timestampMs === "number")
|
|
59066
|
+
message.timestampMs = object.timestampMs;
|
|
59067
|
+
else if (typeof object.timestampMs === "object")
|
|
59068
|
+
message.timestampMs = new $util.LongBits(object.timestampMs.low >>> 0, object.timestampMs.high >>> 0).toNumber(true);
|
|
59069
|
+
if (object.blockHeight != null)
|
|
59070
|
+
if ($util.Long)
|
|
59071
|
+
(message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true;
|
|
59072
|
+
else if (typeof object.blockHeight === "string")
|
|
59073
|
+
message.blockHeight = parseInt(object.blockHeight, 10);
|
|
59074
|
+
else if (typeof object.blockHeight === "number")
|
|
59075
|
+
message.blockHeight = object.blockHeight;
|
|
59076
|
+
else if (typeof object.blockHeight === "object")
|
|
59077
|
+
message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true);
|
|
59078
|
+
if (object.epoch != null)
|
|
59079
|
+
message.epoch = object.epoch >>> 0;
|
|
59080
|
+
if (object.rawBytes != null)
|
|
59081
|
+
if (typeof object.rawBytes === "string")
|
|
59082
|
+
$util.base64.decode(object.rawBytes, message.rawBytes = $util.newBuffer($util.base64.length(object.rawBytes)), 0);
|
|
59083
|
+
else if (object.rawBytes.length >= 0)
|
|
59084
|
+
message.rawBytes = object.rawBytes;
|
|
59085
|
+
return message;
|
|
59086
|
+
};
|
|
59087
|
+
|
|
59088
|
+
/**
|
|
59089
|
+
* Creates a plain object from a LastClaimInfo message. Also converts values to other types if specified.
|
|
59090
|
+
* @function toObject
|
|
59091
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
59092
|
+
* @static
|
|
59093
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} message LastClaimInfo
|
|
59094
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59095
|
+
* @returns {Object.<string,*>} Plain object
|
|
59096
|
+
*/
|
|
59097
|
+
LastClaimInfo.toObject = function toObject(message, options) {
|
|
59098
|
+
if (!options)
|
|
59099
|
+
options = {};
|
|
59100
|
+
var object = {};
|
|
59101
|
+
if (message.timestampMs != null && message.hasOwnProperty("timestampMs")) {
|
|
59102
|
+
if (typeof message.timestampMs === "number")
|
|
59103
|
+
object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
|
|
59104
|
+
else
|
|
59105
|
+
object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber(true) : message.timestampMs;
|
|
59106
|
+
if (options.oneofs)
|
|
59107
|
+
object.paidAt = "timestampMs";
|
|
59108
|
+
}
|
|
59109
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) {
|
|
59110
|
+
if (typeof message.blockHeight === "number")
|
|
59111
|
+
object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight;
|
|
59112
|
+
else
|
|
59113
|
+
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;
|
|
59114
|
+
if (options.oneofs)
|
|
59115
|
+
object.paidAt = "blockHeight";
|
|
59116
|
+
}
|
|
59117
|
+
if (message.epoch != null && message.hasOwnProperty("epoch")) {
|
|
59118
|
+
object.epoch = message.epoch;
|
|
59119
|
+
if (options.oneofs)
|
|
59120
|
+
object.paidAt = "epoch";
|
|
59121
|
+
}
|
|
59122
|
+
if (message.rawBytes != null && message.hasOwnProperty("rawBytes")) {
|
|
59123
|
+
object.rawBytes = options.bytes === String ? $util.base64.encode(message.rawBytes, 0, message.rawBytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.rawBytes) : message.rawBytes;
|
|
59124
|
+
if (options.oneofs)
|
|
59125
|
+
object.paidAt = "rawBytes";
|
|
59126
|
+
}
|
|
59127
|
+
return object;
|
|
59128
|
+
};
|
|
59129
|
+
|
|
59130
|
+
/**
|
|
59131
|
+
* Converts this LastClaimInfo to JSON.
|
|
59132
|
+
* @function toJSON
|
|
59133
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
|
|
59134
|
+
* @instance
|
|
59135
|
+
* @returns {Object.<string,*>} JSON object
|
|
59136
|
+
*/
|
|
59137
|
+
LastClaimInfo.prototype.toJSON = function toJSON() {
|
|
59138
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59139
|
+
};
|
|
59140
|
+
|
|
59141
|
+
return LastClaimInfo;
|
|
59142
|
+
})();
|
|
59143
|
+
|
|
59144
|
+
return GetTokenPerpetualDistributionLastClaimResponseV0;
|
|
59145
|
+
})();
|
|
59146
|
+
|
|
59147
|
+
return GetTokenPerpetualDistributionLastClaimResponse;
|
|
59148
|
+
})();
|
|
59149
|
+
|
|
59150
|
+
v0.GetTokenTotalSupplyRequest = (function() {
|
|
59151
|
+
|
|
59152
|
+
/**
|
|
59153
|
+
* Properties of a GetTokenTotalSupplyRequest.
|
|
59154
|
+
* @memberof org.dash.platform.dapi.v0
|
|
59155
|
+
* @interface IGetTokenTotalSupplyRequest
|
|
59156
|
+
* @property {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0|null} [v0] GetTokenTotalSupplyRequest v0
|
|
59157
|
+
*/
|
|
59158
|
+
|
|
59159
|
+
/**
|
|
59160
|
+
* Constructs a new GetTokenTotalSupplyRequest.
|
|
59161
|
+
* @memberof org.dash.platform.dapi.v0
|
|
59162
|
+
* @classdesc Represents a GetTokenTotalSupplyRequest.
|
|
59163
|
+
* @implements IGetTokenTotalSupplyRequest
|
|
59164
|
+
* @constructor
|
|
59165
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest=} [properties] Properties to set
|
|
59166
|
+
*/
|
|
59167
|
+
function GetTokenTotalSupplyRequest(properties) {
|
|
59168
|
+
if (properties)
|
|
59169
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59170
|
+
if (properties[keys[i]] != null)
|
|
59171
|
+
this[keys[i]] = properties[keys[i]];
|
|
59172
|
+
}
|
|
59173
|
+
|
|
59174
|
+
/**
|
|
59175
|
+
* GetTokenTotalSupplyRequest v0.
|
|
59176
|
+
* @member {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0|null|undefined} v0
|
|
59177
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59178
|
+
* @instance
|
|
59179
|
+
*/
|
|
59180
|
+
GetTokenTotalSupplyRequest.prototype.v0 = null;
|
|
59181
|
+
|
|
59182
|
+
// OneOf field names bound to virtual getters and setters
|
|
59183
|
+
var $oneOfFields;
|
|
59184
|
+
|
|
59185
|
+
/**
|
|
59186
|
+
* GetTokenTotalSupplyRequest version.
|
|
59187
|
+
* @member {"v0"|undefined} version
|
|
59188
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59189
|
+
* @instance
|
|
59190
|
+
*/
|
|
59191
|
+
Object.defineProperty(GetTokenTotalSupplyRequest.prototype, "version", {
|
|
59192
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
59193
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59194
|
+
});
|
|
59195
|
+
|
|
59196
|
+
/**
|
|
59197
|
+
* Creates a new GetTokenTotalSupplyRequest instance using the specified properties.
|
|
59198
|
+
* @function create
|
|
59199
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59200
|
+
* @static
|
|
59201
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest=} [properties] Properties to set
|
|
59202
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest instance
|
|
59203
|
+
*/
|
|
59204
|
+
GetTokenTotalSupplyRequest.create = function create(properties) {
|
|
59205
|
+
return new GetTokenTotalSupplyRequest(properties);
|
|
59206
|
+
};
|
|
59207
|
+
|
|
59208
|
+
/**
|
|
59209
|
+
* Encodes the specified GetTokenTotalSupplyRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.verify|verify} messages.
|
|
59210
|
+
* @function encode
|
|
59211
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59212
|
+
* @static
|
|
59213
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest} message GetTokenTotalSupplyRequest message or plain object to encode
|
|
59214
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59215
|
+
* @returns {$protobuf.Writer} Writer
|
|
59216
|
+
*/
|
|
59217
|
+
GetTokenTotalSupplyRequest.encode = function encode(message, writer) {
|
|
59218
|
+
if (!writer)
|
|
59219
|
+
writer = $Writer.create();
|
|
59220
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
59221
|
+
$root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59222
|
+
return writer;
|
|
59223
|
+
};
|
|
59224
|
+
|
|
59225
|
+
/**
|
|
59226
|
+
* Encodes the specified GetTokenTotalSupplyRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.verify|verify} messages.
|
|
59227
|
+
* @function encodeDelimited
|
|
59228
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59229
|
+
* @static
|
|
59230
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest} message GetTokenTotalSupplyRequest message or plain object to encode
|
|
59231
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59232
|
+
* @returns {$protobuf.Writer} Writer
|
|
59233
|
+
*/
|
|
59234
|
+
GetTokenTotalSupplyRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59235
|
+
return this.encode(message, writer).ldelim();
|
|
59236
|
+
};
|
|
59237
|
+
|
|
59238
|
+
/**
|
|
59239
|
+
* Decodes a GetTokenTotalSupplyRequest message from the specified reader or buffer.
|
|
59240
|
+
* @function decode
|
|
59241
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59242
|
+
* @static
|
|
59243
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59244
|
+
* @param {number} [length] Message length if known beforehand
|
|
59245
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest
|
|
59246
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59247
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59248
|
+
*/
|
|
59249
|
+
GetTokenTotalSupplyRequest.decode = function decode(reader, length) {
|
|
59250
|
+
if (!(reader instanceof $Reader))
|
|
59251
|
+
reader = $Reader.create(reader);
|
|
59252
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest();
|
|
59253
|
+
while (reader.pos < end) {
|
|
59254
|
+
var tag = reader.uint32();
|
|
59255
|
+
switch (tag >>> 3) {
|
|
59256
|
+
case 1:
|
|
59257
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.decode(reader, reader.uint32());
|
|
59258
|
+
break;
|
|
59259
|
+
default:
|
|
59260
|
+
reader.skipType(tag & 7);
|
|
59261
|
+
break;
|
|
59262
|
+
}
|
|
59263
|
+
}
|
|
59264
|
+
return message;
|
|
59265
|
+
};
|
|
59266
|
+
|
|
59267
|
+
/**
|
|
59268
|
+
* Decodes a GetTokenTotalSupplyRequest message from the specified reader or buffer, length delimited.
|
|
59269
|
+
* @function decodeDelimited
|
|
59270
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59271
|
+
* @static
|
|
59272
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59273
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest
|
|
59274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59276
|
+
*/
|
|
59277
|
+
GetTokenTotalSupplyRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
59278
|
+
if (!(reader instanceof $Reader))
|
|
59279
|
+
reader = new $Reader(reader);
|
|
59280
|
+
return this.decode(reader, reader.uint32());
|
|
59281
|
+
};
|
|
59282
|
+
|
|
59283
|
+
/**
|
|
59284
|
+
* Verifies a GetTokenTotalSupplyRequest message.
|
|
59285
|
+
* @function verify
|
|
59286
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59287
|
+
* @static
|
|
59288
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59289
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59290
|
+
*/
|
|
59291
|
+
GetTokenTotalSupplyRequest.verify = function verify(message) {
|
|
59292
|
+
if (typeof message !== "object" || message === null)
|
|
59293
|
+
return "object expected";
|
|
59294
|
+
var properties = {};
|
|
59295
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
59296
|
+
properties.version = 1;
|
|
59297
|
+
{
|
|
59298
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.verify(message.v0);
|
|
59299
|
+
if (error)
|
|
59300
|
+
return "v0." + error;
|
|
59301
|
+
}
|
|
59302
|
+
}
|
|
59303
|
+
return null;
|
|
59304
|
+
};
|
|
59305
|
+
|
|
59306
|
+
/**
|
|
59307
|
+
* Creates a GetTokenTotalSupplyRequest message from a plain object. Also converts values to their respective internal types.
|
|
59308
|
+
* @function fromObject
|
|
59309
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59310
|
+
* @static
|
|
59311
|
+
* @param {Object.<string,*>} object Plain object
|
|
59312
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest
|
|
59313
|
+
*/
|
|
59314
|
+
GetTokenTotalSupplyRequest.fromObject = function fromObject(object) {
|
|
59315
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest)
|
|
59316
|
+
return object;
|
|
59317
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest();
|
|
59318
|
+
if (object.v0 != null) {
|
|
59319
|
+
if (typeof object.v0 !== "object")
|
|
59320
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.v0: object expected");
|
|
59321
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.fromObject(object.v0);
|
|
59322
|
+
}
|
|
59323
|
+
return message;
|
|
59324
|
+
};
|
|
59325
|
+
|
|
59326
|
+
/**
|
|
59327
|
+
* Creates a plain object from a GetTokenTotalSupplyRequest message. Also converts values to other types if specified.
|
|
59328
|
+
* @function toObject
|
|
59329
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59330
|
+
* @static
|
|
59331
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} message GetTokenTotalSupplyRequest
|
|
59332
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59333
|
+
* @returns {Object.<string,*>} Plain object
|
|
59334
|
+
*/
|
|
59335
|
+
GetTokenTotalSupplyRequest.toObject = function toObject(message, options) {
|
|
59336
|
+
if (!options)
|
|
59337
|
+
options = {};
|
|
59338
|
+
var object = {};
|
|
59339
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
59340
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.toObject(message.v0, options);
|
|
59341
|
+
if (options.oneofs)
|
|
59342
|
+
object.version = "v0";
|
|
59343
|
+
}
|
|
59344
|
+
return object;
|
|
59345
|
+
};
|
|
59346
|
+
|
|
59347
|
+
/**
|
|
59348
|
+
* Converts this GetTokenTotalSupplyRequest to JSON.
|
|
59349
|
+
* @function toJSON
|
|
59350
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59351
|
+
* @instance
|
|
59352
|
+
* @returns {Object.<string,*>} JSON object
|
|
59353
|
+
*/
|
|
59354
|
+
GetTokenTotalSupplyRequest.prototype.toJSON = function toJSON() {
|
|
59355
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59356
|
+
};
|
|
59357
|
+
|
|
59358
|
+
GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0 = (function() {
|
|
59359
|
+
|
|
59360
|
+
/**
|
|
59361
|
+
* Properties of a GetTokenTotalSupplyRequestV0.
|
|
59362
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59363
|
+
* @interface IGetTokenTotalSupplyRequestV0
|
|
59364
|
+
* @property {Uint8Array|null} [tokenId] GetTokenTotalSupplyRequestV0 tokenId
|
|
59365
|
+
* @property {boolean|null} [prove] GetTokenTotalSupplyRequestV0 prove
|
|
59366
|
+
*/
|
|
59367
|
+
|
|
59368
|
+
/**
|
|
59369
|
+
* Constructs a new GetTokenTotalSupplyRequestV0.
|
|
59370
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
59371
|
+
* @classdesc Represents a GetTokenTotalSupplyRequestV0.
|
|
59372
|
+
* @implements IGetTokenTotalSupplyRequestV0
|
|
59373
|
+
* @constructor
|
|
59374
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0=} [properties] Properties to set
|
|
59375
|
+
*/
|
|
59376
|
+
function GetTokenTotalSupplyRequestV0(properties) {
|
|
59377
|
+
if (properties)
|
|
59378
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59379
|
+
if (properties[keys[i]] != null)
|
|
59380
|
+
this[keys[i]] = properties[keys[i]];
|
|
59381
|
+
}
|
|
59382
|
+
|
|
59383
|
+
/**
|
|
59384
|
+
* GetTokenTotalSupplyRequestV0 tokenId.
|
|
59385
|
+
* @member {Uint8Array} tokenId
|
|
59386
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59387
|
+
* @instance
|
|
59388
|
+
*/
|
|
59389
|
+
GetTokenTotalSupplyRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
59390
|
+
|
|
59391
|
+
/**
|
|
59392
|
+
* GetTokenTotalSupplyRequestV0 prove.
|
|
59393
|
+
* @member {boolean} prove
|
|
59394
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59395
|
+
* @instance
|
|
59396
|
+
*/
|
|
59397
|
+
GetTokenTotalSupplyRequestV0.prototype.prove = false;
|
|
59398
|
+
|
|
59399
|
+
/**
|
|
59400
|
+
* Creates a new GetTokenTotalSupplyRequestV0 instance using the specified properties.
|
|
59401
|
+
* @function create
|
|
59402
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59403
|
+
* @static
|
|
59404
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0=} [properties] Properties to set
|
|
59405
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0 instance
|
|
59406
|
+
*/
|
|
59407
|
+
GetTokenTotalSupplyRequestV0.create = function create(properties) {
|
|
59408
|
+
return new GetTokenTotalSupplyRequestV0(properties);
|
|
59409
|
+
};
|
|
59410
|
+
|
|
59411
|
+
/**
|
|
59412
|
+
* Encodes the specified GetTokenTotalSupplyRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.verify|verify} messages.
|
|
59413
|
+
* @function encode
|
|
59414
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59415
|
+
* @static
|
|
59416
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0} message GetTokenTotalSupplyRequestV0 message or plain object to encode
|
|
59417
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59418
|
+
* @returns {$protobuf.Writer} Writer
|
|
59419
|
+
*/
|
|
59420
|
+
GetTokenTotalSupplyRequestV0.encode = function encode(message, writer) {
|
|
59421
|
+
if (!writer)
|
|
59422
|
+
writer = $Writer.create();
|
|
59423
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
59424
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenId);
|
|
59425
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
59426
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
59427
|
+
return writer;
|
|
59428
|
+
};
|
|
59429
|
+
|
|
59430
|
+
/**
|
|
59431
|
+
* Encodes the specified GetTokenTotalSupplyRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.verify|verify} messages.
|
|
59432
|
+
* @function encodeDelimited
|
|
59433
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59434
|
+
* @static
|
|
59435
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0} message GetTokenTotalSupplyRequestV0 message or plain object to encode
|
|
59436
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59437
|
+
* @returns {$protobuf.Writer} Writer
|
|
59438
|
+
*/
|
|
59439
|
+
GetTokenTotalSupplyRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59440
|
+
return this.encode(message, writer).ldelim();
|
|
59441
|
+
};
|
|
59442
|
+
|
|
59443
|
+
/**
|
|
59444
|
+
* Decodes a GetTokenTotalSupplyRequestV0 message from the specified reader or buffer.
|
|
59445
|
+
* @function decode
|
|
59446
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59447
|
+
* @static
|
|
59448
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59449
|
+
* @param {number} [length] Message length if known beforehand
|
|
59450
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0
|
|
59451
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59452
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59453
|
+
*/
|
|
59454
|
+
GetTokenTotalSupplyRequestV0.decode = function decode(reader, length) {
|
|
59455
|
+
if (!(reader instanceof $Reader))
|
|
59456
|
+
reader = $Reader.create(reader);
|
|
59457
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0();
|
|
59458
|
+
while (reader.pos < end) {
|
|
59459
|
+
var tag = reader.uint32();
|
|
59460
|
+
switch (tag >>> 3) {
|
|
59461
|
+
case 1:
|
|
59462
|
+
message.tokenId = reader.bytes();
|
|
59463
|
+
break;
|
|
59464
|
+
case 2:
|
|
59465
|
+
message.prove = reader.bool();
|
|
59466
|
+
break;
|
|
59467
|
+
default:
|
|
59468
|
+
reader.skipType(tag & 7);
|
|
59469
|
+
break;
|
|
59470
|
+
}
|
|
59471
|
+
}
|
|
59472
|
+
return message;
|
|
59473
|
+
};
|
|
59474
|
+
|
|
59475
|
+
/**
|
|
59476
|
+
* Decodes a GetTokenTotalSupplyRequestV0 message from the specified reader or buffer, length delimited.
|
|
59477
|
+
* @function decodeDelimited
|
|
59478
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59479
|
+
* @static
|
|
59480
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59481
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0
|
|
59482
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59483
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59484
|
+
*/
|
|
59485
|
+
GetTokenTotalSupplyRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
59486
|
+
if (!(reader instanceof $Reader))
|
|
59487
|
+
reader = new $Reader(reader);
|
|
59488
|
+
return this.decode(reader, reader.uint32());
|
|
59489
|
+
};
|
|
59490
|
+
|
|
59491
|
+
/**
|
|
59492
|
+
* Verifies a GetTokenTotalSupplyRequestV0 message.
|
|
59493
|
+
* @function verify
|
|
59494
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59495
|
+
* @static
|
|
59496
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59497
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59498
|
+
*/
|
|
59499
|
+
GetTokenTotalSupplyRequestV0.verify = function verify(message) {
|
|
59500
|
+
if (typeof message !== "object" || message === null)
|
|
59501
|
+
return "object expected";
|
|
59502
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
59503
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
59504
|
+
return "tokenId: buffer expected";
|
|
59505
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
59506
|
+
if (typeof message.prove !== "boolean")
|
|
59507
|
+
return "prove: boolean expected";
|
|
59508
|
+
return null;
|
|
59509
|
+
};
|
|
59510
|
+
|
|
59511
|
+
/**
|
|
59512
|
+
* Creates a GetTokenTotalSupplyRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
59513
|
+
* @function fromObject
|
|
59514
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59515
|
+
* @static
|
|
59516
|
+
* @param {Object.<string,*>} object Plain object
|
|
59517
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0
|
|
59518
|
+
*/
|
|
59519
|
+
GetTokenTotalSupplyRequestV0.fromObject = function fromObject(object) {
|
|
59520
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0)
|
|
59521
|
+
return object;
|
|
59522
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0();
|
|
59523
|
+
if (object.tokenId != null)
|
|
59524
|
+
if (typeof object.tokenId === "string")
|
|
59525
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
59526
|
+
else if (object.tokenId.length >= 0)
|
|
59527
|
+
message.tokenId = object.tokenId;
|
|
59528
|
+
if (object.prove != null)
|
|
59529
|
+
message.prove = Boolean(object.prove);
|
|
59530
|
+
return message;
|
|
59531
|
+
};
|
|
59532
|
+
|
|
59533
|
+
/**
|
|
59534
|
+
* Creates a plain object from a GetTokenTotalSupplyRequestV0 message. Also converts values to other types if specified.
|
|
59535
|
+
* @function toObject
|
|
59536
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59537
|
+
* @static
|
|
59538
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} message GetTokenTotalSupplyRequestV0
|
|
59539
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59540
|
+
* @returns {Object.<string,*>} Plain object
|
|
59541
|
+
*/
|
|
59542
|
+
GetTokenTotalSupplyRequestV0.toObject = function toObject(message, options) {
|
|
59543
|
+
if (!options)
|
|
59544
|
+
options = {};
|
|
59545
|
+
var object = {};
|
|
59546
|
+
if (options.defaults) {
|
|
59547
|
+
if (options.bytes === String)
|
|
59548
|
+
object.tokenId = "";
|
|
59549
|
+
else {
|
|
59550
|
+
object.tokenId = [];
|
|
59551
|
+
if (options.bytes !== Array)
|
|
59552
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
59553
|
+
}
|
|
59554
|
+
object.prove = false;
|
|
59555
|
+
}
|
|
59556
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
59557
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
59558
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
59559
|
+
object.prove = message.prove;
|
|
59560
|
+
return object;
|
|
59561
|
+
};
|
|
59562
|
+
|
|
59563
|
+
/**
|
|
59564
|
+
* Converts this GetTokenTotalSupplyRequestV0 to JSON.
|
|
59565
|
+
* @function toJSON
|
|
59566
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59567
|
+
* @instance
|
|
59568
|
+
* @returns {Object.<string,*>} JSON object
|
|
59569
|
+
*/
|
|
59570
|
+
GetTokenTotalSupplyRequestV0.prototype.toJSON = function toJSON() {
|
|
59571
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59572
|
+
};
|
|
59573
|
+
|
|
59574
|
+
return GetTokenTotalSupplyRequestV0;
|
|
59575
|
+
})();
|
|
59576
|
+
|
|
59577
|
+
return GetTokenTotalSupplyRequest;
|
|
59578
|
+
})();
|
|
59579
|
+
|
|
59580
|
+
v0.GetTokenTotalSupplyResponse = (function() {
|
|
59581
|
+
|
|
59582
|
+
/**
|
|
59583
|
+
* Properties of a GetTokenTotalSupplyResponse.
|
|
59584
|
+
* @memberof org.dash.platform.dapi.v0
|
|
59585
|
+
* @interface IGetTokenTotalSupplyResponse
|
|
59586
|
+
* @property {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0|null} [v0] GetTokenTotalSupplyResponse v0
|
|
59587
|
+
*/
|
|
59588
|
+
|
|
59589
|
+
/**
|
|
59590
|
+
* Constructs a new GetTokenTotalSupplyResponse.
|
|
59591
|
+
* @memberof org.dash.platform.dapi.v0
|
|
59592
|
+
* @classdesc Represents a GetTokenTotalSupplyResponse.
|
|
59593
|
+
* @implements IGetTokenTotalSupplyResponse
|
|
59594
|
+
* @constructor
|
|
59595
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse=} [properties] Properties to set
|
|
59596
|
+
*/
|
|
59597
|
+
function GetTokenTotalSupplyResponse(properties) {
|
|
59598
|
+
if (properties)
|
|
59599
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59600
|
+
if (properties[keys[i]] != null)
|
|
59601
|
+
this[keys[i]] = properties[keys[i]];
|
|
59602
|
+
}
|
|
59603
|
+
|
|
59604
|
+
/**
|
|
59605
|
+
* GetTokenTotalSupplyResponse v0.
|
|
59606
|
+
* @member {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0|null|undefined} v0
|
|
59607
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59608
|
+
* @instance
|
|
59609
|
+
*/
|
|
59610
|
+
GetTokenTotalSupplyResponse.prototype.v0 = null;
|
|
59611
|
+
|
|
59612
|
+
// OneOf field names bound to virtual getters and setters
|
|
59613
|
+
var $oneOfFields;
|
|
59614
|
+
|
|
59615
|
+
/**
|
|
59616
|
+
* GetTokenTotalSupplyResponse version.
|
|
59617
|
+
* @member {"v0"|undefined} version
|
|
59618
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59619
|
+
* @instance
|
|
59620
|
+
*/
|
|
59621
|
+
Object.defineProperty(GetTokenTotalSupplyResponse.prototype, "version", {
|
|
59622
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
59623
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59624
|
+
});
|
|
59625
|
+
|
|
59626
|
+
/**
|
|
59627
|
+
* Creates a new GetTokenTotalSupplyResponse instance using the specified properties.
|
|
59628
|
+
* @function create
|
|
59629
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59630
|
+
* @static
|
|
59631
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse=} [properties] Properties to set
|
|
59632
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse instance
|
|
59633
|
+
*/
|
|
59634
|
+
GetTokenTotalSupplyResponse.create = function create(properties) {
|
|
59635
|
+
return new GetTokenTotalSupplyResponse(properties);
|
|
59636
|
+
};
|
|
59637
|
+
|
|
59638
|
+
/**
|
|
59639
|
+
* Encodes the specified GetTokenTotalSupplyResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.verify|verify} messages.
|
|
59640
|
+
* @function encode
|
|
59641
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59642
|
+
* @static
|
|
59643
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse} message GetTokenTotalSupplyResponse message or plain object to encode
|
|
59644
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59645
|
+
* @returns {$protobuf.Writer} Writer
|
|
59646
|
+
*/
|
|
59647
|
+
GetTokenTotalSupplyResponse.encode = function encode(message, writer) {
|
|
59648
|
+
if (!writer)
|
|
59649
|
+
writer = $Writer.create();
|
|
59650
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
59651
|
+
$root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59652
|
+
return writer;
|
|
59653
|
+
};
|
|
59654
|
+
|
|
59655
|
+
/**
|
|
59656
|
+
* Encodes the specified GetTokenTotalSupplyResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.verify|verify} messages.
|
|
59657
|
+
* @function encodeDelimited
|
|
59658
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59659
|
+
* @static
|
|
59660
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse} message GetTokenTotalSupplyResponse message or plain object to encode
|
|
59661
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59662
|
+
* @returns {$protobuf.Writer} Writer
|
|
59663
|
+
*/
|
|
59664
|
+
GetTokenTotalSupplyResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59665
|
+
return this.encode(message, writer).ldelim();
|
|
59666
|
+
};
|
|
59667
|
+
|
|
59668
|
+
/**
|
|
59669
|
+
* Decodes a GetTokenTotalSupplyResponse message from the specified reader or buffer.
|
|
59670
|
+
* @function decode
|
|
59671
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59672
|
+
* @static
|
|
59673
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59674
|
+
* @param {number} [length] Message length if known beforehand
|
|
59675
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse
|
|
59676
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59677
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59678
|
+
*/
|
|
59679
|
+
GetTokenTotalSupplyResponse.decode = function decode(reader, length) {
|
|
59680
|
+
if (!(reader instanceof $Reader))
|
|
59681
|
+
reader = $Reader.create(reader);
|
|
59682
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse();
|
|
59683
|
+
while (reader.pos < end) {
|
|
59684
|
+
var tag = reader.uint32();
|
|
59685
|
+
switch (tag >>> 3) {
|
|
59686
|
+
case 1:
|
|
59687
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.decode(reader, reader.uint32());
|
|
59688
|
+
break;
|
|
59689
|
+
default:
|
|
59690
|
+
reader.skipType(tag & 7);
|
|
59691
|
+
break;
|
|
59692
|
+
}
|
|
59693
|
+
}
|
|
59694
|
+
return message;
|
|
59695
|
+
};
|
|
59696
|
+
|
|
59697
|
+
/**
|
|
59698
|
+
* Decodes a GetTokenTotalSupplyResponse message from the specified reader or buffer, length delimited.
|
|
59699
|
+
* @function decodeDelimited
|
|
59700
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59701
|
+
* @static
|
|
59702
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59703
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse
|
|
59704
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59705
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59706
|
+
*/
|
|
59707
|
+
GetTokenTotalSupplyResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
59708
|
+
if (!(reader instanceof $Reader))
|
|
59709
|
+
reader = new $Reader(reader);
|
|
59710
|
+
return this.decode(reader, reader.uint32());
|
|
59711
|
+
};
|
|
59712
|
+
|
|
59713
|
+
/**
|
|
59714
|
+
* Verifies a GetTokenTotalSupplyResponse message.
|
|
59715
|
+
* @function verify
|
|
59716
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59717
|
+
* @static
|
|
59718
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59719
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59720
|
+
*/
|
|
59721
|
+
GetTokenTotalSupplyResponse.verify = function verify(message) {
|
|
59722
|
+
if (typeof message !== "object" || message === null)
|
|
59723
|
+
return "object expected";
|
|
59724
|
+
var properties = {};
|
|
59725
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
59726
|
+
properties.version = 1;
|
|
59727
|
+
{
|
|
59728
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.verify(message.v0);
|
|
59729
|
+
if (error)
|
|
59730
|
+
return "v0." + error;
|
|
59731
|
+
}
|
|
59732
|
+
}
|
|
59733
|
+
return null;
|
|
59734
|
+
};
|
|
59735
|
+
|
|
59736
|
+
/**
|
|
59737
|
+
* Creates a GetTokenTotalSupplyResponse message from a plain object. Also converts values to their respective internal types.
|
|
59738
|
+
* @function fromObject
|
|
59739
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59740
|
+
* @static
|
|
59741
|
+
* @param {Object.<string,*>} object Plain object
|
|
59742
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse
|
|
59743
|
+
*/
|
|
59744
|
+
GetTokenTotalSupplyResponse.fromObject = function fromObject(object) {
|
|
59745
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse)
|
|
59746
|
+
return object;
|
|
59747
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse();
|
|
59748
|
+
if (object.v0 != null) {
|
|
59749
|
+
if (typeof object.v0 !== "object")
|
|
59750
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.v0: object expected");
|
|
59751
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.fromObject(object.v0);
|
|
59752
|
+
}
|
|
59753
|
+
return message;
|
|
59754
|
+
};
|
|
59755
|
+
|
|
59756
|
+
/**
|
|
59757
|
+
* Creates a plain object from a GetTokenTotalSupplyResponse message. Also converts values to other types if specified.
|
|
59758
|
+
* @function toObject
|
|
59759
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59760
|
+
* @static
|
|
59761
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} message GetTokenTotalSupplyResponse
|
|
59762
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59763
|
+
* @returns {Object.<string,*>} Plain object
|
|
59764
|
+
*/
|
|
59765
|
+
GetTokenTotalSupplyResponse.toObject = function toObject(message, options) {
|
|
59766
|
+
if (!options)
|
|
59767
|
+
options = {};
|
|
59768
|
+
var object = {};
|
|
59769
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
59770
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.toObject(message.v0, options);
|
|
59771
|
+
if (options.oneofs)
|
|
59772
|
+
object.version = "v0";
|
|
59773
|
+
}
|
|
59774
|
+
return object;
|
|
59775
|
+
};
|
|
59776
|
+
|
|
59777
|
+
/**
|
|
59778
|
+
* Converts this GetTokenTotalSupplyResponse to JSON.
|
|
59779
|
+
* @function toJSON
|
|
59780
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59781
|
+
* @instance
|
|
59782
|
+
* @returns {Object.<string,*>} JSON object
|
|
59783
|
+
*/
|
|
59784
|
+
GetTokenTotalSupplyResponse.prototype.toJSON = function toJSON() {
|
|
59785
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59786
|
+
};
|
|
59787
|
+
|
|
59788
|
+
GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0 = (function() {
|
|
59789
|
+
|
|
59790
|
+
/**
|
|
59791
|
+
* Properties of a GetTokenTotalSupplyResponseV0.
|
|
59792
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59793
|
+
* @interface IGetTokenTotalSupplyResponseV0
|
|
59794
|
+
* @property {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.ITokenTotalSupplyEntry|null} [tokenTotalSupply] GetTokenTotalSupplyResponseV0 tokenTotalSupply
|
|
59795
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTokenTotalSupplyResponseV0 proof
|
|
59796
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTokenTotalSupplyResponseV0 metadata
|
|
59797
|
+
*/
|
|
59798
|
+
|
|
59799
|
+
/**
|
|
59800
|
+
* Constructs a new GetTokenTotalSupplyResponseV0.
|
|
59801
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59802
|
+
* @classdesc Represents a GetTokenTotalSupplyResponseV0.
|
|
59803
|
+
* @implements IGetTokenTotalSupplyResponseV0
|
|
59804
|
+
* @constructor
|
|
59805
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0=} [properties] Properties to set
|
|
59806
|
+
*/
|
|
59807
|
+
function GetTokenTotalSupplyResponseV0(properties) {
|
|
59808
|
+
if (properties)
|
|
59809
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59810
|
+
if (properties[keys[i]] != null)
|
|
59811
|
+
this[keys[i]] = properties[keys[i]];
|
|
59812
|
+
}
|
|
59813
|
+
|
|
59814
|
+
/**
|
|
59815
|
+
* GetTokenTotalSupplyResponseV0 tokenTotalSupply.
|
|
59816
|
+
* @member {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.ITokenTotalSupplyEntry|null|undefined} tokenTotalSupply
|
|
59817
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59818
|
+
* @instance
|
|
59819
|
+
*/
|
|
59820
|
+
GetTokenTotalSupplyResponseV0.prototype.tokenTotalSupply = null;
|
|
59821
|
+
|
|
59822
|
+
/**
|
|
59823
|
+
* GetTokenTotalSupplyResponseV0 proof.
|
|
59824
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
59825
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59826
|
+
* @instance
|
|
59827
|
+
*/
|
|
59828
|
+
GetTokenTotalSupplyResponseV0.prototype.proof = null;
|
|
59829
|
+
|
|
59830
|
+
/**
|
|
59831
|
+
* GetTokenTotalSupplyResponseV0 metadata.
|
|
59832
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
59833
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59834
|
+
* @instance
|
|
59835
|
+
*/
|
|
59836
|
+
GetTokenTotalSupplyResponseV0.prototype.metadata = null;
|
|
59837
|
+
|
|
59838
|
+
// OneOf field names bound to virtual getters and setters
|
|
59839
|
+
var $oneOfFields;
|
|
59840
|
+
|
|
59841
|
+
/**
|
|
59842
|
+
* GetTokenTotalSupplyResponseV0 result.
|
|
59843
|
+
* @member {"tokenTotalSupply"|"proof"|undefined} result
|
|
59844
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59845
|
+
* @instance
|
|
59846
|
+
*/
|
|
59847
|
+
Object.defineProperty(GetTokenTotalSupplyResponseV0.prototype, "result", {
|
|
59848
|
+
get: $util.oneOfGetter($oneOfFields = ["tokenTotalSupply", "proof"]),
|
|
59849
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59850
|
+
});
|
|
59851
|
+
|
|
59852
|
+
/**
|
|
59853
|
+
* Creates a new GetTokenTotalSupplyResponseV0 instance using the specified properties.
|
|
59854
|
+
* @function create
|
|
59855
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59856
|
+
* @static
|
|
59857
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0=} [properties] Properties to set
|
|
59858
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0} GetTokenTotalSupplyResponseV0 instance
|
|
59859
|
+
*/
|
|
59860
|
+
GetTokenTotalSupplyResponseV0.create = function create(properties) {
|
|
59861
|
+
return new GetTokenTotalSupplyResponseV0(properties);
|
|
59862
|
+
};
|
|
59863
|
+
|
|
59864
|
+
/**
|
|
59865
|
+
* Encodes the specified GetTokenTotalSupplyResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.verify|verify} messages.
|
|
59866
|
+
* @function encode
|
|
59867
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59868
|
+
* @static
|
|
59869
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0} message GetTokenTotalSupplyResponseV0 message or plain object to encode
|
|
59870
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59871
|
+
* @returns {$protobuf.Writer} Writer
|
|
59872
|
+
*/
|
|
59873
|
+
GetTokenTotalSupplyResponseV0.encode = function encode(message, writer) {
|
|
59874
|
+
if (!writer)
|
|
59875
|
+
writer = $Writer.create();
|
|
59876
|
+
if (message.tokenTotalSupply != null && Object.hasOwnProperty.call(message, "tokenTotalSupply"))
|
|
59877
|
+
$root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntry.encode(message.tokenTotalSupply, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59878
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
59879
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59880
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
59881
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
59882
|
+
return writer;
|
|
59883
|
+
};
|
|
59884
|
+
|
|
59885
|
+
/**
|
|
59886
|
+
* Encodes the specified GetTokenTotalSupplyResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.verify|verify} messages.
|
|
59887
|
+
* @function encodeDelimited
|
|
59888
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59889
|
+
* @static
|
|
59890
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0} message GetTokenTotalSupplyResponseV0 message or plain object to encode
|
|
59891
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59892
|
+
* @returns {$protobuf.Writer} Writer
|
|
59893
|
+
*/
|
|
59894
|
+
GetTokenTotalSupplyResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59895
|
+
return this.encode(message, writer).ldelim();
|
|
59896
|
+
};
|
|
59897
|
+
|
|
59898
|
+
/**
|
|
59899
|
+
* Decodes a GetTokenTotalSupplyResponseV0 message from the specified reader or buffer.
|
|
59900
|
+
* @function decode
|
|
59901
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59902
|
+
* @static
|
|
59903
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59904
|
+
* @param {number} [length] Message length if known beforehand
|
|
59905
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0} GetTokenTotalSupplyResponseV0
|
|
59906
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59907
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59908
|
+
*/
|
|
59909
|
+
GetTokenTotalSupplyResponseV0.decode = function decode(reader, length) {
|
|
59910
|
+
if (!(reader instanceof $Reader))
|
|
59911
|
+
reader = $Reader.create(reader);
|
|
59912
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0();
|
|
59913
|
+
while (reader.pos < end) {
|
|
59914
|
+
var tag = reader.uint32();
|
|
59915
|
+
switch (tag >>> 3) {
|
|
59916
|
+
case 1:
|
|
59917
|
+
message.tokenTotalSupply = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntry.decode(reader, reader.uint32());
|
|
59918
|
+
break;
|
|
59919
|
+
case 2:
|
|
59920
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
59921
|
+
break;
|
|
59922
|
+
case 3:
|
|
59923
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
59924
|
+
break;
|
|
59925
|
+
default:
|
|
59926
|
+
reader.skipType(tag & 7);
|
|
59927
|
+
break;
|
|
59928
|
+
}
|
|
59929
|
+
}
|
|
59930
|
+
return message;
|
|
59931
|
+
};
|
|
59932
|
+
|
|
59933
|
+
/**
|
|
59934
|
+
* Decodes a GetTokenTotalSupplyResponseV0 message from the specified reader or buffer, length delimited.
|
|
59935
|
+
* @function decodeDelimited
|
|
59936
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59937
|
+
* @static
|
|
59938
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59939
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0} GetTokenTotalSupplyResponseV0
|
|
59940
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59941
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59942
|
+
*/
|
|
59943
|
+
GetTokenTotalSupplyResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
59944
|
+
if (!(reader instanceof $Reader))
|
|
59945
|
+
reader = new $Reader(reader);
|
|
59946
|
+
return this.decode(reader, reader.uint32());
|
|
59947
|
+
};
|
|
59948
|
+
|
|
59949
|
+
/**
|
|
59950
|
+
* Verifies a GetTokenTotalSupplyResponseV0 message.
|
|
59951
|
+
* @function verify
|
|
59952
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59953
|
+
* @static
|
|
59954
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59955
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59956
|
+
*/
|
|
59957
|
+
GetTokenTotalSupplyResponseV0.verify = function verify(message) {
|
|
59958
|
+
if (typeof message !== "object" || message === null)
|
|
59959
|
+
return "object expected";
|
|
59960
|
+
var properties = {};
|
|
59961
|
+
if (message.tokenTotalSupply != null && message.hasOwnProperty("tokenTotalSupply")) {
|
|
59962
|
+
properties.result = 1;
|
|
59963
|
+
{
|
|
59964
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntry.verify(message.tokenTotalSupply);
|
|
59965
|
+
if (error)
|
|
59966
|
+
return "tokenTotalSupply." + error;
|
|
58431
59967
|
}
|
|
58432
59968
|
}
|
|
58433
59969
|
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
@@ -63735,6 +65271,7 @@ $root.org = (function() {
|
|
|
63735
65271
|
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
|
|
63736
65272
|
* @interface IBurnEvent
|
|
63737
65273
|
* @property {number|Long|null} [amount] BurnEvent amount
|
|
65274
|
+
* @property {Uint8Array|null} [burnFromId] BurnEvent burnFromId
|
|
63738
65275
|
* @property {string|null} [publicNote] BurnEvent publicNote
|
|
63739
65276
|
*/
|
|
63740
65277
|
|
|
@@ -63761,6 +65298,14 @@ $root.org = (function() {
|
|
|
63761
65298
|
*/
|
|
63762
65299
|
BurnEvent.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
63763
65300
|
|
|
65301
|
+
/**
|
|
65302
|
+
* BurnEvent burnFromId.
|
|
65303
|
+
* @member {Uint8Array} burnFromId
|
|
65304
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnEvent
|
|
65305
|
+
* @instance
|
|
65306
|
+
*/
|
|
65307
|
+
BurnEvent.prototype.burnFromId = $util.newBuffer([]);
|
|
65308
|
+
|
|
63764
65309
|
/**
|
|
63765
65310
|
* BurnEvent publicNote.
|
|
63766
65311
|
* @member {string} publicNote
|
|
@@ -63795,8 +65340,10 @@ $root.org = (function() {
|
|
|
63795
65340
|
writer = $Writer.create();
|
|
63796
65341
|
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
63797
65342
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
|
|
65343
|
+
if (message.burnFromId != null && Object.hasOwnProperty.call(message, "burnFromId"))
|
|
65344
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.burnFromId);
|
|
63798
65345
|
if (message.publicNote != null && Object.hasOwnProperty.call(message, "publicNote"))
|
|
63799
|
-
writer.uint32(/* id
|
|
65346
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.publicNote);
|
|
63800
65347
|
return writer;
|
|
63801
65348
|
};
|
|
63802
65349
|
|
|
@@ -63835,6 +65382,9 @@ $root.org = (function() {
|
|
|
63835
65382
|
message.amount = reader.uint64();
|
|
63836
65383
|
break;
|
|
63837
65384
|
case 2:
|
|
65385
|
+
message.burnFromId = reader.bytes();
|
|
65386
|
+
break;
|
|
65387
|
+
case 3:
|
|
63838
65388
|
message.publicNote = reader.string();
|
|
63839
65389
|
break;
|
|
63840
65390
|
default:
|
|
@@ -63875,6 +65425,9 @@ $root.org = (function() {
|
|
|
63875
65425
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
63876
65426
|
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
|
63877
65427
|
return "amount: integer|Long expected";
|
|
65428
|
+
if (message.burnFromId != null && message.hasOwnProperty("burnFromId"))
|
|
65429
|
+
if (!(message.burnFromId && typeof message.burnFromId.length === "number" || $util.isString(message.burnFromId)))
|
|
65430
|
+
return "burnFromId: buffer expected";
|
|
63878
65431
|
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
63879
65432
|
if (!$util.isString(message.publicNote))
|
|
63880
65433
|
return "publicNote: string expected";
|
|
@@ -63902,6 +65455,11 @@ $root.org = (function() {
|
|
|
63902
65455
|
message.amount = object.amount;
|
|
63903
65456
|
else if (typeof object.amount === "object")
|
|
63904
65457
|
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
|
65458
|
+
if (object.burnFromId != null)
|
|
65459
|
+
if (typeof object.burnFromId === "string")
|
|
65460
|
+
$util.base64.decode(object.burnFromId, message.burnFromId = $util.newBuffer($util.base64.length(object.burnFromId)), 0);
|
|
65461
|
+
else if (object.burnFromId.length >= 0)
|
|
65462
|
+
message.burnFromId = object.burnFromId;
|
|
63905
65463
|
if (object.publicNote != null)
|
|
63906
65464
|
message.publicNote = String(object.publicNote);
|
|
63907
65465
|
return message;
|
|
@@ -63926,6 +65484,13 @@ $root.org = (function() {
|
|
|
63926
65484
|
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63927
65485
|
} else
|
|
63928
65486
|
object.amount = options.longs === String ? "0" : 0;
|
|
65487
|
+
if (options.bytes === String)
|
|
65488
|
+
object.burnFromId = "";
|
|
65489
|
+
else {
|
|
65490
|
+
object.burnFromId = [];
|
|
65491
|
+
if (options.bytes !== Array)
|
|
65492
|
+
object.burnFromId = $util.newBuffer(object.burnFromId);
|
|
65493
|
+
}
|
|
63929
65494
|
object.publicNote = "";
|
|
63930
65495
|
}
|
|
63931
65496
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
@@ -63933,6 +65498,8 @@ $root.org = (function() {
|
|
|
63933
65498
|
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
|
63934
65499
|
else
|
|
63935
65500
|
object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
|
|
65501
|
+
if (message.burnFromId != null && message.hasOwnProperty("burnFromId"))
|
|
65502
|
+
object.burnFromId = options.bytes === String ? $util.base64.encode(message.burnFromId, 0, message.burnFromId.length) : options.bytes === Array ? Array.prototype.slice.call(message.burnFromId) : message.burnFromId;
|
|
63936
65503
|
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
63937
65504
|
object.publicNote = message.publicNote;
|
|
63938
65505
|
return object;
|