@dashevo/dapi-grpc 5.0.0-beta.1 → 5.0.0-beta.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 +776 -7
- package/clients/platform/v0/nodejs/platform_pbjs.js +776 -7
- package/clients/platform/v0/nodejs/platform_protoc.js +1053 -9
- package/clients/platform/v0/web/platform_pb.d.ts +126 -0
- package/clients/platform/v0/web/platform_pb.js +1053 -9
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +25 -0
- package/test/unit/shielded-requests.spec.js +51 -0
|
@@ -103926,6 +103926,516 @@ $root.org = (function() {
|
|
|
103926
103926
|
return UpdateDirectPurchasePriceEvent;
|
|
103927
103927
|
})();
|
|
103928
103928
|
|
|
103929
|
+
GetGroupActionsResponseV0.MintToPoolEvent = (function() {
|
|
103930
|
+
|
|
103931
|
+
/**
|
|
103932
|
+
* Properties of a MintToPoolEvent.
|
|
103933
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
|
|
103934
|
+
* @interface IMintToPoolEvent
|
|
103935
|
+
* @property {number|Long|null} [amount] MintToPoolEvent amount
|
|
103936
|
+
* @property {Uint8Array|null} [actionsDigest] MintToPoolEvent actionsDigest
|
|
103937
|
+
* @property {string|null} [publicNote] MintToPoolEvent publicNote
|
|
103938
|
+
*/
|
|
103939
|
+
|
|
103940
|
+
/**
|
|
103941
|
+
* Constructs a new MintToPoolEvent.
|
|
103942
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
|
|
103943
|
+
* @classdesc Represents a MintToPoolEvent.
|
|
103944
|
+
* @implements IMintToPoolEvent
|
|
103945
|
+
* @constructor
|
|
103946
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent=} [properties] Properties to set
|
|
103947
|
+
*/
|
|
103948
|
+
function MintToPoolEvent(properties) {
|
|
103949
|
+
if (properties)
|
|
103950
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
103951
|
+
if (properties[keys[i]] != null)
|
|
103952
|
+
this[keys[i]] = properties[keys[i]];
|
|
103953
|
+
}
|
|
103954
|
+
|
|
103955
|
+
/**
|
|
103956
|
+
* MintToPoolEvent amount.
|
|
103957
|
+
* @member {number|Long} amount
|
|
103958
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
103959
|
+
* @instance
|
|
103960
|
+
*/
|
|
103961
|
+
MintToPoolEvent.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
103962
|
+
|
|
103963
|
+
/**
|
|
103964
|
+
* MintToPoolEvent actionsDigest.
|
|
103965
|
+
* @member {Uint8Array} actionsDigest
|
|
103966
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
103967
|
+
* @instance
|
|
103968
|
+
*/
|
|
103969
|
+
MintToPoolEvent.prototype.actionsDigest = $util.newBuffer([]);
|
|
103970
|
+
|
|
103971
|
+
/**
|
|
103972
|
+
* MintToPoolEvent publicNote.
|
|
103973
|
+
* @member {string} publicNote
|
|
103974
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
103975
|
+
* @instance
|
|
103976
|
+
*/
|
|
103977
|
+
MintToPoolEvent.prototype.publicNote = "";
|
|
103978
|
+
|
|
103979
|
+
/**
|
|
103980
|
+
* Creates a new MintToPoolEvent instance using the specified properties.
|
|
103981
|
+
* @function create
|
|
103982
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
103983
|
+
* @static
|
|
103984
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent=} [properties] Properties to set
|
|
103985
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent instance
|
|
103986
|
+
*/
|
|
103987
|
+
MintToPoolEvent.create = function create(properties) {
|
|
103988
|
+
return new MintToPoolEvent(properties);
|
|
103989
|
+
};
|
|
103990
|
+
|
|
103991
|
+
/**
|
|
103992
|
+
* Encodes the specified MintToPoolEvent message. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.verify|verify} messages.
|
|
103993
|
+
* @function encode
|
|
103994
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
103995
|
+
* @static
|
|
103996
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent} message MintToPoolEvent message or plain object to encode
|
|
103997
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
103998
|
+
* @returns {$protobuf.Writer} Writer
|
|
103999
|
+
*/
|
|
104000
|
+
MintToPoolEvent.encode = function encode(message, writer) {
|
|
104001
|
+
if (!writer)
|
|
104002
|
+
writer = $Writer.create();
|
|
104003
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
104004
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
|
|
104005
|
+
if (message.actionsDigest != null && Object.hasOwnProperty.call(message, "actionsDigest"))
|
|
104006
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actionsDigest);
|
|
104007
|
+
if (message.publicNote != null && Object.hasOwnProperty.call(message, "publicNote"))
|
|
104008
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.publicNote);
|
|
104009
|
+
return writer;
|
|
104010
|
+
};
|
|
104011
|
+
|
|
104012
|
+
/**
|
|
104013
|
+
* Encodes the specified MintToPoolEvent message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.verify|verify} messages.
|
|
104014
|
+
* @function encodeDelimited
|
|
104015
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104016
|
+
* @static
|
|
104017
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent} message MintToPoolEvent message or plain object to encode
|
|
104018
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104019
|
+
* @returns {$protobuf.Writer} Writer
|
|
104020
|
+
*/
|
|
104021
|
+
MintToPoolEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
104022
|
+
return this.encode(message, writer).ldelim();
|
|
104023
|
+
};
|
|
104024
|
+
|
|
104025
|
+
/**
|
|
104026
|
+
* Decodes a MintToPoolEvent message from the specified reader or buffer.
|
|
104027
|
+
* @function decode
|
|
104028
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104029
|
+
* @static
|
|
104030
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104031
|
+
* @param {number} [length] Message length if known beforehand
|
|
104032
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent
|
|
104033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104035
|
+
*/
|
|
104036
|
+
MintToPoolEvent.decode = function decode(reader, length) {
|
|
104037
|
+
if (!(reader instanceof $Reader))
|
|
104038
|
+
reader = $Reader.create(reader);
|
|
104039
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent();
|
|
104040
|
+
while (reader.pos < end) {
|
|
104041
|
+
var tag = reader.uint32();
|
|
104042
|
+
switch (tag >>> 3) {
|
|
104043
|
+
case 1:
|
|
104044
|
+
message.amount = reader.uint64();
|
|
104045
|
+
break;
|
|
104046
|
+
case 2:
|
|
104047
|
+
message.actionsDigest = reader.bytes();
|
|
104048
|
+
break;
|
|
104049
|
+
case 3:
|
|
104050
|
+
message.publicNote = reader.string();
|
|
104051
|
+
break;
|
|
104052
|
+
default:
|
|
104053
|
+
reader.skipType(tag & 7);
|
|
104054
|
+
break;
|
|
104055
|
+
}
|
|
104056
|
+
}
|
|
104057
|
+
return message;
|
|
104058
|
+
};
|
|
104059
|
+
|
|
104060
|
+
/**
|
|
104061
|
+
* Decodes a MintToPoolEvent message from the specified reader or buffer, length delimited.
|
|
104062
|
+
* @function decodeDelimited
|
|
104063
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104064
|
+
* @static
|
|
104065
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104066
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent
|
|
104067
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104068
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104069
|
+
*/
|
|
104070
|
+
MintToPoolEvent.decodeDelimited = function decodeDelimited(reader) {
|
|
104071
|
+
if (!(reader instanceof $Reader))
|
|
104072
|
+
reader = new $Reader(reader);
|
|
104073
|
+
return this.decode(reader, reader.uint32());
|
|
104074
|
+
};
|
|
104075
|
+
|
|
104076
|
+
/**
|
|
104077
|
+
* Verifies a MintToPoolEvent message.
|
|
104078
|
+
* @function verify
|
|
104079
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104080
|
+
* @static
|
|
104081
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
104082
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
104083
|
+
*/
|
|
104084
|
+
MintToPoolEvent.verify = function verify(message) {
|
|
104085
|
+
if (typeof message !== "object" || message === null)
|
|
104086
|
+
return "object expected";
|
|
104087
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
104088
|
+
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
|
104089
|
+
return "amount: integer|Long expected";
|
|
104090
|
+
if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
|
|
104091
|
+
if (!(message.actionsDigest && typeof message.actionsDigest.length === "number" || $util.isString(message.actionsDigest)))
|
|
104092
|
+
return "actionsDigest: buffer expected";
|
|
104093
|
+
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
104094
|
+
if (!$util.isString(message.publicNote))
|
|
104095
|
+
return "publicNote: string expected";
|
|
104096
|
+
return null;
|
|
104097
|
+
};
|
|
104098
|
+
|
|
104099
|
+
/**
|
|
104100
|
+
* Creates a MintToPoolEvent message from a plain object. Also converts values to their respective internal types.
|
|
104101
|
+
* @function fromObject
|
|
104102
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104103
|
+
* @static
|
|
104104
|
+
* @param {Object.<string,*>} object Plain object
|
|
104105
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent
|
|
104106
|
+
*/
|
|
104107
|
+
MintToPoolEvent.fromObject = function fromObject(object) {
|
|
104108
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent)
|
|
104109
|
+
return object;
|
|
104110
|
+
var message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent();
|
|
104111
|
+
if (object.amount != null)
|
|
104112
|
+
if ($util.Long)
|
|
104113
|
+
(message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
|
|
104114
|
+
else if (typeof object.amount === "string")
|
|
104115
|
+
message.amount = parseInt(object.amount, 10);
|
|
104116
|
+
else if (typeof object.amount === "number")
|
|
104117
|
+
message.amount = object.amount;
|
|
104118
|
+
else if (typeof object.amount === "object")
|
|
104119
|
+
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
|
104120
|
+
if (object.actionsDigest != null)
|
|
104121
|
+
if (typeof object.actionsDigest === "string")
|
|
104122
|
+
$util.base64.decode(object.actionsDigest, message.actionsDigest = $util.newBuffer($util.base64.length(object.actionsDigest)), 0);
|
|
104123
|
+
else if (object.actionsDigest.length >= 0)
|
|
104124
|
+
message.actionsDigest = object.actionsDigest;
|
|
104125
|
+
if (object.publicNote != null)
|
|
104126
|
+
message.publicNote = String(object.publicNote);
|
|
104127
|
+
return message;
|
|
104128
|
+
};
|
|
104129
|
+
|
|
104130
|
+
/**
|
|
104131
|
+
* Creates a plain object from a MintToPoolEvent message. Also converts values to other types if specified.
|
|
104132
|
+
* @function toObject
|
|
104133
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104134
|
+
* @static
|
|
104135
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} message MintToPoolEvent
|
|
104136
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
104137
|
+
* @returns {Object.<string,*>} Plain object
|
|
104138
|
+
*/
|
|
104139
|
+
MintToPoolEvent.toObject = function toObject(message, options) {
|
|
104140
|
+
if (!options)
|
|
104141
|
+
options = {};
|
|
104142
|
+
var object = {};
|
|
104143
|
+
if (options.defaults) {
|
|
104144
|
+
if ($util.Long) {
|
|
104145
|
+
var long = new $util.Long(0, 0, true);
|
|
104146
|
+
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
104147
|
+
} else
|
|
104148
|
+
object.amount = options.longs === String ? "0" : 0;
|
|
104149
|
+
if (options.bytes === String)
|
|
104150
|
+
object.actionsDigest = "";
|
|
104151
|
+
else {
|
|
104152
|
+
object.actionsDigest = [];
|
|
104153
|
+
if (options.bytes !== Array)
|
|
104154
|
+
object.actionsDigest = $util.newBuffer(object.actionsDigest);
|
|
104155
|
+
}
|
|
104156
|
+
object.publicNote = "";
|
|
104157
|
+
}
|
|
104158
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
104159
|
+
if (typeof message.amount === "number")
|
|
104160
|
+
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
|
104161
|
+
else
|
|
104162
|
+
object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
|
|
104163
|
+
if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
|
|
104164
|
+
object.actionsDigest = options.bytes === String ? $util.base64.encode(message.actionsDigest, 0, message.actionsDigest.length) : options.bytes === Array ? Array.prototype.slice.call(message.actionsDigest) : message.actionsDigest;
|
|
104165
|
+
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
104166
|
+
object.publicNote = message.publicNote;
|
|
104167
|
+
return object;
|
|
104168
|
+
};
|
|
104169
|
+
|
|
104170
|
+
/**
|
|
104171
|
+
* Converts this MintToPoolEvent to JSON.
|
|
104172
|
+
* @function toJSON
|
|
104173
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
|
|
104174
|
+
* @instance
|
|
104175
|
+
* @returns {Object.<string,*>} JSON object
|
|
104176
|
+
*/
|
|
104177
|
+
MintToPoolEvent.prototype.toJSON = function toJSON() {
|
|
104178
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
104179
|
+
};
|
|
104180
|
+
|
|
104181
|
+
return MintToPoolEvent;
|
|
104182
|
+
})();
|
|
104183
|
+
|
|
104184
|
+
GetGroupActionsResponseV0.BurnFromPoolEvent = (function() {
|
|
104185
|
+
|
|
104186
|
+
/**
|
|
104187
|
+
* Properties of a BurnFromPoolEvent.
|
|
104188
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
|
|
104189
|
+
* @interface IBurnFromPoolEvent
|
|
104190
|
+
* @property {number|Long|null} [amount] BurnFromPoolEvent amount
|
|
104191
|
+
* @property {Uint8Array|null} [actionsDigest] BurnFromPoolEvent actionsDigest
|
|
104192
|
+
* @property {string|null} [publicNote] BurnFromPoolEvent publicNote
|
|
104193
|
+
*/
|
|
104194
|
+
|
|
104195
|
+
/**
|
|
104196
|
+
* Constructs a new BurnFromPoolEvent.
|
|
104197
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
|
|
104198
|
+
* @classdesc Represents a BurnFromPoolEvent.
|
|
104199
|
+
* @implements IBurnFromPoolEvent
|
|
104200
|
+
* @constructor
|
|
104201
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent=} [properties] Properties to set
|
|
104202
|
+
*/
|
|
104203
|
+
function BurnFromPoolEvent(properties) {
|
|
104204
|
+
if (properties)
|
|
104205
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
104206
|
+
if (properties[keys[i]] != null)
|
|
104207
|
+
this[keys[i]] = properties[keys[i]];
|
|
104208
|
+
}
|
|
104209
|
+
|
|
104210
|
+
/**
|
|
104211
|
+
* BurnFromPoolEvent amount.
|
|
104212
|
+
* @member {number|Long} amount
|
|
104213
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104214
|
+
* @instance
|
|
104215
|
+
*/
|
|
104216
|
+
BurnFromPoolEvent.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
104217
|
+
|
|
104218
|
+
/**
|
|
104219
|
+
* BurnFromPoolEvent actionsDigest.
|
|
104220
|
+
* @member {Uint8Array} actionsDigest
|
|
104221
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104222
|
+
* @instance
|
|
104223
|
+
*/
|
|
104224
|
+
BurnFromPoolEvent.prototype.actionsDigest = $util.newBuffer([]);
|
|
104225
|
+
|
|
104226
|
+
/**
|
|
104227
|
+
* BurnFromPoolEvent publicNote.
|
|
104228
|
+
* @member {string} publicNote
|
|
104229
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104230
|
+
* @instance
|
|
104231
|
+
*/
|
|
104232
|
+
BurnFromPoolEvent.prototype.publicNote = "";
|
|
104233
|
+
|
|
104234
|
+
/**
|
|
104235
|
+
* Creates a new BurnFromPoolEvent instance using the specified properties.
|
|
104236
|
+
* @function create
|
|
104237
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104238
|
+
* @static
|
|
104239
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent=} [properties] Properties to set
|
|
104240
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent instance
|
|
104241
|
+
*/
|
|
104242
|
+
BurnFromPoolEvent.create = function create(properties) {
|
|
104243
|
+
return new BurnFromPoolEvent(properties);
|
|
104244
|
+
};
|
|
104245
|
+
|
|
104246
|
+
/**
|
|
104247
|
+
* Encodes the specified BurnFromPoolEvent message. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.verify|verify} messages.
|
|
104248
|
+
* @function encode
|
|
104249
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104250
|
+
* @static
|
|
104251
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent} message BurnFromPoolEvent message or plain object to encode
|
|
104252
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104253
|
+
* @returns {$protobuf.Writer} Writer
|
|
104254
|
+
*/
|
|
104255
|
+
BurnFromPoolEvent.encode = function encode(message, writer) {
|
|
104256
|
+
if (!writer)
|
|
104257
|
+
writer = $Writer.create();
|
|
104258
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
104259
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
|
|
104260
|
+
if (message.actionsDigest != null && Object.hasOwnProperty.call(message, "actionsDigest"))
|
|
104261
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actionsDigest);
|
|
104262
|
+
if (message.publicNote != null && Object.hasOwnProperty.call(message, "publicNote"))
|
|
104263
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.publicNote);
|
|
104264
|
+
return writer;
|
|
104265
|
+
};
|
|
104266
|
+
|
|
104267
|
+
/**
|
|
104268
|
+
* Encodes the specified BurnFromPoolEvent message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.verify|verify} messages.
|
|
104269
|
+
* @function encodeDelimited
|
|
104270
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104271
|
+
* @static
|
|
104272
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent} message BurnFromPoolEvent message or plain object to encode
|
|
104273
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104274
|
+
* @returns {$protobuf.Writer} Writer
|
|
104275
|
+
*/
|
|
104276
|
+
BurnFromPoolEvent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
104277
|
+
return this.encode(message, writer).ldelim();
|
|
104278
|
+
};
|
|
104279
|
+
|
|
104280
|
+
/**
|
|
104281
|
+
* Decodes a BurnFromPoolEvent message from the specified reader or buffer.
|
|
104282
|
+
* @function decode
|
|
104283
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104284
|
+
* @static
|
|
104285
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104286
|
+
* @param {number} [length] Message length if known beforehand
|
|
104287
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent
|
|
104288
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104289
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104290
|
+
*/
|
|
104291
|
+
BurnFromPoolEvent.decode = function decode(reader, length) {
|
|
104292
|
+
if (!(reader instanceof $Reader))
|
|
104293
|
+
reader = $Reader.create(reader);
|
|
104294
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent();
|
|
104295
|
+
while (reader.pos < end) {
|
|
104296
|
+
var tag = reader.uint32();
|
|
104297
|
+
switch (tag >>> 3) {
|
|
104298
|
+
case 1:
|
|
104299
|
+
message.amount = reader.uint64();
|
|
104300
|
+
break;
|
|
104301
|
+
case 2:
|
|
104302
|
+
message.actionsDigest = reader.bytes();
|
|
104303
|
+
break;
|
|
104304
|
+
case 3:
|
|
104305
|
+
message.publicNote = reader.string();
|
|
104306
|
+
break;
|
|
104307
|
+
default:
|
|
104308
|
+
reader.skipType(tag & 7);
|
|
104309
|
+
break;
|
|
104310
|
+
}
|
|
104311
|
+
}
|
|
104312
|
+
return message;
|
|
104313
|
+
};
|
|
104314
|
+
|
|
104315
|
+
/**
|
|
104316
|
+
* Decodes a BurnFromPoolEvent message from the specified reader or buffer, length delimited.
|
|
104317
|
+
* @function decodeDelimited
|
|
104318
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104319
|
+
* @static
|
|
104320
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104321
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent
|
|
104322
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104323
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104324
|
+
*/
|
|
104325
|
+
BurnFromPoolEvent.decodeDelimited = function decodeDelimited(reader) {
|
|
104326
|
+
if (!(reader instanceof $Reader))
|
|
104327
|
+
reader = new $Reader(reader);
|
|
104328
|
+
return this.decode(reader, reader.uint32());
|
|
104329
|
+
};
|
|
104330
|
+
|
|
104331
|
+
/**
|
|
104332
|
+
* Verifies a BurnFromPoolEvent message.
|
|
104333
|
+
* @function verify
|
|
104334
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104335
|
+
* @static
|
|
104336
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
104337
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
104338
|
+
*/
|
|
104339
|
+
BurnFromPoolEvent.verify = function verify(message) {
|
|
104340
|
+
if (typeof message !== "object" || message === null)
|
|
104341
|
+
return "object expected";
|
|
104342
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
104343
|
+
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
|
104344
|
+
return "amount: integer|Long expected";
|
|
104345
|
+
if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
|
|
104346
|
+
if (!(message.actionsDigest && typeof message.actionsDigest.length === "number" || $util.isString(message.actionsDigest)))
|
|
104347
|
+
return "actionsDigest: buffer expected";
|
|
104348
|
+
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
104349
|
+
if (!$util.isString(message.publicNote))
|
|
104350
|
+
return "publicNote: string expected";
|
|
104351
|
+
return null;
|
|
104352
|
+
};
|
|
104353
|
+
|
|
104354
|
+
/**
|
|
104355
|
+
* Creates a BurnFromPoolEvent message from a plain object. Also converts values to their respective internal types.
|
|
104356
|
+
* @function fromObject
|
|
104357
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104358
|
+
* @static
|
|
104359
|
+
* @param {Object.<string,*>} object Plain object
|
|
104360
|
+
* @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent
|
|
104361
|
+
*/
|
|
104362
|
+
BurnFromPoolEvent.fromObject = function fromObject(object) {
|
|
104363
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent)
|
|
104364
|
+
return object;
|
|
104365
|
+
var message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent();
|
|
104366
|
+
if (object.amount != null)
|
|
104367
|
+
if ($util.Long)
|
|
104368
|
+
(message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
|
|
104369
|
+
else if (typeof object.amount === "string")
|
|
104370
|
+
message.amount = parseInt(object.amount, 10);
|
|
104371
|
+
else if (typeof object.amount === "number")
|
|
104372
|
+
message.amount = object.amount;
|
|
104373
|
+
else if (typeof object.amount === "object")
|
|
104374
|
+
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
|
104375
|
+
if (object.actionsDigest != null)
|
|
104376
|
+
if (typeof object.actionsDigest === "string")
|
|
104377
|
+
$util.base64.decode(object.actionsDigest, message.actionsDigest = $util.newBuffer($util.base64.length(object.actionsDigest)), 0);
|
|
104378
|
+
else if (object.actionsDigest.length >= 0)
|
|
104379
|
+
message.actionsDigest = object.actionsDigest;
|
|
104380
|
+
if (object.publicNote != null)
|
|
104381
|
+
message.publicNote = String(object.publicNote);
|
|
104382
|
+
return message;
|
|
104383
|
+
};
|
|
104384
|
+
|
|
104385
|
+
/**
|
|
104386
|
+
* Creates a plain object from a BurnFromPoolEvent message. Also converts values to other types if specified.
|
|
104387
|
+
* @function toObject
|
|
104388
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104389
|
+
* @static
|
|
104390
|
+
* @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} message BurnFromPoolEvent
|
|
104391
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
104392
|
+
* @returns {Object.<string,*>} Plain object
|
|
104393
|
+
*/
|
|
104394
|
+
BurnFromPoolEvent.toObject = function toObject(message, options) {
|
|
104395
|
+
if (!options)
|
|
104396
|
+
options = {};
|
|
104397
|
+
var object = {};
|
|
104398
|
+
if (options.defaults) {
|
|
104399
|
+
if ($util.Long) {
|
|
104400
|
+
var long = new $util.Long(0, 0, true);
|
|
104401
|
+
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
104402
|
+
} else
|
|
104403
|
+
object.amount = options.longs === String ? "0" : 0;
|
|
104404
|
+
if (options.bytes === String)
|
|
104405
|
+
object.actionsDigest = "";
|
|
104406
|
+
else {
|
|
104407
|
+
object.actionsDigest = [];
|
|
104408
|
+
if (options.bytes !== Array)
|
|
104409
|
+
object.actionsDigest = $util.newBuffer(object.actionsDigest);
|
|
104410
|
+
}
|
|
104411
|
+
object.publicNote = "";
|
|
104412
|
+
}
|
|
104413
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
104414
|
+
if (typeof message.amount === "number")
|
|
104415
|
+
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
|
104416
|
+
else
|
|
104417
|
+
object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
|
|
104418
|
+
if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
|
|
104419
|
+
object.actionsDigest = options.bytes === String ? $util.base64.encode(message.actionsDigest, 0, message.actionsDigest.length) : options.bytes === Array ? Array.prototype.slice.call(message.actionsDigest) : message.actionsDigest;
|
|
104420
|
+
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
104421
|
+
object.publicNote = message.publicNote;
|
|
104422
|
+
return object;
|
|
104423
|
+
};
|
|
104424
|
+
|
|
104425
|
+
/**
|
|
104426
|
+
* Converts this BurnFromPoolEvent to JSON.
|
|
104427
|
+
* @function toJSON
|
|
104428
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
|
|
104429
|
+
* @instance
|
|
104430
|
+
* @returns {Object.<string,*>} JSON object
|
|
104431
|
+
*/
|
|
104432
|
+
BurnFromPoolEvent.prototype.toJSON = function toJSON() {
|
|
104433
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
104434
|
+
};
|
|
104435
|
+
|
|
104436
|
+
return BurnFromPoolEvent;
|
|
104437
|
+
})();
|
|
104438
|
+
|
|
103929
104439
|
GetGroupActionsResponseV0.GroupActionEvent = (function() {
|
|
103930
104440
|
|
|
103931
104441
|
/**
|
|
@@ -105033,6 +105543,8 @@ $root.org = (function() {
|
|
|
105033
105543
|
* @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IEmergencyActionEvent|null} [emergencyAction] TokenEvent emergencyAction
|
|
105034
105544
|
* @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.ITokenConfigUpdateEvent|null} [tokenConfigUpdate] TokenEvent tokenConfigUpdate
|
|
105035
105545
|
* @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IUpdateDirectPurchasePriceEvent|null} [updatePrice] TokenEvent updatePrice
|
|
105546
|
+
* @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent|null} [mintToPool] TokenEvent mintToPool
|
|
105547
|
+
* @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent|null} [burnFromPool] TokenEvent burnFromPool
|
|
105036
105548
|
*/
|
|
105037
105549
|
|
|
105038
105550
|
/**
|
|
@@ -105114,17 +105626,33 @@ $root.org = (function() {
|
|
|
105114
105626
|
*/
|
|
105115
105627
|
TokenEvent.prototype.updatePrice = null;
|
|
105116
105628
|
|
|
105629
|
+
/**
|
|
105630
|
+
* TokenEvent mintToPool.
|
|
105631
|
+
* @member {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent|null|undefined} mintToPool
|
|
105632
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent
|
|
105633
|
+
* @instance
|
|
105634
|
+
*/
|
|
105635
|
+
TokenEvent.prototype.mintToPool = null;
|
|
105636
|
+
|
|
105637
|
+
/**
|
|
105638
|
+
* TokenEvent burnFromPool.
|
|
105639
|
+
* @member {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent|null|undefined} burnFromPool
|
|
105640
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent
|
|
105641
|
+
* @instance
|
|
105642
|
+
*/
|
|
105643
|
+
TokenEvent.prototype.burnFromPool = null;
|
|
105644
|
+
|
|
105117
105645
|
// OneOf field names bound to virtual getters and setters
|
|
105118
105646
|
var $oneOfFields;
|
|
105119
105647
|
|
|
105120
105648
|
/**
|
|
105121
105649
|
* TokenEvent type.
|
|
105122
|
-
* @member {"mint"|"burn"|"freeze"|"unfreeze"|"destroyFrozenFunds"|"emergencyAction"|"tokenConfigUpdate"|"updatePrice"|undefined} type
|
|
105650
|
+
* @member {"mint"|"burn"|"freeze"|"unfreeze"|"destroyFrozenFunds"|"emergencyAction"|"tokenConfigUpdate"|"updatePrice"|"mintToPool"|"burnFromPool"|undefined} type
|
|
105123
105651
|
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent
|
|
105124
105652
|
* @instance
|
|
105125
105653
|
*/
|
|
105126
105654
|
Object.defineProperty(TokenEvent.prototype, "type", {
|
|
105127
|
-
get: $util.oneOfGetter($oneOfFields = ["mint", "burn", "freeze", "unfreeze", "destroyFrozenFunds", "emergencyAction", "tokenConfigUpdate", "updatePrice"]),
|
|
105655
|
+
get: $util.oneOfGetter($oneOfFields = ["mint", "burn", "freeze", "unfreeze", "destroyFrozenFunds", "emergencyAction", "tokenConfigUpdate", "updatePrice", "mintToPool", "burnFromPool"]),
|
|
105128
105656
|
set: $util.oneOfSetter($oneOfFields)
|
|
105129
105657
|
});
|
|
105130
105658
|
|
|
@@ -105168,6 +105696,10 @@ $root.org = (function() {
|
|
|
105168
105696
|
$root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenConfigUpdateEvent.encode(message.tokenConfigUpdate, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
105169
105697
|
if (message.updatePrice != null && Object.hasOwnProperty.call(message, "updatePrice"))
|
|
105170
105698
|
$root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.encode(message.updatePrice, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
105699
|
+
if (message.mintToPool != null && Object.hasOwnProperty.call(message, "mintToPool"))
|
|
105700
|
+
$root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.encode(message.mintToPool, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
105701
|
+
if (message.burnFromPool != null && Object.hasOwnProperty.call(message, "burnFromPool"))
|
|
105702
|
+
$root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.encode(message.burnFromPool, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
105171
105703
|
return writer;
|
|
105172
105704
|
};
|
|
105173
105705
|
|
|
@@ -105226,6 +105758,12 @@ $root.org = (function() {
|
|
|
105226
105758
|
case 8:
|
|
105227
105759
|
message.updatePrice = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.decode(reader, reader.uint32());
|
|
105228
105760
|
break;
|
|
105761
|
+
case 9:
|
|
105762
|
+
message.mintToPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.decode(reader, reader.uint32());
|
|
105763
|
+
break;
|
|
105764
|
+
case 10:
|
|
105765
|
+
message.burnFromPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.decode(reader, reader.uint32());
|
|
105766
|
+
break;
|
|
105229
105767
|
default:
|
|
105230
105768
|
reader.skipType(tag & 7);
|
|
105231
105769
|
break;
|
|
@@ -105340,6 +105878,26 @@ $root.org = (function() {
|
|
|
105340
105878
|
return "updatePrice." + error;
|
|
105341
105879
|
}
|
|
105342
105880
|
}
|
|
105881
|
+
if (message.mintToPool != null && message.hasOwnProperty("mintToPool")) {
|
|
105882
|
+
if (properties.type === 1)
|
|
105883
|
+
return "type: multiple values";
|
|
105884
|
+
properties.type = 1;
|
|
105885
|
+
{
|
|
105886
|
+
var error = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.verify(message.mintToPool);
|
|
105887
|
+
if (error)
|
|
105888
|
+
return "mintToPool." + error;
|
|
105889
|
+
}
|
|
105890
|
+
}
|
|
105891
|
+
if (message.burnFromPool != null && message.hasOwnProperty("burnFromPool")) {
|
|
105892
|
+
if (properties.type === 1)
|
|
105893
|
+
return "type: multiple values";
|
|
105894
|
+
properties.type = 1;
|
|
105895
|
+
{
|
|
105896
|
+
var error = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.verify(message.burnFromPool);
|
|
105897
|
+
if (error)
|
|
105898
|
+
return "burnFromPool." + error;
|
|
105899
|
+
}
|
|
105900
|
+
}
|
|
105343
105901
|
return null;
|
|
105344
105902
|
};
|
|
105345
105903
|
|
|
@@ -105395,6 +105953,16 @@ $root.org = (function() {
|
|
|
105395
105953
|
throw TypeError(".org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent.updatePrice: object expected");
|
|
105396
105954
|
message.updatePrice = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.fromObject(object.updatePrice);
|
|
105397
105955
|
}
|
|
105956
|
+
if (object.mintToPool != null) {
|
|
105957
|
+
if (typeof object.mintToPool !== "object")
|
|
105958
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent.mintToPool: object expected");
|
|
105959
|
+
message.mintToPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.fromObject(object.mintToPool);
|
|
105960
|
+
}
|
|
105961
|
+
if (object.burnFromPool != null) {
|
|
105962
|
+
if (typeof object.burnFromPool !== "object")
|
|
105963
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent.burnFromPool: object expected");
|
|
105964
|
+
message.burnFromPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.fromObject(object.burnFromPool);
|
|
105965
|
+
}
|
|
105398
105966
|
return message;
|
|
105399
105967
|
};
|
|
105400
105968
|
|
|
@@ -105451,6 +106019,16 @@ $root.org = (function() {
|
|
|
105451
106019
|
if (options.oneofs)
|
|
105452
106020
|
object.type = "updatePrice";
|
|
105453
106021
|
}
|
|
106022
|
+
if (message.mintToPool != null && message.hasOwnProperty("mintToPool")) {
|
|
106023
|
+
object.mintToPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.toObject(message.mintToPool, options);
|
|
106024
|
+
if (options.oneofs)
|
|
106025
|
+
object.type = "mintToPool";
|
|
106026
|
+
}
|
|
106027
|
+
if (message.burnFromPool != null && message.hasOwnProperty("burnFromPool")) {
|
|
106028
|
+
object.burnFromPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.toObject(message.burnFromPool, options);
|
|
106029
|
+
if (options.oneofs)
|
|
106030
|
+
object.type = "burnFromPool";
|
|
106031
|
+
}
|
|
105454
106032
|
return object;
|
|
105455
106033
|
};
|
|
105456
106034
|
|
|
@@ -115550,6 +116128,7 @@ $root.org = (function() {
|
|
|
115550
116128
|
* @property {number|Long|null} [startIndex] GetShieldedEncryptedNotesRequestV0 startIndex
|
|
115551
116129
|
* @property {number|null} [count] GetShieldedEncryptedNotesRequestV0 count
|
|
115552
116130
|
* @property {boolean|null} [prove] GetShieldedEncryptedNotesRequestV0 prove
|
|
116131
|
+
* @property {Uint8Array|null} [tokenId] GetShieldedEncryptedNotesRequestV0 tokenId
|
|
115553
116132
|
*/
|
|
115554
116133
|
|
|
115555
116134
|
/**
|
|
@@ -115591,6 +116170,14 @@ $root.org = (function() {
|
|
|
115591
116170
|
*/
|
|
115592
116171
|
GetShieldedEncryptedNotesRequestV0.prototype.prove = false;
|
|
115593
116172
|
|
|
116173
|
+
/**
|
|
116174
|
+
* GetShieldedEncryptedNotesRequestV0 tokenId.
|
|
116175
|
+
* @member {Uint8Array} tokenId
|
|
116176
|
+
* @memberof org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0
|
|
116177
|
+
* @instance
|
|
116178
|
+
*/
|
|
116179
|
+
GetShieldedEncryptedNotesRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
116180
|
+
|
|
115594
116181
|
/**
|
|
115595
116182
|
* Creates a new GetShieldedEncryptedNotesRequestV0 instance using the specified properties.
|
|
115596
116183
|
* @function create
|
|
@@ -115621,6 +116208,8 @@ $root.org = (function() {
|
|
|
115621
116208
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.count);
|
|
115622
116209
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
115623
116210
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.prove);
|
|
116211
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
116212
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.tokenId);
|
|
115624
116213
|
return writer;
|
|
115625
116214
|
};
|
|
115626
116215
|
|
|
@@ -115664,6 +116253,9 @@ $root.org = (function() {
|
|
|
115664
116253
|
case 3:
|
|
115665
116254
|
message.prove = reader.bool();
|
|
115666
116255
|
break;
|
|
116256
|
+
case 4:
|
|
116257
|
+
message.tokenId = reader.bytes();
|
|
116258
|
+
break;
|
|
115667
116259
|
default:
|
|
115668
116260
|
reader.skipType(tag & 7);
|
|
115669
116261
|
break;
|
|
@@ -115708,6 +116300,9 @@ $root.org = (function() {
|
|
|
115708
116300
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
115709
116301
|
if (typeof message.prove !== "boolean")
|
|
115710
116302
|
return "prove: boolean expected";
|
|
116303
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
116304
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
116305
|
+
return "tokenId: buffer expected";
|
|
115711
116306
|
return null;
|
|
115712
116307
|
};
|
|
115713
116308
|
|
|
@@ -115736,6 +116331,11 @@ $root.org = (function() {
|
|
|
115736
116331
|
message.count = object.count >>> 0;
|
|
115737
116332
|
if (object.prove != null)
|
|
115738
116333
|
message.prove = Boolean(object.prove);
|
|
116334
|
+
if (object.tokenId != null)
|
|
116335
|
+
if (typeof object.tokenId === "string")
|
|
116336
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
116337
|
+
else if (object.tokenId.length >= 0)
|
|
116338
|
+
message.tokenId = object.tokenId;
|
|
115739
116339
|
return message;
|
|
115740
116340
|
};
|
|
115741
116341
|
|
|
@@ -115760,6 +116360,13 @@ $root.org = (function() {
|
|
|
115760
116360
|
object.startIndex = options.longs === String ? "0" : 0;
|
|
115761
116361
|
object.count = 0;
|
|
115762
116362
|
object.prove = false;
|
|
116363
|
+
if (options.bytes === String)
|
|
116364
|
+
object.tokenId = "";
|
|
116365
|
+
else {
|
|
116366
|
+
object.tokenId = [];
|
|
116367
|
+
if (options.bytes !== Array)
|
|
116368
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
116369
|
+
}
|
|
115763
116370
|
}
|
|
115764
116371
|
if (message.startIndex != null && message.hasOwnProperty("startIndex"))
|
|
115765
116372
|
if (typeof message.startIndex === "number")
|
|
@@ -115770,6 +116377,8 @@ $root.org = (function() {
|
|
|
115770
116377
|
object.count = message.count;
|
|
115771
116378
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
115772
116379
|
object.prove = message.prove;
|
|
116380
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
116381
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
115773
116382
|
return object;
|
|
115774
116383
|
};
|
|
115775
116384
|
|
|
@@ -116987,6 +117596,7 @@ $root.org = (function() {
|
|
|
116987
117596
|
* @memberof org.dash.platform.dapi.v0.GetShieldedAnchorsRequest
|
|
116988
117597
|
* @interface IGetShieldedAnchorsRequestV0
|
|
116989
117598
|
* @property {boolean|null} [prove] GetShieldedAnchorsRequestV0 prove
|
|
117599
|
+
* @property {Uint8Array|null} [tokenId] GetShieldedAnchorsRequestV0 tokenId
|
|
116990
117600
|
*/
|
|
116991
117601
|
|
|
116992
117602
|
/**
|
|
@@ -117012,6 +117622,14 @@ $root.org = (function() {
|
|
|
117012
117622
|
*/
|
|
117013
117623
|
GetShieldedAnchorsRequestV0.prototype.prove = false;
|
|
117014
117624
|
|
|
117625
|
+
/**
|
|
117626
|
+
* GetShieldedAnchorsRequestV0 tokenId.
|
|
117627
|
+
* @member {Uint8Array} tokenId
|
|
117628
|
+
* @memberof org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0
|
|
117629
|
+
* @instance
|
|
117630
|
+
*/
|
|
117631
|
+
GetShieldedAnchorsRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
117632
|
+
|
|
117015
117633
|
/**
|
|
117016
117634
|
* Creates a new GetShieldedAnchorsRequestV0 instance using the specified properties.
|
|
117017
117635
|
* @function create
|
|
@@ -117038,6 +117656,8 @@ $root.org = (function() {
|
|
|
117038
117656
|
writer = $Writer.create();
|
|
117039
117657
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
117040
117658
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
|
|
117659
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
117660
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
|
|
117041
117661
|
return writer;
|
|
117042
117662
|
};
|
|
117043
117663
|
|
|
@@ -117075,6 +117695,9 @@ $root.org = (function() {
|
|
|
117075
117695
|
case 1:
|
|
117076
117696
|
message.prove = reader.bool();
|
|
117077
117697
|
break;
|
|
117698
|
+
case 2:
|
|
117699
|
+
message.tokenId = reader.bytes();
|
|
117700
|
+
break;
|
|
117078
117701
|
default:
|
|
117079
117702
|
reader.skipType(tag & 7);
|
|
117080
117703
|
break;
|
|
@@ -117113,6 +117736,9 @@ $root.org = (function() {
|
|
|
117113
117736
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
117114
117737
|
if (typeof message.prove !== "boolean")
|
|
117115
117738
|
return "prove: boolean expected";
|
|
117739
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
117740
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
117741
|
+
return "tokenId: buffer expected";
|
|
117116
117742
|
return null;
|
|
117117
117743
|
};
|
|
117118
117744
|
|
|
@@ -117130,6 +117756,11 @@ $root.org = (function() {
|
|
|
117130
117756
|
var message = new $root.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0();
|
|
117131
117757
|
if (object.prove != null)
|
|
117132
117758
|
message.prove = Boolean(object.prove);
|
|
117759
|
+
if (object.tokenId != null)
|
|
117760
|
+
if (typeof object.tokenId === "string")
|
|
117761
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
117762
|
+
else if (object.tokenId.length >= 0)
|
|
117763
|
+
message.tokenId = object.tokenId;
|
|
117133
117764
|
return message;
|
|
117134
117765
|
};
|
|
117135
117766
|
|
|
@@ -117146,10 +117777,20 @@ $root.org = (function() {
|
|
|
117146
117777
|
if (!options)
|
|
117147
117778
|
options = {};
|
|
117148
117779
|
var object = {};
|
|
117149
|
-
if (options.defaults)
|
|
117780
|
+
if (options.defaults) {
|
|
117150
117781
|
object.prove = false;
|
|
117782
|
+
if (options.bytes === String)
|
|
117783
|
+
object.tokenId = "";
|
|
117784
|
+
else {
|
|
117785
|
+
object.tokenId = [];
|
|
117786
|
+
if (options.bytes !== Array)
|
|
117787
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
117788
|
+
}
|
|
117789
|
+
}
|
|
117151
117790
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
117152
117791
|
object.prove = message.prove;
|
|
117792
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
117793
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
117153
117794
|
return object;
|
|
117154
117795
|
};
|
|
117155
117796
|
|
|
@@ -118075,6 +118716,7 @@ $root.org = (function() {
|
|
|
118075
118716
|
* @memberof org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest
|
|
118076
118717
|
* @interface IGetMostRecentShieldedAnchorRequestV0
|
|
118077
118718
|
* @property {boolean|null} [prove] GetMostRecentShieldedAnchorRequestV0 prove
|
|
118719
|
+
* @property {Uint8Array|null} [tokenId] GetMostRecentShieldedAnchorRequestV0 tokenId
|
|
118078
118720
|
*/
|
|
118079
118721
|
|
|
118080
118722
|
/**
|
|
@@ -118100,6 +118742,14 @@ $root.org = (function() {
|
|
|
118100
118742
|
*/
|
|
118101
118743
|
GetMostRecentShieldedAnchorRequestV0.prototype.prove = false;
|
|
118102
118744
|
|
|
118745
|
+
/**
|
|
118746
|
+
* GetMostRecentShieldedAnchorRequestV0 tokenId.
|
|
118747
|
+
* @member {Uint8Array} tokenId
|
|
118748
|
+
* @memberof org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0
|
|
118749
|
+
* @instance
|
|
118750
|
+
*/
|
|
118751
|
+
GetMostRecentShieldedAnchorRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
118752
|
+
|
|
118103
118753
|
/**
|
|
118104
118754
|
* Creates a new GetMostRecentShieldedAnchorRequestV0 instance using the specified properties.
|
|
118105
118755
|
* @function create
|
|
@@ -118126,6 +118776,8 @@ $root.org = (function() {
|
|
|
118126
118776
|
writer = $Writer.create();
|
|
118127
118777
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
118128
118778
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
|
|
118779
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
118780
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
|
|
118129
118781
|
return writer;
|
|
118130
118782
|
};
|
|
118131
118783
|
|
|
@@ -118163,6 +118815,9 @@ $root.org = (function() {
|
|
|
118163
118815
|
case 1:
|
|
118164
118816
|
message.prove = reader.bool();
|
|
118165
118817
|
break;
|
|
118818
|
+
case 2:
|
|
118819
|
+
message.tokenId = reader.bytes();
|
|
118820
|
+
break;
|
|
118166
118821
|
default:
|
|
118167
118822
|
reader.skipType(tag & 7);
|
|
118168
118823
|
break;
|
|
@@ -118201,6 +118856,9 @@ $root.org = (function() {
|
|
|
118201
118856
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
118202
118857
|
if (typeof message.prove !== "boolean")
|
|
118203
118858
|
return "prove: boolean expected";
|
|
118859
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
118860
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
118861
|
+
return "tokenId: buffer expected";
|
|
118204
118862
|
return null;
|
|
118205
118863
|
};
|
|
118206
118864
|
|
|
@@ -118218,6 +118876,11 @@ $root.org = (function() {
|
|
|
118218
118876
|
var message = new $root.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0();
|
|
118219
118877
|
if (object.prove != null)
|
|
118220
118878
|
message.prove = Boolean(object.prove);
|
|
118879
|
+
if (object.tokenId != null)
|
|
118880
|
+
if (typeof object.tokenId === "string")
|
|
118881
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
118882
|
+
else if (object.tokenId.length >= 0)
|
|
118883
|
+
message.tokenId = object.tokenId;
|
|
118221
118884
|
return message;
|
|
118222
118885
|
};
|
|
118223
118886
|
|
|
@@ -118234,10 +118897,20 @@ $root.org = (function() {
|
|
|
118234
118897
|
if (!options)
|
|
118235
118898
|
options = {};
|
|
118236
118899
|
var object = {};
|
|
118237
|
-
if (options.defaults)
|
|
118900
|
+
if (options.defaults) {
|
|
118238
118901
|
object.prove = false;
|
|
118902
|
+
if (options.bytes === String)
|
|
118903
|
+
object.tokenId = "";
|
|
118904
|
+
else {
|
|
118905
|
+
object.tokenId = [];
|
|
118906
|
+
if (options.bytes !== Array)
|
|
118907
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
118908
|
+
}
|
|
118909
|
+
}
|
|
118239
118910
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
118240
118911
|
object.prove = message.prove;
|
|
118912
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
118913
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
118241
118914
|
return object;
|
|
118242
118915
|
};
|
|
118243
118916
|
|
|
@@ -118954,6 +119627,7 @@ $root.org = (function() {
|
|
|
118954
119627
|
* @memberof org.dash.platform.dapi.v0.GetShieldedPoolStateRequest
|
|
118955
119628
|
* @interface IGetShieldedPoolStateRequestV0
|
|
118956
119629
|
* @property {boolean|null} [prove] GetShieldedPoolStateRequestV0 prove
|
|
119630
|
+
* @property {Uint8Array|null} [tokenId] GetShieldedPoolStateRequestV0 tokenId
|
|
118957
119631
|
*/
|
|
118958
119632
|
|
|
118959
119633
|
/**
|
|
@@ -118979,6 +119653,14 @@ $root.org = (function() {
|
|
|
118979
119653
|
*/
|
|
118980
119654
|
GetShieldedPoolStateRequestV0.prototype.prove = false;
|
|
118981
119655
|
|
|
119656
|
+
/**
|
|
119657
|
+
* GetShieldedPoolStateRequestV0 tokenId.
|
|
119658
|
+
* @member {Uint8Array} tokenId
|
|
119659
|
+
* @memberof org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0
|
|
119660
|
+
* @instance
|
|
119661
|
+
*/
|
|
119662
|
+
GetShieldedPoolStateRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
119663
|
+
|
|
118982
119664
|
/**
|
|
118983
119665
|
* Creates a new GetShieldedPoolStateRequestV0 instance using the specified properties.
|
|
118984
119666
|
* @function create
|
|
@@ -119005,6 +119687,8 @@ $root.org = (function() {
|
|
|
119005
119687
|
writer = $Writer.create();
|
|
119006
119688
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
119007
119689
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
|
|
119690
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
119691
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
|
|
119008
119692
|
return writer;
|
|
119009
119693
|
};
|
|
119010
119694
|
|
|
@@ -119042,6 +119726,9 @@ $root.org = (function() {
|
|
|
119042
119726
|
case 1:
|
|
119043
119727
|
message.prove = reader.bool();
|
|
119044
119728
|
break;
|
|
119729
|
+
case 2:
|
|
119730
|
+
message.tokenId = reader.bytes();
|
|
119731
|
+
break;
|
|
119045
119732
|
default:
|
|
119046
119733
|
reader.skipType(tag & 7);
|
|
119047
119734
|
break;
|
|
@@ -119080,6 +119767,9 @@ $root.org = (function() {
|
|
|
119080
119767
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
119081
119768
|
if (typeof message.prove !== "boolean")
|
|
119082
119769
|
return "prove: boolean expected";
|
|
119770
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
119771
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
119772
|
+
return "tokenId: buffer expected";
|
|
119083
119773
|
return null;
|
|
119084
119774
|
};
|
|
119085
119775
|
|
|
@@ -119097,6 +119787,11 @@ $root.org = (function() {
|
|
|
119097
119787
|
var message = new $root.org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0();
|
|
119098
119788
|
if (object.prove != null)
|
|
119099
119789
|
message.prove = Boolean(object.prove);
|
|
119790
|
+
if (object.tokenId != null)
|
|
119791
|
+
if (typeof object.tokenId === "string")
|
|
119792
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
119793
|
+
else if (object.tokenId.length >= 0)
|
|
119794
|
+
message.tokenId = object.tokenId;
|
|
119100
119795
|
return message;
|
|
119101
119796
|
};
|
|
119102
119797
|
|
|
@@ -119113,10 +119808,20 @@ $root.org = (function() {
|
|
|
119113
119808
|
if (!options)
|
|
119114
119809
|
options = {};
|
|
119115
119810
|
var object = {};
|
|
119116
|
-
if (options.defaults)
|
|
119811
|
+
if (options.defaults) {
|
|
119117
119812
|
object.prove = false;
|
|
119813
|
+
if (options.bytes === String)
|
|
119814
|
+
object.tokenId = "";
|
|
119815
|
+
else {
|
|
119816
|
+
object.tokenId = [];
|
|
119817
|
+
if (options.bytes !== Array)
|
|
119818
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
119819
|
+
}
|
|
119820
|
+
}
|
|
119118
119821
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
119119
119822
|
object.prove = message.prove;
|
|
119823
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
119824
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
119120
119825
|
return object;
|
|
119121
119826
|
};
|
|
119122
119827
|
|
|
@@ -119840,6 +120545,7 @@ $root.org = (function() {
|
|
|
119840
120545
|
* @memberof org.dash.platform.dapi.v0.GetShieldedNotesCountRequest
|
|
119841
120546
|
* @interface IGetShieldedNotesCountRequestV0
|
|
119842
120547
|
* @property {boolean|null} [prove] GetShieldedNotesCountRequestV0 prove
|
|
120548
|
+
* @property {Uint8Array|null} [tokenId] GetShieldedNotesCountRequestV0 tokenId
|
|
119843
120549
|
*/
|
|
119844
120550
|
|
|
119845
120551
|
/**
|
|
@@ -119865,6 +120571,14 @@ $root.org = (function() {
|
|
|
119865
120571
|
*/
|
|
119866
120572
|
GetShieldedNotesCountRequestV0.prototype.prove = false;
|
|
119867
120573
|
|
|
120574
|
+
/**
|
|
120575
|
+
* GetShieldedNotesCountRequestV0 tokenId.
|
|
120576
|
+
* @member {Uint8Array} tokenId
|
|
120577
|
+
* @memberof org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0
|
|
120578
|
+
* @instance
|
|
120579
|
+
*/
|
|
120580
|
+
GetShieldedNotesCountRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
120581
|
+
|
|
119868
120582
|
/**
|
|
119869
120583
|
* Creates a new GetShieldedNotesCountRequestV0 instance using the specified properties.
|
|
119870
120584
|
* @function create
|
|
@@ -119891,6 +120605,8 @@ $root.org = (function() {
|
|
|
119891
120605
|
writer = $Writer.create();
|
|
119892
120606
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
119893
120607
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
|
|
120608
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
120609
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
|
|
119894
120610
|
return writer;
|
|
119895
120611
|
};
|
|
119896
120612
|
|
|
@@ -119928,6 +120644,9 @@ $root.org = (function() {
|
|
|
119928
120644
|
case 1:
|
|
119929
120645
|
message.prove = reader.bool();
|
|
119930
120646
|
break;
|
|
120647
|
+
case 2:
|
|
120648
|
+
message.tokenId = reader.bytes();
|
|
120649
|
+
break;
|
|
119931
120650
|
default:
|
|
119932
120651
|
reader.skipType(tag & 7);
|
|
119933
120652
|
break;
|
|
@@ -119966,6 +120685,9 @@ $root.org = (function() {
|
|
|
119966
120685
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
119967
120686
|
if (typeof message.prove !== "boolean")
|
|
119968
120687
|
return "prove: boolean expected";
|
|
120688
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
120689
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
120690
|
+
return "tokenId: buffer expected";
|
|
119969
120691
|
return null;
|
|
119970
120692
|
};
|
|
119971
120693
|
|
|
@@ -119983,6 +120705,11 @@ $root.org = (function() {
|
|
|
119983
120705
|
var message = new $root.org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0();
|
|
119984
120706
|
if (object.prove != null)
|
|
119985
120707
|
message.prove = Boolean(object.prove);
|
|
120708
|
+
if (object.tokenId != null)
|
|
120709
|
+
if (typeof object.tokenId === "string")
|
|
120710
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
120711
|
+
else if (object.tokenId.length >= 0)
|
|
120712
|
+
message.tokenId = object.tokenId;
|
|
119986
120713
|
return message;
|
|
119987
120714
|
};
|
|
119988
120715
|
|
|
@@ -119999,10 +120726,20 @@ $root.org = (function() {
|
|
|
119999
120726
|
if (!options)
|
|
120000
120727
|
options = {};
|
|
120001
120728
|
var object = {};
|
|
120002
|
-
if (options.defaults)
|
|
120729
|
+
if (options.defaults) {
|
|
120003
120730
|
object.prove = false;
|
|
120731
|
+
if (options.bytes === String)
|
|
120732
|
+
object.tokenId = "";
|
|
120733
|
+
else {
|
|
120734
|
+
object.tokenId = [];
|
|
120735
|
+
if (options.bytes !== Array)
|
|
120736
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
120737
|
+
}
|
|
120738
|
+
}
|
|
120004
120739
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
120005
120740
|
object.prove = message.prove;
|
|
120741
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
120742
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
120006
120743
|
return object;
|
|
120007
120744
|
};
|
|
120008
120745
|
|
|
@@ -120727,6 +121464,7 @@ $root.org = (function() {
|
|
|
120727
121464
|
* @interface IGetShieldedNullifiersRequestV0
|
|
120728
121465
|
* @property {Array.<Uint8Array>|null} [nullifiers] GetShieldedNullifiersRequestV0 nullifiers
|
|
120729
121466
|
* @property {boolean|null} [prove] GetShieldedNullifiersRequestV0 prove
|
|
121467
|
+
* @property {Uint8Array|null} [tokenId] GetShieldedNullifiersRequestV0 tokenId
|
|
120730
121468
|
*/
|
|
120731
121469
|
|
|
120732
121470
|
/**
|
|
@@ -120761,6 +121499,14 @@ $root.org = (function() {
|
|
|
120761
121499
|
*/
|
|
120762
121500
|
GetShieldedNullifiersRequestV0.prototype.prove = false;
|
|
120763
121501
|
|
|
121502
|
+
/**
|
|
121503
|
+
* GetShieldedNullifiersRequestV0 tokenId.
|
|
121504
|
+
* @member {Uint8Array} tokenId
|
|
121505
|
+
* @memberof org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0
|
|
121506
|
+
* @instance
|
|
121507
|
+
*/
|
|
121508
|
+
GetShieldedNullifiersRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
121509
|
+
|
|
120764
121510
|
/**
|
|
120765
121511
|
* Creates a new GetShieldedNullifiersRequestV0 instance using the specified properties.
|
|
120766
121512
|
* @function create
|
|
@@ -120790,6 +121536,8 @@ $root.org = (function() {
|
|
|
120790
121536
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.nullifiers[i]);
|
|
120791
121537
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
120792
121538
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
121539
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
121540
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.tokenId);
|
|
120793
121541
|
return writer;
|
|
120794
121542
|
};
|
|
120795
121543
|
|
|
@@ -120832,6 +121580,9 @@ $root.org = (function() {
|
|
|
120832
121580
|
case 2:
|
|
120833
121581
|
message.prove = reader.bool();
|
|
120834
121582
|
break;
|
|
121583
|
+
case 3:
|
|
121584
|
+
message.tokenId = reader.bytes();
|
|
121585
|
+
break;
|
|
120835
121586
|
default:
|
|
120836
121587
|
reader.skipType(tag & 7);
|
|
120837
121588
|
break;
|
|
@@ -120877,6 +121628,9 @@ $root.org = (function() {
|
|
|
120877
121628
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
120878
121629
|
if (typeof message.prove !== "boolean")
|
|
120879
121630
|
return "prove: boolean expected";
|
|
121631
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
121632
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
121633
|
+
return "tokenId: buffer expected";
|
|
120880
121634
|
return null;
|
|
120881
121635
|
};
|
|
120882
121636
|
|
|
@@ -120904,6 +121658,11 @@ $root.org = (function() {
|
|
|
120904
121658
|
}
|
|
120905
121659
|
if (object.prove != null)
|
|
120906
121660
|
message.prove = Boolean(object.prove);
|
|
121661
|
+
if (object.tokenId != null)
|
|
121662
|
+
if (typeof object.tokenId === "string")
|
|
121663
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
121664
|
+
else if (object.tokenId.length >= 0)
|
|
121665
|
+
message.tokenId = object.tokenId;
|
|
120907
121666
|
return message;
|
|
120908
121667
|
};
|
|
120909
121668
|
|
|
@@ -120922,8 +121681,16 @@ $root.org = (function() {
|
|
|
120922
121681
|
var object = {};
|
|
120923
121682
|
if (options.arrays || options.defaults)
|
|
120924
121683
|
object.nullifiers = [];
|
|
120925
|
-
if (options.defaults)
|
|
121684
|
+
if (options.defaults) {
|
|
120926
121685
|
object.prove = false;
|
|
121686
|
+
if (options.bytes === String)
|
|
121687
|
+
object.tokenId = "";
|
|
121688
|
+
else {
|
|
121689
|
+
object.tokenId = [];
|
|
121690
|
+
if (options.bytes !== Array)
|
|
121691
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
121692
|
+
}
|
|
121693
|
+
}
|
|
120927
121694
|
if (message.nullifiers && message.nullifiers.length) {
|
|
120928
121695
|
object.nullifiers = [];
|
|
120929
121696
|
for (var j = 0; j < message.nullifiers.length; ++j)
|
|
@@ -120931,6 +121698,8 @@ $root.org = (function() {
|
|
|
120931
121698
|
}
|
|
120932
121699
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
120933
121700
|
object.prove = message.prove;
|
|
121701
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
121702
|
+
object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
|
|
120934
121703
|
return object;
|
|
120935
121704
|
};
|
|
120936
121705
|
|