@dashevo/dapi-grpc 1.1.0-pr.1713.2 → 1.1.0-pr.2012.4
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/platform/v0/nodejs/PlatformPromiseClient.js +36 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +919 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +849 -0
- package/clients/platform/v0/web/platform_pb.d.ts +117 -0
- package/clients/platform/v0/web/platform_pb.js +849 -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 +25 -0
|
@@ -911,6 +911,39 @@ $root.org = (function() {
|
|
|
911
911
|
* @variation 2
|
|
912
912
|
*/
|
|
913
913
|
|
|
914
|
+
/**
|
|
915
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTotalCreditsInPlatform}.
|
|
916
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
917
|
+
* @typedef getTotalCreditsInPlatformCallback
|
|
918
|
+
* @type {function}
|
|
919
|
+
* @param {Error|null} error Error, if any
|
|
920
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse} [response] GetTotalCreditsInPlatformResponse
|
|
921
|
+
*/
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Calls getTotalCreditsInPlatform.
|
|
925
|
+
* @function getTotalCreditsInPlatform
|
|
926
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
927
|
+
* @instance
|
|
928
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformRequest} request GetTotalCreditsInPlatformRequest message or plain object
|
|
929
|
+
* @param {org.dash.platform.dapi.v0.Platform.getTotalCreditsInPlatformCallback} callback Node-style callback called with the error, if any, and GetTotalCreditsInPlatformResponse
|
|
930
|
+
* @returns {undefined}
|
|
931
|
+
* @variation 1
|
|
932
|
+
*/
|
|
933
|
+
Object.defineProperty(Platform.prototype.getTotalCreditsInPlatform = function getTotalCreditsInPlatform(request, callback) {
|
|
934
|
+
return this.rpcCall(getTotalCreditsInPlatform, $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest, $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse, request, callback);
|
|
935
|
+
}, "name", { value: "getTotalCreditsInPlatform" });
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Calls getTotalCreditsInPlatform.
|
|
939
|
+
* @function getTotalCreditsInPlatform
|
|
940
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
941
|
+
* @instance
|
|
942
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformRequest} request GetTotalCreditsInPlatformRequest message or plain object
|
|
943
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse>} Promise
|
|
944
|
+
* @variation 2
|
|
945
|
+
*/
|
|
946
|
+
|
|
914
947
|
/**
|
|
915
948
|
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getPathElements}.
|
|
916
949
|
* @memberof org.dash.platform.dapi.v0.Platform
|
|
@@ -35967,6 +36000,892 @@ $root.org = (function() {
|
|
|
35967
36000
|
return GetPrefundedSpecializedBalanceResponse;
|
|
35968
36001
|
})();
|
|
35969
36002
|
|
|
36003
|
+
v0.GetTotalCreditsInPlatformRequest = (function() {
|
|
36004
|
+
|
|
36005
|
+
/**
|
|
36006
|
+
* Properties of a GetTotalCreditsInPlatformRequest.
|
|
36007
|
+
* @memberof org.dash.platform.dapi.v0
|
|
36008
|
+
* @interface IGetTotalCreditsInPlatformRequest
|
|
36009
|
+
* @property {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.IGetTotalCreditsInPlatformRequestV0|null} [v0] GetTotalCreditsInPlatformRequest v0
|
|
36010
|
+
*/
|
|
36011
|
+
|
|
36012
|
+
/**
|
|
36013
|
+
* Constructs a new GetTotalCreditsInPlatformRequest.
|
|
36014
|
+
* @memberof org.dash.platform.dapi.v0
|
|
36015
|
+
* @classdesc Represents a GetTotalCreditsInPlatformRequest.
|
|
36016
|
+
* @implements IGetTotalCreditsInPlatformRequest
|
|
36017
|
+
* @constructor
|
|
36018
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformRequest=} [properties] Properties to set
|
|
36019
|
+
*/
|
|
36020
|
+
function GetTotalCreditsInPlatformRequest(properties) {
|
|
36021
|
+
if (properties)
|
|
36022
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36023
|
+
if (properties[keys[i]] != null)
|
|
36024
|
+
this[keys[i]] = properties[keys[i]];
|
|
36025
|
+
}
|
|
36026
|
+
|
|
36027
|
+
/**
|
|
36028
|
+
* GetTotalCreditsInPlatformRequest v0.
|
|
36029
|
+
* @member {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.IGetTotalCreditsInPlatformRequestV0|null|undefined} v0
|
|
36030
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36031
|
+
* @instance
|
|
36032
|
+
*/
|
|
36033
|
+
GetTotalCreditsInPlatformRequest.prototype.v0 = null;
|
|
36034
|
+
|
|
36035
|
+
// OneOf field names bound to virtual getters and setters
|
|
36036
|
+
var $oneOfFields;
|
|
36037
|
+
|
|
36038
|
+
/**
|
|
36039
|
+
* GetTotalCreditsInPlatformRequest version.
|
|
36040
|
+
* @member {"v0"|undefined} version
|
|
36041
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36042
|
+
* @instance
|
|
36043
|
+
*/
|
|
36044
|
+
Object.defineProperty(GetTotalCreditsInPlatformRequest.prototype, "version", {
|
|
36045
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
36046
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
36047
|
+
});
|
|
36048
|
+
|
|
36049
|
+
/**
|
|
36050
|
+
* Creates a new GetTotalCreditsInPlatformRequest instance using the specified properties.
|
|
36051
|
+
* @function create
|
|
36052
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36053
|
+
* @static
|
|
36054
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformRequest=} [properties] Properties to set
|
|
36055
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest} GetTotalCreditsInPlatformRequest instance
|
|
36056
|
+
*/
|
|
36057
|
+
GetTotalCreditsInPlatformRequest.create = function create(properties) {
|
|
36058
|
+
return new GetTotalCreditsInPlatformRequest(properties);
|
|
36059
|
+
};
|
|
36060
|
+
|
|
36061
|
+
/**
|
|
36062
|
+
* Encodes the specified GetTotalCreditsInPlatformRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.verify|verify} messages.
|
|
36063
|
+
* @function encode
|
|
36064
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36065
|
+
* @static
|
|
36066
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformRequest} message GetTotalCreditsInPlatformRequest message or plain object to encode
|
|
36067
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36068
|
+
* @returns {$protobuf.Writer} Writer
|
|
36069
|
+
*/
|
|
36070
|
+
GetTotalCreditsInPlatformRequest.encode = function encode(message, writer) {
|
|
36071
|
+
if (!writer)
|
|
36072
|
+
writer = $Writer.create();
|
|
36073
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
36074
|
+
$root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
36075
|
+
return writer;
|
|
36076
|
+
};
|
|
36077
|
+
|
|
36078
|
+
/**
|
|
36079
|
+
* Encodes the specified GetTotalCreditsInPlatformRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.verify|verify} messages.
|
|
36080
|
+
* @function encodeDelimited
|
|
36081
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36082
|
+
* @static
|
|
36083
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformRequest} message GetTotalCreditsInPlatformRequest message or plain object to encode
|
|
36084
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36085
|
+
* @returns {$protobuf.Writer} Writer
|
|
36086
|
+
*/
|
|
36087
|
+
GetTotalCreditsInPlatformRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36088
|
+
return this.encode(message, writer).ldelim();
|
|
36089
|
+
};
|
|
36090
|
+
|
|
36091
|
+
/**
|
|
36092
|
+
* Decodes a GetTotalCreditsInPlatformRequest message from the specified reader or buffer.
|
|
36093
|
+
* @function decode
|
|
36094
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36095
|
+
* @static
|
|
36096
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36097
|
+
* @param {number} [length] Message length if known beforehand
|
|
36098
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest} GetTotalCreditsInPlatformRequest
|
|
36099
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36100
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36101
|
+
*/
|
|
36102
|
+
GetTotalCreditsInPlatformRequest.decode = function decode(reader, length) {
|
|
36103
|
+
if (!(reader instanceof $Reader))
|
|
36104
|
+
reader = $Reader.create(reader);
|
|
36105
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest();
|
|
36106
|
+
while (reader.pos < end) {
|
|
36107
|
+
var tag = reader.uint32();
|
|
36108
|
+
switch (tag >>> 3) {
|
|
36109
|
+
case 1:
|
|
36110
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.decode(reader, reader.uint32());
|
|
36111
|
+
break;
|
|
36112
|
+
default:
|
|
36113
|
+
reader.skipType(tag & 7);
|
|
36114
|
+
break;
|
|
36115
|
+
}
|
|
36116
|
+
}
|
|
36117
|
+
return message;
|
|
36118
|
+
};
|
|
36119
|
+
|
|
36120
|
+
/**
|
|
36121
|
+
* Decodes a GetTotalCreditsInPlatformRequest message from the specified reader or buffer, length delimited.
|
|
36122
|
+
* @function decodeDelimited
|
|
36123
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36124
|
+
* @static
|
|
36125
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36126
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest} GetTotalCreditsInPlatformRequest
|
|
36127
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36128
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36129
|
+
*/
|
|
36130
|
+
GetTotalCreditsInPlatformRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
36131
|
+
if (!(reader instanceof $Reader))
|
|
36132
|
+
reader = new $Reader(reader);
|
|
36133
|
+
return this.decode(reader, reader.uint32());
|
|
36134
|
+
};
|
|
36135
|
+
|
|
36136
|
+
/**
|
|
36137
|
+
* Verifies a GetTotalCreditsInPlatformRequest message.
|
|
36138
|
+
* @function verify
|
|
36139
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36140
|
+
* @static
|
|
36141
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36142
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36143
|
+
*/
|
|
36144
|
+
GetTotalCreditsInPlatformRequest.verify = function verify(message) {
|
|
36145
|
+
if (typeof message !== "object" || message === null)
|
|
36146
|
+
return "object expected";
|
|
36147
|
+
var properties = {};
|
|
36148
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
36149
|
+
properties.version = 1;
|
|
36150
|
+
{
|
|
36151
|
+
var error = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.verify(message.v0);
|
|
36152
|
+
if (error)
|
|
36153
|
+
return "v0." + error;
|
|
36154
|
+
}
|
|
36155
|
+
}
|
|
36156
|
+
return null;
|
|
36157
|
+
};
|
|
36158
|
+
|
|
36159
|
+
/**
|
|
36160
|
+
* Creates a GetTotalCreditsInPlatformRequest message from a plain object. Also converts values to their respective internal types.
|
|
36161
|
+
* @function fromObject
|
|
36162
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36163
|
+
* @static
|
|
36164
|
+
* @param {Object.<string,*>} object Plain object
|
|
36165
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest} GetTotalCreditsInPlatformRequest
|
|
36166
|
+
*/
|
|
36167
|
+
GetTotalCreditsInPlatformRequest.fromObject = function fromObject(object) {
|
|
36168
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest)
|
|
36169
|
+
return object;
|
|
36170
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest();
|
|
36171
|
+
if (object.v0 != null) {
|
|
36172
|
+
if (typeof object.v0 !== "object")
|
|
36173
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.v0: object expected");
|
|
36174
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.fromObject(object.v0);
|
|
36175
|
+
}
|
|
36176
|
+
return message;
|
|
36177
|
+
};
|
|
36178
|
+
|
|
36179
|
+
/**
|
|
36180
|
+
* Creates a plain object from a GetTotalCreditsInPlatformRequest message. Also converts values to other types if specified.
|
|
36181
|
+
* @function toObject
|
|
36182
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36183
|
+
* @static
|
|
36184
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest} message GetTotalCreditsInPlatformRequest
|
|
36185
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36186
|
+
* @returns {Object.<string,*>} Plain object
|
|
36187
|
+
*/
|
|
36188
|
+
GetTotalCreditsInPlatformRequest.toObject = function toObject(message, options) {
|
|
36189
|
+
if (!options)
|
|
36190
|
+
options = {};
|
|
36191
|
+
var object = {};
|
|
36192
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
36193
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.toObject(message.v0, options);
|
|
36194
|
+
if (options.oneofs)
|
|
36195
|
+
object.version = "v0";
|
|
36196
|
+
}
|
|
36197
|
+
return object;
|
|
36198
|
+
};
|
|
36199
|
+
|
|
36200
|
+
/**
|
|
36201
|
+
* Converts this GetTotalCreditsInPlatformRequest to JSON.
|
|
36202
|
+
* @function toJSON
|
|
36203
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36204
|
+
* @instance
|
|
36205
|
+
* @returns {Object.<string,*>} JSON object
|
|
36206
|
+
*/
|
|
36207
|
+
GetTotalCreditsInPlatformRequest.prototype.toJSON = function toJSON() {
|
|
36208
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36209
|
+
};
|
|
36210
|
+
|
|
36211
|
+
GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0 = (function() {
|
|
36212
|
+
|
|
36213
|
+
/**
|
|
36214
|
+
* Properties of a GetTotalCreditsInPlatformRequestV0.
|
|
36215
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36216
|
+
* @interface IGetTotalCreditsInPlatformRequestV0
|
|
36217
|
+
* @property {boolean|null} [prove] GetTotalCreditsInPlatformRequestV0 prove
|
|
36218
|
+
*/
|
|
36219
|
+
|
|
36220
|
+
/**
|
|
36221
|
+
* Constructs a new GetTotalCreditsInPlatformRequestV0.
|
|
36222
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest
|
|
36223
|
+
* @classdesc Represents a GetTotalCreditsInPlatformRequestV0.
|
|
36224
|
+
* @implements IGetTotalCreditsInPlatformRequestV0
|
|
36225
|
+
* @constructor
|
|
36226
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.IGetTotalCreditsInPlatformRequestV0=} [properties] Properties to set
|
|
36227
|
+
*/
|
|
36228
|
+
function GetTotalCreditsInPlatformRequestV0(properties) {
|
|
36229
|
+
if (properties)
|
|
36230
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36231
|
+
if (properties[keys[i]] != null)
|
|
36232
|
+
this[keys[i]] = properties[keys[i]];
|
|
36233
|
+
}
|
|
36234
|
+
|
|
36235
|
+
/**
|
|
36236
|
+
* GetTotalCreditsInPlatformRequestV0 prove.
|
|
36237
|
+
* @member {boolean} prove
|
|
36238
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36239
|
+
* @instance
|
|
36240
|
+
*/
|
|
36241
|
+
GetTotalCreditsInPlatformRequestV0.prototype.prove = false;
|
|
36242
|
+
|
|
36243
|
+
/**
|
|
36244
|
+
* Creates a new GetTotalCreditsInPlatformRequestV0 instance using the specified properties.
|
|
36245
|
+
* @function create
|
|
36246
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36247
|
+
* @static
|
|
36248
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.IGetTotalCreditsInPlatformRequestV0=} [properties] Properties to set
|
|
36249
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0} GetTotalCreditsInPlatformRequestV0 instance
|
|
36250
|
+
*/
|
|
36251
|
+
GetTotalCreditsInPlatformRequestV0.create = function create(properties) {
|
|
36252
|
+
return new GetTotalCreditsInPlatformRequestV0(properties);
|
|
36253
|
+
};
|
|
36254
|
+
|
|
36255
|
+
/**
|
|
36256
|
+
* Encodes the specified GetTotalCreditsInPlatformRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.verify|verify} messages.
|
|
36257
|
+
* @function encode
|
|
36258
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36259
|
+
* @static
|
|
36260
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.IGetTotalCreditsInPlatformRequestV0} message GetTotalCreditsInPlatformRequestV0 message or plain object to encode
|
|
36261
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36262
|
+
* @returns {$protobuf.Writer} Writer
|
|
36263
|
+
*/
|
|
36264
|
+
GetTotalCreditsInPlatformRequestV0.encode = function encode(message, writer) {
|
|
36265
|
+
if (!writer)
|
|
36266
|
+
writer = $Writer.create();
|
|
36267
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
36268
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
|
|
36269
|
+
return writer;
|
|
36270
|
+
};
|
|
36271
|
+
|
|
36272
|
+
/**
|
|
36273
|
+
* Encodes the specified GetTotalCreditsInPlatformRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0.verify|verify} messages.
|
|
36274
|
+
* @function encodeDelimited
|
|
36275
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36276
|
+
* @static
|
|
36277
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.IGetTotalCreditsInPlatformRequestV0} message GetTotalCreditsInPlatformRequestV0 message or plain object to encode
|
|
36278
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36279
|
+
* @returns {$protobuf.Writer} Writer
|
|
36280
|
+
*/
|
|
36281
|
+
GetTotalCreditsInPlatformRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36282
|
+
return this.encode(message, writer).ldelim();
|
|
36283
|
+
};
|
|
36284
|
+
|
|
36285
|
+
/**
|
|
36286
|
+
* Decodes a GetTotalCreditsInPlatformRequestV0 message from the specified reader or buffer.
|
|
36287
|
+
* @function decode
|
|
36288
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36289
|
+
* @static
|
|
36290
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36291
|
+
* @param {number} [length] Message length if known beforehand
|
|
36292
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0} GetTotalCreditsInPlatformRequestV0
|
|
36293
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36294
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36295
|
+
*/
|
|
36296
|
+
GetTotalCreditsInPlatformRequestV0.decode = function decode(reader, length) {
|
|
36297
|
+
if (!(reader instanceof $Reader))
|
|
36298
|
+
reader = $Reader.create(reader);
|
|
36299
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0();
|
|
36300
|
+
while (reader.pos < end) {
|
|
36301
|
+
var tag = reader.uint32();
|
|
36302
|
+
switch (tag >>> 3) {
|
|
36303
|
+
case 1:
|
|
36304
|
+
message.prove = reader.bool();
|
|
36305
|
+
break;
|
|
36306
|
+
default:
|
|
36307
|
+
reader.skipType(tag & 7);
|
|
36308
|
+
break;
|
|
36309
|
+
}
|
|
36310
|
+
}
|
|
36311
|
+
return message;
|
|
36312
|
+
};
|
|
36313
|
+
|
|
36314
|
+
/**
|
|
36315
|
+
* Decodes a GetTotalCreditsInPlatformRequestV0 message from the specified reader or buffer, length delimited.
|
|
36316
|
+
* @function decodeDelimited
|
|
36317
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36318
|
+
* @static
|
|
36319
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36320
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0} GetTotalCreditsInPlatformRequestV0
|
|
36321
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36322
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36323
|
+
*/
|
|
36324
|
+
GetTotalCreditsInPlatformRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
36325
|
+
if (!(reader instanceof $Reader))
|
|
36326
|
+
reader = new $Reader(reader);
|
|
36327
|
+
return this.decode(reader, reader.uint32());
|
|
36328
|
+
};
|
|
36329
|
+
|
|
36330
|
+
/**
|
|
36331
|
+
* Verifies a GetTotalCreditsInPlatformRequestV0 message.
|
|
36332
|
+
* @function verify
|
|
36333
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36334
|
+
* @static
|
|
36335
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36336
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36337
|
+
*/
|
|
36338
|
+
GetTotalCreditsInPlatformRequestV0.verify = function verify(message) {
|
|
36339
|
+
if (typeof message !== "object" || message === null)
|
|
36340
|
+
return "object expected";
|
|
36341
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
36342
|
+
if (typeof message.prove !== "boolean")
|
|
36343
|
+
return "prove: boolean expected";
|
|
36344
|
+
return null;
|
|
36345
|
+
};
|
|
36346
|
+
|
|
36347
|
+
/**
|
|
36348
|
+
* Creates a GetTotalCreditsInPlatformRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
36349
|
+
* @function fromObject
|
|
36350
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36351
|
+
* @static
|
|
36352
|
+
* @param {Object.<string,*>} object Plain object
|
|
36353
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0} GetTotalCreditsInPlatformRequestV0
|
|
36354
|
+
*/
|
|
36355
|
+
GetTotalCreditsInPlatformRequestV0.fromObject = function fromObject(object) {
|
|
36356
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0)
|
|
36357
|
+
return object;
|
|
36358
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0();
|
|
36359
|
+
if (object.prove != null)
|
|
36360
|
+
message.prove = Boolean(object.prove);
|
|
36361
|
+
return message;
|
|
36362
|
+
};
|
|
36363
|
+
|
|
36364
|
+
/**
|
|
36365
|
+
* Creates a plain object from a GetTotalCreditsInPlatformRequestV0 message. Also converts values to other types if specified.
|
|
36366
|
+
* @function toObject
|
|
36367
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36368
|
+
* @static
|
|
36369
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0} message GetTotalCreditsInPlatformRequestV0
|
|
36370
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36371
|
+
* @returns {Object.<string,*>} Plain object
|
|
36372
|
+
*/
|
|
36373
|
+
GetTotalCreditsInPlatformRequestV0.toObject = function toObject(message, options) {
|
|
36374
|
+
if (!options)
|
|
36375
|
+
options = {};
|
|
36376
|
+
var object = {};
|
|
36377
|
+
if (options.defaults)
|
|
36378
|
+
object.prove = false;
|
|
36379
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
36380
|
+
object.prove = message.prove;
|
|
36381
|
+
return object;
|
|
36382
|
+
};
|
|
36383
|
+
|
|
36384
|
+
/**
|
|
36385
|
+
* Converts this GetTotalCreditsInPlatformRequestV0 to JSON.
|
|
36386
|
+
* @function toJSON
|
|
36387
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0
|
|
36388
|
+
* @instance
|
|
36389
|
+
* @returns {Object.<string,*>} JSON object
|
|
36390
|
+
*/
|
|
36391
|
+
GetTotalCreditsInPlatformRequestV0.prototype.toJSON = function toJSON() {
|
|
36392
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36393
|
+
};
|
|
36394
|
+
|
|
36395
|
+
return GetTotalCreditsInPlatformRequestV0;
|
|
36396
|
+
})();
|
|
36397
|
+
|
|
36398
|
+
return GetTotalCreditsInPlatformRequest;
|
|
36399
|
+
})();
|
|
36400
|
+
|
|
36401
|
+
v0.GetTotalCreditsInPlatformResponse = (function() {
|
|
36402
|
+
|
|
36403
|
+
/**
|
|
36404
|
+
* Properties of a GetTotalCreditsInPlatformResponse.
|
|
36405
|
+
* @memberof org.dash.platform.dapi.v0
|
|
36406
|
+
* @interface IGetTotalCreditsInPlatformResponse
|
|
36407
|
+
* @property {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.IGetTotalCreditsInPlatformResponseV0|null} [v0] GetTotalCreditsInPlatformResponse v0
|
|
36408
|
+
*/
|
|
36409
|
+
|
|
36410
|
+
/**
|
|
36411
|
+
* Constructs a new GetTotalCreditsInPlatformResponse.
|
|
36412
|
+
* @memberof org.dash.platform.dapi.v0
|
|
36413
|
+
* @classdesc Represents a GetTotalCreditsInPlatformResponse.
|
|
36414
|
+
* @implements IGetTotalCreditsInPlatformResponse
|
|
36415
|
+
* @constructor
|
|
36416
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformResponse=} [properties] Properties to set
|
|
36417
|
+
*/
|
|
36418
|
+
function GetTotalCreditsInPlatformResponse(properties) {
|
|
36419
|
+
if (properties)
|
|
36420
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36421
|
+
if (properties[keys[i]] != null)
|
|
36422
|
+
this[keys[i]] = properties[keys[i]];
|
|
36423
|
+
}
|
|
36424
|
+
|
|
36425
|
+
/**
|
|
36426
|
+
* GetTotalCreditsInPlatformResponse v0.
|
|
36427
|
+
* @member {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.IGetTotalCreditsInPlatformResponseV0|null|undefined} v0
|
|
36428
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36429
|
+
* @instance
|
|
36430
|
+
*/
|
|
36431
|
+
GetTotalCreditsInPlatformResponse.prototype.v0 = null;
|
|
36432
|
+
|
|
36433
|
+
// OneOf field names bound to virtual getters and setters
|
|
36434
|
+
var $oneOfFields;
|
|
36435
|
+
|
|
36436
|
+
/**
|
|
36437
|
+
* GetTotalCreditsInPlatformResponse version.
|
|
36438
|
+
* @member {"v0"|undefined} version
|
|
36439
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36440
|
+
* @instance
|
|
36441
|
+
*/
|
|
36442
|
+
Object.defineProperty(GetTotalCreditsInPlatformResponse.prototype, "version", {
|
|
36443
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
36444
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
36445
|
+
});
|
|
36446
|
+
|
|
36447
|
+
/**
|
|
36448
|
+
* Creates a new GetTotalCreditsInPlatformResponse instance using the specified properties.
|
|
36449
|
+
* @function create
|
|
36450
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36451
|
+
* @static
|
|
36452
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformResponse=} [properties] Properties to set
|
|
36453
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse} GetTotalCreditsInPlatformResponse instance
|
|
36454
|
+
*/
|
|
36455
|
+
GetTotalCreditsInPlatformResponse.create = function create(properties) {
|
|
36456
|
+
return new GetTotalCreditsInPlatformResponse(properties);
|
|
36457
|
+
};
|
|
36458
|
+
|
|
36459
|
+
/**
|
|
36460
|
+
* Encodes the specified GetTotalCreditsInPlatformResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.verify|verify} messages.
|
|
36461
|
+
* @function encode
|
|
36462
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36463
|
+
* @static
|
|
36464
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformResponse} message GetTotalCreditsInPlatformResponse message or plain object to encode
|
|
36465
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36466
|
+
* @returns {$protobuf.Writer} Writer
|
|
36467
|
+
*/
|
|
36468
|
+
GetTotalCreditsInPlatformResponse.encode = function encode(message, writer) {
|
|
36469
|
+
if (!writer)
|
|
36470
|
+
writer = $Writer.create();
|
|
36471
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
36472
|
+
$root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
36473
|
+
return writer;
|
|
36474
|
+
};
|
|
36475
|
+
|
|
36476
|
+
/**
|
|
36477
|
+
* Encodes the specified GetTotalCreditsInPlatformResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.verify|verify} messages.
|
|
36478
|
+
* @function encodeDelimited
|
|
36479
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36480
|
+
* @static
|
|
36481
|
+
* @param {org.dash.platform.dapi.v0.IGetTotalCreditsInPlatformResponse} message GetTotalCreditsInPlatformResponse message or plain object to encode
|
|
36482
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36483
|
+
* @returns {$protobuf.Writer} Writer
|
|
36484
|
+
*/
|
|
36485
|
+
GetTotalCreditsInPlatformResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36486
|
+
return this.encode(message, writer).ldelim();
|
|
36487
|
+
};
|
|
36488
|
+
|
|
36489
|
+
/**
|
|
36490
|
+
* Decodes a GetTotalCreditsInPlatformResponse message from the specified reader or buffer.
|
|
36491
|
+
* @function decode
|
|
36492
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36493
|
+
* @static
|
|
36494
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36495
|
+
* @param {number} [length] Message length if known beforehand
|
|
36496
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse} GetTotalCreditsInPlatformResponse
|
|
36497
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36498
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36499
|
+
*/
|
|
36500
|
+
GetTotalCreditsInPlatformResponse.decode = function decode(reader, length) {
|
|
36501
|
+
if (!(reader instanceof $Reader))
|
|
36502
|
+
reader = $Reader.create(reader);
|
|
36503
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse();
|
|
36504
|
+
while (reader.pos < end) {
|
|
36505
|
+
var tag = reader.uint32();
|
|
36506
|
+
switch (tag >>> 3) {
|
|
36507
|
+
case 1:
|
|
36508
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.decode(reader, reader.uint32());
|
|
36509
|
+
break;
|
|
36510
|
+
default:
|
|
36511
|
+
reader.skipType(tag & 7);
|
|
36512
|
+
break;
|
|
36513
|
+
}
|
|
36514
|
+
}
|
|
36515
|
+
return message;
|
|
36516
|
+
};
|
|
36517
|
+
|
|
36518
|
+
/**
|
|
36519
|
+
* Decodes a GetTotalCreditsInPlatformResponse message from the specified reader or buffer, length delimited.
|
|
36520
|
+
* @function decodeDelimited
|
|
36521
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36522
|
+
* @static
|
|
36523
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36524
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse} GetTotalCreditsInPlatformResponse
|
|
36525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36527
|
+
*/
|
|
36528
|
+
GetTotalCreditsInPlatformResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
36529
|
+
if (!(reader instanceof $Reader))
|
|
36530
|
+
reader = new $Reader(reader);
|
|
36531
|
+
return this.decode(reader, reader.uint32());
|
|
36532
|
+
};
|
|
36533
|
+
|
|
36534
|
+
/**
|
|
36535
|
+
* Verifies a GetTotalCreditsInPlatformResponse message.
|
|
36536
|
+
* @function verify
|
|
36537
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36538
|
+
* @static
|
|
36539
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36540
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36541
|
+
*/
|
|
36542
|
+
GetTotalCreditsInPlatformResponse.verify = function verify(message) {
|
|
36543
|
+
if (typeof message !== "object" || message === null)
|
|
36544
|
+
return "object expected";
|
|
36545
|
+
var properties = {};
|
|
36546
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
36547
|
+
properties.version = 1;
|
|
36548
|
+
{
|
|
36549
|
+
var error = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.verify(message.v0);
|
|
36550
|
+
if (error)
|
|
36551
|
+
return "v0." + error;
|
|
36552
|
+
}
|
|
36553
|
+
}
|
|
36554
|
+
return null;
|
|
36555
|
+
};
|
|
36556
|
+
|
|
36557
|
+
/**
|
|
36558
|
+
* Creates a GetTotalCreditsInPlatformResponse message from a plain object. Also converts values to their respective internal types.
|
|
36559
|
+
* @function fromObject
|
|
36560
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36561
|
+
* @static
|
|
36562
|
+
* @param {Object.<string,*>} object Plain object
|
|
36563
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse} GetTotalCreditsInPlatformResponse
|
|
36564
|
+
*/
|
|
36565
|
+
GetTotalCreditsInPlatformResponse.fromObject = function fromObject(object) {
|
|
36566
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse)
|
|
36567
|
+
return object;
|
|
36568
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse();
|
|
36569
|
+
if (object.v0 != null) {
|
|
36570
|
+
if (typeof object.v0 !== "object")
|
|
36571
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.v0: object expected");
|
|
36572
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.fromObject(object.v0);
|
|
36573
|
+
}
|
|
36574
|
+
return message;
|
|
36575
|
+
};
|
|
36576
|
+
|
|
36577
|
+
/**
|
|
36578
|
+
* Creates a plain object from a GetTotalCreditsInPlatformResponse message. Also converts values to other types if specified.
|
|
36579
|
+
* @function toObject
|
|
36580
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36581
|
+
* @static
|
|
36582
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse} message GetTotalCreditsInPlatformResponse
|
|
36583
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36584
|
+
* @returns {Object.<string,*>} Plain object
|
|
36585
|
+
*/
|
|
36586
|
+
GetTotalCreditsInPlatformResponse.toObject = function toObject(message, options) {
|
|
36587
|
+
if (!options)
|
|
36588
|
+
options = {};
|
|
36589
|
+
var object = {};
|
|
36590
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
36591
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.toObject(message.v0, options);
|
|
36592
|
+
if (options.oneofs)
|
|
36593
|
+
object.version = "v0";
|
|
36594
|
+
}
|
|
36595
|
+
return object;
|
|
36596
|
+
};
|
|
36597
|
+
|
|
36598
|
+
/**
|
|
36599
|
+
* Converts this GetTotalCreditsInPlatformResponse to JSON.
|
|
36600
|
+
* @function toJSON
|
|
36601
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36602
|
+
* @instance
|
|
36603
|
+
* @returns {Object.<string,*>} JSON object
|
|
36604
|
+
*/
|
|
36605
|
+
GetTotalCreditsInPlatformResponse.prototype.toJSON = function toJSON() {
|
|
36606
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36607
|
+
};
|
|
36608
|
+
|
|
36609
|
+
GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0 = (function() {
|
|
36610
|
+
|
|
36611
|
+
/**
|
|
36612
|
+
* Properties of a GetTotalCreditsInPlatformResponseV0.
|
|
36613
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36614
|
+
* @interface IGetTotalCreditsInPlatformResponseV0
|
|
36615
|
+
* @property {number|Long|null} [credits] GetTotalCreditsInPlatformResponseV0 credits
|
|
36616
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTotalCreditsInPlatformResponseV0 proof
|
|
36617
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTotalCreditsInPlatformResponseV0 metadata
|
|
36618
|
+
*/
|
|
36619
|
+
|
|
36620
|
+
/**
|
|
36621
|
+
* Constructs a new GetTotalCreditsInPlatformResponseV0.
|
|
36622
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse
|
|
36623
|
+
* @classdesc Represents a GetTotalCreditsInPlatformResponseV0.
|
|
36624
|
+
* @implements IGetTotalCreditsInPlatformResponseV0
|
|
36625
|
+
* @constructor
|
|
36626
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.IGetTotalCreditsInPlatformResponseV0=} [properties] Properties to set
|
|
36627
|
+
*/
|
|
36628
|
+
function GetTotalCreditsInPlatformResponseV0(properties) {
|
|
36629
|
+
if (properties)
|
|
36630
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36631
|
+
if (properties[keys[i]] != null)
|
|
36632
|
+
this[keys[i]] = properties[keys[i]];
|
|
36633
|
+
}
|
|
36634
|
+
|
|
36635
|
+
/**
|
|
36636
|
+
* GetTotalCreditsInPlatformResponseV0 credits.
|
|
36637
|
+
* @member {number|Long} credits
|
|
36638
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36639
|
+
* @instance
|
|
36640
|
+
*/
|
|
36641
|
+
GetTotalCreditsInPlatformResponseV0.prototype.credits = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
36642
|
+
|
|
36643
|
+
/**
|
|
36644
|
+
* GetTotalCreditsInPlatformResponseV0 proof.
|
|
36645
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
36646
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36647
|
+
* @instance
|
|
36648
|
+
*/
|
|
36649
|
+
GetTotalCreditsInPlatformResponseV0.prototype.proof = null;
|
|
36650
|
+
|
|
36651
|
+
/**
|
|
36652
|
+
* GetTotalCreditsInPlatformResponseV0 metadata.
|
|
36653
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
36654
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36655
|
+
* @instance
|
|
36656
|
+
*/
|
|
36657
|
+
GetTotalCreditsInPlatformResponseV0.prototype.metadata = null;
|
|
36658
|
+
|
|
36659
|
+
// OneOf field names bound to virtual getters and setters
|
|
36660
|
+
var $oneOfFields;
|
|
36661
|
+
|
|
36662
|
+
/**
|
|
36663
|
+
* GetTotalCreditsInPlatformResponseV0 result.
|
|
36664
|
+
* @member {"credits"|"proof"|undefined} result
|
|
36665
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36666
|
+
* @instance
|
|
36667
|
+
*/
|
|
36668
|
+
Object.defineProperty(GetTotalCreditsInPlatformResponseV0.prototype, "result", {
|
|
36669
|
+
get: $util.oneOfGetter($oneOfFields = ["credits", "proof"]),
|
|
36670
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
36671
|
+
});
|
|
36672
|
+
|
|
36673
|
+
/**
|
|
36674
|
+
* Creates a new GetTotalCreditsInPlatformResponseV0 instance using the specified properties.
|
|
36675
|
+
* @function create
|
|
36676
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36677
|
+
* @static
|
|
36678
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.IGetTotalCreditsInPlatformResponseV0=} [properties] Properties to set
|
|
36679
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0} GetTotalCreditsInPlatformResponseV0 instance
|
|
36680
|
+
*/
|
|
36681
|
+
GetTotalCreditsInPlatformResponseV0.create = function create(properties) {
|
|
36682
|
+
return new GetTotalCreditsInPlatformResponseV0(properties);
|
|
36683
|
+
};
|
|
36684
|
+
|
|
36685
|
+
/**
|
|
36686
|
+
* Encodes the specified GetTotalCreditsInPlatformResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.verify|verify} messages.
|
|
36687
|
+
* @function encode
|
|
36688
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36689
|
+
* @static
|
|
36690
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.IGetTotalCreditsInPlatformResponseV0} message GetTotalCreditsInPlatformResponseV0 message or plain object to encode
|
|
36691
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36692
|
+
* @returns {$protobuf.Writer} Writer
|
|
36693
|
+
*/
|
|
36694
|
+
GetTotalCreditsInPlatformResponseV0.encode = function encode(message, writer) {
|
|
36695
|
+
if (!writer)
|
|
36696
|
+
writer = $Writer.create();
|
|
36697
|
+
if (message.credits != null && Object.hasOwnProperty.call(message, "credits"))
|
|
36698
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.credits);
|
|
36699
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
36700
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
36701
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
36702
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
36703
|
+
return writer;
|
|
36704
|
+
};
|
|
36705
|
+
|
|
36706
|
+
/**
|
|
36707
|
+
* Encodes the specified GetTotalCreditsInPlatformResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.verify|verify} messages.
|
|
36708
|
+
* @function encodeDelimited
|
|
36709
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36710
|
+
* @static
|
|
36711
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.IGetTotalCreditsInPlatformResponseV0} message GetTotalCreditsInPlatformResponseV0 message or plain object to encode
|
|
36712
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36713
|
+
* @returns {$protobuf.Writer} Writer
|
|
36714
|
+
*/
|
|
36715
|
+
GetTotalCreditsInPlatformResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36716
|
+
return this.encode(message, writer).ldelim();
|
|
36717
|
+
};
|
|
36718
|
+
|
|
36719
|
+
/**
|
|
36720
|
+
* Decodes a GetTotalCreditsInPlatformResponseV0 message from the specified reader or buffer.
|
|
36721
|
+
* @function decode
|
|
36722
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36723
|
+
* @static
|
|
36724
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36725
|
+
* @param {number} [length] Message length if known beforehand
|
|
36726
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0} GetTotalCreditsInPlatformResponseV0
|
|
36727
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36728
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36729
|
+
*/
|
|
36730
|
+
GetTotalCreditsInPlatformResponseV0.decode = function decode(reader, length) {
|
|
36731
|
+
if (!(reader instanceof $Reader))
|
|
36732
|
+
reader = $Reader.create(reader);
|
|
36733
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0();
|
|
36734
|
+
while (reader.pos < end) {
|
|
36735
|
+
var tag = reader.uint32();
|
|
36736
|
+
switch (tag >>> 3) {
|
|
36737
|
+
case 1:
|
|
36738
|
+
message.credits = reader.uint64();
|
|
36739
|
+
break;
|
|
36740
|
+
case 2:
|
|
36741
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
36742
|
+
break;
|
|
36743
|
+
case 3:
|
|
36744
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
36745
|
+
break;
|
|
36746
|
+
default:
|
|
36747
|
+
reader.skipType(tag & 7);
|
|
36748
|
+
break;
|
|
36749
|
+
}
|
|
36750
|
+
}
|
|
36751
|
+
return message;
|
|
36752
|
+
};
|
|
36753
|
+
|
|
36754
|
+
/**
|
|
36755
|
+
* Decodes a GetTotalCreditsInPlatformResponseV0 message from the specified reader or buffer, length delimited.
|
|
36756
|
+
* @function decodeDelimited
|
|
36757
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36758
|
+
* @static
|
|
36759
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36760
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0} GetTotalCreditsInPlatformResponseV0
|
|
36761
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36762
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36763
|
+
*/
|
|
36764
|
+
GetTotalCreditsInPlatformResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
36765
|
+
if (!(reader instanceof $Reader))
|
|
36766
|
+
reader = new $Reader(reader);
|
|
36767
|
+
return this.decode(reader, reader.uint32());
|
|
36768
|
+
};
|
|
36769
|
+
|
|
36770
|
+
/**
|
|
36771
|
+
* Verifies a GetTotalCreditsInPlatformResponseV0 message.
|
|
36772
|
+
* @function verify
|
|
36773
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36774
|
+
* @static
|
|
36775
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36776
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36777
|
+
*/
|
|
36778
|
+
GetTotalCreditsInPlatformResponseV0.verify = function verify(message) {
|
|
36779
|
+
if (typeof message !== "object" || message === null)
|
|
36780
|
+
return "object expected";
|
|
36781
|
+
var properties = {};
|
|
36782
|
+
if (message.credits != null && message.hasOwnProperty("credits")) {
|
|
36783
|
+
properties.result = 1;
|
|
36784
|
+
if (!$util.isInteger(message.credits) && !(message.credits && $util.isInteger(message.credits.low) && $util.isInteger(message.credits.high)))
|
|
36785
|
+
return "credits: integer|Long expected";
|
|
36786
|
+
}
|
|
36787
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
36788
|
+
if (properties.result === 1)
|
|
36789
|
+
return "result: multiple values";
|
|
36790
|
+
properties.result = 1;
|
|
36791
|
+
{
|
|
36792
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
36793
|
+
if (error)
|
|
36794
|
+
return "proof." + error;
|
|
36795
|
+
}
|
|
36796
|
+
}
|
|
36797
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
36798
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
36799
|
+
if (error)
|
|
36800
|
+
return "metadata." + error;
|
|
36801
|
+
}
|
|
36802
|
+
return null;
|
|
36803
|
+
};
|
|
36804
|
+
|
|
36805
|
+
/**
|
|
36806
|
+
* Creates a GetTotalCreditsInPlatformResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
36807
|
+
* @function fromObject
|
|
36808
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36809
|
+
* @static
|
|
36810
|
+
* @param {Object.<string,*>} object Plain object
|
|
36811
|
+
* @returns {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0} GetTotalCreditsInPlatformResponseV0
|
|
36812
|
+
*/
|
|
36813
|
+
GetTotalCreditsInPlatformResponseV0.fromObject = function fromObject(object) {
|
|
36814
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0)
|
|
36815
|
+
return object;
|
|
36816
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0();
|
|
36817
|
+
if (object.credits != null)
|
|
36818
|
+
if ($util.Long)
|
|
36819
|
+
(message.credits = $util.Long.fromValue(object.credits)).unsigned = true;
|
|
36820
|
+
else if (typeof object.credits === "string")
|
|
36821
|
+
message.credits = parseInt(object.credits, 10);
|
|
36822
|
+
else if (typeof object.credits === "number")
|
|
36823
|
+
message.credits = object.credits;
|
|
36824
|
+
else if (typeof object.credits === "object")
|
|
36825
|
+
message.credits = new $util.LongBits(object.credits.low >>> 0, object.credits.high >>> 0).toNumber(true);
|
|
36826
|
+
if (object.proof != null) {
|
|
36827
|
+
if (typeof object.proof !== "object")
|
|
36828
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.proof: object expected");
|
|
36829
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
36830
|
+
}
|
|
36831
|
+
if (object.metadata != null) {
|
|
36832
|
+
if (typeof object.metadata !== "object")
|
|
36833
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0.metadata: object expected");
|
|
36834
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
36835
|
+
}
|
|
36836
|
+
return message;
|
|
36837
|
+
};
|
|
36838
|
+
|
|
36839
|
+
/**
|
|
36840
|
+
* Creates a plain object from a GetTotalCreditsInPlatformResponseV0 message. Also converts values to other types if specified.
|
|
36841
|
+
* @function toObject
|
|
36842
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36843
|
+
* @static
|
|
36844
|
+
* @param {org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0} message GetTotalCreditsInPlatformResponseV0
|
|
36845
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36846
|
+
* @returns {Object.<string,*>} Plain object
|
|
36847
|
+
*/
|
|
36848
|
+
GetTotalCreditsInPlatformResponseV0.toObject = function toObject(message, options) {
|
|
36849
|
+
if (!options)
|
|
36850
|
+
options = {};
|
|
36851
|
+
var object = {};
|
|
36852
|
+
if (options.defaults)
|
|
36853
|
+
object.metadata = null;
|
|
36854
|
+
if (message.credits != null && message.hasOwnProperty("credits")) {
|
|
36855
|
+
if (typeof message.credits === "number")
|
|
36856
|
+
object.credits = options.longs === String ? String(message.credits) : message.credits;
|
|
36857
|
+
else
|
|
36858
|
+
object.credits = options.longs === String ? $util.Long.prototype.toString.call(message.credits) : options.longs === Number ? new $util.LongBits(message.credits.low >>> 0, message.credits.high >>> 0).toNumber(true) : message.credits;
|
|
36859
|
+
if (options.oneofs)
|
|
36860
|
+
object.result = "credits";
|
|
36861
|
+
}
|
|
36862
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
36863
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
36864
|
+
if (options.oneofs)
|
|
36865
|
+
object.result = "proof";
|
|
36866
|
+
}
|
|
36867
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
36868
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
36869
|
+
return object;
|
|
36870
|
+
};
|
|
36871
|
+
|
|
36872
|
+
/**
|
|
36873
|
+
* Converts this GetTotalCreditsInPlatformResponseV0 to JSON.
|
|
36874
|
+
* @function toJSON
|
|
36875
|
+
* @memberof org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0
|
|
36876
|
+
* @instance
|
|
36877
|
+
* @returns {Object.<string,*>} JSON object
|
|
36878
|
+
*/
|
|
36879
|
+
GetTotalCreditsInPlatformResponseV0.prototype.toJSON = function toJSON() {
|
|
36880
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36881
|
+
};
|
|
36882
|
+
|
|
36883
|
+
return GetTotalCreditsInPlatformResponseV0;
|
|
36884
|
+
})();
|
|
36885
|
+
|
|
36886
|
+
return GetTotalCreditsInPlatformResponse;
|
|
36887
|
+
})();
|
|
36888
|
+
|
|
35970
36889
|
v0.GetPathElementsRequest = (function() {
|
|
35971
36890
|
|
|
35972
36891
|
/**
|