@dashevo/dapi-grpc 2.0.0-rc.1 → 2.0.0-rc.10
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 +1536 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +1536 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +1584 -0
- package/clients/platform/v0/web/platform_pb.d.ts +212 -0
- package/clients/platform/v0/web/platform_pb.js +1584 -0
- 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 +55 -1
- 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,6 +57644,1509 @@ $root.org = (function() {
|
|
|
57611
57644
|
return GetTokenPreProgrammedDistributionsResponse;
|
|
57612
57645
|
})();
|
|
57613
57646
|
|
|
57647
|
+
v0.GetTokenPerpetualDistributionLastClaimRequest = (function() {
|
|
57648
|
+
|
|
57649
|
+
/**
|
|
57650
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimRequest.
|
|
57651
|
+
* @memberof org.dash.platform.dapi.v0
|
|
57652
|
+
* @interface IGetTokenPerpetualDistributionLastClaimRequest
|
|
57653
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null} [v0] GetTokenPerpetualDistributionLastClaimRequest v0
|
|
57654
|
+
*/
|
|
57655
|
+
|
|
57656
|
+
/**
|
|
57657
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimRequest.
|
|
57658
|
+
* @memberof org.dash.platform.dapi.v0
|
|
57659
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimRequest.
|
|
57660
|
+
* @implements IGetTokenPerpetualDistributionLastClaimRequest
|
|
57661
|
+
* @constructor
|
|
57662
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
|
|
57663
|
+
*/
|
|
57664
|
+
function GetTokenPerpetualDistributionLastClaimRequest(properties) {
|
|
57665
|
+
if (properties)
|
|
57666
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57667
|
+
if (properties[keys[i]] != null)
|
|
57668
|
+
this[keys[i]] = properties[keys[i]];
|
|
57669
|
+
}
|
|
57670
|
+
|
|
57671
|
+
/**
|
|
57672
|
+
* GetTokenPerpetualDistributionLastClaimRequest v0.
|
|
57673
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null|undefined} v0
|
|
57674
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57675
|
+
* @instance
|
|
57676
|
+
*/
|
|
57677
|
+
GetTokenPerpetualDistributionLastClaimRequest.prototype.v0 = null;
|
|
57678
|
+
|
|
57679
|
+
// OneOf field names bound to virtual getters and setters
|
|
57680
|
+
var $oneOfFields;
|
|
57681
|
+
|
|
57682
|
+
/**
|
|
57683
|
+
* GetTokenPerpetualDistributionLastClaimRequest version.
|
|
57684
|
+
* @member {"v0"|undefined} version
|
|
57685
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57686
|
+
* @instance
|
|
57687
|
+
*/
|
|
57688
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimRequest.prototype, "version", {
|
|
57689
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
57690
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
57691
|
+
});
|
|
57692
|
+
|
|
57693
|
+
/**
|
|
57694
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimRequest instance using the specified properties.
|
|
57695
|
+
* @function create
|
|
57696
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57697
|
+
* @static
|
|
57698
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
|
|
57699
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest instance
|
|
57700
|
+
*/
|
|
57701
|
+
GetTokenPerpetualDistributionLastClaimRequest.create = function create(properties) {
|
|
57702
|
+
return new GetTokenPerpetualDistributionLastClaimRequest(properties);
|
|
57703
|
+
};
|
|
57704
|
+
|
|
57705
|
+
/**
|
|
57706
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
|
|
57707
|
+
* @function encode
|
|
57708
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57709
|
+
* @static
|
|
57710
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
|
|
57711
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57712
|
+
* @returns {$protobuf.Writer} Writer
|
|
57713
|
+
*/
|
|
57714
|
+
GetTokenPerpetualDistributionLastClaimRequest.encode = function encode(message, writer) {
|
|
57715
|
+
if (!writer)
|
|
57716
|
+
writer = $Writer.create();
|
|
57717
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
57718
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
57719
|
+
return writer;
|
|
57720
|
+
};
|
|
57721
|
+
|
|
57722
|
+
/**
|
|
57723
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
|
|
57724
|
+
* @function encodeDelimited
|
|
57725
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57726
|
+
* @static
|
|
57727
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
|
|
57728
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57729
|
+
* @returns {$protobuf.Writer} Writer
|
|
57730
|
+
*/
|
|
57731
|
+
GetTokenPerpetualDistributionLastClaimRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57732
|
+
return this.encode(message, writer).ldelim();
|
|
57733
|
+
};
|
|
57734
|
+
|
|
57735
|
+
/**
|
|
57736
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer.
|
|
57737
|
+
* @function decode
|
|
57738
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57739
|
+
* @static
|
|
57740
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57741
|
+
* @param {number} [length] Message length if known beforehand
|
|
57742
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57743
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57744
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57745
|
+
*/
|
|
57746
|
+
GetTokenPerpetualDistributionLastClaimRequest.decode = function decode(reader, length) {
|
|
57747
|
+
if (!(reader instanceof $Reader))
|
|
57748
|
+
reader = $Reader.create(reader);
|
|
57749
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
|
|
57750
|
+
while (reader.pos < end) {
|
|
57751
|
+
var tag = reader.uint32();
|
|
57752
|
+
switch (tag >>> 3) {
|
|
57753
|
+
case 1:
|
|
57754
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.decode(reader, reader.uint32());
|
|
57755
|
+
break;
|
|
57756
|
+
default:
|
|
57757
|
+
reader.skipType(tag & 7);
|
|
57758
|
+
break;
|
|
57759
|
+
}
|
|
57760
|
+
}
|
|
57761
|
+
return message;
|
|
57762
|
+
};
|
|
57763
|
+
|
|
57764
|
+
/**
|
|
57765
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer, length delimited.
|
|
57766
|
+
* @function decodeDelimited
|
|
57767
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57768
|
+
* @static
|
|
57769
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57770
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57771
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57772
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57773
|
+
*/
|
|
57774
|
+
GetTokenPerpetualDistributionLastClaimRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
57775
|
+
if (!(reader instanceof $Reader))
|
|
57776
|
+
reader = new $Reader(reader);
|
|
57777
|
+
return this.decode(reader, reader.uint32());
|
|
57778
|
+
};
|
|
57779
|
+
|
|
57780
|
+
/**
|
|
57781
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimRequest message.
|
|
57782
|
+
* @function verify
|
|
57783
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57784
|
+
* @static
|
|
57785
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
57786
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57787
|
+
*/
|
|
57788
|
+
GetTokenPerpetualDistributionLastClaimRequest.verify = function verify(message) {
|
|
57789
|
+
if (typeof message !== "object" || message === null)
|
|
57790
|
+
return "object expected";
|
|
57791
|
+
var properties = {};
|
|
57792
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57793
|
+
properties.version = 1;
|
|
57794
|
+
{
|
|
57795
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify(message.v0);
|
|
57796
|
+
if (error)
|
|
57797
|
+
return "v0." + error;
|
|
57798
|
+
}
|
|
57799
|
+
}
|
|
57800
|
+
return null;
|
|
57801
|
+
};
|
|
57802
|
+
|
|
57803
|
+
/**
|
|
57804
|
+
* Creates a GetTokenPerpetualDistributionLastClaimRequest message from a plain object. Also converts values to their respective internal types.
|
|
57805
|
+
* @function fromObject
|
|
57806
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57807
|
+
* @static
|
|
57808
|
+
* @param {Object.<string,*>} object Plain object
|
|
57809
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57810
|
+
*/
|
|
57811
|
+
GetTokenPerpetualDistributionLastClaimRequest.fromObject = function fromObject(object) {
|
|
57812
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest)
|
|
57813
|
+
return object;
|
|
57814
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
|
|
57815
|
+
if (object.v0 != null) {
|
|
57816
|
+
if (typeof object.v0 !== "object")
|
|
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);
|
|
57819
|
+
}
|
|
57820
|
+
return message;
|
|
57821
|
+
};
|
|
57822
|
+
|
|
57823
|
+
/**
|
|
57824
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequest message. Also converts values to other types if specified.
|
|
57825
|
+
* @function toObject
|
|
57826
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57827
|
+
* @static
|
|
57828
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest
|
|
57829
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57830
|
+
* @returns {Object.<string,*>} Plain object
|
|
57831
|
+
*/
|
|
57832
|
+
GetTokenPerpetualDistributionLastClaimRequest.toObject = function toObject(message, options) {
|
|
57833
|
+
if (!options)
|
|
57834
|
+
options = {};
|
|
57835
|
+
var object = {};
|
|
57836
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57837
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.toObject(message.v0, options);
|
|
57838
|
+
if (options.oneofs)
|
|
57839
|
+
object.version = "v0";
|
|
57840
|
+
}
|
|
57841
|
+
return object;
|
|
57842
|
+
};
|
|
57843
|
+
|
|
57844
|
+
/**
|
|
57845
|
+
* Converts this GetTokenPerpetualDistributionLastClaimRequest to JSON.
|
|
57846
|
+
* @function toJSON
|
|
57847
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57848
|
+
* @instance
|
|
57849
|
+
* @returns {Object.<string,*>} JSON object
|
|
57850
|
+
*/
|
|
57851
|
+
GetTokenPerpetualDistributionLastClaimRequest.prototype.toJSON = function toJSON() {
|
|
57852
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57853
|
+
};
|
|
57854
|
+
|
|
57855
|
+
GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo = (function() {
|
|
57856
|
+
|
|
57857
|
+
/**
|
|
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
|
|
57863
|
+
*/
|
|
57864
|
+
|
|
57865
|
+
/**
|
|
57866
|
+
* Constructs a new ContractTokenInfo.
|
|
57867
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57868
|
+
* @classdesc Represents a ContractTokenInfo.
|
|
57869
|
+
* @implements IContractTokenInfo
|
|
57870
|
+
* @constructor
|
|
57871
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo=} [properties] Properties to set
|
|
57872
|
+
*/
|
|
57873
|
+
function ContractTokenInfo(properties) {
|
|
57874
|
+
if (properties)
|
|
57875
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57876
|
+
if (properties[keys[i]] != null)
|
|
57877
|
+
this[keys[i]] = properties[keys[i]];
|
|
57878
|
+
}
|
|
57879
|
+
|
|
57880
|
+
/**
|
|
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.
|
|
58103
|
+
* @member {Uint8Array} tokenId
|
|
58104
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58105
|
+
* @instance
|
|
58106
|
+
*/
|
|
58107
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
58108
|
+
|
|
58109
|
+
/**
|
|
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.
|
|
58127
|
+
* @member {boolean} prove
|
|
58128
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58129
|
+
* @instance
|
|
58130
|
+
*/
|
|
58131
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.prove = false;
|
|
58132
|
+
|
|
58133
|
+
/**
|
|
58134
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimRequestV0 instance using the specified properties.
|
|
58135
|
+
* @function create
|
|
58136
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58137
|
+
* @static
|
|
58138
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0=} [properties] Properties to set
|
|
58139
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0 instance
|
|
58140
|
+
*/
|
|
58141
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.create = function create(properties) {
|
|
58142
|
+
return new GetTokenPerpetualDistributionLastClaimRequestV0(properties);
|
|
58143
|
+
};
|
|
58144
|
+
|
|
58145
|
+
/**
|
|
58146
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
|
|
58147
|
+
* @function encode
|
|
58148
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58149
|
+
* @static
|
|
58150
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
|
|
58151
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58152
|
+
* @returns {$protobuf.Writer} Writer
|
|
58153
|
+
*/
|
|
58154
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.encode = function encode(message, writer) {
|
|
58155
|
+
if (!writer)
|
|
58156
|
+
writer = $Writer.create();
|
|
58157
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
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);
|
|
58163
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
58164
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.prove);
|
|
58165
|
+
return writer;
|
|
58166
|
+
};
|
|
58167
|
+
|
|
58168
|
+
/**
|
|
58169
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
|
|
58170
|
+
* @function encodeDelimited
|
|
58171
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58172
|
+
* @static
|
|
58173
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
|
|
58174
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58175
|
+
* @returns {$protobuf.Writer} Writer
|
|
58176
|
+
*/
|
|
58177
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58178
|
+
return this.encode(message, writer).ldelim();
|
|
58179
|
+
};
|
|
58180
|
+
|
|
58181
|
+
/**
|
|
58182
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer.
|
|
58183
|
+
* @function decode
|
|
58184
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58185
|
+
* @static
|
|
58186
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58187
|
+
* @param {number} [length] Message length if known beforehand
|
|
58188
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58189
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58190
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58191
|
+
*/
|
|
58192
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.decode = function decode(reader, length) {
|
|
58193
|
+
if (!(reader instanceof $Reader))
|
|
58194
|
+
reader = $Reader.create(reader);
|
|
58195
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
|
|
58196
|
+
while (reader.pos < end) {
|
|
58197
|
+
var tag = reader.uint32();
|
|
58198
|
+
switch (tag >>> 3) {
|
|
58199
|
+
case 1:
|
|
58200
|
+
message.tokenId = reader.bytes();
|
|
58201
|
+
break;
|
|
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:
|
|
58209
|
+
message.prove = reader.bool();
|
|
58210
|
+
break;
|
|
58211
|
+
default:
|
|
58212
|
+
reader.skipType(tag & 7);
|
|
58213
|
+
break;
|
|
58214
|
+
}
|
|
58215
|
+
}
|
|
58216
|
+
return message;
|
|
58217
|
+
};
|
|
58218
|
+
|
|
58219
|
+
/**
|
|
58220
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer, length delimited.
|
|
58221
|
+
* @function decodeDelimited
|
|
58222
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58223
|
+
* @static
|
|
58224
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58225
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58226
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58227
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58228
|
+
*/
|
|
58229
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
58230
|
+
if (!(reader instanceof $Reader))
|
|
58231
|
+
reader = new $Reader(reader);
|
|
58232
|
+
return this.decode(reader, reader.uint32());
|
|
58233
|
+
};
|
|
58234
|
+
|
|
58235
|
+
/**
|
|
58236
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimRequestV0 message.
|
|
58237
|
+
* @function verify
|
|
58238
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58239
|
+
* @static
|
|
58240
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58241
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58242
|
+
*/
|
|
58243
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.verify = function verify(message) {
|
|
58244
|
+
if (typeof message !== "object" || message === null)
|
|
58245
|
+
return "object expected";
|
|
58246
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
58247
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
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";
|
|
58257
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
58258
|
+
if (typeof message.prove !== "boolean")
|
|
58259
|
+
return "prove: boolean expected";
|
|
58260
|
+
return null;
|
|
58261
|
+
};
|
|
58262
|
+
|
|
58263
|
+
/**
|
|
58264
|
+
* Creates a GetTokenPerpetualDistributionLastClaimRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
58265
|
+
* @function fromObject
|
|
58266
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58267
|
+
* @static
|
|
58268
|
+
* @param {Object.<string,*>} object Plain object
|
|
58269
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58270
|
+
*/
|
|
58271
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.fromObject = function fromObject(object) {
|
|
58272
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0)
|
|
58273
|
+
return object;
|
|
58274
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
|
|
58275
|
+
if (object.tokenId != null)
|
|
58276
|
+
if (typeof object.tokenId === "string")
|
|
58277
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
58278
|
+
else if (object.tokenId.length >= 0)
|
|
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;
|
|
58290
|
+
if (object.prove != null)
|
|
58291
|
+
message.prove = Boolean(object.prove);
|
|
58292
|
+
return message;
|
|
58293
|
+
};
|
|
58294
|
+
|
|
58295
|
+
/**
|
|
58296
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequestV0 message. Also converts values to other types if specified.
|
|
58297
|
+
* @function toObject
|
|
58298
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58299
|
+
* @static
|
|
58300
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58301
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58302
|
+
* @returns {Object.<string,*>} Plain object
|
|
58303
|
+
*/
|
|
58304
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.toObject = function toObject(message, options) {
|
|
58305
|
+
if (!options)
|
|
58306
|
+
options = {};
|
|
58307
|
+
var object = {};
|
|
58308
|
+
if (options.defaults) {
|
|
58309
|
+
if (options.bytes === String)
|
|
58310
|
+
object.tokenId = "";
|
|
58311
|
+
else {
|
|
58312
|
+
object.tokenId = [];
|
|
58313
|
+
if (options.bytes !== Array)
|
|
58314
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
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
|
+
}
|
|
58324
|
+
object.prove = false;
|
|
58325
|
+
}
|
|
58326
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
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;
|
|
58332
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
58333
|
+
object.prove = message.prove;
|
|
58334
|
+
return object;
|
|
58335
|
+
};
|
|
58336
|
+
|
|
58337
|
+
/**
|
|
58338
|
+
* Converts this GetTokenPerpetualDistributionLastClaimRequestV0 to JSON.
|
|
58339
|
+
* @function toJSON
|
|
58340
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
58341
|
+
* @instance
|
|
58342
|
+
* @returns {Object.<string,*>} JSON object
|
|
58343
|
+
*/
|
|
58344
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.toJSON = function toJSON() {
|
|
58345
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58346
|
+
};
|
|
58347
|
+
|
|
58348
|
+
return GetTokenPerpetualDistributionLastClaimRequestV0;
|
|
58349
|
+
})();
|
|
58350
|
+
|
|
58351
|
+
return GetTokenPerpetualDistributionLastClaimRequest;
|
|
58352
|
+
})();
|
|
58353
|
+
|
|
58354
|
+
v0.GetTokenPerpetualDistributionLastClaimResponse = (function() {
|
|
58355
|
+
|
|
58356
|
+
/**
|
|
58357
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimResponse.
|
|
58358
|
+
* @memberof org.dash.platform.dapi.v0
|
|
58359
|
+
* @interface IGetTokenPerpetualDistributionLastClaimResponse
|
|
58360
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null} [v0] GetTokenPerpetualDistributionLastClaimResponse v0
|
|
58361
|
+
*/
|
|
58362
|
+
|
|
58363
|
+
/**
|
|
58364
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimResponse.
|
|
58365
|
+
* @memberof org.dash.platform.dapi.v0
|
|
58366
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponse.
|
|
58367
|
+
* @implements IGetTokenPerpetualDistributionLastClaimResponse
|
|
58368
|
+
* @constructor
|
|
58369
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
|
|
58370
|
+
*/
|
|
58371
|
+
function GetTokenPerpetualDistributionLastClaimResponse(properties) {
|
|
58372
|
+
if (properties)
|
|
58373
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58374
|
+
if (properties[keys[i]] != null)
|
|
58375
|
+
this[keys[i]] = properties[keys[i]];
|
|
58376
|
+
}
|
|
58377
|
+
|
|
58378
|
+
/**
|
|
58379
|
+
* GetTokenPerpetualDistributionLastClaimResponse v0.
|
|
58380
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null|undefined} v0
|
|
58381
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58382
|
+
* @instance
|
|
58383
|
+
*/
|
|
58384
|
+
GetTokenPerpetualDistributionLastClaimResponse.prototype.v0 = null;
|
|
58385
|
+
|
|
58386
|
+
// OneOf field names bound to virtual getters and setters
|
|
58387
|
+
var $oneOfFields;
|
|
58388
|
+
|
|
58389
|
+
/**
|
|
58390
|
+
* GetTokenPerpetualDistributionLastClaimResponse version.
|
|
58391
|
+
* @member {"v0"|undefined} version
|
|
58392
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58393
|
+
* @instance
|
|
58394
|
+
*/
|
|
58395
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponse.prototype, "version", {
|
|
58396
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
58397
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
58398
|
+
});
|
|
58399
|
+
|
|
58400
|
+
/**
|
|
58401
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimResponse instance using the specified properties.
|
|
58402
|
+
* @function create
|
|
58403
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58404
|
+
* @static
|
|
58405
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
|
|
58406
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse instance
|
|
58407
|
+
*/
|
|
58408
|
+
GetTokenPerpetualDistributionLastClaimResponse.create = function create(properties) {
|
|
58409
|
+
return new GetTokenPerpetualDistributionLastClaimResponse(properties);
|
|
58410
|
+
};
|
|
58411
|
+
|
|
58412
|
+
/**
|
|
58413
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
|
|
58414
|
+
* @function encode
|
|
58415
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58416
|
+
* @static
|
|
58417
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
|
|
58418
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58419
|
+
* @returns {$protobuf.Writer} Writer
|
|
58420
|
+
*/
|
|
58421
|
+
GetTokenPerpetualDistributionLastClaimResponse.encode = function encode(message, writer) {
|
|
58422
|
+
if (!writer)
|
|
58423
|
+
writer = $Writer.create();
|
|
58424
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
58425
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
58426
|
+
return writer;
|
|
58427
|
+
};
|
|
58428
|
+
|
|
58429
|
+
/**
|
|
58430
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
|
|
58431
|
+
* @function encodeDelimited
|
|
58432
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58433
|
+
* @static
|
|
58434
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
|
|
58435
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58436
|
+
* @returns {$protobuf.Writer} Writer
|
|
58437
|
+
*/
|
|
58438
|
+
GetTokenPerpetualDistributionLastClaimResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58439
|
+
return this.encode(message, writer).ldelim();
|
|
58440
|
+
};
|
|
58441
|
+
|
|
58442
|
+
/**
|
|
58443
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer.
|
|
58444
|
+
* @function decode
|
|
58445
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58446
|
+
* @static
|
|
58447
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58448
|
+
* @param {number} [length] Message length if known beforehand
|
|
58449
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
58450
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58451
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58452
|
+
*/
|
|
58453
|
+
GetTokenPerpetualDistributionLastClaimResponse.decode = function decode(reader, length) {
|
|
58454
|
+
if (!(reader instanceof $Reader))
|
|
58455
|
+
reader = $Reader.create(reader);
|
|
58456
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
|
|
58457
|
+
while (reader.pos < end) {
|
|
58458
|
+
var tag = reader.uint32();
|
|
58459
|
+
switch (tag >>> 3) {
|
|
58460
|
+
case 1:
|
|
58461
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.decode(reader, reader.uint32());
|
|
58462
|
+
break;
|
|
58463
|
+
default:
|
|
58464
|
+
reader.skipType(tag & 7);
|
|
58465
|
+
break;
|
|
58466
|
+
}
|
|
58467
|
+
}
|
|
58468
|
+
return message;
|
|
58469
|
+
};
|
|
58470
|
+
|
|
58471
|
+
/**
|
|
58472
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer, length delimited.
|
|
58473
|
+
* @function decodeDelimited
|
|
58474
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58475
|
+
* @static
|
|
58476
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58477
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
58478
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58479
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58480
|
+
*/
|
|
58481
|
+
GetTokenPerpetualDistributionLastClaimResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
58482
|
+
if (!(reader instanceof $Reader))
|
|
58483
|
+
reader = new $Reader(reader);
|
|
58484
|
+
return this.decode(reader, reader.uint32());
|
|
58485
|
+
};
|
|
58486
|
+
|
|
58487
|
+
/**
|
|
58488
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimResponse message.
|
|
58489
|
+
* @function verify
|
|
58490
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58491
|
+
* @static
|
|
58492
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58493
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58494
|
+
*/
|
|
58495
|
+
GetTokenPerpetualDistributionLastClaimResponse.verify = function verify(message) {
|
|
58496
|
+
if (typeof message !== "object" || message === null)
|
|
58497
|
+
return "object expected";
|
|
58498
|
+
var properties = {};
|
|
58499
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
58500
|
+
properties.version = 1;
|
|
58501
|
+
{
|
|
58502
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify(message.v0);
|
|
58503
|
+
if (error)
|
|
58504
|
+
return "v0." + error;
|
|
58505
|
+
}
|
|
58506
|
+
}
|
|
58507
|
+
return null;
|
|
58508
|
+
};
|
|
58509
|
+
|
|
58510
|
+
/**
|
|
58511
|
+
* Creates a GetTokenPerpetualDistributionLastClaimResponse message from a plain object. Also converts values to their respective internal types.
|
|
58512
|
+
* @function fromObject
|
|
58513
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58514
|
+
* @static
|
|
58515
|
+
* @param {Object.<string,*>} object Plain object
|
|
58516
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
58517
|
+
*/
|
|
58518
|
+
GetTokenPerpetualDistributionLastClaimResponse.fromObject = function fromObject(object) {
|
|
58519
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse)
|
|
58520
|
+
return object;
|
|
58521
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
|
|
58522
|
+
if (object.v0 != null) {
|
|
58523
|
+
if (typeof object.v0 !== "object")
|
|
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);
|
|
58526
|
+
}
|
|
58527
|
+
return message;
|
|
58528
|
+
};
|
|
58529
|
+
|
|
58530
|
+
/**
|
|
58531
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimResponse message. Also converts values to other types if specified.
|
|
58532
|
+
* @function toObject
|
|
58533
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58534
|
+
* @static
|
|
58535
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse
|
|
58536
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58537
|
+
* @returns {Object.<string,*>} Plain object
|
|
58538
|
+
*/
|
|
58539
|
+
GetTokenPerpetualDistributionLastClaimResponse.toObject = function toObject(message, options) {
|
|
58540
|
+
if (!options)
|
|
58541
|
+
options = {};
|
|
58542
|
+
var object = {};
|
|
58543
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
58544
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.toObject(message.v0, options);
|
|
58545
|
+
if (options.oneofs)
|
|
58546
|
+
object.version = "v0";
|
|
58547
|
+
}
|
|
58548
|
+
return object;
|
|
58549
|
+
};
|
|
58550
|
+
|
|
58551
|
+
/**
|
|
58552
|
+
* Converts this GetTokenPerpetualDistributionLastClaimResponse to JSON.
|
|
58553
|
+
* @function toJSON
|
|
58554
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58555
|
+
* @instance
|
|
58556
|
+
* @returns {Object.<string,*>} JSON object
|
|
58557
|
+
*/
|
|
58558
|
+
GetTokenPerpetualDistributionLastClaimResponse.prototype.toJSON = function toJSON() {
|
|
58559
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58560
|
+
};
|
|
58561
|
+
|
|
58562
|
+
GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0 = (function() {
|
|
58563
|
+
|
|
58564
|
+
/**
|
|
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
|
|
58571
|
+
*/
|
|
58572
|
+
|
|
58573
|
+
/**
|
|
58574
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58575
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58576
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58577
|
+
* @implements IGetTokenPerpetualDistributionLastClaimResponseV0
|
|
58578
|
+
* @constructor
|
|
58579
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
|
|
58580
|
+
*/
|
|
58581
|
+
function GetTokenPerpetualDistributionLastClaimResponseV0(properties) {
|
|
58582
|
+
if (properties)
|
|
58583
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58584
|
+
if (properties[keys[i]] != null)
|
|
58585
|
+
this[keys[i]] = properties[keys[i]];
|
|
58586
|
+
}
|
|
58587
|
+
|
|
58588
|
+
/**
|
|
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
|
|
58592
|
+
* @instance
|
|
58593
|
+
*/
|
|
58594
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.lastClaim = null;
|
|
58595
|
+
|
|
58596
|
+
/**
|
|
58597
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 proof.
|
|
58598
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
58599
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58600
|
+
* @instance
|
|
58601
|
+
*/
|
|
58602
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.proof = null;
|
|
58603
|
+
|
|
58604
|
+
/**
|
|
58605
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 metadata.
|
|
58606
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
58607
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58608
|
+
* @instance
|
|
58609
|
+
*/
|
|
58610
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.metadata = null;
|
|
58611
|
+
|
|
58612
|
+
// OneOf field names bound to virtual getters and setters
|
|
58613
|
+
var $oneOfFields;
|
|
58614
|
+
|
|
58615
|
+
/**
|
|
58616
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 result.
|
|
58617
|
+
* @member {"lastClaim"|"proof"|undefined} result
|
|
58618
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58619
|
+
* @instance
|
|
58620
|
+
*/
|
|
58621
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponseV0.prototype, "result", {
|
|
58622
|
+
get: $util.oneOfGetter($oneOfFields = ["lastClaim", "proof"]),
|
|
58623
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
58624
|
+
});
|
|
58625
|
+
|
|
58626
|
+
/**
|
|
58627
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimResponseV0 instance using the specified properties.
|
|
58628
|
+
* @function create
|
|
58629
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58630
|
+
* @static
|
|
58631
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
|
|
58632
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0 instance
|
|
58633
|
+
*/
|
|
58634
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.create = function create(properties) {
|
|
58635
|
+
return new GetTokenPerpetualDistributionLastClaimResponseV0(properties);
|
|
58636
|
+
};
|
|
58637
|
+
|
|
58638
|
+
/**
|
|
58639
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
|
|
58640
|
+
* @function encode
|
|
58641
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58642
|
+
* @static
|
|
58643
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
|
|
58644
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58645
|
+
* @returns {$protobuf.Writer} Writer
|
|
58646
|
+
*/
|
|
58647
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.encode = function encode(message, writer) {
|
|
58648
|
+
if (!writer)
|
|
58649
|
+
writer = $Writer.create();
|
|
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();
|
|
58652
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
58653
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58654
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
58655
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
58656
|
+
return writer;
|
|
58657
|
+
};
|
|
58658
|
+
|
|
58659
|
+
/**
|
|
58660
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
|
|
58661
|
+
* @function encodeDelimited
|
|
58662
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58663
|
+
* @static
|
|
58664
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
|
|
58665
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58666
|
+
* @returns {$protobuf.Writer} Writer
|
|
58667
|
+
*/
|
|
58668
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58669
|
+
return this.encode(message, writer).ldelim();
|
|
58670
|
+
};
|
|
58671
|
+
|
|
58672
|
+
/**
|
|
58673
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer.
|
|
58674
|
+
* @function decode
|
|
58675
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58676
|
+
* @static
|
|
58677
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58678
|
+
* @param {number} [length] Message length if known beforehand
|
|
58679
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58680
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58681
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58682
|
+
*/
|
|
58683
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.decode = function decode(reader, length) {
|
|
58684
|
+
if (!(reader instanceof $Reader))
|
|
58685
|
+
reader = $Reader.create(reader);
|
|
58686
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0();
|
|
58687
|
+
while (reader.pos < end) {
|
|
58688
|
+
var tag = reader.uint32();
|
|
58689
|
+
switch (tag >>> 3) {
|
|
58690
|
+
case 1:
|
|
58691
|
+
message.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.decode(reader, reader.uint32());
|
|
58692
|
+
break;
|
|
58693
|
+
case 2:
|
|
58694
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
58695
|
+
break;
|
|
58696
|
+
case 3:
|
|
58697
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
58698
|
+
break;
|
|
58699
|
+
default:
|
|
58700
|
+
reader.skipType(tag & 7);
|
|
58701
|
+
break;
|
|
58702
|
+
}
|
|
58703
|
+
}
|
|
58704
|
+
return message;
|
|
58705
|
+
};
|
|
58706
|
+
|
|
58707
|
+
/**
|
|
58708
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer, length delimited.
|
|
58709
|
+
* @function decodeDelimited
|
|
58710
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58711
|
+
* @static
|
|
58712
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58713
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58716
|
+
*/
|
|
58717
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
58718
|
+
if (!(reader instanceof $Reader))
|
|
58719
|
+
reader = new $Reader(reader);
|
|
58720
|
+
return this.decode(reader, reader.uint32());
|
|
58721
|
+
};
|
|
58722
|
+
|
|
58723
|
+
/**
|
|
58724
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimResponseV0 message.
|
|
58725
|
+
* @function verify
|
|
58726
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
58727
|
+
* @static
|
|
58728
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58729
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58730
|
+
*/
|
|
58731
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.verify = function verify(message) {
|
|
58732
|
+
if (typeof message !== "object" || message === null)
|
|
58733
|
+
return "object expected";
|
|
58734
|
+
var properties = {};
|
|
58735
|
+
if (message.lastClaim != null && message.hasOwnProperty("lastClaim")) {
|
|
58736
|
+
properties.result = 1;
|
|
58737
|
+
{
|
|
58738
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify(message.lastClaim);
|
|
58739
|
+
if (error)
|
|
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
|
+
|
|
57614
59150
|
v0.GetTokenTotalSupplyRequest = (function() {
|
|
57615
59151
|
|
|
57616
59152
|
/**
|