@dashevo/dapi-grpc 3.0.0-dev.9 → 3.0.0-rc.2
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/clients/drive/v0/nodejs/drive_pbjs.js +734 -7
- package/clients/platform/v0/nodejs/platform_pbjs.js +734 -7
- package/clients/platform/v0/nodejs/platform_protoc.js +678 -12
- package/clients/platform/v0/web/platform_pb.d.ts +91 -4
- package/clients/platform/v0/web/platform_pb.js +678 -12
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +26 -1
- package/src/drive/client/org.dash.platform.dapi.v0.rs +49 -1
- package/src/drive/wasm/org.dash.platform.dapi.v0.rs +49 -1
- package/src/platform/client/org.dash.platform.dapi.v0.rs +49 -1
- package/src/platform/wasm/org.dash.platform.dapi.v0.rs +49 -1
|
@@ -79998,6 +79998,733 @@ $root.org = (function() {
|
|
|
79998
79998
|
return GetRecentAddressBalanceChangesResponse;
|
|
79999
79999
|
})();
|
|
80000
80000
|
|
|
80001
|
+
v0.BlockHeightCreditEntry = (function() {
|
|
80002
|
+
|
|
80003
|
+
/**
|
|
80004
|
+
* Properties of a BlockHeightCreditEntry.
|
|
80005
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80006
|
+
* @interface IBlockHeightCreditEntry
|
|
80007
|
+
* @property {number|Long|null} [blockHeight] BlockHeightCreditEntry blockHeight
|
|
80008
|
+
* @property {number|Long|null} [credits] BlockHeightCreditEntry credits
|
|
80009
|
+
*/
|
|
80010
|
+
|
|
80011
|
+
/**
|
|
80012
|
+
* Constructs a new BlockHeightCreditEntry.
|
|
80013
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80014
|
+
* @classdesc Represents a BlockHeightCreditEntry.
|
|
80015
|
+
* @implements IBlockHeightCreditEntry
|
|
80016
|
+
* @constructor
|
|
80017
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry=} [properties] Properties to set
|
|
80018
|
+
*/
|
|
80019
|
+
function BlockHeightCreditEntry(properties) {
|
|
80020
|
+
if (properties)
|
|
80021
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80022
|
+
if (properties[keys[i]] != null)
|
|
80023
|
+
this[keys[i]] = properties[keys[i]];
|
|
80024
|
+
}
|
|
80025
|
+
|
|
80026
|
+
/**
|
|
80027
|
+
* BlockHeightCreditEntry blockHeight.
|
|
80028
|
+
* @member {number|Long} blockHeight
|
|
80029
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80030
|
+
* @instance
|
|
80031
|
+
*/
|
|
80032
|
+
BlockHeightCreditEntry.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80033
|
+
|
|
80034
|
+
/**
|
|
80035
|
+
* BlockHeightCreditEntry credits.
|
|
80036
|
+
* @member {number|Long} credits
|
|
80037
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80038
|
+
* @instance
|
|
80039
|
+
*/
|
|
80040
|
+
BlockHeightCreditEntry.prototype.credits = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80041
|
+
|
|
80042
|
+
/**
|
|
80043
|
+
* Creates a new BlockHeightCreditEntry instance using the specified properties.
|
|
80044
|
+
* @function create
|
|
80045
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80046
|
+
* @static
|
|
80047
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry=} [properties] Properties to set
|
|
80048
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry instance
|
|
80049
|
+
*/
|
|
80050
|
+
BlockHeightCreditEntry.create = function create(properties) {
|
|
80051
|
+
return new BlockHeightCreditEntry(properties);
|
|
80052
|
+
};
|
|
80053
|
+
|
|
80054
|
+
/**
|
|
80055
|
+
* Encodes the specified BlockHeightCreditEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.BlockHeightCreditEntry.verify|verify} messages.
|
|
80056
|
+
* @function encode
|
|
80057
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80058
|
+
* @static
|
|
80059
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry} message BlockHeightCreditEntry message or plain object to encode
|
|
80060
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80061
|
+
* @returns {$protobuf.Writer} Writer
|
|
80062
|
+
*/
|
|
80063
|
+
BlockHeightCreditEntry.encode = function encode(message, writer) {
|
|
80064
|
+
if (!writer)
|
|
80065
|
+
writer = $Writer.create();
|
|
80066
|
+
if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight"))
|
|
80067
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.blockHeight);
|
|
80068
|
+
if (message.credits != null && Object.hasOwnProperty.call(message, "credits"))
|
|
80069
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.credits);
|
|
80070
|
+
return writer;
|
|
80071
|
+
};
|
|
80072
|
+
|
|
80073
|
+
/**
|
|
80074
|
+
* Encodes the specified BlockHeightCreditEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BlockHeightCreditEntry.verify|verify} messages.
|
|
80075
|
+
* @function encodeDelimited
|
|
80076
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80077
|
+
* @static
|
|
80078
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry} message BlockHeightCreditEntry message or plain object to encode
|
|
80079
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80080
|
+
* @returns {$protobuf.Writer} Writer
|
|
80081
|
+
*/
|
|
80082
|
+
BlockHeightCreditEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80083
|
+
return this.encode(message, writer).ldelim();
|
|
80084
|
+
};
|
|
80085
|
+
|
|
80086
|
+
/**
|
|
80087
|
+
* Decodes a BlockHeightCreditEntry message from the specified reader or buffer.
|
|
80088
|
+
* @function decode
|
|
80089
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80090
|
+
* @static
|
|
80091
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80092
|
+
* @param {number} [length] Message length if known beforehand
|
|
80093
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry
|
|
80094
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80095
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80096
|
+
*/
|
|
80097
|
+
BlockHeightCreditEntry.decode = function decode(reader, length) {
|
|
80098
|
+
if (!(reader instanceof $Reader))
|
|
80099
|
+
reader = $Reader.create(reader);
|
|
80100
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry();
|
|
80101
|
+
while (reader.pos < end) {
|
|
80102
|
+
var tag = reader.uint32();
|
|
80103
|
+
switch (tag >>> 3) {
|
|
80104
|
+
case 1:
|
|
80105
|
+
message.blockHeight = reader.uint64();
|
|
80106
|
+
break;
|
|
80107
|
+
case 2:
|
|
80108
|
+
message.credits = reader.uint64();
|
|
80109
|
+
break;
|
|
80110
|
+
default:
|
|
80111
|
+
reader.skipType(tag & 7);
|
|
80112
|
+
break;
|
|
80113
|
+
}
|
|
80114
|
+
}
|
|
80115
|
+
return message;
|
|
80116
|
+
};
|
|
80117
|
+
|
|
80118
|
+
/**
|
|
80119
|
+
* Decodes a BlockHeightCreditEntry message from the specified reader or buffer, length delimited.
|
|
80120
|
+
* @function decodeDelimited
|
|
80121
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80122
|
+
* @static
|
|
80123
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80124
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry
|
|
80125
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80126
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80127
|
+
*/
|
|
80128
|
+
BlockHeightCreditEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
80129
|
+
if (!(reader instanceof $Reader))
|
|
80130
|
+
reader = new $Reader(reader);
|
|
80131
|
+
return this.decode(reader, reader.uint32());
|
|
80132
|
+
};
|
|
80133
|
+
|
|
80134
|
+
/**
|
|
80135
|
+
* Verifies a BlockHeightCreditEntry message.
|
|
80136
|
+
* @function verify
|
|
80137
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80138
|
+
* @static
|
|
80139
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80140
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80141
|
+
*/
|
|
80142
|
+
BlockHeightCreditEntry.verify = function verify(message) {
|
|
80143
|
+
if (typeof message !== "object" || message === null)
|
|
80144
|
+
return "object expected";
|
|
80145
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
|
|
80146
|
+
if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high)))
|
|
80147
|
+
return "blockHeight: integer|Long expected";
|
|
80148
|
+
if (message.credits != null && message.hasOwnProperty("credits"))
|
|
80149
|
+
if (!$util.isInteger(message.credits) && !(message.credits && $util.isInteger(message.credits.low) && $util.isInteger(message.credits.high)))
|
|
80150
|
+
return "credits: integer|Long expected";
|
|
80151
|
+
return null;
|
|
80152
|
+
};
|
|
80153
|
+
|
|
80154
|
+
/**
|
|
80155
|
+
* Creates a BlockHeightCreditEntry message from a plain object. Also converts values to their respective internal types.
|
|
80156
|
+
* @function fromObject
|
|
80157
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80158
|
+
* @static
|
|
80159
|
+
* @param {Object.<string,*>} object Plain object
|
|
80160
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry
|
|
80161
|
+
*/
|
|
80162
|
+
BlockHeightCreditEntry.fromObject = function fromObject(object) {
|
|
80163
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry)
|
|
80164
|
+
return object;
|
|
80165
|
+
var message = new $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry();
|
|
80166
|
+
if (object.blockHeight != null)
|
|
80167
|
+
if ($util.Long)
|
|
80168
|
+
(message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true;
|
|
80169
|
+
else if (typeof object.blockHeight === "string")
|
|
80170
|
+
message.blockHeight = parseInt(object.blockHeight, 10);
|
|
80171
|
+
else if (typeof object.blockHeight === "number")
|
|
80172
|
+
message.blockHeight = object.blockHeight;
|
|
80173
|
+
else if (typeof object.blockHeight === "object")
|
|
80174
|
+
message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true);
|
|
80175
|
+
if (object.credits != null)
|
|
80176
|
+
if ($util.Long)
|
|
80177
|
+
(message.credits = $util.Long.fromValue(object.credits)).unsigned = true;
|
|
80178
|
+
else if (typeof object.credits === "string")
|
|
80179
|
+
message.credits = parseInt(object.credits, 10);
|
|
80180
|
+
else if (typeof object.credits === "number")
|
|
80181
|
+
message.credits = object.credits;
|
|
80182
|
+
else if (typeof object.credits === "object")
|
|
80183
|
+
message.credits = new $util.LongBits(object.credits.low >>> 0, object.credits.high >>> 0).toNumber(true);
|
|
80184
|
+
return message;
|
|
80185
|
+
};
|
|
80186
|
+
|
|
80187
|
+
/**
|
|
80188
|
+
* Creates a plain object from a BlockHeightCreditEntry message. Also converts values to other types if specified.
|
|
80189
|
+
* @function toObject
|
|
80190
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80191
|
+
* @static
|
|
80192
|
+
* @param {org.dash.platform.dapi.v0.BlockHeightCreditEntry} message BlockHeightCreditEntry
|
|
80193
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80194
|
+
* @returns {Object.<string,*>} Plain object
|
|
80195
|
+
*/
|
|
80196
|
+
BlockHeightCreditEntry.toObject = function toObject(message, options) {
|
|
80197
|
+
if (!options)
|
|
80198
|
+
options = {};
|
|
80199
|
+
var object = {};
|
|
80200
|
+
if (options.defaults) {
|
|
80201
|
+
if ($util.Long) {
|
|
80202
|
+
var long = new $util.Long(0, 0, true);
|
|
80203
|
+
object.blockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80204
|
+
} else
|
|
80205
|
+
object.blockHeight = options.longs === String ? "0" : 0;
|
|
80206
|
+
if ($util.Long) {
|
|
80207
|
+
var long = new $util.Long(0, 0, true);
|
|
80208
|
+
object.credits = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80209
|
+
} else
|
|
80210
|
+
object.credits = options.longs === String ? "0" : 0;
|
|
80211
|
+
}
|
|
80212
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
|
|
80213
|
+
if (typeof message.blockHeight === "number")
|
|
80214
|
+
object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight;
|
|
80215
|
+
else
|
|
80216
|
+
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;
|
|
80217
|
+
if (message.credits != null && message.hasOwnProperty("credits"))
|
|
80218
|
+
if (typeof message.credits === "number")
|
|
80219
|
+
object.credits = options.longs === String ? String(message.credits) : message.credits;
|
|
80220
|
+
else
|
|
80221
|
+
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;
|
|
80222
|
+
return object;
|
|
80223
|
+
};
|
|
80224
|
+
|
|
80225
|
+
/**
|
|
80226
|
+
* Converts this BlockHeightCreditEntry to JSON.
|
|
80227
|
+
* @function toJSON
|
|
80228
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80229
|
+
* @instance
|
|
80230
|
+
* @returns {Object.<string,*>} JSON object
|
|
80231
|
+
*/
|
|
80232
|
+
BlockHeightCreditEntry.prototype.toJSON = function toJSON() {
|
|
80233
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80234
|
+
};
|
|
80235
|
+
|
|
80236
|
+
return BlockHeightCreditEntry;
|
|
80237
|
+
})();
|
|
80238
|
+
|
|
80239
|
+
v0.CompactedAddressBalanceChange = (function() {
|
|
80240
|
+
|
|
80241
|
+
/**
|
|
80242
|
+
* Properties of a CompactedAddressBalanceChange.
|
|
80243
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80244
|
+
* @interface ICompactedAddressBalanceChange
|
|
80245
|
+
* @property {Uint8Array|null} [address] CompactedAddressBalanceChange address
|
|
80246
|
+
* @property {number|Long|null} [setCredits] CompactedAddressBalanceChange setCredits
|
|
80247
|
+
* @property {org.dash.platform.dapi.v0.IAddToCreditsOperations|null} [addToCreditsOperations] CompactedAddressBalanceChange addToCreditsOperations
|
|
80248
|
+
*/
|
|
80249
|
+
|
|
80250
|
+
/**
|
|
80251
|
+
* Constructs a new CompactedAddressBalanceChange.
|
|
80252
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80253
|
+
* @classdesc Represents a CompactedAddressBalanceChange.
|
|
80254
|
+
* @implements ICompactedAddressBalanceChange
|
|
80255
|
+
* @constructor
|
|
80256
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange=} [properties] Properties to set
|
|
80257
|
+
*/
|
|
80258
|
+
function CompactedAddressBalanceChange(properties) {
|
|
80259
|
+
if (properties)
|
|
80260
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80261
|
+
if (properties[keys[i]] != null)
|
|
80262
|
+
this[keys[i]] = properties[keys[i]];
|
|
80263
|
+
}
|
|
80264
|
+
|
|
80265
|
+
/**
|
|
80266
|
+
* CompactedAddressBalanceChange address.
|
|
80267
|
+
* @member {Uint8Array} address
|
|
80268
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80269
|
+
* @instance
|
|
80270
|
+
*/
|
|
80271
|
+
CompactedAddressBalanceChange.prototype.address = $util.newBuffer([]);
|
|
80272
|
+
|
|
80273
|
+
/**
|
|
80274
|
+
* CompactedAddressBalanceChange setCredits.
|
|
80275
|
+
* @member {number|Long} setCredits
|
|
80276
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80277
|
+
* @instance
|
|
80278
|
+
*/
|
|
80279
|
+
CompactedAddressBalanceChange.prototype.setCredits = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80280
|
+
|
|
80281
|
+
/**
|
|
80282
|
+
* CompactedAddressBalanceChange addToCreditsOperations.
|
|
80283
|
+
* @member {org.dash.platform.dapi.v0.IAddToCreditsOperations|null|undefined} addToCreditsOperations
|
|
80284
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80285
|
+
* @instance
|
|
80286
|
+
*/
|
|
80287
|
+
CompactedAddressBalanceChange.prototype.addToCreditsOperations = null;
|
|
80288
|
+
|
|
80289
|
+
// OneOf field names bound to virtual getters and setters
|
|
80290
|
+
var $oneOfFields;
|
|
80291
|
+
|
|
80292
|
+
/**
|
|
80293
|
+
* CompactedAddressBalanceChange operation.
|
|
80294
|
+
* @member {"setCredits"|"addToCreditsOperations"|undefined} operation
|
|
80295
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80296
|
+
* @instance
|
|
80297
|
+
*/
|
|
80298
|
+
Object.defineProperty(CompactedAddressBalanceChange.prototype, "operation", {
|
|
80299
|
+
get: $util.oneOfGetter($oneOfFields = ["setCredits", "addToCreditsOperations"]),
|
|
80300
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80301
|
+
});
|
|
80302
|
+
|
|
80303
|
+
/**
|
|
80304
|
+
* Creates a new CompactedAddressBalanceChange instance using the specified properties.
|
|
80305
|
+
* @function create
|
|
80306
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80307
|
+
* @static
|
|
80308
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange=} [properties] Properties to set
|
|
80309
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange instance
|
|
80310
|
+
*/
|
|
80311
|
+
CompactedAddressBalanceChange.create = function create(properties) {
|
|
80312
|
+
return new CompactedAddressBalanceChange(properties);
|
|
80313
|
+
};
|
|
80314
|
+
|
|
80315
|
+
/**
|
|
80316
|
+
* Encodes the specified CompactedAddressBalanceChange message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceChange.verify|verify} messages.
|
|
80317
|
+
* @function encode
|
|
80318
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80319
|
+
* @static
|
|
80320
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange} message CompactedAddressBalanceChange message or plain object to encode
|
|
80321
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80322
|
+
* @returns {$protobuf.Writer} Writer
|
|
80323
|
+
*/
|
|
80324
|
+
CompactedAddressBalanceChange.encode = function encode(message, writer) {
|
|
80325
|
+
if (!writer)
|
|
80326
|
+
writer = $Writer.create();
|
|
80327
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
80328
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
|
|
80329
|
+
if (message.setCredits != null && Object.hasOwnProperty.call(message, "setCredits"))
|
|
80330
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.setCredits);
|
|
80331
|
+
if (message.addToCreditsOperations != null && Object.hasOwnProperty.call(message, "addToCreditsOperations"))
|
|
80332
|
+
$root.org.dash.platform.dapi.v0.AddToCreditsOperations.encode(message.addToCreditsOperations, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
80333
|
+
return writer;
|
|
80334
|
+
};
|
|
80335
|
+
|
|
80336
|
+
/**
|
|
80337
|
+
* Encodes the specified CompactedAddressBalanceChange message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceChange.verify|verify} messages.
|
|
80338
|
+
* @function encodeDelimited
|
|
80339
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80340
|
+
* @static
|
|
80341
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange} message CompactedAddressBalanceChange message or plain object to encode
|
|
80342
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80343
|
+
* @returns {$protobuf.Writer} Writer
|
|
80344
|
+
*/
|
|
80345
|
+
CompactedAddressBalanceChange.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80346
|
+
return this.encode(message, writer).ldelim();
|
|
80347
|
+
};
|
|
80348
|
+
|
|
80349
|
+
/**
|
|
80350
|
+
* Decodes a CompactedAddressBalanceChange message from the specified reader or buffer.
|
|
80351
|
+
* @function decode
|
|
80352
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80353
|
+
* @static
|
|
80354
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80355
|
+
* @param {number} [length] Message length if known beforehand
|
|
80356
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange
|
|
80357
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80358
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80359
|
+
*/
|
|
80360
|
+
CompactedAddressBalanceChange.decode = function decode(reader, length) {
|
|
80361
|
+
if (!(reader instanceof $Reader))
|
|
80362
|
+
reader = $Reader.create(reader);
|
|
80363
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange();
|
|
80364
|
+
while (reader.pos < end) {
|
|
80365
|
+
var tag = reader.uint32();
|
|
80366
|
+
switch (tag >>> 3) {
|
|
80367
|
+
case 1:
|
|
80368
|
+
message.address = reader.bytes();
|
|
80369
|
+
break;
|
|
80370
|
+
case 2:
|
|
80371
|
+
message.setCredits = reader.uint64();
|
|
80372
|
+
break;
|
|
80373
|
+
case 3:
|
|
80374
|
+
message.addToCreditsOperations = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.decode(reader, reader.uint32());
|
|
80375
|
+
break;
|
|
80376
|
+
default:
|
|
80377
|
+
reader.skipType(tag & 7);
|
|
80378
|
+
break;
|
|
80379
|
+
}
|
|
80380
|
+
}
|
|
80381
|
+
return message;
|
|
80382
|
+
};
|
|
80383
|
+
|
|
80384
|
+
/**
|
|
80385
|
+
* Decodes a CompactedAddressBalanceChange message from the specified reader or buffer, length delimited.
|
|
80386
|
+
* @function decodeDelimited
|
|
80387
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80388
|
+
* @static
|
|
80389
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80390
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange
|
|
80391
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80392
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80393
|
+
*/
|
|
80394
|
+
CompactedAddressBalanceChange.decodeDelimited = function decodeDelimited(reader) {
|
|
80395
|
+
if (!(reader instanceof $Reader))
|
|
80396
|
+
reader = new $Reader(reader);
|
|
80397
|
+
return this.decode(reader, reader.uint32());
|
|
80398
|
+
};
|
|
80399
|
+
|
|
80400
|
+
/**
|
|
80401
|
+
* Verifies a CompactedAddressBalanceChange message.
|
|
80402
|
+
* @function verify
|
|
80403
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80404
|
+
* @static
|
|
80405
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80406
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80407
|
+
*/
|
|
80408
|
+
CompactedAddressBalanceChange.verify = function verify(message) {
|
|
80409
|
+
if (typeof message !== "object" || message === null)
|
|
80410
|
+
return "object expected";
|
|
80411
|
+
var properties = {};
|
|
80412
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
80413
|
+
if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
|
|
80414
|
+
return "address: buffer expected";
|
|
80415
|
+
if (message.setCredits != null && message.hasOwnProperty("setCredits")) {
|
|
80416
|
+
properties.operation = 1;
|
|
80417
|
+
if (!$util.isInteger(message.setCredits) && !(message.setCredits && $util.isInteger(message.setCredits.low) && $util.isInteger(message.setCredits.high)))
|
|
80418
|
+
return "setCredits: integer|Long expected";
|
|
80419
|
+
}
|
|
80420
|
+
if (message.addToCreditsOperations != null && message.hasOwnProperty("addToCreditsOperations")) {
|
|
80421
|
+
if (properties.operation === 1)
|
|
80422
|
+
return "operation: multiple values";
|
|
80423
|
+
properties.operation = 1;
|
|
80424
|
+
{
|
|
80425
|
+
var error = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.verify(message.addToCreditsOperations);
|
|
80426
|
+
if (error)
|
|
80427
|
+
return "addToCreditsOperations." + error;
|
|
80428
|
+
}
|
|
80429
|
+
}
|
|
80430
|
+
return null;
|
|
80431
|
+
};
|
|
80432
|
+
|
|
80433
|
+
/**
|
|
80434
|
+
* Creates a CompactedAddressBalanceChange message from a plain object. Also converts values to their respective internal types.
|
|
80435
|
+
* @function fromObject
|
|
80436
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80437
|
+
* @static
|
|
80438
|
+
* @param {Object.<string,*>} object Plain object
|
|
80439
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange
|
|
80440
|
+
*/
|
|
80441
|
+
CompactedAddressBalanceChange.fromObject = function fromObject(object) {
|
|
80442
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange)
|
|
80443
|
+
return object;
|
|
80444
|
+
var message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange();
|
|
80445
|
+
if (object.address != null)
|
|
80446
|
+
if (typeof object.address === "string")
|
|
80447
|
+
$util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
|
|
80448
|
+
else if (object.address.length >= 0)
|
|
80449
|
+
message.address = object.address;
|
|
80450
|
+
if (object.setCredits != null)
|
|
80451
|
+
if ($util.Long)
|
|
80452
|
+
(message.setCredits = $util.Long.fromValue(object.setCredits)).unsigned = true;
|
|
80453
|
+
else if (typeof object.setCredits === "string")
|
|
80454
|
+
message.setCredits = parseInt(object.setCredits, 10);
|
|
80455
|
+
else if (typeof object.setCredits === "number")
|
|
80456
|
+
message.setCredits = object.setCredits;
|
|
80457
|
+
else if (typeof object.setCredits === "object")
|
|
80458
|
+
message.setCredits = new $util.LongBits(object.setCredits.low >>> 0, object.setCredits.high >>> 0).toNumber(true);
|
|
80459
|
+
if (object.addToCreditsOperations != null) {
|
|
80460
|
+
if (typeof object.addToCreditsOperations !== "object")
|
|
80461
|
+
throw TypeError(".org.dash.platform.dapi.v0.CompactedAddressBalanceChange.addToCreditsOperations: object expected");
|
|
80462
|
+
message.addToCreditsOperations = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.fromObject(object.addToCreditsOperations);
|
|
80463
|
+
}
|
|
80464
|
+
return message;
|
|
80465
|
+
};
|
|
80466
|
+
|
|
80467
|
+
/**
|
|
80468
|
+
* Creates a plain object from a CompactedAddressBalanceChange message. Also converts values to other types if specified.
|
|
80469
|
+
* @function toObject
|
|
80470
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80471
|
+
* @static
|
|
80472
|
+
* @param {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} message CompactedAddressBalanceChange
|
|
80473
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80474
|
+
* @returns {Object.<string,*>} Plain object
|
|
80475
|
+
*/
|
|
80476
|
+
CompactedAddressBalanceChange.toObject = function toObject(message, options) {
|
|
80477
|
+
if (!options)
|
|
80478
|
+
options = {};
|
|
80479
|
+
var object = {};
|
|
80480
|
+
if (options.defaults)
|
|
80481
|
+
if (options.bytes === String)
|
|
80482
|
+
object.address = "";
|
|
80483
|
+
else {
|
|
80484
|
+
object.address = [];
|
|
80485
|
+
if (options.bytes !== Array)
|
|
80486
|
+
object.address = $util.newBuffer(object.address);
|
|
80487
|
+
}
|
|
80488
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
80489
|
+
object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address;
|
|
80490
|
+
if (message.setCredits != null && message.hasOwnProperty("setCredits")) {
|
|
80491
|
+
if (typeof message.setCredits === "number")
|
|
80492
|
+
object.setCredits = options.longs === String ? String(message.setCredits) : message.setCredits;
|
|
80493
|
+
else
|
|
80494
|
+
object.setCredits = options.longs === String ? $util.Long.prototype.toString.call(message.setCredits) : options.longs === Number ? new $util.LongBits(message.setCredits.low >>> 0, message.setCredits.high >>> 0).toNumber(true) : message.setCredits;
|
|
80495
|
+
if (options.oneofs)
|
|
80496
|
+
object.operation = "setCredits";
|
|
80497
|
+
}
|
|
80498
|
+
if (message.addToCreditsOperations != null && message.hasOwnProperty("addToCreditsOperations")) {
|
|
80499
|
+
object.addToCreditsOperations = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.toObject(message.addToCreditsOperations, options);
|
|
80500
|
+
if (options.oneofs)
|
|
80501
|
+
object.operation = "addToCreditsOperations";
|
|
80502
|
+
}
|
|
80503
|
+
return object;
|
|
80504
|
+
};
|
|
80505
|
+
|
|
80506
|
+
/**
|
|
80507
|
+
* Converts this CompactedAddressBalanceChange to JSON.
|
|
80508
|
+
* @function toJSON
|
|
80509
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80510
|
+
* @instance
|
|
80511
|
+
* @returns {Object.<string,*>} JSON object
|
|
80512
|
+
*/
|
|
80513
|
+
CompactedAddressBalanceChange.prototype.toJSON = function toJSON() {
|
|
80514
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80515
|
+
};
|
|
80516
|
+
|
|
80517
|
+
return CompactedAddressBalanceChange;
|
|
80518
|
+
})();
|
|
80519
|
+
|
|
80520
|
+
v0.AddToCreditsOperations = (function() {
|
|
80521
|
+
|
|
80522
|
+
/**
|
|
80523
|
+
* Properties of an AddToCreditsOperations.
|
|
80524
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80525
|
+
* @interface IAddToCreditsOperations
|
|
80526
|
+
* @property {Array.<org.dash.platform.dapi.v0.IBlockHeightCreditEntry>|null} [entries] AddToCreditsOperations entries
|
|
80527
|
+
*/
|
|
80528
|
+
|
|
80529
|
+
/**
|
|
80530
|
+
* Constructs a new AddToCreditsOperations.
|
|
80531
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80532
|
+
* @classdesc Represents an AddToCreditsOperations.
|
|
80533
|
+
* @implements IAddToCreditsOperations
|
|
80534
|
+
* @constructor
|
|
80535
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations=} [properties] Properties to set
|
|
80536
|
+
*/
|
|
80537
|
+
function AddToCreditsOperations(properties) {
|
|
80538
|
+
this.entries = [];
|
|
80539
|
+
if (properties)
|
|
80540
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80541
|
+
if (properties[keys[i]] != null)
|
|
80542
|
+
this[keys[i]] = properties[keys[i]];
|
|
80543
|
+
}
|
|
80544
|
+
|
|
80545
|
+
/**
|
|
80546
|
+
* AddToCreditsOperations entries.
|
|
80547
|
+
* @member {Array.<org.dash.platform.dapi.v0.IBlockHeightCreditEntry>} entries
|
|
80548
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80549
|
+
* @instance
|
|
80550
|
+
*/
|
|
80551
|
+
AddToCreditsOperations.prototype.entries = $util.emptyArray;
|
|
80552
|
+
|
|
80553
|
+
/**
|
|
80554
|
+
* Creates a new AddToCreditsOperations instance using the specified properties.
|
|
80555
|
+
* @function create
|
|
80556
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80557
|
+
* @static
|
|
80558
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations=} [properties] Properties to set
|
|
80559
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations instance
|
|
80560
|
+
*/
|
|
80561
|
+
AddToCreditsOperations.create = function create(properties) {
|
|
80562
|
+
return new AddToCreditsOperations(properties);
|
|
80563
|
+
};
|
|
80564
|
+
|
|
80565
|
+
/**
|
|
80566
|
+
* Encodes the specified AddToCreditsOperations message. Does not implicitly {@link org.dash.platform.dapi.v0.AddToCreditsOperations.verify|verify} messages.
|
|
80567
|
+
* @function encode
|
|
80568
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80569
|
+
* @static
|
|
80570
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations} message AddToCreditsOperations message or plain object to encode
|
|
80571
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80572
|
+
* @returns {$protobuf.Writer} Writer
|
|
80573
|
+
*/
|
|
80574
|
+
AddToCreditsOperations.encode = function encode(message, writer) {
|
|
80575
|
+
if (!writer)
|
|
80576
|
+
writer = $Writer.create();
|
|
80577
|
+
if (message.entries != null && message.entries.length)
|
|
80578
|
+
for (var i = 0; i < message.entries.length; ++i)
|
|
80579
|
+
$root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
80580
|
+
return writer;
|
|
80581
|
+
};
|
|
80582
|
+
|
|
80583
|
+
/**
|
|
80584
|
+
* Encodes the specified AddToCreditsOperations message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddToCreditsOperations.verify|verify} messages.
|
|
80585
|
+
* @function encodeDelimited
|
|
80586
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80587
|
+
* @static
|
|
80588
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations} message AddToCreditsOperations message or plain object to encode
|
|
80589
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80590
|
+
* @returns {$protobuf.Writer} Writer
|
|
80591
|
+
*/
|
|
80592
|
+
AddToCreditsOperations.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80593
|
+
return this.encode(message, writer).ldelim();
|
|
80594
|
+
};
|
|
80595
|
+
|
|
80596
|
+
/**
|
|
80597
|
+
* Decodes an AddToCreditsOperations message from the specified reader or buffer.
|
|
80598
|
+
* @function decode
|
|
80599
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80600
|
+
* @static
|
|
80601
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80602
|
+
* @param {number} [length] Message length if known beforehand
|
|
80603
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations
|
|
80604
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80605
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80606
|
+
*/
|
|
80607
|
+
AddToCreditsOperations.decode = function decode(reader, length) {
|
|
80608
|
+
if (!(reader instanceof $Reader))
|
|
80609
|
+
reader = $Reader.create(reader);
|
|
80610
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddToCreditsOperations();
|
|
80611
|
+
while (reader.pos < end) {
|
|
80612
|
+
var tag = reader.uint32();
|
|
80613
|
+
switch (tag >>> 3) {
|
|
80614
|
+
case 1:
|
|
80615
|
+
if (!(message.entries && message.entries.length))
|
|
80616
|
+
message.entries = [];
|
|
80617
|
+
message.entries.push($root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.decode(reader, reader.uint32()));
|
|
80618
|
+
break;
|
|
80619
|
+
default:
|
|
80620
|
+
reader.skipType(tag & 7);
|
|
80621
|
+
break;
|
|
80622
|
+
}
|
|
80623
|
+
}
|
|
80624
|
+
return message;
|
|
80625
|
+
};
|
|
80626
|
+
|
|
80627
|
+
/**
|
|
80628
|
+
* Decodes an AddToCreditsOperations message from the specified reader or buffer, length delimited.
|
|
80629
|
+
* @function decodeDelimited
|
|
80630
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80631
|
+
* @static
|
|
80632
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80633
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations
|
|
80634
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80635
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80636
|
+
*/
|
|
80637
|
+
AddToCreditsOperations.decodeDelimited = function decodeDelimited(reader) {
|
|
80638
|
+
if (!(reader instanceof $Reader))
|
|
80639
|
+
reader = new $Reader(reader);
|
|
80640
|
+
return this.decode(reader, reader.uint32());
|
|
80641
|
+
};
|
|
80642
|
+
|
|
80643
|
+
/**
|
|
80644
|
+
* Verifies an AddToCreditsOperations message.
|
|
80645
|
+
* @function verify
|
|
80646
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80647
|
+
* @static
|
|
80648
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80649
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80650
|
+
*/
|
|
80651
|
+
AddToCreditsOperations.verify = function verify(message) {
|
|
80652
|
+
if (typeof message !== "object" || message === null)
|
|
80653
|
+
return "object expected";
|
|
80654
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
80655
|
+
if (!Array.isArray(message.entries))
|
|
80656
|
+
return "entries: array expected";
|
|
80657
|
+
for (var i = 0; i < message.entries.length; ++i) {
|
|
80658
|
+
var error = $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.verify(message.entries[i]);
|
|
80659
|
+
if (error)
|
|
80660
|
+
return "entries." + error;
|
|
80661
|
+
}
|
|
80662
|
+
}
|
|
80663
|
+
return null;
|
|
80664
|
+
};
|
|
80665
|
+
|
|
80666
|
+
/**
|
|
80667
|
+
* Creates an AddToCreditsOperations message from a plain object. Also converts values to their respective internal types.
|
|
80668
|
+
* @function fromObject
|
|
80669
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80670
|
+
* @static
|
|
80671
|
+
* @param {Object.<string,*>} object Plain object
|
|
80672
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations
|
|
80673
|
+
*/
|
|
80674
|
+
AddToCreditsOperations.fromObject = function fromObject(object) {
|
|
80675
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.AddToCreditsOperations)
|
|
80676
|
+
return object;
|
|
80677
|
+
var message = new $root.org.dash.platform.dapi.v0.AddToCreditsOperations();
|
|
80678
|
+
if (object.entries) {
|
|
80679
|
+
if (!Array.isArray(object.entries))
|
|
80680
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddToCreditsOperations.entries: array expected");
|
|
80681
|
+
message.entries = [];
|
|
80682
|
+
for (var i = 0; i < object.entries.length; ++i) {
|
|
80683
|
+
if (typeof object.entries[i] !== "object")
|
|
80684
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddToCreditsOperations.entries: object expected");
|
|
80685
|
+
message.entries[i] = $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.fromObject(object.entries[i]);
|
|
80686
|
+
}
|
|
80687
|
+
}
|
|
80688
|
+
return message;
|
|
80689
|
+
};
|
|
80690
|
+
|
|
80691
|
+
/**
|
|
80692
|
+
* Creates a plain object from an AddToCreditsOperations message. Also converts values to other types if specified.
|
|
80693
|
+
* @function toObject
|
|
80694
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80695
|
+
* @static
|
|
80696
|
+
* @param {org.dash.platform.dapi.v0.AddToCreditsOperations} message AddToCreditsOperations
|
|
80697
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80698
|
+
* @returns {Object.<string,*>} Plain object
|
|
80699
|
+
*/
|
|
80700
|
+
AddToCreditsOperations.toObject = function toObject(message, options) {
|
|
80701
|
+
if (!options)
|
|
80702
|
+
options = {};
|
|
80703
|
+
var object = {};
|
|
80704
|
+
if (options.arrays || options.defaults)
|
|
80705
|
+
object.entries = [];
|
|
80706
|
+
if (message.entries && message.entries.length) {
|
|
80707
|
+
object.entries = [];
|
|
80708
|
+
for (var j = 0; j < message.entries.length; ++j)
|
|
80709
|
+
object.entries[j] = $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.toObject(message.entries[j], options);
|
|
80710
|
+
}
|
|
80711
|
+
return object;
|
|
80712
|
+
};
|
|
80713
|
+
|
|
80714
|
+
/**
|
|
80715
|
+
* Converts this AddToCreditsOperations to JSON.
|
|
80716
|
+
* @function toJSON
|
|
80717
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
80718
|
+
* @instance
|
|
80719
|
+
* @returns {Object.<string,*>} JSON object
|
|
80720
|
+
*/
|
|
80721
|
+
AddToCreditsOperations.prototype.toJSON = function toJSON() {
|
|
80722
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80723
|
+
};
|
|
80724
|
+
|
|
80725
|
+
return AddToCreditsOperations;
|
|
80726
|
+
})();
|
|
80727
|
+
|
|
80001
80728
|
v0.CompactedBlockAddressBalanceChanges = (function() {
|
|
80002
80729
|
|
|
80003
80730
|
/**
|
|
@@ -80006,7 +80733,7 @@ $root.org = (function() {
|
|
|
80006
80733
|
* @interface ICompactedBlockAddressBalanceChanges
|
|
80007
80734
|
* @property {number|Long|null} [startBlockHeight] CompactedBlockAddressBalanceChanges startBlockHeight
|
|
80008
80735
|
* @property {number|Long|null} [endBlockHeight] CompactedBlockAddressBalanceChanges endBlockHeight
|
|
80009
|
-
* @property {Array.<org.dash.platform.dapi.v0.
|
|
80736
|
+
* @property {Array.<org.dash.platform.dapi.v0.ICompactedAddressBalanceChange>|null} [changes] CompactedBlockAddressBalanceChanges changes
|
|
80010
80737
|
*/
|
|
80011
80738
|
|
|
80012
80739
|
/**
|
|
@@ -80043,7 +80770,7 @@ $root.org = (function() {
|
|
|
80043
80770
|
|
|
80044
80771
|
/**
|
|
80045
80772
|
* CompactedBlockAddressBalanceChanges changes.
|
|
80046
|
-
* @member {Array.<org.dash.platform.dapi.v0.
|
|
80773
|
+
* @member {Array.<org.dash.platform.dapi.v0.ICompactedAddressBalanceChange>} changes
|
|
80047
80774
|
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80048
80775
|
* @instance
|
|
80049
80776
|
*/
|
|
@@ -80079,7 +80806,7 @@ $root.org = (function() {
|
|
|
80079
80806
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endBlockHeight);
|
|
80080
80807
|
if (message.changes != null && message.changes.length)
|
|
80081
80808
|
for (var i = 0; i < message.changes.length; ++i)
|
|
80082
|
-
$root.org.dash.platform.dapi.v0.
|
|
80809
|
+
$root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.encode(message.changes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
80083
80810
|
return writer;
|
|
80084
80811
|
};
|
|
80085
80812
|
|
|
@@ -80123,7 +80850,7 @@ $root.org = (function() {
|
|
|
80123
80850
|
case 3:
|
|
80124
80851
|
if (!(message.changes && message.changes.length))
|
|
80125
80852
|
message.changes = [];
|
|
80126
|
-
message.changes.push($root.org.dash.platform.dapi.v0.
|
|
80853
|
+
message.changes.push($root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.decode(reader, reader.uint32()));
|
|
80127
80854
|
break;
|
|
80128
80855
|
default:
|
|
80129
80856
|
reader.skipType(tag & 7);
|
|
@@ -80170,7 +80897,7 @@ $root.org = (function() {
|
|
|
80170
80897
|
if (!Array.isArray(message.changes))
|
|
80171
80898
|
return "changes: array expected";
|
|
80172
80899
|
for (var i = 0; i < message.changes.length; ++i) {
|
|
80173
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
80900
|
+
var error = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.verify(message.changes[i]);
|
|
80174
80901
|
if (error)
|
|
80175
80902
|
return "changes." + error;
|
|
80176
80903
|
}
|
|
@@ -80215,7 +80942,7 @@ $root.org = (function() {
|
|
|
80215
80942
|
for (var i = 0; i < object.changes.length; ++i) {
|
|
80216
80943
|
if (typeof object.changes[i] !== "object")
|
|
80217
80944
|
throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.changes: object expected");
|
|
80218
|
-
message.changes[i] = $root.org.dash.platform.dapi.v0.
|
|
80945
|
+
message.changes[i] = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.fromObject(object.changes[i]);
|
|
80219
80946
|
}
|
|
80220
80947
|
}
|
|
80221
80948
|
return message;
|
|
@@ -80261,7 +80988,7 @@ $root.org = (function() {
|
|
|
80261
80988
|
if (message.changes && message.changes.length) {
|
|
80262
80989
|
object.changes = [];
|
|
80263
80990
|
for (var j = 0; j < message.changes.length; ++j)
|
|
80264
|
-
object.changes[j] = $root.org.dash.platform.dapi.v0.
|
|
80991
|
+
object.changes[j] = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.toObject(message.changes[j], options);
|
|
80265
80992
|
}
|
|
80266
80993
|
return object;
|
|
80267
80994
|
};
|