@trustwallet/wallet-core 3.1.27 → 3.1.29

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.
@@ -45977,6 +45977,1728 @@
45977
45977
  return IoTeX;
45978
45978
  })();
45979
45979
 
45980
+ TW.LiquidStaking = (function() {
45981
+
45982
+ /**
45983
+ * Namespace LiquidStaking.
45984
+ * @memberof TW
45985
+ * @namespace
45986
+ */
45987
+ var LiquidStaking = {};
45988
+
45989
+ LiquidStaking.Proto = (function() {
45990
+
45991
+ /**
45992
+ * Namespace Proto.
45993
+ * @memberof TW.LiquidStaking
45994
+ * @namespace
45995
+ */
45996
+ var Proto = {};
45997
+
45998
+ /**
45999
+ * Coin enum.
46000
+ * @name TW.LiquidStaking.Proto.Coin
46001
+ * @enum {number}
46002
+ * @property {number} MATIC=0 MATIC value
46003
+ * @property {number} ATOM=1 ATOM value
46004
+ * @property {number} BNB=2 BNB value
46005
+ */
46006
+ Proto.Coin = (function() {
46007
+ var valuesById = {}, values = Object.create(valuesById);
46008
+ values[valuesById[0] = "MATIC"] = 0;
46009
+ values[valuesById[1] = "ATOM"] = 1;
46010
+ values[valuesById[2] = "BNB"] = 2;
46011
+ return values;
46012
+ })();
46013
+
46014
+ /**
46015
+ * Blockchain enum.
46016
+ * @name TW.LiquidStaking.Proto.Blockchain
46017
+ * @enum {number}
46018
+ * @property {number} ETHEREUM=0 ETHEREUM value
46019
+ * @property {number} POLYGON=1 POLYGON value
46020
+ * @property {number} STRIDE=2 STRIDE value
46021
+ * @property {number} BNB_BSC=3 BNB_BSC value
46022
+ */
46023
+ Proto.Blockchain = (function() {
46024
+ var valuesById = {}, values = Object.create(valuesById);
46025
+ values[valuesById[0] = "ETHEREUM"] = 0;
46026
+ values[valuesById[1] = "POLYGON"] = 1;
46027
+ values[valuesById[2] = "STRIDE"] = 2;
46028
+ values[valuesById[3] = "BNB_BSC"] = 3;
46029
+ return values;
46030
+ })();
46031
+
46032
+ /**
46033
+ * Protocol enum.
46034
+ * @name TW.LiquidStaking.Proto.Protocol
46035
+ * @enum {number}
46036
+ * @property {number} Strader=0 Strader value
46037
+ * @property {number} Stride=1 Stride value
46038
+ */
46039
+ Proto.Protocol = (function() {
46040
+ var valuesById = {}, values = Object.create(valuesById);
46041
+ values[valuesById[0] = "Strader"] = 0;
46042
+ values[valuesById[1] = "Stride"] = 1;
46043
+ return values;
46044
+ })();
46045
+
46046
+ /**
46047
+ * StatusCode enum.
46048
+ * @name TW.LiquidStaking.Proto.StatusCode
46049
+ * @enum {number}
46050
+ * @property {number} OK=0 OK value
46051
+ * @property {number} ERROR_ACTION_NOT_SET=1 ERROR_ACTION_NOT_SET value
46052
+ * @property {number} ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL=2 ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL value
46053
+ * @property {number} ERROR_SMART_CONTRACT_ADDRESS_NOT_SET=3 ERROR_SMART_CONTRACT_ADDRESS_NOT_SET value
46054
+ * @property {number} ERROR_INPUT_PROTO_DESERIALIZATION=4 ERROR_INPUT_PROTO_DESERIALIZATION value
46055
+ */
46056
+ Proto.StatusCode = (function() {
46057
+ var valuesById = {}, values = Object.create(valuesById);
46058
+ values[valuesById[0] = "OK"] = 0;
46059
+ values[valuesById[1] = "ERROR_ACTION_NOT_SET"] = 1;
46060
+ values[valuesById[2] = "ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL"] = 2;
46061
+ values[valuesById[3] = "ERROR_SMART_CONTRACT_ADDRESS_NOT_SET"] = 3;
46062
+ values[valuesById[4] = "ERROR_INPUT_PROTO_DESERIALIZATION"] = 4;
46063
+ return values;
46064
+ })();
46065
+
46066
+ Proto.Status = (function() {
46067
+
46068
+ /**
46069
+ * Properties of a Status.
46070
+ * @memberof TW.LiquidStaking.Proto
46071
+ * @interface IStatus
46072
+ * @property {TW.LiquidStaking.Proto.StatusCode|null} [code] Status code
46073
+ * @property {string|null} [message] Status message
46074
+ */
46075
+
46076
+ /**
46077
+ * Constructs a new Status.
46078
+ * @memberof TW.LiquidStaking.Proto
46079
+ * @classdesc Represents a Status.
46080
+ * @implements IStatus
46081
+ * @constructor
46082
+ * @param {TW.LiquidStaking.Proto.IStatus=} [properties] Properties to set
46083
+ */
46084
+ function Status(properties) {
46085
+ if (properties)
46086
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46087
+ if (properties[keys[i]] != null)
46088
+ this[keys[i]] = properties[keys[i]];
46089
+ }
46090
+
46091
+ /**
46092
+ * Status code.
46093
+ * @member {TW.LiquidStaking.Proto.StatusCode} code
46094
+ * @memberof TW.LiquidStaking.Proto.Status
46095
+ * @instance
46096
+ */
46097
+ Status.prototype.code = 0;
46098
+
46099
+ /**
46100
+ * Status message.
46101
+ * @member {string} message
46102
+ * @memberof TW.LiquidStaking.Proto.Status
46103
+ * @instance
46104
+ */
46105
+ Status.prototype.message = "";
46106
+
46107
+ /**
46108
+ * Creates a new Status instance using the specified properties.
46109
+ * @function create
46110
+ * @memberof TW.LiquidStaking.Proto.Status
46111
+ * @static
46112
+ * @param {TW.LiquidStaking.Proto.IStatus=} [properties] Properties to set
46113
+ * @returns {TW.LiquidStaking.Proto.Status} Status instance
46114
+ */
46115
+ Status.create = function create(properties) {
46116
+ return new Status(properties);
46117
+ };
46118
+
46119
+ /**
46120
+ * Encodes the specified Status message. Does not implicitly {@link TW.LiquidStaking.Proto.Status.verify|verify} messages.
46121
+ * @function encode
46122
+ * @memberof TW.LiquidStaking.Proto.Status
46123
+ * @static
46124
+ * @param {TW.LiquidStaking.Proto.IStatus} message Status message or plain object to encode
46125
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46126
+ * @returns {$protobuf.Writer} Writer
46127
+ */
46128
+ Status.encode = function encode(message, writer) {
46129
+ if (!writer)
46130
+ writer = $Writer.create();
46131
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
46132
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
46133
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
46134
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
46135
+ return writer;
46136
+ };
46137
+
46138
+ /**
46139
+ * Decodes a Status message from the specified reader or buffer.
46140
+ * @function decode
46141
+ * @memberof TW.LiquidStaking.Proto.Status
46142
+ * @static
46143
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46144
+ * @param {number} [length] Message length if known beforehand
46145
+ * @returns {TW.LiquidStaking.Proto.Status} Status
46146
+ * @throws {Error} If the payload is not a reader or valid buffer
46147
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46148
+ */
46149
+ Status.decode = function decode(reader, length) {
46150
+ if (!(reader instanceof $Reader))
46151
+ reader = $Reader.create(reader);
46152
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Status();
46153
+ while (reader.pos < end) {
46154
+ var tag = reader.uint32();
46155
+ switch (tag >>> 3) {
46156
+ case 1:
46157
+ message.code = reader.int32();
46158
+ break;
46159
+ case 2:
46160
+ message.message = reader.string();
46161
+ break;
46162
+ default:
46163
+ reader.skipType(tag & 7);
46164
+ break;
46165
+ }
46166
+ }
46167
+ return message;
46168
+ };
46169
+
46170
+ /**
46171
+ * Verifies a Status message.
46172
+ * @function verify
46173
+ * @memberof TW.LiquidStaking.Proto.Status
46174
+ * @static
46175
+ * @param {Object.<string,*>} message Plain object to verify
46176
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46177
+ */
46178
+ Status.verify = function verify(message) {
46179
+ if (typeof message !== "object" || message === null)
46180
+ return "object expected";
46181
+ if (message.code != null && message.hasOwnProperty("code"))
46182
+ switch (message.code) {
46183
+ default:
46184
+ return "code: enum value expected";
46185
+ case 0:
46186
+ case 1:
46187
+ case 2:
46188
+ case 3:
46189
+ case 4:
46190
+ break;
46191
+ }
46192
+ if (message.message != null && message.hasOwnProperty("message"))
46193
+ if (!$util.isString(message.message))
46194
+ return "message: string expected";
46195
+ return null;
46196
+ };
46197
+
46198
+ /**
46199
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
46200
+ * @function fromObject
46201
+ * @memberof TW.LiquidStaking.Proto.Status
46202
+ * @static
46203
+ * @param {Object.<string,*>} object Plain object
46204
+ * @returns {TW.LiquidStaking.Proto.Status} Status
46205
+ */
46206
+ Status.fromObject = function fromObject(object) {
46207
+ if (object instanceof $root.TW.LiquidStaking.Proto.Status)
46208
+ return object;
46209
+ var message = new $root.TW.LiquidStaking.Proto.Status();
46210
+ switch (object.code) {
46211
+ case "OK":
46212
+ case 0:
46213
+ message.code = 0;
46214
+ break;
46215
+ case "ERROR_ACTION_NOT_SET":
46216
+ case 1:
46217
+ message.code = 1;
46218
+ break;
46219
+ case "ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL":
46220
+ case 2:
46221
+ message.code = 2;
46222
+ break;
46223
+ case "ERROR_SMART_CONTRACT_ADDRESS_NOT_SET":
46224
+ case 3:
46225
+ message.code = 3;
46226
+ break;
46227
+ case "ERROR_INPUT_PROTO_DESERIALIZATION":
46228
+ case 4:
46229
+ message.code = 4;
46230
+ break;
46231
+ }
46232
+ if (object.message != null)
46233
+ message.message = String(object.message);
46234
+ return message;
46235
+ };
46236
+
46237
+ /**
46238
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
46239
+ * @function toObject
46240
+ * @memberof TW.LiquidStaking.Proto.Status
46241
+ * @static
46242
+ * @param {TW.LiquidStaking.Proto.Status} message Status
46243
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46244
+ * @returns {Object.<string,*>} Plain object
46245
+ */
46246
+ Status.toObject = function toObject(message, options) {
46247
+ if (!options)
46248
+ options = {};
46249
+ var object = {};
46250
+ if (options.defaults) {
46251
+ object.code = options.enums === String ? "OK" : 0;
46252
+ object.message = "";
46253
+ }
46254
+ if (message.code != null && message.hasOwnProperty("code"))
46255
+ object.code = options.enums === String ? $root.TW.LiquidStaking.Proto.StatusCode[message.code] : message.code;
46256
+ if (message.message != null && message.hasOwnProperty("message"))
46257
+ object.message = message.message;
46258
+ return object;
46259
+ };
46260
+
46261
+ /**
46262
+ * Converts this Status to JSON.
46263
+ * @function toJSON
46264
+ * @memberof TW.LiquidStaking.Proto.Status
46265
+ * @instance
46266
+ * @returns {Object.<string,*>} JSON object
46267
+ */
46268
+ Status.prototype.toJSON = function toJSON() {
46269
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46270
+ };
46271
+
46272
+ return Status;
46273
+ })();
46274
+
46275
+ Proto.Asset = (function() {
46276
+
46277
+ /**
46278
+ * Properties of an Asset.
46279
+ * @memberof TW.LiquidStaking.Proto
46280
+ * @interface IAsset
46281
+ * @property {TW.LiquidStaking.Proto.Coin|null} [stakingToken] Asset stakingToken
46282
+ * @property {string|null} [liquidToken] Asset liquidToken
46283
+ * @property {string|null} [denom] Asset denom
46284
+ * @property {string|null} [fromAddress] Asset fromAddress
46285
+ */
46286
+
46287
+ /**
46288
+ * Constructs a new Asset.
46289
+ * @memberof TW.LiquidStaking.Proto
46290
+ * @classdesc Represents an Asset.
46291
+ * @implements IAsset
46292
+ * @constructor
46293
+ * @param {TW.LiquidStaking.Proto.IAsset=} [properties] Properties to set
46294
+ */
46295
+ function Asset(properties) {
46296
+ if (properties)
46297
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46298
+ if (properties[keys[i]] != null)
46299
+ this[keys[i]] = properties[keys[i]];
46300
+ }
46301
+
46302
+ /**
46303
+ * Asset stakingToken.
46304
+ * @member {TW.LiquidStaking.Proto.Coin} stakingToken
46305
+ * @memberof TW.LiquidStaking.Proto.Asset
46306
+ * @instance
46307
+ */
46308
+ Asset.prototype.stakingToken = 0;
46309
+
46310
+ /**
46311
+ * Asset liquidToken.
46312
+ * @member {string} liquidToken
46313
+ * @memberof TW.LiquidStaking.Proto.Asset
46314
+ * @instance
46315
+ */
46316
+ Asset.prototype.liquidToken = "";
46317
+
46318
+ /**
46319
+ * Asset denom.
46320
+ * @member {string} denom
46321
+ * @memberof TW.LiquidStaking.Proto.Asset
46322
+ * @instance
46323
+ */
46324
+ Asset.prototype.denom = "";
46325
+
46326
+ /**
46327
+ * Asset fromAddress.
46328
+ * @member {string} fromAddress
46329
+ * @memberof TW.LiquidStaking.Proto.Asset
46330
+ * @instance
46331
+ */
46332
+ Asset.prototype.fromAddress = "";
46333
+
46334
+ /**
46335
+ * Creates a new Asset instance using the specified properties.
46336
+ * @function create
46337
+ * @memberof TW.LiquidStaking.Proto.Asset
46338
+ * @static
46339
+ * @param {TW.LiquidStaking.Proto.IAsset=} [properties] Properties to set
46340
+ * @returns {TW.LiquidStaking.Proto.Asset} Asset instance
46341
+ */
46342
+ Asset.create = function create(properties) {
46343
+ return new Asset(properties);
46344
+ };
46345
+
46346
+ /**
46347
+ * Encodes the specified Asset message. Does not implicitly {@link TW.LiquidStaking.Proto.Asset.verify|verify} messages.
46348
+ * @function encode
46349
+ * @memberof TW.LiquidStaking.Proto.Asset
46350
+ * @static
46351
+ * @param {TW.LiquidStaking.Proto.IAsset} message Asset message or plain object to encode
46352
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46353
+ * @returns {$protobuf.Writer} Writer
46354
+ */
46355
+ Asset.encode = function encode(message, writer) {
46356
+ if (!writer)
46357
+ writer = $Writer.create();
46358
+ if (message.stakingToken != null && Object.hasOwnProperty.call(message, "stakingToken"))
46359
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stakingToken);
46360
+ if (message.liquidToken != null && Object.hasOwnProperty.call(message, "liquidToken"))
46361
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.liquidToken);
46362
+ if (message.denom != null && Object.hasOwnProperty.call(message, "denom"))
46363
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.denom);
46364
+ if (message.fromAddress != null && Object.hasOwnProperty.call(message, "fromAddress"))
46365
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.fromAddress);
46366
+ return writer;
46367
+ };
46368
+
46369
+ /**
46370
+ * Decodes an Asset message from the specified reader or buffer.
46371
+ * @function decode
46372
+ * @memberof TW.LiquidStaking.Proto.Asset
46373
+ * @static
46374
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46375
+ * @param {number} [length] Message length if known beforehand
46376
+ * @returns {TW.LiquidStaking.Proto.Asset} Asset
46377
+ * @throws {Error} If the payload is not a reader or valid buffer
46378
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46379
+ */
46380
+ Asset.decode = function decode(reader, length) {
46381
+ if (!(reader instanceof $Reader))
46382
+ reader = $Reader.create(reader);
46383
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Asset();
46384
+ while (reader.pos < end) {
46385
+ var tag = reader.uint32();
46386
+ switch (tag >>> 3) {
46387
+ case 1:
46388
+ message.stakingToken = reader.int32();
46389
+ break;
46390
+ case 2:
46391
+ message.liquidToken = reader.string();
46392
+ break;
46393
+ case 3:
46394
+ message.denom = reader.string();
46395
+ break;
46396
+ case 4:
46397
+ message.fromAddress = reader.string();
46398
+ break;
46399
+ default:
46400
+ reader.skipType(tag & 7);
46401
+ break;
46402
+ }
46403
+ }
46404
+ return message;
46405
+ };
46406
+
46407
+ /**
46408
+ * Verifies an Asset message.
46409
+ * @function verify
46410
+ * @memberof TW.LiquidStaking.Proto.Asset
46411
+ * @static
46412
+ * @param {Object.<string,*>} message Plain object to verify
46413
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46414
+ */
46415
+ Asset.verify = function verify(message) {
46416
+ if (typeof message !== "object" || message === null)
46417
+ return "object expected";
46418
+ if (message.stakingToken != null && message.hasOwnProperty("stakingToken"))
46419
+ switch (message.stakingToken) {
46420
+ default:
46421
+ return "stakingToken: enum value expected";
46422
+ case 0:
46423
+ case 1:
46424
+ case 2:
46425
+ break;
46426
+ }
46427
+ if (message.liquidToken != null && message.hasOwnProperty("liquidToken"))
46428
+ if (!$util.isString(message.liquidToken))
46429
+ return "liquidToken: string expected";
46430
+ if (message.denom != null && message.hasOwnProperty("denom"))
46431
+ if (!$util.isString(message.denom))
46432
+ return "denom: string expected";
46433
+ if (message.fromAddress != null && message.hasOwnProperty("fromAddress"))
46434
+ if (!$util.isString(message.fromAddress))
46435
+ return "fromAddress: string expected";
46436
+ return null;
46437
+ };
46438
+
46439
+ /**
46440
+ * Creates an Asset message from a plain object. Also converts values to their respective internal types.
46441
+ * @function fromObject
46442
+ * @memberof TW.LiquidStaking.Proto.Asset
46443
+ * @static
46444
+ * @param {Object.<string,*>} object Plain object
46445
+ * @returns {TW.LiquidStaking.Proto.Asset} Asset
46446
+ */
46447
+ Asset.fromObject = function fromObject(object) {
46448
+ if (object instanceof $root.TW.LiquidStaking.Proto.Asset)
46449
+ return object;
46450
+ var message = new $root.TW.LiquidStaking.Proto.Asset();
46451
+ switch (object.stakingToken) {
46452
+ case "MATIC":
46453
+ case 0:
46454
+ message.stakingToken = 0;
46455
+ break;
46456
+ case "ATOM":
46457
+ case 1:
46458
+ message.stakingToken = 1;
46459
+ break;
46460
+ case "BNB":
46461
+ case 2:
46462
+ message.stakingToken = 2;
46463
+ break;
46464
+ }
46465
+ if (object.liquidToken != null)
46466
+ message.liquidToken = String(object.liquidToken);
46467
+ if (object.denom != null)
46468
+ message.denom = String(object.denom);
46469
+ if (object.fromAddress != null)
46470
+ message.fromAddress = String(object.fromAddress);
46471
+ return message;
46472
+ };
46473
+
46474
+ /**
46475
+ * Creates a plain object from an Asset message. Also converts values to other types if specified.
46476
+ * @function toObject
46477
+ * @memberof TW.LiquidStaking.Proto.Asset
46478
+ * @static
46479
+ * @param {TW.LiquidStaking.Proto.Asset} message Asset
46480
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46481
+ * @returns {Object.<string,*>} Plain object
46482
+ */
46483
+ Asset.toObject = function toObject(message, options) {
46484
+ if (!options)
46485
+ options = {};
46486
+ var object = {};
46487
+ if (options.defaults) {
46488
+ object.stakingToken = options.enums === String ? "MATIC" : 0;
46489
+ object.liquidToken = "";
46490
+ object.denom = "";
46491
+ object.fromAddress = "";
46492
+ }
46493
+ if (message.stakingToken != null && message.hasOwnProperty("stakingToken"))
46494
+ object.stakingToken = options.enums === String ? $root.TW.LiquidStaking.Proto.Coin[message.stakingToken] : message.stakingToken;
46495
+ if (message.liquidToken != null && message.hasOwnProperty("liquidToken"))
46496
+ object.liquidToken = message.liquidToken;
46497
+ if (message.denom != null && message.hasOwnProperty("denom"))
46498
+ object.denom = message.denom;
46499
+ if (message.fromAddress != null && message.hasOwnProperty("fromAddress"))
46500
+ object.fromAddress = message.fromAddress;
46501
+ return object;
46502
+ };
46503
+
46504
+ /**
46505
+ * Converts this Asset to JSON.
46506
+ * @function toJSON
46507
+ * @memberof TW.LiquidStaking.Proto.Asset
46508
+ * @instance
46509
+ * @returns {Object.<string,*>} JSON object
46510
+ */
46511
+ Asset.prototype.toJSON = function toJSON() {
46512
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46513
+ };
46514
+
46515
+ return Asset;
46516
+ })();
46517
+
46518
+ Proto.Stake = (function() {
46519
+
46520
+ /**
46521
+ * Properties of a Stake.
46522
+ * @memberof TW.LiquidStaking.Proto
46523
+ * @interface IStake
46524
+ * @property {TW.LiquidStaking.Proto.IAsset|null} [asset] Stake asset
46525
+ * @property {string|null} [amount] Stake amount
46526
+ */
46527
+
46528
+ /**
46529
+ * Constructs a new Stake.
46530
+ * @memberof TW.LiquidStaking.Proto
46531
+ * @classdesc Represents a Stake.
46532
+ * @implements IStake
46533
+ * @constructor
46534
+ * @param {TW.LiquidStaking.Proto.IStake=} [properties] Properties to set
46535
+ */
46536
+ function Stake(properties) {
46537
+ if (properties)
46538
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46539
+ if (properties[keys[i]] != null)
46540
+ this[keys[i]] = properties[keys[i]];
46541
+ }
46542
+
46543
+ /**
46544
+ * Stake asset.
46545
+ * @member {TW.LiquidStaking.Proto.IAsset|null|undefined} asset
46546
+ * @memberof TW.LiquidStaking.Proto.Stake
46547
+ * @instance
46548
+ */
46549
+ Stake.prototype.asset = null;
46550
+
46551
+ /**
46552
+ * Stake amount.
46553
+ * @member {string} amount
46554
+ * @memberof TW.LiquidStaking.Proto.Stake
46555
+ * @instance
46556
+ */
46557
+ Stake.prototype.amount = "";
46558
+
46559
+ /**
46560
+ * Creates a new Stake instance using the specified properties.
46561
+ * @function create
46562
+ * @memberof TW.LiquidStaking.Proto.Stake
46563
+ * @static
46564
+ * @param {TW.LiquidStaking.Proto.IStake=} [properties] Properties to set
46565
+ * @returns {TW.LiquidStaking.Proto.Stake} Stake instance
46566
+ */
46567
+ Stake.create = function create(properties) {
46568
+ return new Stake(properties);
46569
+ };
46570
+
46571
+ /**
46572
+ * Encodes the specified Stake message. Does not implicitly {@link TW.LiquidStaking.Proto.Stake.verify|verify} messages.
46573
+ * @function encode
46574
+ * @memberof TW.LiquidStaking.Proto.Stake
46575
+ * @static
46576
+ * @param {TW.LiquidStaking.Proto.IStake} message Stake message or plain object to encode
46577
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46578
+ * @returns {$protobuf.Writer} Writer
46579
+ */
46580
+ Stake.encode = function encode(message, writer) {
46581
+ if (!writer)
46582
+ writer = $Writer.create();
46583
+ if (message.asset != null && Object.hasOwnProperty.call(message, "asset"))
46584
+ $root.TW.LiquidStaking.Proto.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
46585
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
46586
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount);
46587
+ return writer;
46588
+ };
46589
+
46590
+ /**
46591
+ * Decodes a Stake message from the specified reader or buffer.
46592
+ * @function decode
46593
+ * @memberof TW.LiquidStaking.Proto.Stake
46594
+ * @static
46595
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46596
+ * @param {number} [length] Message length if known beforehand
46597
+ * @returns {TW.LiquidStaking.Proto.Stake} Stake
46598
+ * @throws {Error} If the payload is not a reader or valid buffer
46599
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46600
+ */
46601
+ Stake.decode = function decode(reader, length) {
46602
+ if (!(reader instanceof $Reader))
46603
+ reader = $Reader.create(reader);
46604
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Stake();
46605
+ while (reader.pos < end) {
46606
+ var tag = reader.uint32();
46607
+ switch (tag >>> 3) {
46608
+ case 1:
46609
+ message.asset = $root.TW.LiquidStaking.Proto.Asset.decode(reader, reader.uint32());
46610
+ break;
46611
+ case 2:
46612
+ message.amount = reader.string();
46613
+ break;
46614
+ default:
46615
+ reader.skipType(tag & 7);
46616
+ break;
46617
+ }
46618
+ }
46619
+ return message;
46620
+ };
46621
+
46622
+ /**
46623
+ * Verifies a Stake message.
46624
+ * @function verify
46625
+ * @memberof TW.LiquidStaking.Proto.Stake
46626
+ * @static
46627
+ * @param {Object.<string,*>} message Plain object to verify
46628
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46629
+ */
46630
+ Stake.verify = function verify(message) {
46631
+ if (typeof message !== "object" || message === null)
46632
+ return "object expected";
46633
+ if (message.asset != null && message.hasOwnProperty("asset")) {
46634
+ var error = $root.TW.LiquidStaking.Proto.Asset.verify(message.asset);
46635
+ if (error)
46636
+ return "asset." + error;
46637
+ }
46638
+ if (message.amount != null && message.hasOwnProperty("amount"))
46639
+ if (!$util.isString(message.amount))
46640
+ return "amount: string expected";
46641
+ return null;
46642
+ };
46643
+
46644
+ /**
46645
+ * Creates a Stake message from a plain object. Also converts values to their respective internal types.
46646
+ * @function fromObject
46647
+ * @memberof TW.LiquidStaking.Proto.Stake
46648
+ * @static
46649
+ * @param {Object.<string,*>} object Plain object
46650
+ * @returns {TW.LiquidStaking.Proto.Stake} Stake
46651
+ */
46652
+ Stake.fromObject = function fromObject(object) {
46653
+ if (object instanceof $root.TW.LiquidStaking.Proto.Stake)
46654
+ return object;
46655
+ var message = new $root.TW.LiquidStaking.Proto.Stake();
46656
+ if (object.asset != null) {
46657
+ if (typeof object.asset !== "object")
46658
+ throw TypeError(".TW.LiquidStaking.Proto.Stake.asset: object expected");
46659
+ message.asset = $root.TW.LiquidStaking.Proto.Asset.fromObject(object.asset);
46660
+ }
46661
+ if (object.amount != null)
46662
+ message.amount = String(object.amount);
46663
+ return message;
46664
+ };
46665
+
46666
+ /**
46667
+ * Creates a plain object from a Stake message. Also converts values to other types if specified.
46668
+ * @function toObject
46669
+ * @memberof TW.LiquidStaking.Proto.Stake
46670
+ * @static
46671
+ * @param {TW.LiquidStaking.Proto.Stake} message Stake
46672
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46673
+ * @returns {Object.<string,*>} Plain object
46674
+ */
46675
+ Stake.toObject = function toObject(message, options) {
46676
+ if (!options)
46677
+ options = {};
46678
+ var object = {};
46679
+ if (options.defaults) {
46680
+ object.asset = null;
46681
+ object.amount = "";
46682
+ }
46683
+ if (message.asset != null && message.hasOwnProperty("asset"))
46684
+ object.asset = $root.TW.LiquidStaking.Proto.Asset.toObject(message.asset, options);
46685
+ if (message.amount != null && message.hasOwnProperty("amount"))
46686
+ object.amount = message.amount;
46687
+ return object;
46688
+ };
46689
+
46690
+ /**
46691
+ * Converts this Stake to JSON.
46692
+ * @function toJSON
46693
+ * @memberof TW.LiquidStaking.Proto.Stake
46694
+ * @instance
46695
+ * @returns {Object.<string,*>} JSON object
46696
+ */
46697
+ Stake.prototype.toJSON = function toJSON() {
46698
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46699
+ };
46700
+
46701
+ return Stake;
46702
+ })();
46703
+
46704
+ Proto.Unstake = (function() {
46705
+
46706
+ /**
46707
+ * Properties of an Unstake.
46708
+ * @memberof TW.LiquidStaking.Proto
46709
+ * @interface IUnstake
46710
+ * @property {TW.LiquidStaking.Proto.IAsset|null} [asset] Unstake asset
46711
+ * @property {string|null} [amount] Unstake amount
46712
+ */
46713
+
46714
+ /**
46715
+ * Constructs a new Unstake.
46716
+ * @memberof TW.LiquidStaking.Proto
46717
+ * @classdesc Represents an Unstake.
46718
+ * @implements IUnstake
46719
+ * @constructor
46720
+ * @param {TW.LiquidStaking.Proto.IUnstake=} [properties] Properties to set
46721
+ */
46722
+ function Unstake(properties) {
46723
+ if (properties)
46724
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46725
+ if (properties[keys[i]] != null)
46726
+ this[keys[i]] = properties[keys[i]];
46727
+ }
46728
+
46729
+ /**
46730
+ * Unstake asset.
46731
+ * @member {TW.LiquidStaking.Proto.IAsset|null|undefined} asset
46732
+ * @memberof TW.LiquidStaking.Proto.Unstake
46733
+ * @instance
46734
+ */
46735
+ Unstake.prototype.asset = null;
46736
+
46737
+ /**
46738
+ * Unstake amount.
46739
+ * @member {string} amount
46740
+ * @memberof TW.LiquidStaking.Proto.Unstake
46741
+ * @instance
46742
+ */
46743
+ Unstake.prototype.amount = "";
46744
+
46745
+ /**
46746
+ * Creates a new Unstake instance using the specified properties.
46747
+ * @function create
46748
+ * @memberof TW.LiquidStaking.Proto.Unstake
46749
+ * @static
46750
+ * @param {TW.LiquidStaking.Proto.IUnstake=} [properties] Properties to set
46751
+ * @returns {TW.LiquidStaking.Proto.Unstake} Unstake instance
46752
+ */
46753
+ Unstake.create = function create(properties) {
46754
+ return new Unstake(properties);
46755
+ };
46756
+
46757
+ /**
46758
+ * Encodes the specified Unstake message. Does not implicitly {@link TW.LiquidStaking.Proto.Unstake.verify|verify} messages.
46759
+ * @function encode
46760
+ * @memberof TW.LiquidStaking.Proto.Unstake
46761
+ * @static
46762
+ * @param {TW.LiquidStaking.Proto.IUnstake} message Unstake message or plain object to encode
46763
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46764
+ * @returns {$protobuf.Writer} Writer
46765
+ */
46766
+ Unstake.encode = function encode(message, writer) {
46767
+ if (!writer)
46768
+ writer = $Writer.create();
46769
+ if (message.asset != null && Object.hasOwnProperty.call(message, "asset"))
46770
+ $root.TW.LiquidStaking.Proto.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
46771
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
46772
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount);
46773
+ return writer;
46774
+ };
46775
+
46776
+ /**
46777
+ * Decodes an Unstake message from the specified reader or buffer.
46778
+ * @function decode
46779
+ * @memberof TW.LiquidStaking.Proto.Unstake
46780
+ * @static
46781
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46782
+ * @param {number} [length] Message length if known beforehand
46783
+ * @returns {TW.LiquidStaking.Proto.Unstake} Unstake
46784
+ * @throws {Error} If the payload is not a reader or valid buffer
46785
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46786
+ */
46787
+ Unstake.decode = function decode(reader, length) {
46788
+ if (!(reader instanceof $Reader))
46789
+ reader = $Reader.create(reader);
46790
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Unstake();
46791
+ while (reader.pos < end) {
46792
+ var tag = reader.uint32();
46793
+ switch (tag >>> 3) {
46794
+ case 1:
46795
+ message.asset = $root.TW.LiquidStaking.Proto.Asset.decode(reader, reader.uint32());
46796
+ break;
46797
+ case 2:
46798
+ message.amount = reader.string();
46799
+ break;
46800
+ default:
46801
+ reader.skipType(tag & 7);
46802
+ break;
46803
+ }
46804
+ }
46805
+ return message;
46806
+ };
46807
+
46808
+ /**
46809
+ * Verifies an Unstake message.
46810
+ * @function verify
46811
+ * @memberof TW.LiquidStaking.Proto.Unstake
46812
+ * @static
46813
+ * @param {Object.<string,*>} message Plain object to verify
46814
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46815
+ */
46816
+ Unstake.verify = function verify(message) {
46817
+ if (typeof message !== "object" || message === null)
46818
+ return "object expected";
46819
+ if (message.asset != null && message.hasOwnProperty("asset")) {
46820
+ var error = $root.TW.LiquidStaking.Proto.Asset.verify(message.asset);
46821
+ if (error)
46822
+ return "asset." + error;
46823
+ }
46824
+ if (message.amount != null && message.hasOwnProperty("amount"))
46825
+ if (!$util.isString(message.amount))
46826
+ return "amount: string expected";
46827
+ return null;
46828
+ };
46829
+
46830
+ /**
46831
+ * Creates an Unstake message from a plain object. Also converts values to their respective internal types.
46832
+ * @function fromObject
46833
+ * @memberof TW.LiquidStaking.Proto.Unstake
46834
+ * @static
46835
+ * @param {Object.<string,*>} object Plain object
46836
+ * @returns {TW.LiquidStaking.Proto.Unstake} Unstake
46837
+ */
46838
+ Unstake.fromObject = function fromObject(object) {
46839
+ if (object instanceof $root.TW.LiquidStaking.Proto.Unstake)
46840
+ return object;
46841
+ var message = new $root.TW.LiquidStaking.Proto.Unstake();
46842
+ if (object.asset != null) {
46843
+ if (typeof object.asset !== "object")
46844
+ throw TypeError(".TW.LiquidStaking.Proto.Unstake.asset: object expected");
46845
+ message.asset = $root.TW.LiquidStaking.Proto.Asset.fromObject(object.asset);
46846
+ }
46847
+ if (object.amount != null)
46848
+ message.amount = String(object.amount);
46849
+ return message;
46850
+ };
46851
+
46852
+ /**
46853
+ * Creates a plain object from an Unstake message. Also converts values to other types if specified.
46854
+ * @function toObject
46855
+ * @memberof TW.LiquidStaking.Proto.Unstake
46856
+ * @static
46857
+ * @param {TW.LiquidStaking.Proto.Unstake} message Unstake
46858
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46859
+ * @returns {Object.<string,*>} Plain object
46860
+ */
46861
+ Unstake.toObject = function toObject(message, options) {
46862
+ if (!options)
46863
+ options = {};
46864
+ var object = {};
46865
+ if (options.defaults) {
46866
+ object.asset = null;
46867
+ object.amount = "";
46868
+ }
46869
+ if (message.asset != null && message.hasOwnProperty("asset"))
46870
+ object.asset = $root.TW.LiquidStaking.Proto.Asset.toObject(message.asset, options);
46871
+ if (message.amount != null && message.hasOwnProperty("amount"))
46872
+ object.amount = message.amount;
46873
+ return object;
46874
+ };
46875
+
46876
+ /**
46877
+ * Converts this Unstake to JSON.
46878
+ * @function toJSON
46879
+ * @memberof TW.LiquidStaking.Proto.Unstake
46880
+ * @instance
46881
+ * @returns {Object.<string,*>} JSON object
46882
+ */
46883
+ Unstake.prototype.toJSON = function toJSON() {
46884
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46885
+ };
46886
+
46887
+ return Unstake;
46888
+ })();
46889
+
46890
+ Proto.Withdraw = (function() {
46891
+
46892
+ /**
46893
+ * Properties of a Withdraw.
46894
+ * @memberof TW.LiquidStaking.Proto
46895
+ * @interface IWithdraw
46896
+ * @property {TW.LiquidStaking.Proto.IAsset|null} [asset] Withdraw asset
46897
+ * @property {string|null} [amount] Withdraw amount
46898
+ * @property {string|null} [idx] Withdraw idx
46899
+ */
46900
+
46901
+ /**
46902
+ * Constructs a new Withdraw.
46903
+ * @memberof TW.LiquidStaking.Proto
46904
+ * @classdesc Represents a Withdraw.
46905
+ * @implements IWithdraw
46906
+ * @constructor
46907
+ * @param {TW.LiquidStaking.Proto.IWithdraw=} [properties] Properties to set
46908
+ */
46909
+ function Withdraw(properties) {
46910
+ if (properties)
46911
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46912
+ if (properties[keys[i]] != null)
46913
+ this[keys[i]] = properties[keys[i]];
46914
+ }
46915
+
46916
+ /**
46917
+ * Withdraw asset.
46918
+ * @member {TW.LiquidStaking.Proto.IAsset|null|undefined} asset
46919
+ * @memberof TW.LiquidStaking.Proto.Withdraw
46920
+ * @instance
46921
+ */
46922
+ Withdraw.prototype.asset = null;
46923
+
46924
+ /**
46925
+ * Withdraw amount.
46926
+ * @member {string} amount
46927
+ * @memberof TW.LiquidStaking.Proto.Withdraw
46928
+ * @instance
46929
+ */
46930
+ Withdraw.prototype.amount = "";
46931
+
46932
+ /**
46933
+ * Withdraw idx.
46934
+ * @member {string} idx
46935
+ * @memberof TW.LiquidStaking.Proto.Withdraw
46936
+ * @instance
46937
+ */
46938
+ Withdraw.prototype.idx = "";
46939
+
46940
+ /**
46941
+ * Creates a new Withdraw instance using the specified properties.
46942
+ * @function create
46943
+ * @memberof TW.LiquidStaking.Proto.Withdraw
46944
+ * @static
46945
+ * @param {TW.LiquidStaking.Proto.IWithdraw=} [properties] Properties to set
46946
+ * @returns {TW.LiquidStaking.Proto.Withdraw} Withdraw instance
46947
+ */
46948
+ Withdraw.create = function create(properties) {
46949
+ return new Withdraw(properties);
46950
+ };
46951
+
46952
+ /**
46953
+ * Encodes the specified Withdraw message. Does not implicitly {@link TW.LiquidStaking.Proto.Withdraw.verify|verify} messages.
46954
+ * @function encode
46955
+ * @memberof TW.LiquidStaking.Proto.Withdraw
46956
+ * @static
46957
+ * @param {TW.LiquidStaking.Proto.IWithdraw} message Withdraw message or plain object to encode
46958
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46959
+ * @returns {$protobuf.Writer} Writer
46960
+ */
46961
+ Withdraw.encode = function encode(message, writer) {
46962
+ if (!writer)
46963
+ writer = $Writer.create();
46964
+ if (message.asset != null && Object.hasOwnProperty.call(message, "asset"))
46965
+ $root.TW.LiquidStaking.Proto.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
46966
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
46967
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount);
46968
+ if (message.idx != null && Object.hasOwnProperty.call(message, "idx"))
46969
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.idx);
46970
+ return writer;
46971
+ };
46972
+
46973
+ /**
46974
+ * Decodes a Withdraw message from the specified reader or buffer.
46975
+ * @function decode
46976
+ * @memberof TW.LiquidStaking.Proto.Withdraw
46977
+ * @static
46978
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46979
+ * @param {number} [length] Message length if known beforehand
46980
+ * @returns {TW.LiquidStaking.Proto.Withdraw} Withdraw
46981
+ * @throws {Error} If the payload is not a reader or valid buffer
46982
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46983
+ */
46984
+ Withdraw.decode = function decode(reader, length) {
46985
+ if (!(reader instanceof $Reader))
46986
+ reader = $Reader.create(reader);
46987
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Withdraw();
46988
+ while (reader.pos < end) {
46989
+ var tag = reader.uint32();
46990
+ switch (tag >>> 3) {
46991
+ case 1:
46992
+ message.asset = $root.TW.LiquidStaking.Proto.Asset.decode(reader, reader.uint32());
46993
+ break;
46994
+ case 2:
46995
+ message.amount = reader.string();
46996
+ break;
46997
+ case 3:
46998
+ message.idx = reader.string();
46999
+ break;
47000
+ default:
47001
+ reader.skipType(tag & 7);
47002
+ break;
47003
+ }
47004
+ }
47005
+ return message;
47006
+ };
47007
+
47008
+ /**
47009
+ * Verifies a Withdraw message.
47010
+ * @function verify
47011
+ * @memberof TW.LiquidStaking.Proto.Withdraw
47012
+ * @static
47013
+ * @param {Object.<string,*>} message Plain object to verify
47014
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47015
+ */
47016
+ Withdraw.verify = function verify(message) {
47017
+ if (typeof message !== "object" || message === null)
47018
+ return "object expected";
47019
+ if (message.asset != null && message.hasOwnProperty("asset")) {
47020
+ var error = $root.TW.LiquidStaking.Proto.Asset.verify(message.asset);
47021
+ if (error)
47022
+ return "asset." + error;
47023
+ }
47024
+ if (message.amount != null && message.hasOwnProperty("amount"))
47025
+ if (!$util.isString(message.amount))
47026
+ return "amount: string expected";
47027
+ if (message.idx != null && message.hasOwnProperty("idx"))
47028
+ if (!$util.isString(message.idx))
47029
+ return "idx: string expected";
47030
+ return null;
47031
+ };
47032
+
47033
+ /**
47034
+ * Creates a Withdraw message from a plain object. Also converts values to their respective internal types.
47035
+ * @function fromObject
47036
+ * @memberof TW.LiquidStaking.Proto.Withdraw
47037
+ * @static
47038
+ * @param {Object.<string,*>} object Plain object
47039
+ * @returns {TW.LiquidStaking.Proto.Withdraw} Withdraw
47040
+ */
47041
+ Withdraw.fromObject = function fromObject(object) {
47042
+ if (object instanceof $root.TW.LiquidStaking.Proto.Withdraw)
47043
+ return object;
47044
+ var message = new $root.TW.LiquidStaking.Proto.Withdraw();
47045
+ if (object.asset != null) {
47046
+ if (typeof object.asset !== "object")
47047
+ throw TypeError(".TW.LiquidStaking.Proto.Withdraw.asset: object expected");
47048
+ message.asset = $root.TW.LiquidStaking.Proto.Asset.fromObject(object.asset);
47049
+ }
47050
+ if (object.amount != null)
47051
+ message.amount = String(object.amount);
47052
+ if (object.idx != null)
47053
+ message.idx = String(object.idx);
47054
+ return message;
47055
+ };
47056
+
47057
+ /**
47058
+ * Creates a plain object from a Withdraw message. Also converts values to other types if specified.
47059
+ * @function toObject
47060
+ * @memberof TW.LiquidStaking.Proto.Withdraw
47061
+ * @static
47062
+ * @param {TW.LiquidStaking.Proto.Withdraw} message Withdraw
47063
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47064
+ * @returns {Object.<string,*>} Plain object
47065
+ */
47066
+ Withdraw.toObject = function toObject(message, options) {
47067
+ if (!options)
47068
+ options = {};
47069
+ var object = {};
47070
+ if (options.defaults) {
47071
+ object.asset = null;
47072
+ object.amount = "";
47073
+ object.idx = "";
47074
+ }
47075
+ if (message.asset != null && message.hasOwnProperty("asset"))
47076
+ object.asset = $root.TW.LiquidStaking.Proto.Asset.toObject(message.asset, options);
47077
+ if (message.amount != null && message.hasOwnProperty("amount"))
47078
+ object.amount = message.amount;
47079
+ if (message.idx != null && message.hasOwnProperty("idx"))
47080
+ object.idx = message.idx;
47081
+ return object;
47082
+ };
47083
+
47084
+ /**
47085
+ * Converts this Withdraw to JSON.
47086
+ * @function toJSON
47087
+ * @memberof TW.LiquidStaking.Proto.Withdraw
47088
+ * @instance
47089
+ * @returns {Object.<string,*>} JSON object
47090
+ */
47091
+ Withdraw.prototype.toJSON = function toJSON() {
47092
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47093
+ };
47094
+
47095
+ return Withdraw;
47096
+ })();
47097
+
47098
+ Proto.Input = (function() {
47099
+
47100
+ /**
47101
+ * Properties of an Input.
47102
+ * @memberof TW.LiquidStaking.Proto
47103
+ * @interface IInput
47104
+ * @property {TW.LiquidStaking.Proto.IStake|null} [stake] Input stake
47105
+ * @property {TW.LiquidStaking.Proto.IUnstake|null} [unstake] Input unstake
47106
+ * @property {TW.LiquidStaking.Proto.IWithdraw|null} [withdraw] Input withdraw
47107
+ * @property {string|null} [smartContractAddress] Input smartContractAddress
47108
+ * @property {TW.LiquidStaking.Proto.Protocol|null} [protocol] Input protocol
47109
+ * @property {TW.LiquidStaking.Proto.Blockchain|null} [blockchain] Input blockchain
47110
+ */
47111
+
47112
+ /**
47113
+ * Constructs a new Input.
47114
+ * @memberof TW.LiquidStaking.Proto
47115
+ * @classdesc Represents an Input.
47116
+ * @implements IInput
47117
+ * @constructor
47118
+ * @param {TW.LiquidStaking.Proto.IInput=} [properties] Properties to set
47119
+ */
47120
+ function Input(properties) {
47121
+ if (properties)
47122
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47123
+ if (properties[keys[i]] != null)
47124
+ this[keys[i]] = properties[keys[i]];
47125
+ }
47126
+
47127
+ /**
47128
+ * Input stake.
47129
+ * @member {TW.LiquidStaking.Proto.IStake|null|undefined} stake
47130
+ * @memberof TW.LiquidStaking.Proto.Input
47131
+ * @instance
47132
+ */
47133
+ Input.prototype.stake = null;
47134
+
47135
+ /**
47136
+ * Input unstake.
47137
+ * @member {TW.LiquidStaking.Proto.IUnstake|null|undefined} unstake
47138
+ * @memberof TW.LiquidStaking.Proto.Input
47139
+ * @instance
47140
+ */
47141
+ Input.prototype.unstake = null;
47142
+
47143
+ /**
47144
+ * Input withdraw.
47145
+ * @member {TW.LiquidStaking.Proto.IWithdraw|null|undefined} withdraw
47146
+ * @memberof TW.LiquidStaking.Proto.Input
47147
+ * @instance
47148
+ */
47149
+ Input.prototype.withdraw = null;
47150
+
47151
+ /**
47152
+ * Input smartContractAddress.
47153
+ * @member {string} smartContractAddress
47154
+ * @memberof TW.LiquidStaking.Proto.Input
47155
+ * @instance
47156
+ */
47157
+ Input.prototype.smartContractAddress = "";
47158
+
47159
+ /**
47160
+ * Input protocol.
47161
+ * @member {TW.LiquidStaking.Proto.Protocol} protocol
47162
+ * @memberof TW.LiquidStaking.Proto.Input
47163
+ * @instance
47164
+ */
47165
+ Input.prototype.protocol = 0;
47166
+
47167
+ /**
47168
+ * Input blockchain.
47169
+ * @member {TW.LiquidStaking.Proto.Blockchain} blockchain
47170
+ * @memberof TW.LiquidStaking.Proto.Input
47171
+ * @instance
47172
+ */
47173
+ Input.prototype.blockchain = 0;
47174
+
47175
+ // OneOf field names bound to virtual getters and setters
47176
+ var $oneOfFields;
47177
+
47178
+ /**
47179
+ * Input action.
47180
+ * @member {"stake"|"unstake"|"withdraw"|undefined} action
47181
+ * @memberof TW.LiquidStaking.Proto.Input
47182
+ * @instance
47183
+ */
47184
+ Object.defineProperty(Input.prototype, "action", {
47185
+ get: $util.oneOfGetter($oneOfFields = ["stake", "unstake", "withdraw"]),
47186
+ set: $util.oneOfSetter($oneOfFields)
47187
+ });
47188
+
47189
+ /**
47190
+ * Creates a new Input instance using the specified properties.
47191
+ * @function create
47192
+ * @memberof TW.LiquidStaking.Proto.Input
47193
+ * @static
47194
+ * @param {TW.LiquidStaking.Proto.IInput=} [properties] Properties to set
47195
+ * @returns {TW.LiquidStaking.Proto.Input} Input instance
47196
+ */
47197
+ Input.create = function create(properties) {
47198
+ return new Input(properties);
47199
+ };
47200
+
47201
+ /**
47202
+ * Encodes the specified Input message. Does not implicitly {@link TW.LiquidStaking.Proto.Input.verify|verify} messages.
47203
+ * @function encode
47204
+ * @memberof TW.LiquidStaking.Proto.Input
47205
+ * @static
47206
+ * @param {TW.LiquidStaking.Proto.IInput} message Input message or plain object to encode
47207
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47208
+ * @returns {$protobuf.Writer} Writer
47209
+ */
47210
+ Input.encode = function encode(message, writer) {
47211
+ if (!writer)
47212
+ writer = $Writer.create();
47213
+ if (message.stake != null && Object.hasOwnProperty.call(message, "stake"))
47214
+ $root.TW.LiquidStaking.Proto.Stake.encode(message.stake, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47215
+ if (message.unstake != null && Object.hasOwnProperty.call(message, "unstake"))
47216
+ $root.TW.LiquidStaking.Proto.Unstake.encode(message.unstake, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
47217
+ if (message.withdraw != null && Object.hasOwnProperty.call(message, "withdraw"))
47218
+ $root.TW.LiquidStaking.Proto.Withdraw.encode(message.withdraw, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
47219
+ if (message.smartContractAddress != null && Object.hasOwnProperty.call(message, "smartContractAddress"))
47220
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.smartContractAddress);
47221
+ if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol"))
47222
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.protocol);
47223
+ if (message.blockchain != null && Object.hasOwnProperty.call(message, "blockchain"))
47224
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.blockchain);
47225
+ return writer;
47226
+ };
47227
+
47228
+ /**
47229
+ * Decodes an Input message from the specified reader or buffer.
47230
+ * @function decode
47231
+ * @memberof TW.LiquidStaking.Proto.Input
47232
+ * @static
47233
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47234
+ * @param {number} [length] Message length if known beforehand
47235
+ * @returns {TW.LiquidStaking.Proto.Input} Input
47236
+ * @throws {Error} If the payload is not a reader or valid buffer
47237
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47238
+ */
47239
+ Input.decode = function decode(reader, length) {
47240
+ if (!(reader instanceof $Reader))
47241
+ reader = $Reader.create(reader);
47242
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Input();
47243
+ while (reader.pos < end) {
47244
+ var tag = reader.uint32();
47245
+ switch (tag >>> 3) {
47246
+ case 1:
47247
+ message.stake = $root.TW.LiquidStaking.Proto.Stake.decode(reader, reader.uint32());
47248
+ break;
47249
+ case 2:
47250
+ message.unstake = $root.TW.LiquidStaking.Proto.Unstake.decode(reader, reader.uint32());
47251
+ break;
47252
+ case 3:
47253
+ message.withdraw = $root.TW.LiquidStaking.Proto.Withdraw.decode(reader, reader.uint32());
47254
+ break;
47255
+ case 4:
47256
+ message.smartContractAddress = reader.string();
47257
+ break;
47258
+ case 5:
47259
+ message.protocol = reader.int32();
47260
+ break;
47261
+ case 6:
47262
+ message.blockchain = reader.int32();
47263
+ break;
47264
+ default:
47265
+ reader.skipType(tag & 7);
47266
+ break;
47267
+ }
47268
+ }
47269
+ return message;
47270
+ };
47271
+
47272
+ /**
47273
+ * Verifies an Input message.
47274
+ * @function verify
47275
+ * @memberof TW.LiquidStaking.Proto.Input
47276
+ * @static
47277
+ * @param {Object.<string,*>} message Plain object to verify
47278
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47279
+ */
47280
+ Input.verify = function verify(message) {
47281
+ if (typeof message !== "object" || message === null)
47282
+ return "object expected";
47283
+ var properties = {};
47284
+ if (message.stake != null && message.hasOwnProperty("stake")) {
47285
+ properties.action = 1;
47286
+ {
47287
+ var error = $root.TW.LiquidStaking.Proto.Stake.verify(message.stake);
47288
+ if (error)
47289
+ return "stake." + error;
47290
+ }
47291
+ }
47292
+ if (message.unstake != null && message.hasOwnProperty("unstake")) {
47293
+ if (properties.action === 1)
47294
+ return "action: multiple values";
47295
+ properties.action = 1;
47296
+ {
47297
+ var error = $root.TW.LiquidStaking.Proto.Unstake.verify(message.unstake);
47298
+ if (error)
47299
+ return "unstake." + error;
47300
+ }
47301
+ }
47302
+ if (message.withdraw != null && message.hasOwnProperty("withdraw")) {
47303
+ if (properties.action === 1)
47304
+ return "action: multiple values";
47305
+ properties.action = 1;
47306
+ {
47307
+ var error = $root.TW.LiquidStaking.Proto.Withdraw.verify(message.withdraw);
47308
+ if (error)
47309
+ return "withdraw." + error;
47310
+ }
47311
+ }
47312
+ if (message.smartContractAddress != null && message.hasOwnProperty("smartContractAddress"))
47313
+ if (!$util.isString(message.smartContractAddress))
47314
+ return "smartContractAddress: string expected";
47315
+ if (message.protocol != null && message.hasOwnProperty("protocol"))
47316
+ switch (message.protocol) {
47317
+ default:
47318
+ return "protocol: enum value expected";
47319
+ case 0:
47320
+ case 1:
47321
+ break;
47322
+ }
47323
+ if (message.blockchain != null && message.hasOwnProperty("blockchain"))
47324
+ switch (message.blockchain) {
47325
+ default:
47326
+ return "blockchain: enum value expected";
47327
+ case 0:
47328
+ case 1:
47329
+ case 2:
47330
+ case 3:
47331
+ break;
47332
+ }
47333
+ return null;
47334
+ };
47335
+
47336
+ /**
47337
+ * Creates an Input message from a plain object. Also converts values to their respective internal types.
47338
+ * @function fromObject
47339
+ * @memberof TW.LiquidStaking.Proto.Input
47340
+ * @static
47341
+ * @param {Object.<string,*>} object Plain object
47342
+ * @returns {TW.LiquidStaking.Proto.Input} Input
47343
+ */
47344
+ Input.fromObject = function fromObject(object) {
47345
+ if (object instanceof $root.TW.LiquidStaking.Proto.Input)
47346
+ return object;
47347
+ var message = new $root.TW.LiquidStaking.Proto.Input();
47348
+ if (object.stake != null) {
47349
+ if (typeof object.stake !== "object")
47350
+ throw TypeError(".TW.LiquidStaking.Proto.Input.stake: object expected");
47351
+ message.stake = $root.TW.LiquidStaking.Proto.Stake.fromObject(object.stake);
47352
+ }
47353
+ if (object.unstake != null) {
47354
+ if (typeof object.unstake !== "object")
47355
+ throw TypeError(".TW.LiquidStaking.Proto.Input.unstake: object expected");
47356
+ message.unstake = $root.TW.LiquidStaking.Proto.Unstake.fromObject(object.unstake);
47357
+ }
47358
+ if (object.withdraw != null) {
47359
+ if (typeof object.withdraw !== "object")
47360
+ throw TypeError(".TW.LiquidStaking.Proto.Input.withdraw: object expected");
47361
+ message.withdraw = $root.TW.LiquidStaking.Proto.Withdraw.fromObject(object.withdraw);
47362
+ }
47363
+ if (object.smartContractAddress != null)
47364
+ message.smartContractAddress = String(object.smartContractAddress);
47365
+ switch (object.protocol) {
47366
+ case "Strader":
47367
+ case 0:
47368
+ message.protocol = 0;
47369
+ break;
47370
+ case "Stride":
47371
+ case 1:
47372
+ message.protocol = 1;
47373
+ break;
47374
+ }
47375
+ switch (object.blockchain) {
47376
+ case "ETHEREUM":
47377
+ case 0:
47378
+ message.blockchain = 0;
47379
+ break;
47380
+ case "POLYGON":
47381
+ case 1:
47382
+ message.blockchain = 1;
47383
+ break;
47384
+ case "STRIDE":
47385
+ case 2:
47386
+ message.blockchain = 2;
47387
+ break;
47388
+ case "BNB_BSC":
47389
+ case 3:
47390
+ message.blockchain = 3;
47391
+ break;
47392
+ }
47393
+ return message;
47394
+ };
47395
+
47396
+ /**
47397
+ * Creates a plain object from an Input message. Also converts values to other types if specified.
47398
+ * @function toObject
47399
+ * @memberof TW.LiquidStaking.Proto.Input
47400
+ * @static
47401
+ * @param {TW.LiquidStaking.Proto.Input} message Input
47402
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47403
+ * @returns {Object.<string,*>} Plain object
47404
+ */
47405
+ Input.toObject = function toObject(message, options) {
47406
+ if (!options)
47407
+ options = {};
47408
+ var object = {};
47409
+ if (options.defaults) {
47410
+ object.smartContractAddress = "";
47411
+ object.protocol = options.enums === String ? "Strader" : 0;
47412
+ object.blockchain = options.enums === String ? "ETHEREUM" : 0;
47413
+ }
47414
+ if (message.stake != null && message.hasOwnProperty("stake")) {
47415
+ object.stake = $root.TW.LiquidStaking.Proto.Stake.toObject(message.stake, options);
47416
+ if (options.oneofs)
47417
+ object.action = "stake";
47418
+ }
47419
+ if (message.unstake != null && message.hasOwnProperty("unstake")) {
47420
+ object.unstake = $root.TW.LiquidStaking.Proto.Unstake.toObject(message.unstake, options);
47421
+ if (options.oneofs)
47422
+ object.action = "unstake";
47423
+ }
47424
+ if (message.withdraw != null && message.hasOwnProperty("withdraw")) {
47425
+ object.withdraw = $root.TW.LiquidStaking.Proto.Withdraw.toObject(message.withdraw, options);
47426
+ if (options.oneofs)
47427
+ object.action = "withdraw";
47428
+ }
47429
+ if (message.smartContractAddress != null && message.hasOwnProperty("smartContractAddress"))
47430
+ object.smartContractAddress = message.smartContractAddress;
47431
+ if (message.protocol != null && message.hasOwnProperty("protocol"))
47432
+ object.protocol = options.enums === String ? $root.TW.LiquidStaking.Proto.Protocol[message.protocol] : message.protocol;
47433
+ if (message.blockchain != null && message.hasOwnProperty("blockchain"))
47434
+ object.blockchain = options.enums === String ? $root.TW.LiquidStaking.Proto.Blockchain[message.blockchain] : message.blockchain;
47435
+ return object;
47436
+ };
47437
+
47438
+ /**
47439
+ * Converts this Input to JSON.
47440
+ * @function toJSON
47441
+ * @memberof TW.LiquidStaking.Proto.Input
47442
+ * @instance
47443
+ * @returns {Object.<string,*>} JSON object
47444
+ */
47445
+ Input.prototype.toJSON = function toJSON() {
47446
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47447
+ };
47448
+
47449
+ return Input;
47450
+ })();
47451
+
47452
+ Proto.Output = (function() {
47453
+
47454
+ /**
47455
+ * Properties of an Output.
47456
+ * @memberof TW.LiquidStaking.Proto
47457
+ * @interface IOutput
47458
+ * @property {TW.LiquidStaking.Proto.IStatus|null} [status] Output status
47459
+ * @property {TW.Ethereum.Proto.ISigningInput|null} [ethereum] Output ethereum
47460
+ * @property {TW.Cosmos.Proto.ISigningInput|null} [cosmos] Output cosmos
47461
+ */
47462
+
47463
+ /**
47464
+ * Constructs a new Output.
47465
+ * @memberof TW.LiquidStaking.Proto
47466
+ * @classdesc Represents an Output.
47467
+ * @implements IOutput
47468
+ * @constructor
47469
+ * @param {TW.LiquidStaking.Proto.IOutput=} [properties] Properties to set
47470
+ */
47471
+ function Output(properties) {
47472
+ if (properties)
47473
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47474
+ if (properties[keys[i]] != null)
47475
+ this[keys[i]] = properties[keys[i]];
47476
+ }
47477
+
47478
+ /**
47479
+ * Output status.
47480
+ * @member {TW.LiquidStaking.Proto.IStatus|null|undefined} status
47481
+ * @memberof TW.LiquidStaking.Proto.Output
47482
+ * @instance
47483
+ */
47484
+ Output.prototype.status = null;
47485
+
47486
+ /**
47487
+ * Output ethereum.
47488
+ * @member {TW.Ethereum.Proto.ISigningInput|null|undefined} ethereum
47489
+ * @memberof TW.LiquidStaking.Proto.Output
47490
+ * @instance
47491
+ */
47492
+ Output.prototype.ethereum = null;
47493
+
47494
+ /**
47495
+ * Output cosmos.
47496
+ * @member {TW.Cosmos.Proto.ISigningInput|null|undefined} cosmos
47497
+ * @memberof TW.LiquidStaking.Proto.Output
47498
+ * @instance
47499
+ */
47500
+ Output.prototype.cosmos = null;
47501
+
47502
+ // OneOf field names bound to virtual getters and setters
47503
+ var $oneOfFields;
47504
+
47505
+ /**
47506
+ * Output signingInputOneof.
47507
+ * @member {"ethereum"|"cosmos"|undefined} signingInputOneof
47508
+ * @memberof TW.LiquidStaking.Proto.Output
47509
+ * @instance
47510
+ */
47511
+ Object.defineProperty(Output.prototype, "signingInputOneof", {
47512
+ get: $util.oneOfGetter($oneOfFields = ["ethereum", "cosmos"]),
47513
+ set: $util.oneOfSetter($oneOfFields)
47514
+ });
47515
+
47516
+ /**
47517
+ * Creates a new Output instance using the specified properties.
47518
+ * @function create
47519
+ * @memberof TW.LiquidStaking.Proto.Output
47520
+ * @static
47521
+ * @param {TW.LiquidStaking.Proto.IOutput=} [properties] Properties to set
47522
+ * @returns {TW.LiquidStaking.Proto.Output} Output instance
47523
+ */
47524
+ Output.create = function create(properties) {
47525
+ return new Output(properties);
47526
+ };
47527
+
47528
+ /**
47529
+ * Encodes the specified Output message. Does not implicitly {@link TW.LiquidStaking.Proto.Output.verify|verify} messages.
47530
+ * @function encode
47531
+ * @memberof TW.LiquidStaking.Proto.Output
47532
+ * @static
47533
+ * @param {TW.LiquidStaking.Proto.IOutput} message Output message or plain object to encode
47534
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47535
+ * @returns {$protobuf.Writer} Writer
47536
+ */
47537
+ Output.encode = function encode(message, writer) {
47538
+ if (!writer)
47539
+ writer = $Writer.create();
47540
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
47541
+ $root.TW.LiquidStaking.Proto.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
47542
+ if (message.ethereum != null && Object.hasOwnProperty.call(message, "ethereum"))
47543
+ $root.TW.Ethereum.Proto.SigningInput.encode(message.ethereum, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
47544
+ if (message.cosmos != null && Object.hasOwnProperty.call(message, "cosmos"))
47545
+ $root.TW.Cosmos.Proto.SigningInput.encode(message.cosmos, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
47546
+ return writer;
47547
+ };
47548
+
47549
+ /**
47550
+ * Decodes an Output message from the specified reader or buffer.
47551
+ * @function decode
47552
+ * @memberof TW.LiquidStaking.Proto.Output
47553
+ * @static
47554
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47555
+ * @param {number} [length] Message length if known beforehand
47556
+ * @returns {TW.LiquidStaking.Proto.Output} Output
47557
+ * @throws {Error} If the payload is not a reader or valid buffer
47558
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47559
+ */
47560
+ Output.decode = function decode(reader, length) {
47561
+ if (!(reader instanceof $Reader))
47562
+ reader = $Reader.create(reader);
47563
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.LiquidStaking.Proto.Output();
47564
+ while (reader.pos < end) {
47565
+ var tag = reader.uint32();
47566
+ switch (tag >>> 3) {
47567
+ case 1:
47568
+ message.status = $root.TW.LiquidStaking.Proto.Status.decode(reader, reader.uint32());
47569
+ break;
47570
+ case 2:
47571
+ message.ethereum = $root.TW.Ethereum.Proto.SigningInput.decode(reader, reader.uint32());
47572
+ break;
47573
+ case 3:
47574
+ message.cosmos = $root.TW.Cosmos.Proto.SigningInput.decode(reader, reader.uint32());
47575
+ break;
47576
+ default:
47577
+ reader.skipType(tag & 7);
47578
+ break;
47579
+ }
47580
+ }
47581
+ return message;
47582
+ };
47583
+
47584
+ /**
47585
+ * Verifies an Output message.
47586
+ * @function verify
47587
+ * @memberof TW.LiquidStaking.Proto.Output
47588
+ * @static
47589
+ * @param {Object.<string,*>} message Plain object to verify
47590
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47591
+ */
47592
+ Output.verify = function verify(message) {
47593
+ if (typeof message !== "object" || message === null)
47594
+ return "object expected";
47595
+ var properties = {};
47596
+ if (message.status != null && message.hasOwnProperty("status")) {
47597
+ var error = $root.TW.LiquidStaking.Proto.Status.verify(message.status);
47598
+ if (error)
47599
+ return "status." + error;
47600
+ }
47601
+ if (message.ethereum != null && message.hasOwnProperty("ethereum")) {
47602
+ properties.signingInputOneof = 1;
47603
+ {
47604
+ var error = $root.TW.Ethereum.Proto.SigningInput.verify(message.ethereum);
47605
+ if (error)
47606
+ return "ethereum." + error;
47607
+ }
47608
+ }
47609
+ if (message.cosmos != null && message.hasOwnProperty("cosmos")) {
47610
+ if (properties.signingInputOneof === 1)
47611
+ return "signingInputOneof: multiple values";
47612
+ properties.signingInputOneof = 1;
47613
+ {
47614
+ var error = $root.TW.Cosmos.Proto.SigningInput.verify(message.cosmos);
47615
+ if (error)
47616
+ return "cosmos." + error;
47617
+ }
47618
+ }
47619
+ return null;
47620
+ };
47621
+
47622
+ /**
47623
+ * Creates an Output message from a plain object. Also converts values to their respective internal types.
47624
+ * @function fromObject
47625
+ * @memberof TW.LiquidStaking.Proto.Output
47626
+ * @static
47627
+ * @param {Object.<string,*>} object Plain object
47628
+ * @returns {TW.LiquidStaking.Proto.Output} Output
47629
+ */
47630
+ Output.fromObject = function fromObject(object) {
47631
+ if (object instanceof $root.TW.LiquidStaking.Proto.Output)
47632
+ return object;
47633
+ var message = new $root.TW.LiquidStaking.Proto.Output();
47634
+ if (object.status != null) {
47635
+ if (typeof object.status !== "object")
47636
+ throw TypeError(".TW.LiquidStaking.Proto.Output.status: object expected");
47637
+ message.status = $root.TW.LiquidStaking.Proto.Status.fromObject(object.status);
47638
+ }
47639
+ if (object.ethereum != null) {
47640
+ if (typeof object.ethereum !== "object")
47641
+ throw TypeError(".TW.LiquidStaking.Proto.Output.ethereum: object expected");
47642
+ message.ethereum = $root.TW.Ethereum.Proto.SigningInput.fromObject(object.ethereum);
47643
+ }
47644
+ if (object.cosmos != null) {
47645
+ if (typeof object.cosmos !== "object")
47646
+ throw TypeError(".TW.LiquidStaking.Proto.Output.cosmos: object expected");
47647
+ message.cosmos = $root.TW.Cosmos.Proto.SigningInput.fromObject(object.cosmos);
47648
+ }
47649
+ return message;
47650
+ };
47651
+
47652
+ /**
47653
+ * Creates a plain object from an Output message. Also converts values to other types if specified.
47654
+ * @function toObject
47655
+ * @memberof TW.LiquidStaking.Proto.Output
47656
+ * @static
47657
+ * @param {TW.LiquidStaking.Proto.Output} message Output
47658
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47659
+ * @returns {Object.<string,*>} Plain object
47660
+ */
47661
+ Output.toObject = function toObject(message, options) {
47662
+ if (!options)
47663
+ options = {};
47664
+ var object = {};
47665
+ if (options.defaults)
47666
+ object.status = null;
47667
+ if (message.status != null && message.hasOwnProperty("status"))
47668
+ object.status = $root.TW.LiquidStaking.Proto.Status.toObject(message.status, options);
47669
+ if (message.ethereum != null && message.hasOwnProperty("ethereum")) {
47670
+ object.ethereum = $root.TW.Ethereum.Proto.SigningInput.toObject(message.ethereum, options);
47671
+ if (options.oneofs)
47672
+ object.signingInputOneof = "ethereum";
47673
+ }
47674
+ if (message.cosmos != null && message.hasOwnProperty("cosmos")) {
47675
+ object.cosmos = $root.TW.Cosmos.Proto.SigningInput.toObject(message.cosmos, options);
47676
+ if (options.oneofs)
47677
+ object.signingInputOneof = "cosmos";
47678
+ }
47679
+ return object;
47680
+ };
47681
+
47682
+ /**
47683
+ * Converts this Output to JSON.
47684
+ * @function toJSON
47685
+ * @memberof TW.LiquidStaking.Proto.Output
47686
+ * @instance
47687
+ * @returns {Object.<string,*>} JSON object
47688
+ */
47689
+ Output.prototype.toJSON = function toJSON() {
47690
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47691
+ };
47692
+
47693
+ return Output;
47694
+ })();
47695
+
47696
+ return Proto;
47697
+ })();
47698
+
47699
+ return LiquidStaking;
47700
+ })();
47701
+
45980
47702
  TW.MultiversX = (function() {
45981
47703
 
45982
47704
  /**
@@ -46896,6 +48618,7 @@
46896
48618
  * @property {string|null} [senderUsername] Accounts senderUsername
46897
48619
  * @property {string|null} [receiver] Accounts receiver
46898
48620
  * @property {string|null} [receiverUsername] Accounts receiverUsername
48621
+ * @property {string|null} [guardian] Accounts guardian
46899
48622
  */
46900
48623
 
46901
48624
  /**
@@ -46953,6 +48676,14 @@
46953
48676
  */
46954
48677
  Accounts.prototype.receiverUsername = "";
46955
48678
 
48679
+ /**
48680
+ * Accounts guardian.
48681
+ * @member {string} guardian
48682
+ * @memberof TW.MultiversX.Proto.Accounts
48683
+ * @instance
48684
+ */
48685
+ Accounts.prototype.guardian = "";
48686
+
46956
48687
  /**
46957
48688
  * Creates a new Accounts instance using the specified properties.
46958
48689
  * @function create
@@ -46987,6 +48718,8 @@
46987
48718
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiver);
46988
48719
  if (message.receiverUsername != null && Object.hasOwnProperty.call(message, "receiverUsername"))
46989
48720
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.receiverUsername);
48721
+ if (message.guardian != null && Object.hasOwnProperty.call(message, "guardian"))
48722
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.guardian);
46990
48723
  return writer;
46991
48724
  };
46992
48725
 
@@ -47023,6 +48756,9 @@
47023
48756
  case 5:
47024
48757
  message.receiverUsername = reader.string();
47025
48758
  break;
48759
+ case 6:
48760
+ message.guardian = reader.string();
48761
+ break;
47026
48762
  default:
47027
48763
  reader.skipType(tag & 7);
47028
48764
  break;
@@ -47057,6 +48793,9 @@
47057
48793
  if (message.receiverUsername != null && message.hasOwnProperty("receiverUsername"))
47058
48794
  if (!$util.isString(message.receiverUsername))
47059
48795
  return "receiverUsername: string expected";
48796
+ if (message.guardian != null && message.hasOwnProperty("guardian"))
48797
+ if (!$util.isString(message.guardian))
48798
+ return "guardian: string expected";
47060
48799
  return null;
47061
48800
  };
47062
48801
 
@@ -47089,6 +48828,8 @@
47089
48828
  message.receiver = String(object.receiver);
47090
48829
  if (object.receiverUsername != null)
47091
48830
  message.receiverUsername = String(object.receiverUsername);
48831
+ if (object.guardian != null)
48832
+ message.guardian = String(object.guardian);
47092
48833
  return message;
47093
48834
  };
47094
48835
 
@@ -47115,6 +48856,7 @@
47115
48856
  object.senderUsername = "";
47116
48857
  object.receiver = "";
47117
48858
  object.receiverUsername = "";
48859
+ object.guardian = "";
47118
48860
  }
47119
48861
  if (message.senderNonce != null && message.hasOwnProperty("senderNonce"))
47120
48862
  if (typeof message.senderNonce === "number")
@@ -47129,6 +48871,8 @@
47129
48871
  object.receiver = message.receiver;
47130
48872
  if (message.receiverUsername != null && message.hasOwnProperty("receiverUsername"))
47131
48873
  object.receiverUsername = message.receiverUsername;
48874
+ if (message.guardian != null && message.hasOwnProperty("guardian"))
48875
+ object.guardian = message.guardian;
47132
48876
  return object;
47133
48877
  };
47134
48878
 
@@ -76496,6 +78240,7 @@
76496
78240
  * @property {number|null} [mode] Transfer mode
76497
78241
  * @property {number|null} [expireAt] Transfer expireAt
76498
78242
  * @property {string|null} [comment] Transfer comment
78243
+ * @property {boolean|null} [bounceable] Transfer bounceable
76499
78244
  */
76500
78245
 
76501
78246
  /**
@@ -76569,6 +78314,14 @@
76569
78314
  */
76570
78315
  Transfer.prototype.comment = "";
76571
78316
 
78317
+ /**
78318
+ * Transfer bounceable.
78319
+ * @member {boolean} bounceable
78320
+ * @memberof TW.TheOpenNetwork.Proto.Transfer
78321
+ * @instance
78322
+ */
78323
+ Transfer.prototype.bounceable = false;
78324
+
76572
78325
  /**
76573
78326
  * Creates a new Transfer instance using the specified properties.
76574
78327
  * @function create
@@ -76607,6 +78360,8 @@
76607
78360
  writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.expireAt);
76608
78361
  if (message.comment != null && Object.hasOwnProperty.call(message, "comment"))
76609
78362
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.comment);
78363
+ if (message.bounceable != null && Object.hasOwnProperty.call(message, "bounceable"))
78364
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.bounceable);
76610
78365
  return writer;
76611
78366
  };
76612
78367
 
@@ -76649,6 +78404,9 @@
76649
78404
  case 7:
76650
78405
  message.comment = reader.string();
76651
78406
  break;
78407
+ case 8:
78408
+ message.bounceable = reader.bool();
78409
+ break;
76652
78410
  default:
76653
78411
  reader.skipType(tag & 7);
76654
78412
  break;
@@ -76695,6 +78453,9 @@
76695
78453
  if (message.comment != null && message.hasOwnProperty("comment"))
76696
78454
  if (!$util.isString(message.comment))
76697
78455
  return "comment: string expected";
78456
+ if (message.bounceable != null && message.hasOwnProperty("bounceable"))
78457
+ if (typeof message.bounceable !== "boolean")
78458
+ return "bounceable: boolean expected";
76698
78459
  return null;
76699
78460
  };
76700
78461
 
@@ -76743,6 +78504,8 @@
76743
78504
  message.expireAt = object.expireAt >>> 0;
76744
78505
  if (object.comment != null)
76745
78506
  message.comment = String(object.comment);
78507
+ if (object.bounceable != null)
78508
+ message.bounceable = Boolean(object.bounceable);
76746
78509
  return message;
76747
78510
  };
76748
78511
 
@@ -76771,6 +78534,7 @@
76771
78534
  object.mode = 0;
76772
78535
  object.expireAt = 0;
76773
78536
  object.comment = "";
78537
+ object.bounceable = false;
76774
78538
  }
76775
78539
  if (message.walletVersion != null && message.hasOwnProperty("walletVersion"))
76776
78540
  object.walletVersion = options.enums === String ? $root.TW.TheOpenNetwork.Proto.WalletVersion[message.walletVersion] : message.walletVersion;
@@ -76789,6 +78553,8 @@
76789
78553
  object.expireAt = message.expireAt;
76790
78554
  if (message.comment != null && message.hasOwnProperty("comment"))
76791
78555
  object.comment = message.comment;
78556
+ if (message.bounceable != null && message.hasOwnProperty("bounceable"))
78557
+ object.bounceable = message.bounceable;
76792
78558
  return object;
76793
78559
  };
76794
78560