@trustwallet/wallet-core 4.3.4 → 4.3.6
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.
@@ -35617,6 +35617,9 @@ export namespace TW {
|
|
35617
35617
|
|
35618
35618
|
/** Staking rebond */
|
35619
35619
|
rebond?: (TW.Polkadot.Proto.Staking.IRebond|null);
|
35620
|
+
|
35621
|
+
/** Staking bondExtraAndNominate */
|
35622
|
+
bondExtraAndNominate?: (TW.Polkadot.Proto.Staking.IBondExtraAndNominate|null);
|
35620
35623
|
}
|
35621
35624
|
|
35622
35625
|
/** Represents a Staking. */
|
@@ -35655,8 +35658,11 @@ export namespace TW {
|
|
35655
35658
|
/** Staking rebond. */
|
35656
35659
|
public rebond?: (TW.Polkadot.Proto.Staking.IRebond|null);
|
35657
35660
|
|
35661
|
+
/** Staking bondExtraAndNominate. */
|
35662
|
+
public bondExtraAndNominate?: (TW.Polkadot.Proto.Staking.IBondExtraAndNominate|null);
|
35663
|
+
|
35658
35664
|
/** Staking messageOneof. */
|
35659
|
-
public messageOneof?: ("bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond"|"rebond");
|
35665
|
+
public messageOneof?: ("bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond"|"rebond"|"bondExtraAndNominate");
|
35660
35666
|
|
35661
35667
|
/**
|
35662
35668
|
* Creates a new Staking instance using the specified properties.
|
@@ -35914,6 +35920,103 @@ export namespace TW {
|
|
35914
35920
|
public toJSON(): { [k: string]: any };
|
35915
35921
|
}
|
35916
35922
|
|
35923
|
+
/** Properties of a BondExtraAndNominate. */
|
35924
|
+
interface IBondExtraAndNominate {
|
35925
|
+
|
35926
|
+
/** BondExtraAndNominate value */
|
35927
|
+
value?: (Uint8Array|null);
|
35928
|
+
|
35929
|
+
/** BondExtraAndNominate nominators */
|
35930
|
+
nominators?: (string[]|null);
|
35931
|
+
|
35932
|
+
/** BondExtraAndNominate callIndices */
|
35933
|
+
callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
35934
|
+
|
35935
|
+
/** BondExtraAndNominate bondExtraCallIndices */
|
35936
|
+
bondExtraCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
35937
|
+
|
35938
|
+
/** BondExtraAndNominate nominateCallIndices */
|
35939
|
+
nominateCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
35940
|
+
}
|
35941
|
+
|
35942
|
+
/** Represents a BondExtraAndNominate. */
|
35943
|
+
class BondExtraAndNominate implements IBondExtraAndNominate {
|
35944
|
+
|
35945
|
+
/**
|
35946
|
+
* Constructs a new BondExtraAndNominate.
|
35947
|
+
* @param [properties] Properties to set
|
35948
|
+
*/
|
35949
|
+
constructor(properties?: TW.Polkadot.Proto.Staking.IBondExtraAndNominate);
|
35950
|
+
|
35951
|
+
/** BondExtraAndNominate value. */
|
35952
|
+
public value: Uint8Array;
|
35953
|
+
|
35954
|
+
/** BondExtraAndNominate nominators. */
|
35955
|
+
public nominators: string[];
|
35956
|
+
|
35957
|
+
/** BondExtraAndNominate callIndices. */
|
35958
|
+
public callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
35959
|
+
|
35960
|
+
/** BondExtraAndNominate bondExtraCallIndices. */
|
35961
|
+
public bondExtraCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
35962
|
+
|
35963
|
+
/** BondExtraAndNominate nominateCallIndices. */
|
35964
|
+
public nominateCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
35965
|
+
|
35966
|
+
/**
|
35967
|
+
* Creates a new BondExtraAndNominate instance using the specified properties.
|
35968
|
+
* @param [properties] Properties to set
|
35969
|
+
* @returns BondExtraAndNominate instance
|
35970
|
+
*/
|
35971
|
+
public static create(properties?: TW.Polkadot.Proto.Staking.IBondExtraAndNominate): TW.Polkadot.Proto.Staking.BondExtraAndNominate;
|
35972
|
+
|
35973
|
+
/**
|
35974
|
+
* Encodes the specified BondExtraAndNominate message. Does not implicitly {@link TW.Polkadot.Proto.Staking.BondExtraAndNominate.verify|verify} messages.
|
35975
|
+
* @param message BondExtraAndNominate message or plain object to encode
|
35976
|
+
* @param [writer] Writer to encode to
|
35977
|
+
* @returns Writer
|
35978
|
+
*/
|
35979
|
+
public static encode(message: TW.Polkadot.Proto.Staking.IBondExtraAndNominate, writer?: $protobuf.Writer): $protobuf.Writer;
|
35980
|
+
|
35981
|
+
/**
|
35982
|
+
* Decodes a BondExtraAndNominate message from the specified reader or buffer.
|
35983
|
+
* @param reader Reader or buffer to decode from
|
35984
|
+
* @param [length] Message length if known beforehand
|
35985
|
+
* @returns BondExtraAndNominate
|
35986
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
35987
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
35988
|
+
*/
|
35989
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Polkadot.Proto.Staking.BondExtraAndNominate;
|
35990
|
+
|
35991
|
+
/**
|
35992
|
+
* Verifies a BondExtraAndNominate message.
|
35993
|
+
* @param message Plain object to verify
|
35994
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
35995
|
+
*/
|
35996
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
35997
|
+
|
35998
|
+
/**
|
35999
|
+
* Creates a BondExtraAndNominate message from a plain object. Also converts values to their respective internal types.
|
36000
|
+
* @param object Plain object
|
36001
|
+
* @returns BondExtraAndNominate
|
36002
|
+
*/
|
36003
|
+
public static fromObject(object: { [k: string]: any }): TW.Polkadot.Proto.Staking.BondExtraAndNominate;
|
36004
|
+
|
36005
|
+
/**
|
36006
|
+
* Creates a plain object from a BondExtraAndNominate message. Also converts values to other types if specified.
|
36007
|
+
* @param message BondExtraAndNominate
|
36008
|
+
* @param [options] Conversion options
|
36009
|
+
* @returns Plain object
|
36010
|
+
*/
|
36011
|
+
public static toObject(message: TW.Polkadot.Proto.Staking.BondExtraAndNominate, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
36012
|
+
|
36013
|
+
/**
|
36014
|
+
* Converts this BondExtraAndNominate to JSON.
|
36015
|
+
* @returns JSON object
|
36016
|
+
*/
|
36017
|
+
public toJSON(): { [k: string]: any };
|
36018
|
+
}
|
36019
|
+
|
35917
36020
|
/** Properties of a BondExtra. */
|
35918
36021
|
interface IBondExtra {
|
35919
36022
|
|
@@ -46238,7 +46341,7 @@ export namespace TW {
|
|
46238
46341
|
dest?: (string|null);
|
46239
46342
|
|
46240
46343
|
/** Transfer amount */
|
46241
|
-
amount?: (
|
46344
|
+
amount?: (Uint8Array|null);
|
46242
46345
|
|
46243
46346
|
/** Transfer mode */
|
46244
46347
|
mode?: (number|null);
|
@@ -46272,7 +46375,7 @@ export namespace TW {
|
|
46272
46375
|
public dest: string;
|
46273
46376
|
|
46274
46377
|
/** Transfer amount. */
|
46275
|
-
public amount:
|
46378
|
+
public amount: Uint8Array;
|
46276
46379
|
|
46277
46380
|
/** Transfer mode. */
|
46278
46381
|
public mode: number;
|
@@ -46356,7 +46459,7 @@ export namespace TW {
|
|
46356
46459
|
queryId?: (Long|null);
|
46357
46460
|
|
46358
46461
|
/** JettonTransfer jettonAmount */
|
46359
|
-
jettonAmount?: (
|
46462
|
+
jettonAmount?: (Uint8Array|null);
|
46360
46463
|
|
46361
46464
|
/** JettonTransfer toOwner */
|
46362
46465
|
toOwner?: (string|null);
|
@@ -46365,7 +46468,7 @@ export namespace TW {
|
|
46365
46468
|
responseAddress?: (string|null);
|
46366
46469
|
|
46367
46470
|
/** JettonTransfer forwardAmount */
|
46368
|
-
forwardAmount?: (
|
46471
|
+
forwardAmount?: (Uint8Array|null);
|
46369
46472
|
|
46370
46473
|
/** JettonTransfer customPayload */
|
46371
46474
|
customPayload?: (string|null);
|
@@ -46384,7 +46487,7 @@ export namespace TW {
|
|
46384
46487
|
public queryId: Long;
|
46385
46488
|
|
46386
46489
|
/** JettonTransfer jettonAmount. */
|
46387
|
-
public jettonAmount:
|
46490
|
+
public jettonAmount: Uint8Array;
|
46388
46491
|
|
46389
46492
|
/** JettonTransfer toOwner. */
|
46390
46493
|
public toOwner: string;
|
@@ -46393,7 +46496,7 @@ export namespace TW {
|
|
46393
46496
|
public responseAddress: string;
|
46394
46497
|
|
46395
46498
|
/** JettonTransfer forwardAmount. */
|
46396
|
-
public forwardAmount:
|
46499
|
+
public forwardAmount: Uint8Array;
|
46397
46500
|
|
46398
46501
|
/** JettonTransfer customPayload. */
|
46399
46502
|
public customPayload: string;
|
@@ -105526,6 +105526,7 @@
|
|
105526
105526
|
* @property {TW.Polkadot.Proto.Staking.IChill|null} [chill] Staking chill
|
105527
105527
|
* @property {TW.Polkadot.Proto.Staking.IChillAndUnbond|null} [chillAndUnbond] Staking chillAndUnbond
|
105528
105528
|
* @property {TW.Polkadot.Proto.Staking.IRebond|null} [rebond] Staking rebond
|
105529
|
+
* @property {TW.Polkadot.Proto.Staking.IBondExtraAndNominate|null} [bondExtraAndNominate] Staking bondExtraAndNominate
|
105529
105530
|
*/
|
105530
105531
|
|
105531
105532
|
/**
|
@@ -105615,17 +105616,25 @@
|
|
105615
105616
|
*/
|
105616
105617
|
Staking.prototype.rebond = null;
|
105617
105618
|
|
105619
|
+
/**
|
105620
|
+
* Staking bondExtraAndNominate.
|
105621
|
+
* @member {TW.Polkadot.Proto.Staking.IBondExtraAndNominate|null|undefined} bondExtraAndNominate
|
105622
|
+
* @memberof TW.Polkadot.Proto.Staking
|
105623
|
+
* @instance
|
105624
|
+
*/
|
105625
|
+
Staking.prototype.bondExtraAndNominate = null;
|
105626
|
+
|
105618
105627
|
// OneOf field names bound to virtual getters and setters
|
105619
105628
|
var $oneOfFields;
|
105620
105629
|
|
105621
105630
|
/**
|
105622
105631
|
* Staking messageOneof.
|
105623
|
-
* @member {"bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond"|"rebond"|undefined} messageOneof
|
105632
|
+
* @member {"bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond"|"rebond"|"bondExtraAndNominate"|undefined} messageOneof
|
105624
105633
|
* @memberof TW.Polkadot.Proto.Staking
|
105625
105634
|
* @instance
|
105626
105635
|
*/
|
105627
105636
|
Object.defineProperty(Staking.prototype, "messageOneof", {
|
105628
|
-
get: $util.oneOfGetter($oneOfFields = ["bond", "bondAndNominate", "bondExtra", "unbond", "withdrawUnbonded", "nominate", "chill", "chillAndUnbond", "rebond"]),
|
105637
|
+
get: $util.oneOfGetter($oneOfFields = ["bond", "bondAndNominate", "bondExtra", "unbond", "withdrawUnbonded", "nominate", "chill", "chillAndUnbond", "rebond", "bondExtraAndNominate"]),
|
105629
105638
|
set: $util.oneOfSetter($oneOfFields)
|
105630
105639
|
});
|
105631
105640
|
|
@@ -105671,6 +105680,8 @@
|
|
105671
105680
|
$root.TW.Polkadot.Proto.Staking.ChillAndUnbond.encode(message.chillAndUnbond, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
105672
105681
|
if (message.rebond != null && Object.hasOwnProperty.call(message, "rebond"))
|
105673
105682
|
$root.TW.Polkadot.Proto.Staking.Rebond.encode(message.rebond, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
105683
|
+
if (message.bondExtraAndNominate != null && Object.hasOwnProperty.call(message, "bondExtraAndNominate"))
|
105684
|
+
$root.TW.Polkadot.Proto.Staking.BondExtraAndNominate.encode(message.bondExtraAndNominate, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
105674
105685
|
return writer;
|
105675
105686
|
};
|
105676
105687
|
|
@@ -105719,6 +105730,9 @@
|
|
105719
105730
|
case 9:
|
105720
105731
|
message.rebond = $root.TW.Polkadot.Proto.Staking.Rebond.decode(reader, reader.uint32());
|
105721
105732
|
break;
|
105733
|
+
case 10:
|
105734
|
+
message.bondExtraAndNominate = $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate.decode(reader, reader.uint32());
|
105735
|
+
break;
|
105722
105736
|
default:
|
105723
105737
|
reader.skipType(tag & 7);
|
105724
105738
|
break;
|
@@ -105827,6 +105841,16 @@
|
|
105827
105841
|
return "rebond." + error;
|
105828
105842
|
}
|
105829
105843
|
}
|
105844
|
+
if (message.bondExtraAndNominate != null && message.hasOwnProperty("bondExtraAndNominate")) {
|
105845
|
+
if (properties.messageOneof === 1)
|
105846
|
+
return "messageOneof: multiple values";
|
105847
|
+
properties.messageOneof = 1;
|
105848
|
+
{
|
105849
|
+
var error = $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate.verify(message.bondExtraAndNominate);
|
105850
|
+
if (error)
|
105851
|
+
return "bondExtraAndNominate." + error;
|
105852
|
+
}
|
105853
|
+
}
|
105830
105854
|
return null;
|
105831
105855
|
};
|
105832
105856
|
|
@@ -105887,6 +105911,11 @@
|
|
105887
105911
|
throw TypeError(".TW.Polkadot.Proto.Staking.rebond: object expected");
|
105888
105912
|
message.rebond = $root.TW.Polkadot.Proto.Staking.Rebond.fromObject(object.rebond);
|
105889
105913
|
}
|
105914
|
+
if (object.bondExtraAndNominate != null) {
|
105915
|
+
if (typeof object.bondExtraAndNominate !== "object")
|
105916
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.bondExtraAndNominate: object expected");
|
105917
|
+
message.bondExtraAndNominate = $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate.fromObject(object.bondExtraAndNominate);
|
105918
|
+
}
|
105890
105919
|
return message;
|
105891
105920
|
};
|
105892
105921
|
|
@@ -105948,6 +105977,11 @@
|
|
105948
105977
|
if (options.oneofs)
|
105949
105978
|
object.messageOneof = "rebond";
|
105950
105979
|
}
|
105980
|
+
if (message.bondExtraAndNominate != null && message.hasOwnProperty("bondExtraAndNominate")) {
|
105981
|
+
object.bondExtraAndNominate = $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate.toObject(message.bondExtraAndNominate, options);
|
105982
|
+
if (options.oneofs)
|
105983
|
+
object.messageOneof = "bondExtraAndNominate";
|
105984
|
+
}
|
105951
105985
|
return object;
|
105952
105986
|
};
|
105953
105987
|
|
@@ -106569,6 +106603,294 @@
|
|
106569
106603
|
return BondAndNominate;
|
106570
106604
|
})();
|
106571
106605
|
|
106606
|
+
Staking.BondExtraAndNominate = (function() {
|
106607
|
+
|
106608
|
+
/**
|
106609
|
+
* Properties of a BondExtraAndNominate.
|
106610
|
+
* @memberof TW.Polkadot.Proto.Staking
|
106611
|
+
* @interface IBondExtraAndNominate
|
106612
|
+
* @property {Uint8Array|null} [value] BondExtraAndNominate value
|
106613
|
+
* @property {Array.<string>|null} [nominators] BondExtraAndNominate nominators
|
106614
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [callIndices] BondExtraAndNominate callIndices
|
106615
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [bondExtraCallIndices] BondExtraAndNominate bondExtraCallIndices
|
106616
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [nominateCallIndices] BondExtraAndNominate nominateCallIndices
|
106617
|
+
*/
|
106618
|
+
|
106619
|
+
/**
|
106620
|
+
* Constructs a new BondExtraAndNominate.
|
106621
|
+
* @memberof TW.Polkadot.Proto.Staking
|
106622
|
+
* @classdesc Represents a BondExtraAndNominate.
|
106623
|
+
* @implements IBondExtraAndNominate
|
106624
|
+
* @constructor
|
106625
|
+
* @param {TW.Polkadot.Proto.Staking.IBondExtraAndNominate=} [properties] Properties to set
|
106626
|
+
*/
|
106627
|
+
function BondExtraAndNominate(properties) {
|
106628
|
+
this.nominators = [];
|
106629
|
+
if (properties)
|
106630
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
106631
|
+
if (properties[keys[i]] != null)
|
106632
|
+
this[keys[i]] = properties[keys[i]];
|
106633
|
+
}
|
106634
|
+
|
106635
|
+
/**
|
106636
|
+
* BondExtraAndNominate value.
|
106637
|
+
* @member {Uint8Array} value
|
106638
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106639
|
+
* @instance
|
106640
|
+
*/
|
106641
|
+
BondExtraAndNominate.prototype.value = $util.newBuffer([]);
|
106642
|
+
|
106643
|
+
/**
|
106644
|
+
* BondExtraAndNominate nominators.
|
106645
|
+
* @member {Array.<string>} nominators
|
106646
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106647
|
+
* @instance
|
106648
|
+
*/
|
106649
|
+
BondExtraAndNominate.prototype.nominators = $util.emptyArray;
|
106650
|
+
|
106651
|
+
/**
|
106652
|
+
* BondExtraAndNominate callIndices.
|
106653
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} callIndices
|
106654
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106655
|
+
* @instance
|
106656
|
+
*/
|
106657
|
+
BondExtraAndNominate.prototype.callIndices = null;
|
106658
|
+
|
106659
|
+
/**
|
106660
|
+
* BondExtraAndNominate bondExtraCallIndices.
|
106661
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} bondExtraCallIndices
|
106662
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106663
|
+
* @instance
|
106664
|
+
*/
|
106665
|
+
BondExtraAndNominate.prototype.bondExtraCallIndices = null;
|
106666
|
+
|
106667
|
+
/**
|
106668
|
+
* BondExtraAndNominate nominateCallIndices.
|
106669
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} nominateCallIndices
|
106670
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106671
|
+
* @instance
|
106672
|
+
*/
|
106673
|
+
BondExtraAndNominate.prototype.nominateCallIndices = null;
|
106674
|
+
|
106675
|
+
/**
|
106676
|
+
* Creates a new BondExtraAndNominate instance using the specified properties.
|
106677
|
+
* @function create
|
106678
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106679
|
+
* @static
|
106680
|
+
* @param {TW.Polkadot.Proto.Staking.IBondExtraAndNominate=} [properties] Properties to set
|
106681
|
+
* @returns {TW.Polkadot.Proto.Staking.BondExtraAndNominate} BondExtraAndNominate instance
|
106682
|
+
*/
|
106683
|
+
BondExtraAndNominate.create = function create(properties) {
|
106684
|
+
return new BondExtraAndNominate(properties);
|
106685
|
+
};
|
106686
|
+
|
106687
|
+
/**
|
106688
|
+
* Encodes the specified BondExtraAndNominate message. Does not implicitly {@link TW.Polkadot.Proto.Staking.BondExtraAndNominate.verify|verify} messages.
|
106689
|
+
* @function encode
|
106690
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106691
|
+
* @static
|
106692
|
+
* @param {TW.Polkadot.Proto.Staking.IBondExtraAndNominate} message BondExtraAndNominate message or plain object to encode
|
106693
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
106694
|
+
* @returns {$protobuf.Writer} Writer
|
106695
|
+
*/
|
106696
|
+
BondExtraAndNominate.encode = function encode(message, writer) {
|
106697
|
+
if (!writer)
|
106698
|
+
writer = $Writer.create();
|
106699
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
106700
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
106701
|
+
if (message.nominators != null && message.nominators.length)
|
106702
|
+
for (var i = 0; i < message.nominators.length; ++i)
|
106703
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nominators[i]);
|
106704
|
+
if (message.callIndices != null && Object.hasOwnProperty.call(message, "callIndices"))
|
106705
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.callIndices, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
106706
|
+
if (message.bondExtraCallIndices != null && Object.hasOwnProperty.call(message, "bondExtraCallIndices"))
|
106707
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.bondExtraCallIndices, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
106708
|
+
if (message.nominateCallIndices != null && Object.hasOwnProperty.call(message, "nominateCallIndices"))
|
106709
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.nominateCallIndices, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
106710
|
+
return writer;
|
106711
|
+
};
|
106712
|
+
|
106713
|
+
/**
|
106714
|
+
* Decodes a BondExtraAndNominate message from the specified reader or buffer.
|
106715
|
+
* @function decode
|
106716
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106717
|
+
* @static
|
106718
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
106719
|
+
* @param {number} [length] Message length if known beforehand
|
106720
|
+
* @returns {TW.Polkadot.Proto.Staking.BondExtraAndNominate} BondExtraAndNominate
|
106721
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
106722
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
106723
|
+
*/
|
106724
|
+
BondExtraAndNominate.decode = function decode(reader, length) {
|
106725
|
+
if (!(reader instanceof $Reader))
|
106726
|
+
reader = $Reader.create(reader);
|
106727
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate();
|
106728
|
+
while (reader.pos < end) {
|
106729
|
+
var tag = reader.uint32();
|
106730
|
+
switch (tag >>> 3) {
|
106731
|
+
case 1:
|
106732
|
+
message.value = reader.bytes();
|
106733
|
+
break;
|
106734
|
+
case 2:
|
106735
|
+
if (!(message.nominators && message.nominators.length))
|
106736
|
+
message.nominators = [];
|
106737
|
+
message.nominators.push(reader.string());
|
106738
|
+
break;
|
106739
|
+
case 3:
|
106740
|
+
message.callIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
106741
|
+
break;
|
106742
|
+
case 4:
|
106743
|
+
message.bondExtraCallIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
106744
|
+
break;
|
106745
|
+
case 5:
|
106746
|
+
message.nominateCallIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
106747
|
+
break;
|
106748
|
+
default:
|
106749
|
+
reader.skipType(tag & 7);
|
106750
|
+
break;
|
106751
|
+
}
|
106752
|
+
}
|
106753
|
+
return message;
|
106754
|
+
};
|
106755
|
+
|
106756
|
+
/**
|
106757
|
+
* Verifies a BondExtraAndNominate message.
|
106758
|
+
* @function verify
|
106759
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106760
|
+
* @static
|
106761
|
+
* @param {Object.<string,*>} message Plain object to verify
|
106762
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
106763
|
+
*/
|
106764
|
+
BondExtraAndNominate.verify = function verify(message) {
|
106765
|
+
if (typeof message !== "object" || message === null)
|
106766
|
+
return "object expected";
|
106767
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
106768
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
106769
|
+
return "value: buffer expected";
|
106770
|
+
if (message.nominators != null && message.hasOwnProperty("nominators")) {
|
106771
|
+
if (!Array.isArray(message.nominators))
|
106772
|
+
return "nominators: array expected";
|
106773
|
+
for (var i = 0; i < message.nominators.length; ++i)
|
106774
|
+
if (!$util.isString(message.nominators[i]))
|
106775
|
+
return "nominators: string[] expected";
|
106776
|
+
}
|
106777
|
+
if (message.callIndices != null && message.hasOwnProperty("callIndices")) {
|
106778
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.callIndices);
|
106779
|
+
if (error)
|
106780
|
+
return "callIndices." + error;
|
106781
|
+
}
|
106782
|
+
if (message.bondExtraCallIndices != null && message.hasOwnProperty("bondExtraCallIndices")) {
|
106783
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.bondExtraCallIndices);
|
106784
|
+
if (error)
|
106785
|
+
return "bondExtraCallIndices." + error;
|
106786
|
+
}
|
106787
|
+
if (message.nominateCallIndices != null && message.hasOwnProperty("nominateCallIndices")) {
|
106788
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.nominateCallIndices);
|
106789
|
+
if (error)
|
106790
|
+
return "nominateCallIndices." + error;
|
106791
|
+
}
|
106792
|
+
return null;
|
106793
|
+
};
|
106794
|
+
|
106795
|
+
/**
|
106796
|
+
* Creates a BondExtraAndNominate message from a plain object. Also converts values to their respective internal types.
|
106797
|
+
* @function fromObject
|
106798
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106799
|
+
* @static
|
106800
|
+
* @param {Object.<string,*>} object Plain object
|
106801
|
+
* @returns {TW.Polkadot.Proto.Staking.BondExtraAndNominate} BondExtraAndNominate
|
106802
|
+
*/
|
106803
|
+
BondExtraAndNominate.fromObject = function fromObject(object) {
|
106804
|
+
if (object instanceof $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate)
|
106805
|
+
return object;
|
106806
|
+
var message = new $root.TW.Polkadot.Proto.Staking.BondExtraAndNominate();
|
106807
|
+
if (object.value != null)
|
106808
|
+
if (typeof object.value === "string")
|
106809
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
106810
|
+
else if (object.value.length)
|
106811
|
+
message.value = object.value;
|
106812
|
+
if (object.nominators) {
|
106813
|
+
if (!Array.isArray(object.nominators))
|
106814
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.BondExtraAndNominate.nominators: array expected");
|
106815
|
+
message.nominators = [];
|
106816
|
+
for (var i = 0; i < object.nominators.length; ++i)
|
106817
|
+
message.nominators[i] = String(object.nominators[i]);
|
106818
|
+
}
|
106819
|
+
if (object.callIndices != null) {
|
106820
|
+
if (typeof object.callIndices !== "object")
|
106821
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.BondExtraAndNominate.callIndices: object expected");
|
106822
|
+
message.callIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.callIndices);
|
106823
|
+
}
|
106824
|
+
if (object.bondExtraCallIndices != null) {
|
106825
|
+
if (typeof object.bondExtraCallIndices !== "object")
|
106826
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.BondExtraAndNominate.bondExtraCallIndices: object expected");
|
106827
|
+
message.bondExtraCallIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.bondExtraCallIndices);
|
106828
|
+
}
|
106829
|
+
if (object.nominateCallIndices != null) {
|
106830
|
+
if (typeof object.nominateCallIndices !== "object")
|
106831
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.BondExtraAndNominate.nominateCallIndices: object expected");
|
106832
|
+
message.nominateCallIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.nominateCallIndices);
|
106833
|
+
}
|
106834
|
+
return message;
|
106835
|
+
};
|
106836
|
+
|
106837
|
+
/**
|
106838
|
+
* Creates a plain object from a BondExtraAndNominate message. Also converts values to other types if specified.
|
106839
|
+
* @function toObject
|
106840
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106841
|
+
* @static
|
106842
|
+
* @param {TW.Polkadot.Proto.Staking.BondExtraAndNominate} message BondExtraAndNominate
|
106843
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
106844
|
+
* @returns {Object.<string,*>} Plain object
|
106845
|
+
*/
|
106846
|
+
BondExtraAndNominate.toObject = function toObject(message, options) {
|
106847
|
+
if (!options)
|
106848
|
+
options = {};
|
106849
|
+
var object = {};
|
106850
|
+
if (options.arrays || options.defaults)
|
106851
|
+
object.nominators = [];
|
106852
|
+
if (options.defaults) {
|
106853
|
+
if (options.bytes === String)
|
106854
|
+
object.value = "";
|
106855
|
+
else {
|
106856
|
+
object.value = [];
|
106857
|
+
if (options.bytes !== Array)
|
106858
|
+
object.value = $util.newBuffer(object.value);
|
106859
|
+
}
|
106860
|
+
object.callIndices = null;
|
106861
|
+
object.bondExtraCallIndices = null;
|
106862
|
+
object.nominateCallIndices = null;
|
106863
|
+
}
|
106864
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
106865
|
+
object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
|
106866
|
+
if (message.nominators && message.nominators.length) {
|
106867
|
+
object.nominators = [];
|
106868
|
+
for (var j = 0; j < message.nominators.length; ++j)
|
106869
|
+
object.nominators[j] = message.nominators[j];
|
106870
|
+
}
|
106871
|
+
if (message.callIndices != null && message.hasOwnProperty("callIndices"))
|
106872
|
+
object.callIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.callIndices, options);
|
106873
|
+
if (message.bondExtraCallIndices != null && message.hasOwnProperty("bondExtraCallIndices"))
|
106874
|
+
object.bondExtraCallIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.bondExtraCallIndices, options);
|
106875
|
+
if (message.nominateCallIndices != null && message.hasOwnProperty("nominateCallIndices"))
|
106876
|
+
object.nominateCallIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.nominateCallIndices, options);
|
106877
|
+
return object;
|
106878
|
+
};
|
106879
|
+
|
106880
|
+
/**
|
106881
|
+
* Converts this BondExtraAndNominate to JSON.
|
106882
|
+
* @function toJSON
|
106883
|
+
* @memberof TW.Polkadot.Proto.Staking.BondExtraAndNominate
|
106884
|
+
* @instance
|
106885
|
+
* @returns {Object.<string,*>} JSON object
|
106886
|
+
*/
|
106887
|
+
BondExtraAndNominate.prototype.toJSON = function toJSON() {
|
106888
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
106889
|
+
};
|
106890
|
+
|
106891
|
+
return BondExtraAndNominate;
|
106892
|
+
})();
|
106893
|
+
|
106572
106894
|
Staking.BondExtra = (function() {
|
106573
106895
|
|
106574
106896
|
/**
|
@@ -135821,7 +136143,7 @@
|
|
135821
136143
|
* @memberof TW.TheOpenNetwork.Proto
|
135822
136144
|
* @interface ITransfer
|
135823
136145
|
* @property {string|null} [dest] Transfer dest
|
135824
|
-
* @property {
|
136146
|
+
* @property {Uint8Array|null} [amount] Transfer amount
|
135825
136147
|
* @property {number|null} [mode] Transfer mode
|
135826
136148
|
* @property {string|null} [comment] Transfer comment
|
135827
136149
|
* @property {boolean|null} [bounceable] Transfer bounceable
|
@@ -135855,11 +136177,11 @@
|
|
135855
136177
|
|
135856
136178
|
/**
|
135857
136179
|
* Transfer amount.
|
135858
|
-
* @member {
|
136180
|
+
* @member {Uint8Array} amount
|
135859
136181
|
* @memberof TW.TheOpenNetwork.Proto.Transfer
|
135860
136182
|
* @instance
|
135861
136183
|
*/
|
135862
|
-
Transfer.prototype.amount = $util.
|
136184
|
+
Transfer.prototype.amount = $util.newBuffer([]);
|
135863
136185
|
|
135864
136186
|
/**
|
135865
136187
|
* Transfer mode.
|
@@ -135950,7 +136272,7 @@
|
|
135950
136272
|
if (message.dest != null && Object.hasOwnProperty.call(message, "dest"))
|
135951
136273
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.dest);
|
135952
136274
|
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
135953
|
-
writer.uint32(/* id 2, wireType
|
136275
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.amount);
|
135954
136276
|
if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
|
135955
136277
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.mode);
|
135956
136278
|
if (message.comment != null && Object.hasOwnProperty.call(message, "comment"))
|
@@ -135988,7 +136310,7 @@
|
|
135988
136310
|
message.dest = reader.string();
|
135989
136311
|
break;
|
135990
136312
|
case 2:
|
135991
|
-
message.amount = reader.
|
136313
|
+
message.amount = reader.bytes();
|
135992
136314
|
break;
|
135993
136315
|
case 3:
|
135994
136316
|
message.mode = reader.uint32();
|
@@ -136032,8 +136354,8 @@
|
|
136032
136354
|
if (!$util.isString(message.dest))
|
136033
136355
|
return "dest: string expected";
|
136034
136356
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
136035
|
-
if (
|
136036
|
-
return "amount:
|
136357
|
+
if (!(message.amount && typeof message.amount.length === "number" || $util.isString(message.amount)))
|
136358
|
+
return "amount: buffer expected";
|
136037
136359
|
if (message.mode != null && message.hasOwnProperty("mode"))
|
136038
136360
|
if (!$util.isInteger(message.mode))
|
136039
136361
|
return "mode: integer expected";
|
@@ -136079,14 +136401,10 @@
|
|
136079
136401
|
if (object.dest != null)
|
136080
136402
|
message.dest = String(object.dest);
|
136081
136403
|
if (object.amount != null)
|
136082
|
-
if (
|
136083
|
-
(message.amount = $util.
|
136084
|
-
else if (
|
136085
|
-
message.amount = parseInt(object.amount, 10);
|
136086
|
-
else if (typeof object.amount === "number")
|
136404
|
+
if (typeof object.amount === "string")
|
136405
|
+
$util.base64.decode(object.amount, message.amount = $util.newBuffer($util.base64.length(object.amount)), 0);
|
136406
|
+
else if (object.amount.length)
|
136087
136407
|
message.amount = object.amount;
|
136088
|
-
else if (typeof object.amount === "object")
|
136089
|
-
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
136090
136408
|
if (object.mode != null)
|
136091
136409
|
message.mode = object.mode >>> 0;
|
136092
136410
|
if (object.comment != null)
|
@@ -136120,11 +136438,13 @@
|
|
136120
136438
|
var object = {};
|
136121
136439
|
if (options.defaults) {
|
136122
136440
|
object.dest = "";
|
136123
|
-
if (
|
136124
|
-
|
136125
|
-
|
136126
|
-
|
136127
|
-
|
136441
|
+
if (options.bytes === String)
|
136442
|
+
object.amount = "";
|
136443
|
+
else {
|
136444
|
+
object.amount = [];
|
136445
|
+
if (options.bytes !== Array)
|
136446
|
+
object.amount = $util.newBuffer(object.amount);
|
136447
|
+
}
|
136128
136448
|
object.mode = 0;
|
136129
136449
|
object.comment = "";
|
136130
136450
|
object.bounceable = false;
|
@@ -136133,10 +136453,7 @@
|
|
136133
136453
|
if (message.dest != null && message.hasOwnProperty("dest"))
|
136134
136454
|
object.dest = message.dest;
|
136135
136455
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
136136
|
-
|
136137
|
-
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
136138
|
-
else
|
136139
|
-
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;
|
136456
|
+
object.amount = options.bytes === String ? $util.base64.encode(message.amount, 0, message.amount.length) : options.bytes === Array ? Array.prototype.slice.call(message.amount) : message.amount;
|
136140
136457
|
if (message.mode != null && message.hasOwnProperty("mode"))
|
136141
136458
|
object.mode = message.mode;
|
136142
136459
|
if (message.comment != null && message.hasOwnProperty("comment"))
|
@@ -136179,10 +136496,10 @@
|
|
136179
136496
|
* @memberof TW.TheOpenNetwork.Proto
|
136180
136497
|
* @interface IJettonTransfer
|
136181
136498
|
* @property {Long|null} [queryId] JettonTransfer queryId
|
136182
|
-
* @property {
|
136499
|
+
* @property {Uint8Array|null} [jettonAmount] JettonTransfer jettonAmount
|
136183
136500
|
* @property {string|null} [toOwner] JettonTransfer toOwner
|
136184
136501
|
* @property {string|null} [responseAddress] JettonTransfer responseAddress
|
136185
|
-
* @property {
|
136502
|
+
* @property {Uint8Array|null} [forwardAmount] JettonTransfer forwardAmount
|
136186
136503
|
* @property {string|null} [customPayload] JettonTransfer customPayload
|
136187
136504
|
*/
|
136188
136505
|
|
@@ -136211,11 +136528,11 @@
|
|
136211
136528
|
|
136212
136529
|
/**
|
136213
136530
|
* JettonTransfer jettonAmount.
|
136214
|
-
* @member {
|
136531
|
+
* @member {Uint8Array} jettonAmount
|
136215
136532
|
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
136216
136533
|
* @instance
|
136217
136534
|
*/
|
136218
|
-
JettonTransfer.prototype.jettonAmount = $util.
|
136535
|
+
JettonTransfer.prototype.jettonAmount = $util.newBuffer([]);
|
136219
136536
|
|
136220
136537
|
/**
|
136221
136538
|
* JettonTransfer toOwner.
|
@@ -136235,11 +136552,11 @@
|
|
136235
136552
|
|
136236
136553
|
/**
|
136237
136554
|
* JettonTransfer forwardAmount.
|
136238
|
-
* @member {
|
136555
|
+
* @member {Uint8Array} forwardAmount
|
136239
136556
|
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
136240
136557
|
* @instance
|
136241
136558
|
*/
|
136242
|
-
JettonTransfer.prototype.forwardAmount = $util.
|
136559
|
+
JettonTransfer.prototype.forwardAmount = $util.newBuffer([]);
|
136243
136560
|
|
136244
136561
|
/**
|
136245
136562
|
* JettonTransfer customPayload.
|
@@ -136276,13 +136593,13 @@
|
|
136276
136593
|
if (message.queryId != null && Object.hasOwnProperty.call(message, "queryId"))
|
136277
136594
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.queryId);
|
136278
136595
|
if (message.jettonAmount != null && Object.hasOwnProperty.call(message, "jettonAmount"))
|
136279
|
-
writer.uint32(/* id 2, wireType
|
136596
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.jettonAmount);
|
136280
136597
|
if (message.toOwner != null && Object.hasOwnProperty.call(message, "toOwner"))
|
136281
136598
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.toOwner);
|
136282
136599
|
if (message.responseAddress != null && Object.hasOwnProperty.call(message, "responseAddress"))
|
136283
136600
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseAddress);
|
136284
136601
|
if (message.forwardAmount != null && Object.hasOwnProperty.call(message, "forwardAmount"))
|
136285
|
-
writer.uint32(/* id 5, wireType
|
136602
|
+
writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.forwardAmount);
|
136286
136603
|
if (message.customPayload != null && Object.hasOwnProperty.call(message, "customPayload"))
|
136287
136604
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.customPayload);
|
136288
136605
|
return writer;
|
@@ -136310,7 +136627,7 @@
|
|
136310
136627
|
message.queryId = reader.uint64();
|
136311
136628
|
break;
|
136312
136629
|
case 2:
|
136313
|
-
message.jettonAmount = reader.
|
136630
|
+
message.jettonAmount = reader.bytes();
|
136314
136631
|
break;
|
136315
136632
|
case 3:
|
136316
136633
|
message.toOwner = reader.string();
|
@@ -136319,7 +136636,7 @@
|
|
136319
136636
|
message.responseAddress = reader.string();
|
136320
136637
|
break;
|
136321
136638
|
case 5:
|
136322
|
-
message.forwardAmount = reader.
|
136639
|
+
message.forwardAmount = reader.bytes();
|
136323
136640
|
break;
|
136324
136641
|
case 6:
|
136325
136642
|
message.customPayload = reader.string();
|
@@ -136347,8 +136664,8 @@
|
|
136347
136664
|
if (!$util.isInteger(message.queryId) && !(message.queryId && $util.isInteger(message.queryId.low) && $util.isInteger(message.queryId.high)))
|
136348
136665
|
return "queryId: integer|Long expected";
|
136349
136666
|
if (message.jettonAmount != null && message.hasOwnProperty("jettonAmount"))
|
136350
|
-
if (
|
136351
|
-
return "jettonAmount:
|
136667
|
+
if (!(message.jettonAmount && typeof message.jettonAmount.length === "number" || $util.isString(message.jettonAmount)))
|
136668
|
+
return "jettonAmount: buffer expected";
|
136352
136669
|
if (message.toOwner != null && message.hasOwnProperty("toOwner"))
|
136353
136670
|
if (!$util.isString(message.toOwner))
|
136354
136671
|
return "toOwner: string expected";
|
@@ -136356,8 +136673,8 @@
|
|
136356
136673
|
if (!$util.isString(message.responseAddress))
|
136357
136674
|
return "responseAddress: string expected";
|
136358
136675
|
if (message.forwardAmount != null && message.hasOwnProperty("forwardAmount"))
|
136359
|
-
if (
|
136360
|
-
return "forwardAmount:
|
136676
|
+
if (!(message.forwardAmount && typeof message.forwardAmount.length === "number" || $util.isString(message.forwardAmount)))
|
136677
|
+
return "forwardAmount: buffer expected";
|
136361
136678
|
if (message.customPayload != null && message.hasOwnProperty("customPayload"))
|
136362
136679
|
if (!$util.isString(message.customPayload))
|
136363
136680
|
return "customPayload: string expected";
|
@@ -136386,27 +136703,19 @@
|
|
136386
136703
|
else if (typeof object.queryId === "object")
|
136387
136704
|
message.queryId = new $util.LongBits(object.queryId.low >>> 0, object.queryId.high >>> 0).toNumber(true);
|
136388
136705
|
if (object.jettonAmount != null)
|
136389
|
-
if (
|
136390
|
-
(message.jettonAmount = $util.
|
136391
|
-
else if (
|
136392
|
-
message.jettonAmount = parseInt(object.jettonAmount, 10);
|
136393
|
-
else if (typeof object.jettonAmount === "number")
|
136706
|
+
if (typeof object.jettonAmount === "string")
|
136707
|
+
$util.base64.decode(object.jettonAmount, message.jettonAmount = $util.newBuffer($util.base64.length(object.jettonAmount)), 0);
|
136708
|
+
else if (object.jettonAmount.length)
|
136394
136709
|
message.jettonAmount = object.jettonAmount;
|
136395
|
-
else if (typeof object.jettonAmount === "object")
|
136396
|
-
message.jettonAmount = new $util.LongBits(object.jettonAmount.low >>> 0, object.jettonAmount.high >>> 0).toNumber(true);
|
136397
136710
|
if (object.toOwner != null)
|
136398
136711
|
message.toOwner = String(object.toOwner);
|
136399
136712
|
if (object.responseAddress != null)
|
136400
136713
|
message.responseAddress = String(object.responseAddress);
|
136401
136714
|
if (object.forwardAmount != null)
|
136402
|
-
if (
|
136403
|
-
(message.forwardAmount = $util.
|
136404
|
-
else if (
|
136405
|
-
message.forwardAmount = parseInt(object.forwardAmount, 10);
|
136406
|
-
else if (typeof object.forwardAmount === "number")
|
136715
|
+
if (typeof object.forwardAmount === "string")
|
136716
|
+
$util.base64.decode(object.forwardAmount, message.forwardAmount = $util.newBuffer($util.base64.length(object.forwardAmount)), 0);
|
136717
|
+
else if (object.forwardAmount.length)
|
136407
136718
|
message.forwardAmount = object.forwardAmount;
|
136408
|
-
else if (typeof object.forwardAmount === "object")
|
136409
|
-
message.forwardAmount = new $util.LongBits(object.forwardAmount.low >>> 0, object.forwardAmount.high >>> 0).toNumber(true);
|
136410
136719
|
if (object.customPayload != null)
|
136411
136720
|
message.customPayload = String(object.customPayload);
|
136412
136721
|
return message;
|
@@ -136431,18 +136740,22 @@
|
|
136431
136740
|
object.queryId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
136432
136741
|
} else
|
136433
136742
|
object.queryId = options.longs === String ? "0" : 0;
|
136434
|
-
if (
|
136435
|
-
|
136436
|
-
|
136437
|
-
|
136438
|
-
|
136743
|
+
if (options.bytes === String)
|
136744
|
+
object.jettonAmount = "";
|
136745
|
+
else {
|
136746
|
+
object.jettonAmount = [];
|
136747
|
+
if (options.bytes !== Array)
|
136748
|
+
object.jettonAmount = $util.newBuffer(object.jettonAmount);
|
136749
|
+
}
|
136439
136750
|
object.toOwner = "";
|
136440
136751
|
object.responseAddress = "";
|
136441
|
-
if (
|
136442
|
-
|
136443
|
-
|
136444
|
-
|
136445
|
-
|
136752
|
+
if (options.bytes === String)
|
136753
|
+
object.forwardAmount = "";
|
136754
|
+
else {
|
136755
|
+
object.forwardAmount = [];
|
136756
|
+
if (options.bytes !== Array)
|
136757
|
+
object.forwardAmount = $util.newBuffer(object.forwardAmount);
|
136758
|
+
}
|
136446
136759
|
object.customPayload = "";
|
136447
136760
|
}
|
136448
136761
|
if (message.queryId != null && message.hasOwnProperty("queryId"))
|
@@ -136451,19 +136764,13 @@
|
|
136451
136764
|
else
|
136452
136765
|
object.queryId = options.longs === String ? $util.Long.prototype.toString.call(message.queryId) : options.longs === Number ? new $util.LongBits(message.queryId.low >>> 0, message.queryId.high >>> 0).toNumber(true) : message.queryId;
|
136453
136766
|
if (message.jettonAmount != null && message.hasOwnProperty("jettonAmount"))
|
136454
|
-
|
136455
|
-
object.jettonAmount = options.longs === String ? String(message.jettonAmount) : message.jettonAmount;
|
136456
|
-
else
|
136457
|
-
object.jettonAmount = options.longs === String ? $util.Long.prototype.toString.call(message.jettonAmount) : options.longs === Number ? new $util.LongBits(message.jettonAmount.low >>> 0, message.jettonAmount.high >>> 0).toNumber(true) : message.jettonAmount;
|
136767
|
+
object.jettonAmount = options.bytes === String ? $util.base64.encode(message.jettonAmount, 0, message.jettonAmount.length) : options.bytes === Array ? Array.prototype.slice.call(message.jettonAmount) : message.jettonAmount;
|
136458
136768
|
if (message.toOwner != null && message.hasOwnProperty("toOwner"))
|
136459
136769
|
object.toOwner = message.toOwner;
|
136460
136770
|
if (message.responseAddress != null && message.hasOwnProperty("responseAddress"))
|
136461
136771
|
object.responseAddress = message.responseAddress;
|
136462
136772
|
if (message.forwardAmount != null && message.hasOwnProperty("forwardAmount"))
|
136463
|
-
|
136464
|
-
object.forwardAmount = options.longs === String ? String(message.forwardAmount) : message.forwardAmount;
|
136465
|
-
else
|
136466
|
-
object.forwardAmount = options.longs === String ? $util.Long.prototype.toString.call(message.forwardAmount) : options.longs === Number ? new $util.LongBits(message.forwardAmount.low >>> 0, message.forwardAmount.high >>> 0).toNumber(true) : message.forwardAmount;
|
136773
|
+
object.forwardAmount = options.bytes === String ? $util.base64.encode(message.forwardAmount, 0, message.forwardAmount.length) : options.bytes === Array ? Array.prototype.slice.call(message.forwardAmount) : message.forwardAmount;
|
136467
136774
|
if (message.customPayload != null && message.hasOwnProperty("customPayload"))
|
136468
136775
|
object.customPayload = message.customPayload;
|
136469
136776
|
return object;
|
package/dist/lib/wallet-core.js
CHANGED
@@ -36,7 +36,7 @@ function $a(a,b){var c=M;return sa||"function"!=typeof WebAssembly.instantiateSt
|
|
36
36
|
function z(a,b){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){n("Module."+a+" has been replaced with plain "+b+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}
|
37
37
|
function cb(a){return"FS_createPath"===a||"FS_createDataFile"===a||"FS_createPreloadedFile"===a||"FS_unlink"===a||"addRunDependency"===a||"FS_createLazyFile"===a||"FS_createDevice"===a||"removeRunDependency"===a}(function(a,b){"undefined"!==typeof globalThis&&Object.defineProperty(globalThis,a,{configurable:!0,get:function(){ya("`"+a+"` is not longer defined by emscripten. "+b)}})})("buffer","Please use HEAP8.buffer or wasmMemory.buffer");
|
38
38
|
function db(a){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";cb(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})}
|
39
|
-
var eb={
|
39
|
+
var eb={2185908:()=>{if(void 0===g.fa)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.fa=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.fa=a}catch(e){throw"No secure random number generator found";}}},2186630:()=>g.fa()};
|
40
40
|
function qa(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function fb(a){for(;0<a.length;)a.shift()(g)}function za(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function ya(a){gb||(gb={});gb[a]||(gb[a]=1,w&&(a="warning: "+a),y(a))}var gb,hb=[];function ib(a){var b=hb[a];b||(a>=hb.length&&(hb.length=a+1),hb[a]=b=Ha.get(a));assert(Ha.get(a)==b,"JavaScript-side Wasm function table mirror is out of date!");return b}
|
41
41
|
function jb(a){this.l=a-24;this.Oa=function(b){G[this.l+4>>2]=b};this.Ja=function(b){G[this.l+8>>2]=b};this.Ka=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.La=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Oa(b);this.Ja(c);this.Ka();this.Ea();this.La()};this.Da=function(){G[this.l+16>>2]=0}}
|
42
42
|
var kb=0,lb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},mb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=lb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},nb=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},ob=
|
Binary file
|
@@ -911,7 +911,7 @@ export class SolanaTransaction {
|
|
911
911
|
static setComputeUnitPrice(encodedTx: string, price: string): string;
|
912
912
|
static setComputeUnitLimit(encodedTx: string, limit: string): string;
|
913
913
|
static setFeePayer(encodedTx: string, feePayer: string): string;
|
914
|
-
static
|
914
|
+
static insertInstruction(encodedTx: string, insertAt: number, instruction: string): string;
|
915
915
|
}
|
916
916
|
export class StarkExMessageSigner {
|
917
917
|
static signMessage(privateKey: PrivateKey, message: string): string;
|