@trustwallet/wallet-core 3.1.29 → 3.1.30
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.
@@ -4267,6 +4267,795 @@
|
|
4267
4267
|
return ClaimNftMessage;
|
4268
4268
|
})();
|
4269
4269
|
|
4270
|
+
Proto.TortugaClaim = (function() {
|
4271
|
+
|
4272
|
+
/**
|
4273
|
+
* Properties of a TortugaClaim.
|
4274
|
+
* @memberof TW.Aptos.Proto
|
4275
|
+
* @interface ITortugaClaim
|
4276
|
+
* @property {Long|null} [idx] TortugaClaim idx
|
4277
|
+
*/
|
4278
|
+
|
4279
|
+
/**
|
4280
|
+
* Constructs a new TortugaClaim.
|
4281
|
+
* @memberof TW.Aptos.Proto
|
4282
|
+
* @classdesc Represents a TortugaClaim.
|
4283
|
+
* @implements ITortugaClaim
|
4284
|
+
* @constructor
|
4285
|
+
* @param {TW.Aptos.Proto.ITortugaClaim=} [properties] Properties to set
|
4286
|
+
*/
|
4287
|
+
function TortugaClaim(properties) {
|
4288
|
+
if (properties)
|
4289
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
4290
|
+
if (properties[keys[i]] != null)
|
4291
|
+
this[keys[i]] = properties[keys[i]];
|
4292
|
+
}
|
4293
|
+
|
4294
|
+
/**
|
4295
|
+
* TortugaClaim idx.
|
4296
|
+
* @member {Long} idx
|
4297
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4298
|
+
* @instance
|
4299
|
+
*/
|
4300
|
+
TortugaClaim.prototype.idx = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
4301
|
+
|
4302
|
+
/**
|
4303
|
+
* Creates a new TortugaClaim instance using the specified properties.
|
4304
|
+
* @function create
|
4305
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4306
|
+
* @static
|
4307
|
+
* @param {TW.Aptos.Proto.ITortugaClaim=} [properties] Properties to set
|
4308
|
+
* @returns {TW.Aptos.Proto.TortugaClaim} TortugaClaim instance
|
4309
|
+
*/
|
4310
|
+
TortugaClaim.create = function create(properties) {
|
4311
|
+
return new TortugaClaim(properties);
|
4312
|
+
};
|
4313
|
+
|
4314
|
+
/**
|
4315
|
+
* Encodes the specified TortugaClaim message. Does not implicitly {@link TW.Aptos.Proto.TortugaClaim.verify|verify} messages.
|
4316
|
+
* @function encode
|
4317
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4318
|
+
* @static
|
4319
|
+
* @param {TW.Aptos.Proto.ITortugaClaim} message TortugaClaim message or plain object to encode
|
4320
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
4321
|
+
* @returns {$protobuf.Writer} Writer
|
4322
|
+
*/
|
4323
|
+
TortugaClaim.encode = function encode(message, writer) {
|
4324
|
+
if (!writer)
|
4325
|
+
writer = $Writer.create();
|
4326
|
+
if (message.idx != null && Object.hasOwnProperty.call(message, "idx"))
|
4327
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.idx);
|
4328
|
+
return writer;
|
4329
|
+
};
|
4330
|
+
|
4331
|
+
/**
|
4332
|
+
* Decodes a TortugaClaim message from the specified reader or buffer.
|
4333
|
+
* @function decode
|
4334
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4335
|
+
* @static
|
4336
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
4337
|
+
* @param {number} [length] Message length if known beforehand
|
4338
|
+
* @returns {TW.Aptos.Proto.TortugaClaim} TortugaClaim
|
4339
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
4340
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4341
|
+
*/
|
4342
|
+
TortugaClaim.decode = function decode(reader, length) {
|
4343
|
+
if (!(reader instanceof $Reader))
|
4344
|
+
reader = $Reader.create(reader);
|
4345
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Aptos.Proto.TortugaClaim();
|
4346
|
+
while (reader.pos < end) {
|
4347
|
+
var tag = reader.uint32();
|
4348
|
+
switch (tag >>> 3) {
|
4349
|
+
case 1:
|
4350
|
+
message.idx = reader.uint64();
|
4351
|
+
break;
|
4352
|
+
default:
|
4353
|
+
reader.skipType(tag & 7);
|
4354
|
+
break;
|
4355
|
+
}
|
4356
|
+
}
|
4357
|
+
return message;
|
4358
|
+
};
|
4359
|
+
|
4360
|
+
/**
|
4361
|
+
* Verifies a TortugaClaim message.
|
4362
|
+
* @function verify
|
4363
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4364
|
+
* @static
|
4365
|
+
* @param {Object.<string,*>} message Plain object to verify
|
4366
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
4367
|
+
*/
|
4368
|
+
TortugaClaim.verify = function verify(message) {
|
4369
|
+
if (typeof message !== "object" || message === null)
|
4370
|
+
return "object expected";
|
4371
|
+
if (message.idx != null && message.hasOwnProperty("idx"))
|
4372
|
+
if (!$util.isInteger(message.idx) && !(message.idx && $util.isInteger(message.idx.low) && $util.isInteger(message.idx.high)))
|
4373
|
+
return "idx: integer|Long expected";
|
4374
|
+
return null;
|
4375
|
+
};
|
4376
|
+
|
4377
|
+
/**
|
4378
|
+
* Creates a TortugaClaim message from a plain object. Also converts values to their respective internal types.
|
4379
|
+
* @function fromObject
|
4380
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4381
|
+
* @static
|
4382
|
+
* @param {Object.<string,*>} object Plain object
|
4383
|
+
* @returns {TW.Aptos.Proto.TortugaClaim} TortugaClaim
|
4384
|
+
*/
|
4385
|
+
TortugaClaim.fromObject = function fromObject(object) {
|
4386
|
+
if (object instanceof $root.TW.Aptos.Proto.TortugaClaim)
|
4387
|
+
return object;
|
4388
|
+
var message = new $root.TW.Aptos.Proto.TortugaClaim();
|
4389
|
+
if (object.idx != null)
|
4390
|
+
if ($util.Long)
|
4391
|
+
(message.idx = $util.Long.fromValue(object.idx)).unsigned = true;
|
4392
|
+
else if (typeof object.idx === "string")
|
4393
|
+
message.idx = parseInt(object.idx, 10);
|
4394
|
+
else if (typeof object.idx === "number")
|
4395
|
+
message.idx = object.idx;
|
4396
|
+
else if (typeof object.idx === "object")
|
4397
|
+
message.idx = new $util.LongBits(object.idx.low >>> 0, object.idx.high >>> 0).toNumber(true);
|
4398
|
+
return message;
|
4399
|
+
};
|
4400
|
+
|
4401
|
+
/**
|
4402
|
+
* Creates a plain object from a TortugaClaim message. Also converts values to other types if specified.
|
4403
|
+
* @function toObject
|
4404
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4405
|
+
* @static
|
4406
|
+
* @param {TW.Aptos.Proto.TortugaClaim} message TortugaClaim
|
4407
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
4408
|
+
* @returns {Object.<string,*>} Plain object
|
4409
|
+
*/
|
4410
|
+
TortugaClaim.toObject = function toObject(message, options) {
|
4411
|
+
if (!options)
|
4412
|
+
options = {};
|
4413
|
+
var object = {};
|
4414
|
+
if (options.defaults)
|
4415
|
+
if ($util.Long) {
|
4416
|
+
var long = new $util.Long(0, 0, true);
|
4417
|
+
object.idx = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
4418
|
+
} else
|
4419
|
+
object.idx = options.longs === String ? "0" : 0;
|
4420
|
+
if (message.idx != null && message.hasOwnProperty("idx"))
|
4421
|
+
if (typeof message.idx === "number")
|
4422
|
+
object.idx = options.longs === String ? String(message.idx) : message.idx;
|
4423
|
+
else
|
4424
|
+
object.idx = options.longs === String ? $util.Long.prototype.toString.call(message.idx) : options.longs === Number ? new $util.LongBits(message.idx.low >>> 0, message.idx.high >>> 0).toNumber(true) : message.idx;
|
4425
|
+
return object;
|
4426
|
+
};
|
4427
|
+
|
4428
|
+
/**
|
4429
|
+
* Converts this TortugaClaim to JSON.
|
4430
|
+
* @function toJSON
|
4431
|
+
* @memberof TW.Aptos.Proto.TortugaClaim
|
4432
|
+
* @instance
|
4433
|
+
* @returns {Object.<string,*>} JSON object
|
4434
|
+
*/
|
4435
|
+
TortugaClaim.prototype.toJSON = function toJSON() {
|
4436
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
4437
|
+
};
|
4438
|
+
|
4439
|
+
return TortugaClaim;
|
4440
|
+
})();
|
4441
|
+
|
4442
|
+
Proto.TortugaStake = (function() {
|
4443
|
+
|
4444
|
+
/**
|
4445
|
+
* Properties of a TortugaStake.
|
4446
|
+
* @memberof TW.Aptos.Proto
|
4447
|
+
* @interface ITortugaStake
|
4448
|
+
* @property {Long|null} [amount] TortugaStake amount
|
4449
|
+
*/
|
4450
|
+
|
4451
|
+
/**
|
4452
|
+
* Constructs a new TortugaStake.
|
4453
|
+
* @memberof TW.Aptos.Proto
|
4454
|
+
* @classdesc Represents a TortugaStake.
|
4455
|
+
* @implements ITortugaStake
|
4456
|
+
* @constructor
|
4457
|
+
* @param {TW.Aptos.Proto.ITortugaStake=} [properties] Properties to set
|
4458
|
+
*/
|
4459
|
+
function TortugaStake(properties) {
|
4460
|
+
if (properties)
|
4461
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
4462
|
+
if (properties[keys[i]] != null)
|
4463
|
+
this[keys[i]] = properties[keys[i]];
|
4464
|
+
}
|
4465
|
+
|
4466
|
+
/**
|
4467
|
+
* TortugaStake amount.
|
4468
|
+
* @member {Long} amount
|
4469
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4470
|
+
* @instance
|
4471
|
+
*/
|
4472
|
+
TortugaStake.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
4473
|
+
|
4474
|
+
/**
|
4475
|
+
* Creates a new TortugaStake instance using the specified properties.
|
4476
|
+
* @function create
|
4477
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4478
|
+
* @static
|
4479
|
+
* @param {TW.Aptos.Proto.ITortugaStake=} [properties] Properties to set
|
4480
|
+
* @returns {TW.Aptos.Proto.TortugaStake} TortugaStake instance
|
4481
|
+
*/
|
4482
|
+
TortugaStake.create = function create(properties) {
|
4483
|
+
return new TortugaStake(properties);
|
4484
|
+
};
|
4485
|
+
|
4486
|
+
/**
|
4487
|
+
* Encodes the specified TortugaStake message. Does not implicitly {@link TW.Aptos.Proto.TortugaStake.verify|verify} messages.
|
4488
|
+
* @function encode
|
4489
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4490
|
+
* @static
|
4491
|
+
* @param {TW.Aptos.Proto.ITortugaStake} message TortugaStake message or plain object to encode
|
4492
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
4493
|
+
* @returns {$protobuf.Writer} Writer
|
4494
|
+
*/
|
4495
|
+
TortugaStake.encode = function encode(message, writer) {
|
4496
|
+
if (!writer)
|
4497
|
+
writer = $Writer.create();
|
4498
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
4499
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
|
4500
|
+
return writer;
|
4501
|
+
};
|
4502
|
+
|
4503
|
+
/**
|
4504
|
+
* Decodes a TortugaStake message from the specified reader or buffer.
|
4505
|
+
* @function decode
|
4506
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4507
|
+
* @static
|
4508
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
4509
|
+
* @param {number} [length] Message length if known beforehand
|
4510
|
+
* @returns {TW.Aptos.Proto.TortugaStake} TortugaStake
|
4511
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
4512
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4513
|
+
*/
|
4514
|
+
TortugaStake.decode = function decode(reader, length) {
|
4515
|
+
if (!(reader instanceof $Reader))
|
4516
|
+
reader = $Reader.create(reader);
|
4517
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Aptos.Proto.TortugaStake();
|
4518
|
+
while (reader.pos < end) {
|
4519
|
+
var tag = reader.uint32();
|
4520
|
+
switch (tag >>> 3) {
|
4521
|
+
case 1:
|
4522
|
+
message.amount = reader.uint64();
|
4523
|
+
break;
|
4524
|
+
default:
|
4525
|
+
reader.skipType(tag & 7);
|
4526
|
+
break;
|
4527
|
+
}
|
4528
|
+
}
|
4529
|
+
return message;
|
4530
|
+
};
|
4531
|
+
|
4532
|
+
/**
|
4533
|
+
* Verifies a TortugaStake message.
|
4534
|
+
* @function verify
|
4535
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4536
|
+
* @static
|
4537
|
+
* @param {Object.<string,*>} message Plain object to verify
|
4538
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
4539
|
+
*/
|
4540
|
+
TortugaStake.verify = function verify(message) {
|
4541
|
+
if (typeof message !== "object" || message === null)
|
4542
|
+
return "object expected";
|
4543
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
4544
|
+
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
4545
|
+
return "amount: integer|Long expected";
|
4546
|
+
return null;
|
4547
|
+
};
|
4548
|
+
|
4549
|
+
/**
|
4550
|
+
* Creates a TortugaStake message from a plain object. Also converts values to their respective internal types.
|
4551
|
+
* @function fromObject
|
4552
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4553
|
+
* @static
|
4554
|
+
* @param {Object.<string,*>} object Plain object
|
4555
|
+
* @returns {TW.Aptos.Proto.TortugaStake} TortugaStake
|
4556
|
+
*/
|
4557
|
+
TortugaStake.fromObject = function fromObject(object) {
|
4558
|
+
if (object instanceof $root.TW.Aptos.Proto.TortugaStake)
|
4559
|
+
return object;
|
4560
|
+
var message = new $root.TW.Aptos.Proto.TortugaStake();
|
4561
|
+
if (object.amount != null)
|
4562
|
+
if ($util.Long)
|
4563
|
+
(message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
|
4564
|
+
else if (typeof object.amount === "string")
|
4565
|
+
message.amount = parseInt(object.amount, 10);
|
4566
|
+
else if (typeof object.amount === "number")
|
4567
|
+
message.amount = object.amount;
|
4568
|
+
else if (typeof object.amount === "object")
|
4569
|
+
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
4570
|
+
return message;
|
4571
|
+
};
|
4572
|
+
|
4573
|
+
/**
|
4574
|
+
* Creates a plain object from a TortugaStake message. Also converts values to other types if specified.
|
4575
|
+
* @function toObject
|
4576
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4577
|
+
* @static
|
4578
|
+
* @param {TW.Aptos.Proto.TortugaStake} message TortugaStake
|
4579
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
4580
|
+
* @returns {Object.<string,*>} Plain object
|
4581
|
+
*/
|
4582
|
+
TortugaStake.toObject = function toObject(message, options) {
|
4583
|
+
if (!options)
|
4584
|
+
options = {};
|
4585
|
+
var object = {};
|
4586
|
+
if (options.defaults)
|
4587
|
+
if ($util.Long) {
|
4588
|
+
var long = new $util.Long(0, 0, true);
|
4589
|
+
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
4590
|
+
} else
|
4591
|
+
object.amount = options.longs === String ? "0" : 0;
|
4592
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
4593
|
+
if (typeof message.amount === "number")
|
4594
|
+
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
4595
|
+
else
|
4596
|
+
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;
|
4597
|
+
return object;
|
4598
|
+
};
|
4599
|
+
|
4600
|
+
/**
|
4601
|
+
* Converts this TortugaStake to JSON.
|
4602
|
+
* @function toJSON
|
4603
|
+
* @memberof TW.Aptos.Proto.TortugaStake
|
4604
|
+
* @instance
|
4605
|
+
* @returns {Object.<string,*>} JSON object
|
4606
|
+
*/
|
4607
|
+
TortugaStake.prototype.toJSON = function toJSON() {
|
4608
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
4609
|
+
};
|
4610
|
+
|
4611
|
+
return TortugaStake;
|
4612
|
+
})();
|
4613
|
+
|
4614
|
+
Proto.TortugaUnstake = (function() {
|
4615
|
+
|
4616
|
+
/**
|
4617
|
+
* Properties of a TortugaUnstake.
|
4618
|
+
* @memberof TW.Aptos.Proto
|
4619
|
+
* @interface ITortugaUnstake
|
4620
|
+
* @property {Long|null} [amount] TortugaUnstake amount
|
4621
|
+
*/
|
4622
|
+
|
4623
|
+
/**
|
4624
|
+
* Constructs a new TortugaUnstake.
|
4625
|
+
* @memberof TW.Aptos.Proto
|
4626
|
+
* @classdesc Represents a TortugaUnstake.
|
4627
|
+
* @implements ITortugaUnstake
|
4628
|
+
* @constructor
|
4629
|
+
* @param {TW.Aptos.Proto.ITortugaUnstake=} [properties] Properties to set
|
4630
|
+
*/
|
4631
|
+
function TortugaUnstake(properties) {
|
4632
|
+
if (properties)
|
4633
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
4634
|
+
if (properties[keys[i]] != null)
|
4635
|
+
this[keys[i]] = properties[keys[i]];
|
4636
|
+
}
|
4637
|
+
|
4638
|
+
/**
|
4639
|
+
* TortugaUnstake amount.
|
4640
|
+
* @member {Long} amount
|
4641
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4642
|
+
* @instance
|
4643
|
+
*/
|
4644
|
+
TortugaUnstake.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
4645
|
+
|
4646
|
+
/**
|
4647
|
+
* Creates a new TortugaUnstake instance using the specified properties.
|
4648
|
+
* @function create
|
4649
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4650
|
+
* @static
|
4651
|
+
* @param {TW.Aptos.Proto.ITortugaUnstake=} [properties] Properties to set
|
4652
|
+
* @returns {TW.Aptos.Proto.TortugaUnstake} TortugaUnstake instance
|
4653
|
+
*/
|
4654
|
+
TortugaUnstake.create = function create(properties) {
|
4655
|
+
return new TortugaUnstake(properties);
|
4656
|
+
};
|
4657
|
+
|
4658
|
+
/**
|
4659
|
+
* Encodes the specified TortugaUnstake message. Does not implicitly {@link TW.Aptos.Proto.TortugaUnstake.verify|verify} messages.
|
4660
|
+
* @function encode
|
4661
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4662
|
+
* @static
|
4663
|
+
* @param {TW.Aptos.Proto.ITortugaUnstake} message TortugaUnstake message or plain object to encode
|
4664
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
4665
|
+
* @returns {$protobuf.Writer} Writer
|
4666
|
+
*/
|
4667
|
+
TortugaUnstake.encode = function encode(message, writer) {
|
4668
|
+
if (!writer)
|
4669
|
+
writer = $Writer.create();
|
4670
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
4671
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
|
4672
|
+
return writer;
|
4673
|
+
};
|
4674
|
+
|
4675
|
+
/**
|
4676
|
+
* Decodes a TortugaUnstake message from the specified reader or buffer.
|
4677
|
+
* @function decode
|
4678
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4679
|
+
* @static
|
4680
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
4681
|
+
* @param {number} [length] Message length if known beforehand
|
4682
|
+
* @returns {TW.Aptos.Proto.TortugaUnstake} TortugaUnstake
|
4683
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
4684
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4685
|
+
*/
|
4686
|
+
TortugaUnstake.decode = function decode(reader, length) {
|
4687
|
+
if (!(reader instanceof $Reader))
|
4688
|
+
reader = $Reader.create(reader);
|
4689
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Aptos.Proto.TortugaUnstake();
|
4690
|
+
while (reader.pos < end) {
|
4691
|
+
var tag = reader.uint32();
|
4692
|
+
switch (tag >>> 3) {
|
4693
|
+
case 1:
|
4694
|
+
message.amount = reader.uint64();
|
4695
|
+
break;
|
4696
|
+
default:
|
4697
|
+
reader.skipType(tag & 7);
|
4698
|
+
break;
|
4699
|
+
}
|
4700
|
+
}
|
4701
|
+
return message;
|
4702
|
+
};
|
4703
|
+
|
4704
|
+
/**
|
4705
|
+
* Verifies a TortugaUnstake message.
|
4706
|
+
* @function verify
|
4707
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4708
|
+
* @static
|
4709
|
+
* @param {Object.<string,*>} message Plain object to verify
|
4710
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
4711
|
+
*/
|
4712
|
+
TortugaUnstake.verify = function verify(message) {
|
4713
|
+
if (typeof message !== "object" || message === null)
|
4714
|
+
return "object expected";
|
4715
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
4716
|
+
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
4717
|
+
return "amount: integer|Long expected";
|
4718
|
+
return null;
|
4719
|
+
};
|
4720
|
+
|
4721
|
+
/**
|
4722
|
+
* Creates a TortugaUnstake message from a plain object. Also converts values to their respective internal types.
|
4723
|
+
* @function fromObject
|
4724
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4725
|
+
* @static
|
4726
|
+
* @param {Object.<string,*>} object Plain object
|
4727
|
+
* @returns {TW.Aptos.Proto.TortugaUnstake} TortugaUnstake
|
4728
|
+
*/
|
4729
|
+
TortugaUnstake.fromObject = function fromObject(object) {
|
4730
|
+
if (object instanceof $root.TW.Aptos.Proto.TortugaUnstake)
|
4731
|
+
return object;
|
4732
|
+
var message = new $root.TW.Aptos.Proto.TortugaUnstake();
|
4733
|
+
if (object.amount != null)
|
4734
|
+
if ($util.Long)
|
4735
|
+
(message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
|
4736
|
+
else if (typeof object.amount === "string")
|
4737
|
+
message.amount = parseInt(object.amount, 10);
|
4738
|
+
else if (typeof object.amount === "number")
|
4739
|
+
message.amount = object.amount;
|
4740
|
+
else if (typeof object.amount === "object")
|
4741
|
+
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
4742
|
+
return message;
|
4743
|
+
};
|
4744
|
+
|
4745
|
+
/**
|
4746
|
+
* Creates a plain object from a TortugaUnstake message. Also converts values to other types if specified.
|
4747
|
+
* @function toObject
|
4748
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4749
|
+
* @static
|
4750
|
+
* @param {TW.Aptos.Proto.TortugaUnstake} message TortugaUnstake
|
4751
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
4752
|
+
* @returns {Object.<string,*>} Plain object
|
4753
|
+
*/
|
4754
|
+
TortugaUnstake.toObject = function toObject(message, options) {
|
4755
|
+
if (!options)
|
4756
|
+
options = {};
|
4757
|
+
var object = {};
|
4758
|
+
if (options.defaults)
|
4759
|
+
if ($util.Long) {
|
4760
|
+
var long = new $util.Long(0, 0, true);
|
4761
|
+
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
4762
|
+
} else
|
4763
|
+
object.amount = options.longs === String ? "0" : 0;
|
4764
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
4765
|
+
if (typeof message.amount === "number")
|
4766
|
+
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
4767
|
+
else
|
4768
|
+
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;
|
4769
|
+
return object;
|
4770
|
+
};
|
4771
|
+
|
4772
|
+
/**
|
4773
|
+
* Converts this TortugaUnstake to JSON.
|
4774
|
+
* @function toJSON
|
4775
|
+
* @memberof TW.Aptos.Proto.TortugaUnstake
|
4776
|
+
* @instance
|
4777
|
+
* @returns {Object.<string,*>} JSON object
|
4778
|
+
*/
|
4779
|
+
TortugaUnstake.prototype.toJSON = function toJSON() {
|
4780
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
4781
|
+
};
|
4782
|
+
|
4783
|
+
return TortugaUnstake;
|
4784
|
+
})();
|
4785
|
+
|
4786
|
+
Proto.LiquidStaking = (function() {
|
4787
|
+
|
4788
|
+
/**
|
4789
|
+
* Properties of a LiquidStaking.
|
4790
|
+
* @memberof TW.Aptos.Proto
|
4791
|
+
* @interface ILiquidStaking
|
4792
|
+
* @property {string|null} [smartContractAddress] LiquidStaking smartContractAddress
|
4793
|
+
* @property {TW.Aptos.Proto.ITortugaStake|null} [stake] LiquidStaking stake
|
4794
|
+
* @property {TW.Aptos.Proto.ITortugaUnstake|null} [unstake] LiquidStaking unstake
|
4795
|
+
* @property {TW.Aptos.Proto.ITortugaClaim|null} [claim] LiquidStaking claim
|
4796
|
+
*/
|
4797
|
+
|
4798
|
+
/**
|
4799
|
+
* Constructs a new LiquidStaking.
|
4800
|
+
* @memberof TW.Aptos.Proto
|
4801
|
+
* @classdesc Represents a LiquidStaking.
|
4802
|
+
* @implements ILiquidStaking
|
4803
|
+
* @constructor
|
4804
|
+
* @param {TW.Aptos.Proto.ILiquidStaking=} [properties] Properties to set
|
4805
|
+
*/
|
4806
|
+
function LiquidStaking(properties) {
|
4807
|
+
if (properties)
|
4808
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
4809
|
+
if (properties[keys[i]] != null)
|
4810
|
+
this[keys[i]] = properties[keys[i]];
|
4811
|
+
}
|
4812
|
+
|
4813
|
+
/**
|
4814
|
+
* LiquidStaking smartContractAddress.
|
4815
|
+
* @member {string} smartContractAddress
|
4816
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4817
|
+
* @instance
|
4818
|
+
*/
|
4819
|
+
LiquidStaking.prototype.smartContractAddress = "";
|
4820
|
+
|
4821
|
+
/**
|
4822
|
+
* LiquidStaking stake.
|
4823
|
+
* @member {TW.Aptos.Proto.ITortugaStake|null|undefined} stake
|
4824
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4825
|
+
* @instance
|
4826
|
+
*/
|
4827
|
+
LiquidStaking.prototype.stake = null;
|
4828
|
+
|
4829
|
+
/**
|
4830
|
+
* LiquidStaking unstake.
|
4831
|
+
* @member {TW.Aptos.Proto.ITortugaUnstake|null|undefined} unstake
|
4832
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4833
|
+
* @instance
|
4834
|
+
*/
|
4835
|
+
LiquidStaking.prototype.unstake = null;
|
4836
|
+
|
4837
|
+
/**
|
4838
|
+
* LiquidStaking claim.
|
4839
|
+
* @member {TW.Aptos.Proto.ITortugaClaim|null|undefined} claim
|
4840
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4841
|
+
* @instance
|
4842
|
+
*/
|
4843
|
+
LiquidStaking.prototype.claim = null;
|
4844
|
+
|
4845
|
+
// OneOf field names bound to virtual getters and setters
|
4846
|
+
var $oneOfFields;
|
4847
|
+
|
4848
|
+
/**
|
4849
|
+
* LiquidStaking liquidStakeTransactionPayload.
|
4850
|
+
* @member {"stake"|"unstake"|"claim"|undefined} liquidStakeTransactionPayload
|
4851
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4852
|
+
* @instance
|
4853
|
+
*/
|
4854
|
+
Object.defineProperty(LiquidStaking.prototype, "liquidStakeTransactionPayload", {
|
4855
|
+
get: $util.oneOfGetter($oneOfFields = ["stake", "unstake", "claim"]),
|
4856
|
+
set: $util.oneOfSetter($oneOfFields)
|
4857
|
+
});
|
4858
|
+
|
4859
|
+
/**
|
4860
|
+
* Creates a new LiquidStaking instance using the specified properties.
|
4861
|
+
* @function create
|
4862
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4863
|
+
* @static
|
4864
|
+
* @param {TW.Aptos.Proto.ILiquidStaking=} [properties] Properties to set
|
4865
|
+
* @returns {TW.Aptos.Proto.LiquidStaking} LiquidStaking instance
|
4866
|
+
*/
|
4867
|
+
LiquidStaking.create = function create(properties) {
|
4868
|
+
return new LiquidStaking(properties);
|
4869
|
+
};
|
4870
|
+
|
4871
|
+
/**
|
4872
|
+
* Encodes the specified LiquidStaking message. Does not implicitly {@link TW.Aptos.Proto.LiquidStaking.verify|verify} messages.
|
4873
|
+
* @function encode
|
4874
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4875
|
+
* @static
|
4876
|
+
* @param {TW.Aptos.Proto.ILiquidStaking} message LiquidStaking message or plain object to encode
|
4877
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
4878
|
+
* @returns {$protobuf.Writer} Writer
|
4879
|
+
*/
|
4880
|
+
LiquidStaking.encode = function encode(message, writer) {
|
4881
|
+
if (!writer)
|
4882
|
+
writer = $Writer.create();
|
4883
|
+
if (message.smartContractAddress != null && Object.hasOwnProperty.call(message, "smartContractAddress"))
|
4884
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.smartContractAddress);
|
4885
|
+
if (message.stake != null && Object.hasOwnProperty.call(message, "stake"))
|
4886
|
+
$root.TW.Aptos.Proto.TortugaStake.encode(message.stake, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
4887
|
+
if (message.unstake != null && Object.hasOwnProperty.call(message, "unstake"))
|
4888
|
+
$root.TW.Aptos.Proto.TortugaUnstake.encode(message.unstake, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
4889
|
+
if (message.claim != null && Object.hasOwnProperty.call(message, "claim"))
|
4890
|
+
$root.TW.Aptos.Proto.TortugaClaim.encode(message.claim, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
4891
|
+
return writer;
|
4892
|
+
};
|
4893
|
+
|
4894
|
+
/**
|
4895
|
+
* Decodes a LiquidStaking message from the specified reader or buffer.
|
4896
|
+
* @function decode
|
4897
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4898
|
+
* @static
|
4899
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
4900
|
+
* @param {number} [length] Message length if known beforehand
|
4901
|
+
* @returns {TW.Aptos.Proto.LiquidStaking} LiquidStaking
|
4902
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
4903
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4904
|
+
*/
|
4905
|
+
LiquidStaking.decode = function decode(reader, length) {
|
4906
|
+
if (!(reader instanceof $Reader))
|
4907
|
+
reader = $Reader.create(reader);
|
4908
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Aptos.Proto.LiquidStaking();
|
4909
|
+
while (reader.pos < end) {
|
4910
|
+
var tag = reader.uint32();
|
4911
|
+
switch (tag >>> 3) {
|
4912
|
+
case 1:
|
4913
|
+
message.smartContractAddress = reader.string();
|
4914
|
+
break;
|
4915
|
+
case 2:
|
4916
|
+
message.stake = $root.TW.Aptos.Proto.TortugaStake.decode(reader, reader.uint32());
|
4917
|
+
break;
|
4918
|
+
case 3:
|
4919
|
+
message.unstake = $root.TW.Aptos.Proto.TortugaUnstake.decode(reader, reader.uint32());
|
4920
|
+
break;
|
4921
|
+
case 4:
|
4922
|
+
message.claim = $root.TW.Aptos.Proto.TortugaClaim.decode(reader, reader.uint32());
|
4923
|
+
break;
|
4924
|
+
default:
|
4925
|
+
reader.skipType(tag & 7);
|
4926
|
+
break;
|
4927
|
+
}
|
4928
|
+
}
|
4929
|
+
return message;
|
4930
|
+
};
|
4931
|
+
|
4932
|
+
/**
|
4933
|
+
* Verifies a LiquidStaking message.
|
4934
|
+
* @function verify
|
4935
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4936
|
+
* @static
|
4937
|
+
* @param {Object.<string,*>} message Plain object to verify
|
4938
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
4939
|
+
*/
|
4940
|
+
LiquidStaking.verify = function verify(message) {
|
4941
|
+
if (typeof message !== "object" || message === null)
|
4942
|
+
return "object expected";
|
4943
|
+
var properties = {};
|
4944
|
+
if (message.smartContractAddress != null && message.hasOwnProperty("smartContractAddress"))
|
4945
|
+
if (!$util.isString(message.smartContractAddress))
|
4946
|
+
return "smartContractAddress: string expected";
|
4947
|
+
if (message.stake != null && message.hasOwnProperty("stake")) {
|
4948
|
+
properties.liquidStakeTransactionPayload = 1;
|
4949
|
+
{
|
4950
|
+
var error = $root.TW.Aptos.Proto.TortugaStake.verify(message.stake);
|
4951
|
+
if (error)
|
4952
|
+
return "stake." + error;
|
4953
|
+
}
|
4954
|
+
}
|
4955
|
+
if (message.unstake != null && message.hasOwnProperty("unstake")) {
|
4956
|
+
if (properties.liquidStakeTransactionPayload === 1)
|
4957
|
+
return "liquidStakeTransactionPayload: multiple values";
|
4958
|
+
properties.liquidStakeTransactionPayload = 1;
|
4959
|
+
{
|
4960
|
+
var error = $root.TW.Aptos.Proto.TortugaUnstake.verify(message.unstake);
|
4961
|
+
if (error)
|
4962
|
+
return "unstake." + error;
|
4963
|
+
}
|
4964
|
+
}
|
4965
|
+
if (message.claim != null && message.hasOwnProperty("claim")) {
|
4966
|
+
if (properties.liquidStakeTransactionPayload === 1)
|
4967
|
+
return "liquidStakeTransactionPayload: multiple values";
|
4968
|
+
properties.liquidStakeTransactionPayload = 1;
|
4969
|
+
{
|
4970
|
+
var error = $root.TW.Aptos.Proto.TortugaClaim.verify(message.claim);
|
4971
|
+
if (error)
|
4972
|
+
return "claim." + error;
|
4973
|
+
}
|
4974
|
+
}
|
4975
|
+
return null;
|
4976
|
+
};
|
4977
|
+
|
4978
|
+
/**
|
4979
|
+
* Creates a LiquidStaking message from a plain object. Also converts values to their respective internal types.
|
4980
|
+
* @function fromObject
|
4981
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
4982
|
+
* @static
|
4983
|
+
* @param {Object.<string,*>} object Plain object
|
4984
|
+
* @returns {TW.Aptos.Proto.LiquidStaking} LiquidStaking
|
4985
|
+
*/
|
4986
|
+
LiquidStaking.fromObject = function fromObject(object) {
|
4987
|
+
if (object instanceof $root.TW.Aptos.Proto.LiquidStaking)
|
4988
|
+
return object;
|
4989
|
+
var message = new $root.TW.Aptos.Proto.LiquidStaking();
|
4990
|
+
if (object.smartContractAddress != null)
|
4991
|
+
message.smartContractAddress = String(object.smartContractAddress);
|
4992
|
+
if (object.stake != null) {
|
4993
|
+
if (typeof object.stake !== "object")
|
4994
|
+
throw TypeError(".TW.Aptos.Proto.LiquidStaking.stake: object expected");
|
4995
|
+
message.stake = $root.TW.Aptos.Proto.TortugaStake.fromObject(object.stake);
|
4996
|
+
}
|
4997
|
+
if (object.unstake != null) {
|
4998
|
+
if (typeof object.unstake !== "object")
|
4999
|
+
throw TypeError(".TW.Aptos.Proto.LiquidStaking.unstake: object expected");
|
5000
|
+
message.unstake = $root.TW.Aptos.Proto.TortugaUnstake.fromObject(object.unstake);
|
5001
|
+
}
|
5002
|
+
if (object.claim != null) {
|
5003
|
+
if (typeof object.claim !== "object")
|
5004
|
+
throw TypeError(".TW.Aptos.Proto.LiquidStaking.claim: object expected");
|
5005
|
+
message.claim = $root.TW.Aptos.Proto.TortugaClaim.fromObject(object.claim);
|
5006
|
+
}
|
5007
|
+
return message;
|
5008
|
+
};
|
5009
|
+
|
5010
|
+
/**
|
5011
|
+
* Creates a plain object from a LiquidStaking message. Also converts values to other types if specified.
|
5012
|
+
* @function toObject
|
5013
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
5014
|
+
* @static
|
5015
|
+
* @param {TW.Aptos.Proto.LiquidStaking} message LiquidStaking
|
5016
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
5017
|
+
* @returns {Object.<string,*>} Plain object
|
5018
|
+
*/
|
5019
|
+
LiquidStaking.toObject = function toObject(message, options) {
|
5020
|
+
if (!options)
|
5021
|
+
options = {};
|
5022
|
+
var object = {};
|
5023
|
+
if (options.defaults)
|
5024
|
+
object.smartContractAddress = "";
|
5025
|
+
if (message.smartContractAddress != null && message.hasOwnProperty("smartContractAddress"))
|
5026
|
+
object.smartContractAddress = message.smartContractAddress;
|
5027
|
+
if (message.stake != null && message.hasOwnProperty("stake")) {
|
5028
|
+
object.stake = $root.TW.Aptos.Proto.TortugaStake.toObject(message.stake, options);
|
5029
|
+
if (options.oneofs)
|
5030
|
+
object.liquidStakeTransactionPayload = "stake";
|
5031
|
+
}
|
5032
|
+
if (message.unstake != null && message.hasOwnProperty("unstake")) {
|
5033
|
+
object.unstake = $root.TW.Aptos.Proto.TortugaUnstake.toObject(message.unstake, options);
|
5034
|
+
if (options.oneofs)
|
5035
|
+
object.liquidStakeTransactionPayload = "unstake";
|
5036
|
+
}
|
5037
|
+
if (message.claim != null && message.hasOwnProperty("claim")) {
|
5038
|
+
object.claim = $root.TW.Aptos.Proto.TortugaClaim.toObject(message.claim, options);
|
5039
|
+
if (options.oneofs)
|
5040
|
+
object.liquidStakeTransactionPayload = "claim";
|
5041
|
+
}
|
5042
|
+
return object;
|
5043
|
+
};
|
5044
|
+
|
5045
|
+
/**
|
5046
|
+
* Converts this LiquidStaking to JSON.
|
5047
|
+
* @function toJSON
|
5048
|
+
* @memberof TW.Aptos.Proto.LiquidStaking
|
5049
|
+
* @instance
|
5050
|
+
* @returns {Object.<string,*>} JSON object
|
5051
|
+
*/
|
5052
|
+
LiquidStaking.prototype.toJSON = function toJSON() {
|
5053
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
5054
|
+
};
|
5055
|
+
|
5056
|
+
return LiquidStaking;
|
5057
|
+
})();
|
5058
|
+
|
4270
5059
|
Proto.NftMessage = (function() {
|
4271
5060
|
|
4272
5061
|
/**
|
@@ -4536,6 +5325,7 @@
|
|
4536
5325
|
* @property {TW.Aptos.Proto.ICreateAccountMessage|null} [createAccount] SigningInput createAccount
|
4537
5326
|
* @property {TW.Aptos.Proto.INftMessage|null} [nftMessage] SigningInput nftMessage
|
4538
5327
|
* @property {TW.Aptos.Proto.IManagedTokensRegisterMessage|null} [registerToken] SigningInput registerToken
|
5328
|
+
* @property {TW.Aptos.Proto.ILiquidStaking|null} [liquidStakingMessage] SigningInput liquidStakingMessage
|
4539
5329
|
*/
|
4540
5330
|
|
4541
5331
|
/**
|
@@ -4657,17 +5447,25 @@
|
|
4657
5447
|
*/
|
4658
5448
|
SigningInput.prototype.registerToken = null;
|
4659
5449
|
|
5450
|
+
/**
|
5451
|
+
* SigningInput liquidStakingMessage.
|
5452
|
+
* @member {TW.Aptos.Proto.ILiquidStaking|null|undefined} liquidStakingMessage
|
5453
|
+
* @memberof TW.Aptos.Proto.SigningInput
|
5454
|
+
* @instance
|
5455
|
+
*/
|
5456
|
+
SigningInput.prototype.liquidStakingMessage = null;
|
5457
|
+
|
4660
5458
|
// OneOf field names bound to virtual getters and setters
|
4661
5459
|
var $oneOfFields;
|
4662
5460
|
|
4663
5461
|
/**
|
4664
5462
|
* SigningInput transactionPayload.
|
4665
|
-
* @member {"transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|undefined} transactionPayload
|
5463
|
+
* @member {"transfer"|"tokenTransfer"|"createAccount"|"nftMessage"|"registerToken"|"liquidStakingMessage"|undefined} transactionPayload
|
4666
5464
|
* @memberof TW.Aptos.Proto.SigningInput
|
4667
5465
|
* @instance
|
4668
5466
|
*/
|
4669
5467
|
Object.defineProperty(SigningInput.prototype, "transactionPayload", {
|
4670
|
-
get: $util.oneOfGetter($oneOfFields = ["transfer", "tokenTransfer", "createAccount", "nftMessage", "registerToken"]),
|
5468
|
+
get: $util.oneOfGetter($oneOfFields = ["transfer", "tokenTransfer", "createAccount", "nftMessage", "registerToken", "liquidStakingMessage"]),
|
4671
5469
|
set: $util.oneOfSetter($oneOfFields)
|
4672
5470
|
});
|
4673
5471
|
|
@@ -4721,6 +5519,8 @@
|
|
4721
5519
|
$root.TW.Aptos.Proto.NftMessage.encode(message.nftMessage, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
4722
5520
|
if (message.registerToken != null && Object.hasOwnProperty.call(message, "registerToken"))
|
4723
5521
|
$root.TW.Aptos.Proto.ManagedTokensRegisterMessage.encode(message.registerToken, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
5522
|
+
if (message.liquidStakingMessage != null && Object.hasOwnProperty.call(message, "liquidStakingMessage"))
|
5523
|
+
$root.TW.Aptos.Proto.LiquidStaking.encode(message.liquidStakingMessage, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
4724
5524
|
return writer;
|
4725
5525
|
};
|
4726
5526
|
|
@@ -4781,6 +5581,9 @@
|
|
4781
5581
|
case 13:
|
4782
5582
|
message.registerToken = $root.TW.Aptos.Proto.ManagedTokensRegisterMessage.decode(reader, reader.uint32());
|
4783
5583
|
break;
|
5584
|
+
case 14:
|
5585
|
+
message.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.decode(reader, reader.uint32());
|
5586
|
+
break;
|
4784
5587
|
default:
|
4785
5588
|
reader.skipType(tag & 7);
|
4786
5589
|
break;
|
@@ -4873,6 +5676,16 @@
|
|
4873
5676
|
return "registerToken." + error;
|
4874
5677
|
}
|
4875
5678
|
}
|
5679
|
+
if (message.liquidStakingMessage != null && message.hasOwnProperty("liquidStakingMessage")) {
|
5680
|
+
if (properties.transactionPayload === 1)
|
5681
|
+
return "transactionPayload: multiple values";
|
5682
|
+
properties.transactionPayload = 1;
|
5683
|
+
{
|
5684
|
+
var error = $root.TW.Aptos.Proto.LiquidStaking.verify(message.liquidStakingMessage);
|
5685
|
+
if (error)
|
5686
|
+
return "liquidStakingMessage." + error;
|
5687
|
+
}
|
5688
|
+
}
|
4876
5689
|
return null;
|
4877
5690
|
};
|
4878
5691
|
|
@@ -4960,6 +5773,11 @@
|
|
4960
5773
|
throw TypeError(".TW.Aptos.Proto.SigningInput.registerToken: object expected");
|
4961
5774
|
message.registerToken = $root.TW.Aptos.Proto.ManagedTokensRegisterMessage.fromObject(object.registerToken);
|
4962
5775
|
}
|
5776
|
+
if (object.liquidStakingMessage != null) {
|
5777
|
+
if (typeof object.liquidStakingMessage !== "object")
|
5778
|
+
throw TypeError(".TW.Aptos.Proto.SigningInput.liquidStakingMessage: object expected");
|
5779
|
+
message.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.fromObject(object.liquidStakingMessage);
|
5780
|
+
}
|
4963
5781
|
return message;
|
4964
5782
|
};
|
4965
5783
|
|
@@ -5061,6 +5879,11 @@
|
|
5061
5879
|
if (options.oneofs)
|
5062
5880
|
object.transactionPayload = "registerToken";
|
5063
5881
|
}
|
5882
|
+
if (message.liquidStakingMessage != null && message.hasOwnProperty("liquidStakingMessage")) {
|
5883
|
+
object.liquidStakingMessage = $root.TW.Aptos.Proto.LiquidStaking.toObject(message.liquidStakingMessage, options);
|
5884
|
+
if (options.oneofs)
|
5885
|
+
object.transactionPayload = "liquidStakingMessage";
|
5886
|
+
}
|
5064
5887
|
return object;
|
5065
5888
|
};
|
5066
5889
|
|
@@ -46002,12 +46825,14 @@
|
|
46002
46825
|
* @property {number} MATIC=0 MATIC value
|
46003
46826
|
* @property {number} ATOM=1 ATOM value
|
46004
46827
|
* @property {number} BNB=2 BNB value
|
46828
|
+
* @property {number} APT=3 APT value
|
46005
46829
|
*/
|
46006
46830
|
Proto.Coin = (function() {
|
46007
46831
|
var valuesById = {}, values = Object.create(valuesById);
|
46008
46832
|
values[valuesById[0] = "MATIC"] = 0;
|
46009
46833
|
values[valuesById[1] = "ATOM"] = 1;
|
46010
46834
|
values[valuesById[2] = "BNB"] = 2;
|
46835
|
+
values[valuesById[3] = "APT"] = 3;
|
46011
46836
|
return values;
|
46012
46837
|
})();
|
46013
46838
|
|
@@ -46019,6 +46844,7 @@
|
|
46019
46844
|
* @property {number} POLYGON=1 POLYGON value
|
46020
46845
|
* @property {number} STRIDE=2 STRIDE value
|
46021
46846
|
* @property {number} BNB_BSC=3 BNB_BSC value
|
46847
|
+
* @property {number} APTOS=4 APTOS value
|
46022
46848
|
*/
|
46023
46849
|
Proto.Blockchain = (function() {
|
46024
46850
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -46026,6 +46852,7 @@
|
|
46026
46852
|
values[valuesById[1] = "POLYGON"] = 1;
|
46027
46853
|
values[valuesById[2] = "STRIDE"] = 2;
|
46028
46854
|
values[valuesById[3] = "BNB_BSC"] = 3;
|
46855
|
+
values[valuesById[4] = "APTOS"] = 4;
|
46029
46856
|
return values;
|
46030
46857
|
})();
|
46031
46858
|
|
@@ -46035,11 +46862,13 @@
|
|
46035
46862
|
* @enum {number}
|
46036
46863
|
* @property {number} Strader=0 Strader value
|
46037
46864
|
* @property {number} Stride=1 Stride value
|
46865
|
+
* @property {number} Tortuga=2 Tortuga value
|
46038
46866
|
*/
|
46039
46867
|
Proto.Protocol = (function() {
|
46040
46868
|
var valuesById = {}, values = Object.create(valuesById);
|
46041
46869
|
values[valuesById[0] = "Strader"] = 0;
|
46042
46870
|
values[valuesById[1] = "Stride"] = 1;
|
46871
|
+
values[valuesById[2] = "Tortuga"] = 2;
|
46043
46872
|
return values;
|
46044
46873
|
})();
|
46045
46874
|
|
@@ -46422,6 +47251,7 @@
|
|
46422
47251
|
case 0:
|
46423
47252
|
case 1:
|
46424
47253
|
case 2:
|
47254
|
+
case 3:
|
46425
47255
|
break;
|
46426
47256
|
}
|
46427
47257
|
if (message.liquidToken != null && message.hasOwnProperty("liquidToken"))
|
@@ -46461,6 +47291,10 @@
|
|
46461
47291
|
case 2:
|
46462
47292
|
message.stakingToken = 2;
|
46463
47293
|
break;
|
47294
|
+
case "APT":
|
47295
|
+
case 3:
|
47296
|
+
message.stakingToken = 3;
|
47297
|
+
break;
|
46464
47298
|
}
|
46465
47299
|
if (object.liquidToken != null)
|
46466
47300
|
message.liquidToken = String(object.liquidToken);
|
@@ -47318,6 +48152,7 @@
|
|
47318
48152
|
return "protocol: enum value expected";
|
47319
48153
|
case 0:
|
47320
48154
|
case 1:
|
48155
|
+
case 2:
|
47321
48156
|
break;
|
47322
48157
|
}
|
47323
48158
|
if (message.blockchain != null && message.hasOwnProperty("blockchain"))
|
@@ -47328,6 +48163,7 @@
|
|
47328
48163
|
case 1:
|
47329
48164
|
case 2:
|
47330
48165
|
case 3:
|
48166
|
+
case 4:
|
47331
48167
|
break;
|
47332
48168
|
}
|
47333
48169
|
return null;
|
@@ -47371,6 +48207,10 @@
|
|
47371
48207
|
case 1:
|
47372
48208
|
message.protocol = 1;
|
47373
48209
|
break;
|
48210
|
+
case "Tortuga":
|
48211
|
+
case 2:
|
48212
|
+
message.protocol = 2;
|
48213
|
+
break;
|
47374
48214
|
}
|
47375
48215
|
switch (object.blockchain) {
|
47376
48216
|
case "ETHEREUM":
|
@@ -47389,6 +48229,10 @@
|
|
47389
48229
|
case 3:
|
47390
48230
|
message.blockchain = 3;
|
47391
48231
|
break;
|
48232
|
+
case "APTOS":
|
48233
|
+
case 4:
|
48234
|
+
message.blockchain = 4;
|
48235
|
+
break;
|
47392
48236
|
}
|
47393
48237
|
return message;
|
47394
48238
|
};
|
@@ -47458,6 +48302,7 @@
|
|
47458
48302
|
* @property {TW.LiquidStaking.Proto.IStatus|null} [status] Output status
|
47459
48303
|
* @property {TW.Ethereum.Proto.ISigningInput|null} [ethereum] Output ethereum
|
47460
48304
|
* @property {TW.Cosmos.Proto.ISigningInput|null} [cosmos] Output cosmos
|
48305
|
+
* @property {TW.Aptos.Proto.ISigningInput|null} [aptos] Output aptos
|
47461
48306
|
*/
|
47462
48307
|
|
47463
48308
|
/**
|
@@ -47499,17 +48344,25 @@
|
|
47499
48344
|
*/
|
47500
48345
|
Output.prototype.cosmos = null;
|
47501
48346
|
|
48347
|
+
/**
|
48348
|
+
* Output aptos.
|
48349
|
+
* @member {TW.Aptos.Proto.ISigningInput|null|undefined} aptos
|
48350
|
+
* @memberof TW.LiquidStaking.Proto.Output
|
48351
|
+
* @instance
|
48352
|
+
*/
|
48353
|
+
Output.prototype.aptos = null;
|
48354
|
+
|
47502
48355
|
// OneOf field names bound to virtual getters and setters
|
47503
48356
|
var $oneOfFields;
|
47504
48357
|
|
47505
48358
|
/**
|
47506
48359
|
* Output signingInputOneof.
|
47507
|
-
* @member {"ethereum"|"cosmos"|undefined} signingInputOneof
|
48360
|
+
* @member {"ethereum"|"cosmos"|"aptos"|undefined} signingInputOneof
|
47508
48361
|
* @memberof TW.LiquidStaking.Proto.Output
|
47509
48362
|
* @instance
|
47510
48363
|
*/
|
47511
48364
|
Object.defineProperty(Output.prototype, "signingInputOneof", {
|
47512
|
-
get: $util.oneOfGetter($oneOfFields = ["ethereum", "cosmos"]),
|
48365
|
+
get: $util.oneOfGetter($oneOfFields = ["ethereum", "cosmos", "aptos"]),
|
47513
48366
|
set: $util.oneOfSetter($oneOfFields)
|
47514
48367
|
});
|
47515
48368
|
|
@@ -47543,6 +48396,8 @@
|
|
47543
48396
|
$root.TW.Ethereum.Proto.SigningInput.encode(message.ethereum, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
47544
48397
|
if (message.cosmos != null && Object.hasOwnProperty.call(message, "cosmos"))
|
47545
48398
|
$root.TW.Cosmos.Proto.SigningInput.encode(message.cosmos, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
48399
|
+
if (message.aptos != null && Object.hasOwnProperty.call(message, "aptos"))
|
48400
|
+
$root.TW.Aptos.Proto.SigningInput.encode(message.aptos, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
47546
48401
|
return writer;
|
47547
48402
|
};
|
47548
48403
|
|
@@ -47573,6 +48428,9 @@
|
|
47573
48428
|
case 3:
|
47574
48429
|
message.cosmos = $root.TW.Cosmos.Proto.SigningInput.decode(reader, reader.uint32());
|
47575
48430
|
break;
|
48431
|
+
case 4:
|
48432
|
+
message.aptos = $root.TW.Aptos.Proto.SigningInput.decode(reader, reader.uint32());
|
48433
|
+
break;
|
47576
48434
|
default:
|
47577
48435
|
reader.skipType(tag & 7);
|
47578
48436
|
break;
|
@@ -47616,6 +48474,16 @@
|
|
47616
48474
|
return "cosmos." + error;
|
47617
48475
|
}
|
47618
48476
|
}
|
48477
|
+
if (message.aptos != null && message.hasOwnProperty("aptos")) {
|
48478
|
+
if (properties.signingInputOneof === 1)
|
48479
|
+
return "signingInputOneof: multiple values";
|
48480
|
+
properties.signingInputOneof = 1;
|
48481
|
+
{
|
48482
|
+
var error = $root.TW.Aptos.Proto.SigningInput.verify(message.aptos);
|
48483
|
+
if (error)
|
48484
|
+
return "aptos." + error;
|
48485
|
+
}
|
48486
|
+
}
|
47619
48487
|
return null;
|
47620
48488
|
};
|
47621
48489
|
|
@@ -47646,6 +48514,11 @@
|
|
47646
48514
|
throw TypeError(".TW.LiquidStaking.Proto.Output.cosmos: object expected");
|
47647
48515
|
message.cosmos = $root.TW.Cosmos.Proto.SigningInput.fromObject(object.cosmos);
|
47648
48516
|
}
|
48517
|
+
if (object.aptos != null) {
|
48518
|
+
if (typeof object.aptos !== "object")
|
48519
|
+
throw TypeError(".TW.LiquidStaking.Proto.Output.aptos: object expected");
|
48520
|
+
message.aptos = $root.TW.Aptos.Proto.SigningInput.fromObject(object.aptos);
|
48521
|
+
}
|
47649
48522
|
return message;
|
47650
48523
|
};
|
47651
48524
|
|
@@ -47676,6 +48549,11 @@
|
|
47676
48549
|
if (options.oneofs)
|
47677
48550
|
object.signingInputOneof = "cosmos";
|
47678
48551
|
}
|
48552
|
+
if (message.aptos != null && message.hasOwnProperty("aptos")) {
|
48553
|
+
object.aptos = $root.TW.Aptos.Proto.SigningInput.toObject(message.aptos, options);
|
48554
|
+
if (options.oneofs)
|
48555
|
+
object.signingInputOneof = "aptos";
|
48556
|
+
}
|
47679
48557
|
return object;
|
47680
48558
|
};
|
47681
48559
|
|