@keepkey/device-protocol 7.12.0 → 7.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/messages-osmosis_pb.d.ts +40 -40
- package/lib/messages-osmosis_pb.js +235 -235
- package/lib/proto.json +28 -16
- package/package.json +1 -1
@@ -400,34 +400,6 @@ export namespace OsmosisMsgRedelegate {
|
|
400
400
|
}
|
401
401
|
}
|
402
402
|
|
403
|
-
export class OsmosisMsgRewards extends jspb.Message {
|
404
|
-
hasDelegatorAddress(): boolean;
|
405
|
-
clearDelegatorAddress(): void;
|
406
|
-
getDelegatorAddress(): string | undefined;
|
407
|
-
setDelegatorAddress(value: string): void;
|
408
|
-
|
409
|
-
hasValidatorAddress(): boolean;
|
410
|
-
clearValidatorAddress(): void;
|
411
|
-
getValidatorAddress(): string | undefined;
|
412
|
-
setValidatorAddress(value: string): void;
|
413
|
-
|
414
|
-
serializeBinary(): Uint8Array;
|
415
|
-
toObject(includeInstance?: boolean): OsmosisMsgRewards.AsObject;
|
416
|
-
static toObject(includeInstance: boolean, msg: OsmosisMsgRewards): OsmosisMsgRewards.AsObject;
|
417
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
418
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
419
|
-
static serializeBinaryToWriter(message: OsmosisMsgRewards, writer: jspb.BinaryWriter): void;
|
420
|
-
static deserializeBinary(bytes: Uint8Array): OsmosisMsgRewards;
|
421
|
-
static deserializeBinaryFromReader(message: OsmosisMsgRewards, reader: jspb.BinaryReader): OsmosisMsgRewards;
|
422
|
-
}
|
423
|
-
|
424
|
-
export namespace OsmosisMsgRewards {
|
425
|
-
export type AsObject = {
|
426
|
-
delegatorAddress?: string,
|
427
|
-
validatorAddress?: string,
|
428
|
-
}
|
429
|
-
}
|
430
|
-
|
431
403
|
export class OsmosisMsgLPAdd extends jspb.Message {
|
432
404
|
hasSender(): boolean;
|
433
405
|
clearSender(): void;
|
@@ -436,8 +408,8 @@ export class OsmosisMsgLPAdd extends jspb.Message {
|
|
436
408
|
|
437
409
|
hasPoolId(): boolean;
|
438
410
|
clearPoolId(): void;
|
439
|
-
getPoolId():
|
440
|
-
setPoolId(value:
|
411
|
+
getPoolId(): string | undefined;
|
412
|
+
setPoolId(value: string): void;
|
441
413
|
|
442
414
|
hasShareOutAmount(): boolean;
|
443
415
|
clearShareOutAmount(): void;
|
@@ -477,7 +449,7 @@ export class OsmosisMsgLPAdd extends jspb.Message {
|
|
477
449
|
export namespace OsmosisMsgLPAdd {
|
478
450
|
export type AsObject = {
|
479
451
|
sender?: string,
|
480
|
-
poolId?:
|
452
|
+
poolId?: string,
|
481
453
|
shareOutAmount?: string,
|
482
454
|
denomInMaxA?: string,
|
483
455
|
amountInMaxA?: string,
|
@@ -494,8 +466,8 @@ export class OsmosisMsgLPRemove extends jspb.Message {
|
|
494
466
|
|
495
467
|
hasPoolId(): boolean;
|
496
468
|
clearPoolId(): void;
|
497
|
-
getPoolId():
|
498
|
-
setPoolId(value:
|
469
|
+
getPoolId(): string | undefined;
|
470
|
+
setPoolId(value: string): void;
|
499
471
|
|
500
472
|
hasShareOutAmount(): boolean;
|
501
473
|
clearShareOutAmount(): void;
|
@@ -535,7 +507,7 @@ export class OsmosisMsgLPRemove extends jspb.Message {
|
|
535
507
|
export namespace OsmosisMsgLPRemove {
|
536
508
|
export type AsObject = {
|
537
509
|
sender?: string,
|
538
|
-
poolId?:
|
510
|
+
poolId?: string,
|
539
511
|
shareOutAmount?: string,
|
540
512
|
denomOutMinA?: string,
|
541
513
|
amountOutMinA?: string,
|
@@ -552,8 +524,8 @@ export class OsmosisMsgLPStake extends jspb.Message {
|
|
552
524
|
|
553
525
|
hasDuration(): boolean;
|
554
526
|
clearDuration(): void;
|
555
|
-
getDuration():
|
556
|
-
setDuration(value:
|
527
|
+
getDuration(): string | undefined;
|
528
|
+
setDuration(value: string): void;
|
557
529
|
|
558
530
|
hasDenom(): boolean;
|
559
531
|
clearDenom(): void;
|
@@ -578,7 +550,7 @@ export class OsmosisMsgLPStake extends jspb.Message {
|
|
578
550
|
export namespace OsmosisMsgLPStake {
|
579
551
|
export type AsObject = {
|
580
552
|
owner?: string,
|
581
|
-
duration?:
|
553
|
+
duration?: string,
|
582
554
|
denom?: string,
|
583
555
|
amount?: string,
|
584
556
|
}
|
@@ -612,6 +584,34 @@ export namespace OsmosisMsgLPUnstake {
|
|
612
584
|
}
|
613
585
|
}
|
614
586
|
|
587
|
+
export class OsmosisMsgRewards extends jspb.Message {
|
588
|
+
hasDelegatorAddress(): boolean;
|
589
|
+
clearDelegatorAddress(): void;
|
590
|
+
getDelegatorAddress(): string | undefined;
|
591
|
+
setDelegatorAddress(value: string): void;
|
592
|
+
|
593
|
+
hasValidatorAddress(): boolean;
|
594
|
+
clearValidatorAddress(): void;
|
595
|
+
getValidatorAddress(): string | undefined;
|
596
|
+
setValidatorAddress(value: string): void;
|
597
|
+
|
598
|
+
serializeBinary(): Uint8Array;
|
599
|
+
toObject(includeInstance?: boolean): OsmosisMsgRewards.AsObject;
|
600
|
+
static toObject(includeInstance: boolean, msg: OsmosisMsgRewards): OsmosisMsgRewards.AsObject;
|
601
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
602
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
603
|
+
static serializeBinaryToWriter(message: OsmosisMsgRewards, writer: jspb.BinaryWriter): void;
|
604
|
+
static deserializeBinary(bytes: Uint8Array): OsmosisMsgRewards;
|
605
|
+
static deserializeBinaryFromReader(message: OsmosisMsgRewards, reader: jspb.BinaryReader): OsmosisMsgRewards;
|
606
|
+
}
|
607
|
+
|
608
|
+
export namespace OsmosisMsgRewards {
|
609
|
+
export type AsObject = {
|
610
|
+
delegatorAddress?: string,
|
611
|
+
validatorAddress?: string,
|
612
|
+
}
|
613
|
+
}
|
614
|
+
|
615
615
|
export class OsmosisMsgIBCTransfer extends jspb.Message {
|
616
616
|
hasSourcePort(): boolean;
|
617
617
|
clearSourcePort(): void;
|
@@ -684,8 +684,8 @@ export class OsmosisMsgSwap extends jspb.Message {
|
|
684
684
|
|
685
685
|
hasPoolId(): boolean;
|
686
686
|
clearPoolId(): void;
|
687
|
-
getPoolId():
|
688
|
-
setPoolId(value:
|
687
|
+
getPoolId(): string | undefined;
|
688
|
+
setPoolId(value: string): void;
|
689
689
|
|
690
690
|
hasTokenOutDenom(): boolean;
|
691
691
|
clearTokenOutDenom(): void;
|
@@ -720,7 +720,7 @@ export class OsmosisMsgSwap extends jspb.Message {
|
|
720
720
|
export namespace OsmosisMsgSwap {
|
721
721
|
export type AsObject = {
|
722
722
|
sender?: string,
|
723
|
-
poolId?:
|
723
|
+
poolId?: string,
|
724
724
|
tokenOutDenom?: string,
|
725
725
|
tokenInDenom?: string,
|
726
726
|
tokenInAmount?: string,
|
@@ -233,16 +233,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
233
233
|
* @extends {jspb.Message}
|
234
234
|
* @constructor
|
235
235
|
*/
|
236
|
-
proto.
|
236
|
+
proto.OsmosisMsgLPAdd = function(opt_data) {
|
237
237
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
238
238
|
};
|
239
|
-
goog.inherits(proto.
|
239
|
+
goog.inherits(proto.OsmosisMsgLPAdd, jspb.Message);
|
240
240
|
if (goog.DEBUG && !COMPILED) {
|
241
241
|
/**
|
242
242
|
* @public
|
243
243
|
* @override
|
244
244
|
*/
|
245
|
-
proto.
|
245
|
+
proto.OsmosisMsgLPAdd.displayName = 'proto.OsmosisMsgLPAdd';
|
246
246
|
}
|
247
247
|
/**
|
248
248
|
* Generated by JsPbCodeGenerator.
|
@@ -254,16 +254,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
254
254
|
* @extends {jspb.Message}
|
255
255
|
* @constructor
|
256
256
|
*/
|
257
|
-
proto.
|
257
|
+
proto.OsmosisMsgLPRemove = function(opt_data) {
|
258
258
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
259
259
|
};
|
260
|
-
goog.inherits(proto.
|
260
|
+
goog.inherits(proto.OsmosisMsgLPRemove, jspb.Message);
|
261
261
|
if (goog.DEBUG && !COMPILED) {
|
262
262
|
/**
|
263
263
|
* @public
|
264
264
|
* @override
|
265
265
|
*/
|
266
|
-
proto.
|
266
|
+
proto.OsmosisMsgLPRemove.displayName = 'proto.OsmosisMsgLPRemove';
|
267
267
|
}
|
268
268
|
/**
|
269
269
|
* Generated by JsPbCodeGenerator.
|
@@ -275,16 +275,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
275
275
|
* @extends {jspb.Message}
|
276
276
|
* @constructor
|
277
277
|
*/
|
278
|
-
proto.
|
278
|
+
proto.OsmosisMsgLPStake = function(opt_data) {
|
279
279
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
280
280
|
};
|
281
|
-
goog.inherits(proto.
|
281
|
+
goog.inherits(proto.OsmosisMsgLPStake, jspb.Message);
|
282
282
|
if (goog.DEBUG && !COMPILED) {
|
283
283
|
/**
|
284
284
|
* @public
|
285
285
|
* @override
|
286
286
|
*/
|
287
|
-
proto.
|
287
|
+
proto.OsmosisMsgLPStake.displayName = 'proto.OsmosisMsgLPStake';
|
288
288
|
}
|
289
289
|
/**
|
290
290
|
* Generated by JsPbCodeGenerator.
|
@@ -296,16 +296,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
296
296
|
* @extends {jspb.Message}
|
297
297
|
* @constructor
|
298
298
|
*/
|
299
|
-
proto.
|
299
|
+
proto.OsmosisMsgLPUnstake = function(opt_data) {
|
300
300
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
301
301
|
};
|
302
|
-
goog.inherits(proto.
|
302
|
+
goog.inherits(proto.OsmosisMsgLPUnstake, jspb.Message);
|
303
303
|
if (goog.DEBUG && !COMPILED) {
|
304
304
|
/**
|
305
305
|
* @public
|
306
306
|
* @override
|
307
307
|
*/
|
308
|
-
proto.
|
308
|
+
proto.OsmosisMsgLPUnstake.displayName = 'proto.OsmosisMsgLPUnstake';
|
309
309
|
}
|
310
310
|
/**
|
311
311
|
* Generated by JsPbCodeGenerator.
|
@@ -317,16 +317,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
317
317
|
* @extends {jspb.Message}
|
318
318
|
* @constructor
|
319
319
|
*/
|
320
|
-
proto.
|
320
|
+
proto.OsmosisMsgRewards = function(opt_data) {
|
321
321
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
322
322
|
};
|
323
|
-
goog.inherits(proto.
|
323
|
+
goog.inherits(proto.OsmosisMsgRewards, jspb.Message);
|
324
324
|
if (goog.DEBUG && !COMPILED) {
|
325
325
|
/**
|
326
326
|
* @public
|
327
327
|
* @override
|
328
328
|
*/
|
329
|
-
proto.
|
329
|
+
proto.OsmosisMsgRewards.displayName = 'proto.OsmosisMsgRewards';
|
330
330
|
}
|
331
331
|
/**
|
332
332
|
* Generated by JsPbCodeGenerator.
|
@@ -3364,202 +3364,6 @@ proto.OsmosisMsgRedelegate.prototype.hasAmount = function() {
|
|
3364
3364
|
|
3365
3365
|
|
3366
3366
|
|
3367
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3368
|
-
/**
|
3369
|
-
* Creates an object representation of this proto.
|
3370
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3371
|
-
* Optional fields that are not set will be set to undefined.
|
3372
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3373
|
-
* For the list of reserved names please see:
|
3374
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3375
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3376
|
-
* JSPB instance for transitional soy proto support:
|
3377
|
-
* http://goto/soy-param-migration
|
3378
|
-
* @return {!Object}
|
3379
|
-
*/
|
3380
|
-
proto.OsmosisMsgRewards.prototype.toObject = function(opt_includeInstance) {
|
3381
|
-
return proto.OsmosisMsgRewards.toObject(opt_includeInstance, this);
|
3382
|
-
};
|
3383
|
-
|
3384
|
-
|
3385
|
-
/**
|
3386
|
-
* Static version of the {@see toObject} method.
|
3387
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3388
|
-
* the JSPB instance for transitional soy proto support:
|
3389
|
-
* http://goto/soy-param-migration
|
3390
|
-
* @param {!proto.OsmosisMsgRewards} msg The msg instance to transform.
|
3391
|
-
* @return {!Object}
|
3392
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3393
|
-
*/
|
3394
|
-
proto.OsmosisMsgRewards.toObject = function(includeInstance, msg) {
|
3395
|
-
var f, obj = {
|
3396
|
-
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
3397
|
-
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
|
3398
|
-
};
|
3399
|
-
|
3400
|
-
if (includeInstance) {
|
3401
|
-
obj.$jspbMessageInstance = msg;
|
3402
|
-
}
|
3403
|
-
return obj;
|
3404
|
-
};
|
3405
|
-
}
|
3406
|
-
|
3407
|
-
|
3408
|
-
/**
|
3409
|
-
* Deserializes binary data (in protobuf wire format).
|
3410
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3411
|
-
* @return {!proto.OsmosisMsgRewards}
|
3412
|
-
*/
|
3413
|
-
proto.OsmosisMsgRewards.deserializeBinary = function(bytes) {
|
3414
|
-
var reader = new jspb.BinaryReader(bytes);
|
3415
|
-
var msg = new proto.OsmosisMsgRewards;
|
3416
|
-
return proto.OsmosisMsgRewards.deserializeBinaryFromReader(msg, reader);
|
3417
|
-
};
|
3418
|
-
|
3419
|
-
|
3420
|
-
/**
|
3421
|
-
* Deserializes binary data (in protobuf wire format) from the
|
3422
|
-
* given reader into the given message object.
|
3423
|
-
* @param {!proto.OsmosisMsgRewards} msg The message object to deserialize into.
|
3424
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3425
|
-
* @return {!proto.OsmosisMsgRewards}
|
3426
|
-
*/
|
3427
|
-
proto.OsmosisMsgRewards.deserializeBinaryFromReader = function(msg, reader) {
|
3428
|
-
while (reader.nextField()) {
|
3429
|
-
if (reader.isEndGroup()) {
|
3430
|
-
break;
|
3431
|
-
}
|
3432
|
-
var field = reader.getFieldNumber();
|
3433
|
-
switch (field) {
|
3434
|
-
case 1:
|
3435
|
-
var value = /** @type {string} */ (reader.readString());
|
3436
|
-
msg.setDelegatorAddress(value);
|
3437
|
-
break;
|
3438
|
-
case 2:
|
3439
|
-
var value = /** @type {string} */ (reader.readString());
|
3440
|
-
msg.setValidatorAddress(value);
|
3441
|
-
break;
|
3442
|
-
default:
|
3443
|
-
reader.skipField();
|
3444
|
-
break;
|
3445
|
-
}
|
3446
|
-
}
|
3447
|
-
return msg;
|
3448
|
-
};
|
3449
|
-
|
3450
|
-
|
3451
|
-
/**
|
3452
|
-
* Serializes the message to binary data (in protobuf wire format).
|
3453
|
-
* @return {!Uint8Array}
|
3454
|
-
*/
|
3455
|
-
proto.OsmosisMsgRewards.prototype.serializeBinary = function() {
|
3456
|
-
var writer = new jspb.BinaryWriter();
|
3457
|
-
proto.OsmosisMsgRewards.serializeBinaryToWriter(this, writer);
|
3458
|
-
return writer.getResultBuffer();
|
3459
|
-
};
|
3460
|
-
|
3461
|
-
|
3462
|
-
/**
|
3463
|
-
* Serializes the given message to binary data (in protobuf wire
|
3464
|
-
* format), writing to the given BinaryWriter.
|
3465
|
-
* @param {!proto.OsmosisMsgRewards} message
|
3466
|
-
* @param {!jspb.BinaryWriter} writer
|
3467
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3468
|
-
*/
|
3469
|
-
proto.OsmosisMsgRewards.serializeBinaryToWriter = function(message, writer) {
|
3470
|
-
var f = undefined;
|
3471
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
3472
|
-
if (f != null) {
|
3473
|
-
writer.writeString(
|
3474
|
-
1,
|
3475
|
-
f
|
3476
|
-
);
|
3477
|
-
}
|
3478
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3479
|
-
if (f != null) {
|
3480
|
-
writer.writeString(
|
3481
|
-
2,
|
3482
|
-
f
|
3483
|
-
);
|
3484
|
-
}
|
3485
|
-
};
|
3486
|
-
|
3487
|
-
|
3488
|
-
/**
|
3489
|
-
* optional string delegator_address = 1;
|
3490
|
-
* @return {string}
|
3491
|
-
*/
|
3492
|
-
proto.OsmosisMsgRewards.prototype.getDelegatorAddress = function() {
|
3493
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
3494
|
-
};
|
3495
|
-
|
3496
|
-
|
3497
|
-
/**
|
3498
|
-
* @param {string} value
|
3499
|
-
* @return {!proto.OsmosisMsgRewards} returns this
|
3500
|
-
*/
|
3501
|
-
proto.OsmosisMsgRewards.prototype.setDelegatorAddress = function(value) {
|
3502
|
-
return jspb.Message.setField(this, 1, value);
|
3503
|
-
};
|
3504
|
-
|
3505
|
-
|
3506
|
-
/**
|
3507
|
-
* Clears the field making it undefined.
|
3508
|
-
* @return {!proto.OsmosisMsgRewards} returns this
|
3509
|
-
*/
|
3510
|
-
proto.OsmosisMsgRewards.prototype.clearDelegatorAddress = function() {
|
3511
|
-
return jspb.Message.setField(this, 1, undefined);
|
3512
|
-
};
|
3513
|
-
|
3514
|
-
|
3515
|
-
/**
|
3516
|
-
* Returns whether this field is set.
|
3517
|
-
* @return {boolean}
|
3518
|
-
*/
|
3519
|
-
proto.OsmosisMsgRewards.prototype.hasDelegatorAddress = function() {
|
3520
|
-
return jspb.Message.getField(this, 1) != null;
|
3521
|
-
};
|
3522
|
-
|
3523
|
-
|
3524
|
-
/**
|
3525
|
-
* optional string validator_address = 2;
|
3526
|
-
* @return {string}
|
3527
|
-
*/
|
3528
|
-
proto.OsmosisMsgRewards.prototype.getValidatorAddress = function() {
|
3529
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3530
|
-
};
|
3531
|
-
|
3532
|
-
|
3533
|
-
/**
|
3534
|
-
* @param {string} value
|
3535
|
-
* @return {!proto.OsmosisMsgRewards} returns this
|
3536
|
-
*/
|
3537
|
-
proto.OsmosisMsgRewards.prototype.setValidatorAddress = function(value) {
|
3538
|
-
return jspb.Message.setField(this, 2, value);
|
3539
|
-
};
|
3540
|
-
|
3541
|
-
|
3542
|
-
/**
|
3543
|
-
* Clears the field making it undefined.
|
3544
|
-
* @return {!proto.OsmosisMsgRewards} returns this
|
3545
|
-
*/
|
3546
|
-
proto.OsmosisMsgRewards.prototype.clearValidatorAddress = function() {
|
3547
|
-
return jspb.Message.setField(this, 2, undefined);
|
3548
|
-
};
|
3549
|
-
|
3550
|
-
|
3551
|
-
/**
|
3552
|
-
* Returns whether this field is set.
|
3553
|
-
* @return {boolean}
|
3554
|
-
*/
|
3555
|
-
proto.OsmosisMsgRewards.prototype.hasValidatorAddress = function() {
|
3556
|
-
return jspb.Message.getField(this, 2) != null;
|
3557
|
-
};
|
3558
|
-
|
3559
|
-
|
3560
|
-
|
3561
|
-
|
3562
|
-
|
3563
3367
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3564
3368
|
/**
|
3565
3369
|
* Creates an object representation of this proto.
|
@@ -3637,7 +3441,7 @@ proto.OsmosisMsgLPAdd.deserializeBinaryFromReader = function(msg, reader) {
|
|
3637
3441
|
msg.setSender(value);
|
3638
3442
|
break;
|
3639
3443
|
case 2:
|
3640
|
-
var value = /** @type {
|
3444
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
3641
3445
|
msg.setPoolId(value);
|
3642
3446
|
break;
|
3643
3447
|
case 3:
|
@@ -3696,9 +3500,9 @@ proto.OsmosisMsgLPAdd.serializeBinaryToWriter = function(message, writer) {
|
|
3696
3500
|
f
|
3697
3501
|
);
|
3698
3502
|
}
|
3699
|
-
f = /** @type {
|
3503
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3700
3504
|
if (f != null) {
|
3701
|
-
writer.
|
3505
|
+
writer.writeUint64String(
|
3702
3506
|
2,
|
3703
3507
|
f
|
3704
3508
|
);
|
@@ -3779,15 +3583,15 @@ proto.OsmosisMsgLPAdd.prototype.hasSender = function() {
|
|
3779
3583
|
|
3780
3584
|
/**
|
3781
3585
|
* optional uint64 pool_id = 2;
|
3782
|
-
* @return {
|
3586
|
+
* @return {string}
|
3783
3587
|
*/
|
3784
3588
|
proto.OsmosisMsgLPAdd.prototype.getPoolId = function() {
|
3785
|
-
return /** @type {
|
3589
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
3786
3590
|
};
|
3787
3591
|
|
3788
3592
|
|
3789
3593
|
/**
|
3790
|
-
* @param {
|
3594
|
+
* @param {string} value
|
3791
3595
|
* @return {!proto.OsmosisMsgLPAdd} returns this
|
3792
3596
|
*/
|
3793
3597
|
proto.OsmosisMsgLPAdd.prototype.setPoolId = function(value) {
|
@@ -4073,7 +3877,7 @@ proto.OsmosisMsgLPRemove.deserializeBinaryFromReader = function(msg, reader) {
|
|
4073
3877
|
msg.setSender(value);
|
4074
3878
|
break;
|
4075
3879
|
case 2:
|
4076
|
-
var value = /** @type {
|
3880
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
4077
3881
|
msg.setPoolId(value);
|
4078
3882
|
break;
|
4079
3883
|
case 3:
|
@@ -4132,9 +3936,9 @@ proto.OsmosisMsgLPRemove.serializeBinaryToWriter = function(message, writer) {
|
|
4132
3936
|
f
|
4133
3937
|
);
|
4134
3938
|
}
|
4135
|
-
f = /** @type {
|
3939
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4136
3940
|
if (f != null) {
|
4137
|
-
writer.
|
3941
|
+
writer.writeUint64String(
|
4138
3942
|
2,
|
4139
3943
|
f
|
4140
3944
|
);
|
@@ -4215,15 +4019,15 @@ proto.OsmosisMsgLPRemove.prototype.hasSender = function() {
|
|
4215
4019
|
|
4216
4020
|
/**
|
4217
4021
|
* optional uint64 pool_id = 2;
|
4218
|
-
* @return {
|
4022
|
+
* @return {string}
|
4219
4023
|
*/
|
4220
4024
|
proto.OsmosisMsgLPRemove.prototype.getPoolId = function() {
|
4221
|
-
return /** @type {
|
4025
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
4222
4026
|
};
|
4223
4027
|
|
4224
4028
|
|
4225
4029
|
/**
|
4226
|
-
* @param {
|
4030
|
+
* @param {string} value
|
4227
4031
|
* @return {!proto.OsmosisMsgLPRemove} returns this
|
4228
4032
|
*/
|
4229
4033
|
proto.OsmosisMsgLPRemove.prototype.setPoolId = function(value) {
|
@@ -4506,7 +4310,7 @@ proto.OsmosisMsgLPStake.deserializeBinaryFromReader = function(msg, reader) {
|
|
4506
4310
|
msg.setOwner(value);
|
4507
4311
|
break;
|
4508
4312
|
case 2:
|
4509
|
-
var value = /** @type {
|
4313
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
4510
4314
|
msg.setDuration(value);
|
4511
4315
|
break;
|
4512
4316
|
case 4:
|
@@ -4553,9 +4357,9 @@ proto.OsmosisMsgLPStake.serializeBinaryToWriter = function(message, writer) {
|
|
4553
4357
|
f
|
4554
4358
|
);
|
4555
4359
|
}
|
4556
|
-
f = /** @type {
|
4360
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4557
4361
|
if (f != null) {
|
4558
|
-
writer.
|
4362
|
+
writer.writeUint64String(
|
4559
4363
|
2,
|
4560
4364
|
f
|
4561
4365
|
);
|
@@ -4615,15 +4419,15 @@ proto.OsmosisMsgLPStake.prototype.hasOwner = function() {
|
|
4615
4419
|
|
4616
4420
|
/**
|
4617
4421
|
* optional uint64 duration = 2;
|
4618
|
-
* @return {
|
4422
|
+
* @return {string}
|
4619
4423
|
*/
|
4620
4424
|
proto.OsmosisMsgLPStake.prototype.getDuration = function() {
|
4621
|
-
return /** @type {
|
4425
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
4622
4426
|
};
|
4623
4427
|
|
4624
4428
|
|
4625
4429
|
/**
|
4626
|
-
* @param {
|
4430
|
+
* @param {string} value
|
4627
4431
|
* @return {!proto.OsmosisMsgLPStake} returns this
|
4628
4432
|
*/
|
4629
4433
|
proto.OsmosisMsgLPStake.prototype.setDuration = function(value) {
|
@@ -4920,6 +4724,202 @@ proto.OsmosisMsgLPUnstake.prototype.hasId = function() {
|
|
4920
4724
|
|
4921
4725
|
|
4922
4726
|
|
4727
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4728
|
+
/**
|
4729
|
+
* Creates an object representation of this proto.
|
4730
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4731
|
+
* Optional fields that are not set will be set to undefined.
|
4732
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4733
|
+
* For the list of reserved names please see:
|
4734
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4735
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4736
|
+
* JSPB instance for transitional soy proto support:
|
4737
|
+
* http://goto/soy-param-migration
|
4738
|
+
* @return {!Object}
|
4739
|
+
*/
|
4740
|
+
proto.OsmosisMsgRewards.prototype.toObject = function(opt_includeInstance) {
|
4741
|
+
return proto.OsmosisMsgRewards.toObject(opt_includeInstance, this);
|
4742
|
+
};
|
4743
|
+
|
4744
|
+
|
4745
|
+
/**
|
4746
|
+
* Static version of the {@see toObject} method.
|
4747
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4748
|
+
* the JSPB instance for transitional soy proto support:
|
4749
|
+
* http://goto/soy-param-migration
|
4750
|
+
* @param {!proto.OsmosisMsgRewards} msg The msg instance to transform.
|
4751
|
+
* @return {!Object}
|
4752
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4753
|
+
*/
|
4754
|
+
proto.OsmosisMsgRewards.toObject = function(includeInstance, msg) {
|
4755
|
+
var f, obj = {
|
4756
|
+
delegatorAddress: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
4757
|
+
validatorAddress: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
|
4758
|
+
};
|
4759
|
+
|
4760
|
+
if (includeInstance) {
|
4761
|
+
obj.$jspbMessageInstance = msg;
|
4762
|
+
}
|
4763
|
+
return obj;
|
4764
|
+
};
|
4765
|
+
}
|
4766
|
+
|
4767
|
+
|
4768
|
+
/**
|
4769
|
+
* Deserializes binary data (in protobuf wire format).
|
4770
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4771
|
+
* @return {!proto.OsmosisMsgRewards}
|
4772
|
+
*/
|
4773
|
+
proto.OsmosisMsgRewards.deserializeBinary = function(bytes) {
|
4774
|
+
var reader = new jspb.BinaryReader(bytes);
|
4775
|
+
var msg = new proto.OsmosisMsgRewards;
|
4776
|
+
return proto.OsmosisMsgRewards.deserializeBinaryFromReader(msg, reader);
|
4777
|
+
};
|
4778
|
+
|
4779
|
+
|
4780
|
+
/**
|
4781
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4782
|
+
* given reader into the given message object.
|
4783
|
+
* @param {!proto.OsmosisMsgRewards} msg The message object to deserialize into.
|
4784
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4785
|
+
* @return {!proto.OsmosisMsgRewards}
|
4786
|
+
*/
|
4787
|
+
proto.OsmosisMsgRewards.deserializeBinaryFromReader = function(msg, reader) {
|
4788
|
+
while (reader.nextField()) {
|
4789
|
+
if (reader.isEndGroup()) {
|
4790
|
+
break;
|
4791
|
+
}
|
4792
|
+
var field = reader.getFieldNumber();
|
4793
|
+
switch (field) {
|
4794
|
+
case 1:
|
4795
|
+
var value = /** @type {string} */ (reader.readString());
|
4796
|
+
msg.setDelegatorAddress(value);
|
4797
|
+
break;
|
4798
|
+
case 2:
|
4799
|
+
var value = /** @type {string} */ (reader.readString());
|
4800
|
+
msg.setValidatorAddress(value);
|
4801
|
+
break;
|
4802
|
+
default:
|
4803
|
+
reader.skipField();
|
4804
|
+
break;
|
4805
|
+
}
|
4806
|
+
}
|
4807
|
+
return msg;
|
4808
|
+
};
|
4809
|
+
|
4810
|
+
|
4811
|
+
/**
|
4812
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4813
|
+
* @return {!Uint8Array}
|
4814
|
+
*/
|
4815
|
+
proto.OsmosisMsgRewards.prototype.serializeBinary = function() {
|
4816
|
+
var writer = new jspb.BinaryWriter();
|
4817
|
+
proto.OsmosisMsgRewards.serializeBinaryToWriter(this, writer);
|
4818
|
+
return writer.getResultBuffer();
|
4819
|
+
};
|
4820
|
+
|
4821
|
+
|
4822
|
+
/**
|
4823
|
+
* Serializes the given message to binary data (in protobuf wire
|
4824
|
+
* format), writing to the given BinaryWriter.
|
4825
|
+
* @param {!proto.OsmosisMsgRewards} message
|
4826
|
+
* @param {!jspb.BinaryWriter} writer
|
4827
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4828
|
+
*/
|
4829
|
+
proto.OsmosisMsgRewards.serializeBinaryToWriter = function(message, writer) {
|
4830
|
+
var f = undefined;
|
4831
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
4832
|
+
if (f != null) {
|
4833
|
+
writer.writeString(
|
4834
|
+
1,
|
4835
|
+
f
|
4836
|
+
);
|
4837
|
+
}
|
4838
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4839
|
+
if (f != null) {
|
4840
|
+
writer.writeString(
|
4841
|
+
2,
|
4842
|
+
f
|
4843
|
+
);
|
4844
|
+
}
|
4845
|
+
};
|
4846
|
+
|
4847
|
+
|
4848
|
+
/**
|
4849
|
+
* optional string delegator_address = 1;
|
4850
|
+
* @return {string}
|
4851
|
+
*/
|
4852
|
+
proto.OsmosisMsgRewards.prototype.getDelegatorAddress = function() {
|
4853
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
4854
|
+
};
|
4855
|
+
|
4856
|
+
|
4857
|
+
/**
|
4858
|
+
* @param {string} value
|
4859
|
+
* @return {!proto.OsmosisMsgRewards} returns this
|
4860
|
+
*/
|
4861
|
+
proto.OsmosisMsgRewards.prototype.setDelegatorAddress = function(value) {
|
4862
|
+
return jspb.Message.setField(this, 1, value);
|
4863
|
+
};
|
4864
|
+
|
4865
|
+
|
4866
|
+
/**
|
4867
|
+
* Clears the field making it undefined.
|
4868
|
+
* @return {!proto.OsmosisMsgRewards} returns this
|
4869
|
+
*/
|
4870
|
+
proto.OsmosisMsgRewards.prototype.clearDelegatorAddress = function() {
|
4871
|
+
return jspb.Message.setField(this, 1, undefined);
|
4872
|
+
};
|
4873
|
+
|
4874
|
+
|
4875
|
+
/**
|
4876
|
+
* Returns whether this field is set.
|
4877
|
+
* @return {boolean}
|
4878
|
+
*/
|
4879
|
+
proto.OsmosisMsgRewards.prototype.hasDelegatorAddress = function() {
|
4880
|
+
return jspb.Message.getField(this, 1) != null;
|
4881
|
+
};
|
4882
|
+
|
4883
|
+
|
4884
|
+
/**
|
4885
|
+
* optional string validator_address = 2;
|
4886
|
+
* @return {string}
|
4887
|
+
*/
|
4888
|
+
proto.OsmosisMsgRewards.prototype.getValidatorAddress = function() {
|
4889
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
4890
|
+
};
|
4891
|
+
|
4892
|
+
|
4893
|
+
/**
|
4894
|
+
* @param {string} value
|
4895
|
+
* @return {!proto.OsmosisMsgRewards} returns this
|
4896
|
+
*/
|
4897
|
+
proto.OsmosisMsgRewards.prototype.setValidatorAddress = function(value) {
|
4898
|
+
return jspb.Message.setField(this, 2, value);
|
4899
|
+
};
|
4900
|
+
|
4901
|
+
|
4902
|
+
/**
|
4903
|
+
* Clears the field making it undefined.
|
4904
|
+
* @return {!proto.OsmosisMsgRewards} returns this
|
4905
|
+
*/
|
4906
|
+
proto.OsmosisMsgRewards.prototype.clearValidatorAddress = function() {
|
4907
|
+
return jspb.Message.setField(this, 2, undefined);
|
4908
|
+
};
|
4909
|
+
|
4910
|
+
|
4911
|
+
/**
|
4912
|
+
* Returns whether this field is set.
|
4913
|
+
* @return {boolean}
|
4914
|
+
*/
|
4915
|
+
proto.OsmosisMsgRewards.prototype.hasValidatorAddress = function() {
|
4916
|
+
return jspb.Message.getField(this, 2) != null;
|
4917
|
+
};
|
4918
|
+
|
4919
|
+
|
4920
|
+
|
4921
|
+
|
4922
|
+
|
4923
4923
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4924
4924
|
/**
|
4925
4925
|
* Creates an object representation of this proto.
|
@@ -5480,7 +5480,7 @@ proto.OsmosisMsgSwap.deserializeBinaryFromReader = function(msg, reader) {
|
|
5480
5480
|
msg.setSender(value);
|
5481
5481
|
break;
|
5482
5482
|
case 2:
|
5483
|
-
var value = /** @type {
|
5483
|
+
var value = /** @type {string} */ (reader.readUint64String());
|
5484
5484
|
msg.setPoolId(value);
|
5485
5485
|
break;
|
5486
5486
|
case 3:
|
@@ -5535,9 +5535,9 @@ proto.OsmosisMsgSwap.serializeBinaryToWriter = function(message, writer) {
|
|
5535
5535
|
f
|
5536
5536
|
);
|
5537
5537
|
}
|
5538
|
-
f = /** @type {
|
5538
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
5539
5539
|
if (f != null) {
|
5540
|
-
writer.
|
5540
|
+
writer.writeUint64String(
|
5541
5541
|
2,
|
5542
5542
|
f
|
5543
5543
|
);
|
@@ -5611,15 +5611,15 @@ proto.OsmosisMsgSwap.prototype.hasSender = function() {
|
|
5611
5611
|
|
5612
5612
|
/**
|
5613
5613
|
* optional uint64 pool_id = 2;
|
5614
|
-
* @return {
|
5614
|
+
* @return {string}
|
5615
5615
|
*/
|
5616
5616
|
proto.OsmosisMsgSwap.prototype.getPoolId = function() {
|
5617
|
-
return /** @type {
|
5617
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
|
5618
5618
|
};
|
5619
5619
|
|
5620
5620
|
|
5621
5621
|
/**
|
5622
|
-
* @param {
|
5622
|
+
* @param {string} value
|
5623
5623
|
* @return {!proto.OsmosisMsgSwap} returns this
|
5624
5624
|
*/
|
5625
5625
|
proto.OsmosisMsgSwap.prototype.setPoolId = function(value) {
|
package/lib/proto.json
CHANGED
@@ -4969,18 +4969,6 @@
|
|
4969
4969
|
}
|
4970
4970
|
}
|
4971
4971
|
},
|
4972
|
-
"OsmosisMsgRewards": {
|
4973
|
-
"fields": {
|
4974
|
-
"delegator_address": {
|
4975
|
-
"type": "string",
|
4976
|
-
"id": 1
|
4977
|
-
},
|
4978
|
-
"validator_address": {
|
4979
|
-
"type": "string",
|
4980
|
-
"id": 2
|
4981
|
-
}
|
4982
|
-
}
|
4983
|
-
},
|
4984
4972
|
"OsmosisMsgLPAdd": {
|
4985
4973
|
"fields": {
|
4986
4974
|
"sender": {
|
@@ -4989,7 +4977,10 @@
|
|
4989
4977
|
},
|
4990
4978
|
"pool_id": {
|
4991
4979
|
"type": "uint64",
|
4992
|
-
"id": 2
|
4980
|
+
"id": 2,
|
4981
|
+
"options": {
|
4982
|
+
"jstype": "JS_STRING"
|
4983
|
+
}
|
4993
4984
|
},
|
4994
4985
|
"share_out_amount": {
|
4995
4986
|
"type": "string",
|
@@ -5021,7 +5012,10 @@
|
|
5021
5012
|
},
|
5022
5013
|
"pool_id": {
|
5023
5014
|
"type": "uint64",
|
5024
|
-
"id": 2
|
5015
|
+
"id": 2,
|
5016
|
+
"options": {
|
5017
|
+
"jstype": "JS_STRING"
|
5018
|
+
}
|
5025
5019
|
},
|
5026
5020
|
"share_out_amount": {
|
5027
5021
|
"type": "string",
|
@@ -5053,7 +5047,10 @@
|
|
5053
5047
|
},
|
5054
5048
|
"duration": {
|
5055
5049
|
"type": "uint64",
|
5056
|
-
"id": 2
|
5050
|
+
"id": 2,
|
5051
|
+
"options": {
|
5052
|
+
"jstype": "JS_STRING"
|
5053
|
+
}
|
5057
5054
|
},
|
5058
5055
|
"denom": {
|
5059
5056
|
"type": "string",
|
@@ -5077,6 +5074,18 @@
|
|
5077
5074
|
}
|
5078
5075
|
}
|
5079
5076
|
},
|
5077
|
+
"OsmosisMsgRewards": {
|
5078
|
+
"fields": {
|
5079
|
+
"delegator_address": {
|
5080
|
+
"type": "string",
|
5081
|
+
"id": 1
|
5082
|
+
},
|
5083
|
+
"validator_address": {
|
5084
|
+
"type": "string",
|
5085
|
+
"id": 2
|
5086
|
+
}
|
5087
|
+
}
|
5088
|
+
},
|
5080
5089
|
"OsmosisMsgIBCTransfer": {
|
5081
5090
|
"fields": {
|
5082
5091
|
"source_port": {
|
@@ -5121,7 +5130,10 @@
|
|
5121
5130
|
},
|
5122
5131
|
"pool_id": {
|
5123
5132
|
"type": "uint64",
|
5124
|
-
"id": 2
|
5133
|
+
"id": 2,
|
5134
|
+
"options": {
|
5135
|
+
"jstype": "JS_STRING"
|
5136
|
+
}
|
5125
5137
|
},
|
5126
5138
|
"token_out_denom": {
|
5127
5139
|
"type": "string",
|