@trustwallet/wallet-core 4.1.20 → 4.1.22
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.
@@ -33399,6 +33399,12 @@ export namespace TW {
|
|
33399
33399
|
|
33400
33400
|
/** BondAndNominate callIndices */
|
33401
33401
|
callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33402
|
+
|
33403
|
+
/** BondAndNominate bondCallIndices */
|
33404
|
+
bondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33405
|
+
|
33406
|
+
/** BondAndNominate nominateCallIndices */
|
33407
|
+
nominateCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33402
33408
|
}
|
33403
33409
|
|
33404
33410
|
/** Represents a BondAndNominate. */
|
@@ -33425,6 +33431,12 @@ export namespace TW {
|
|
33425
33431
|
/** BondAndNominate callIndices. */
|
33426
33432
|
public callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33427
33433
|
|
33434
|
+
/** BondAndNominate bondCallIndices. */
|
33435
|
+
public bondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33436
|
+
|
33437
|
+
/** BondAndNominate nominateCallIndices. */
|
33438
|
+
public nominateCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33439
|
+
|
33428
33440
|
/**
|
33429
33441
|
* Creates a new BondAndNominate instance using the specified properties.
|
33430
33442
|
* @param [properties] Properties to set
|
@@ -33882,6 +33894,12 @@ export namespace TW {
|
|
33882
33894
|
|
33883
33895
|
/** ChillAndUnbond callIndices */
|
33884
33896
|
callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33897
|
+
|
33898
|
+
/** ChillAndUnbond chillCallIndices */
|
33899
|
+
chillCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33900
|
+
|
33901
|
+
/** ChillAndUnbond unbondCallIndices */
|
33902
|
+
unbondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33885
33903
|
}
|
33886
33904
|
|
33887
33905
|
/** Represents a ChillAndUnbond. */
|
@@ -33899,6 +33917,12 @@ export namespace TW {
|
|
33899
33917
|
/** ChillAndUnbond callIndices. */
|
33900
33918
|
public callIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33901
33919
|
|
33920
|
+
/** ChillAndUnbond chillCallIndices. */
|
33921
|
+
public chillCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33922
|
+
|
33923
|
+
/** ChillAndUnbond unbondCallIndices. */
|
33924
|
+
public unbondCallIndices?: (TW.Polkadot.Proto.ICallIndices|null);
|
33925
|
+
|
33902
33926
|
/**
|
33903
33927
|
* Creates a new ChillAndUnbond instance using the specified properties.
|
33904
33928
|
* @param [properties] Properties to set
|
@@ -99489,6 +99489,8 @@
|
|
99489
99489
|
* @property {TW.Polkadot.Proto.RewardDestination|null} [rewardDestination] BondAndNominate rewardDestination
|
99490
99490
|
* @property {Array.<string>|null} [nominators] BondAndNominate nominators
|
99491
99491
|
* @property {TW.Polkadot.Proto.ICallIndices|null} [callIndices] BondAndNominate callIndices
|
99492
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [bondCallIndices] BondAndNominate bondCallIndices
|
99493
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [nominateCallIndices] BondAndNominate nominateCallIndices
|
99492
99494
|
*/
|
99493
99495
|
|
99494
99496
|
/**
|
@@ -99547,6 +99549,22 @@
|
|
99547
99549
|
*/
|
99548
99550
|
BondAndNominate.prototype.callIndices = null;
|
99549
99551
|
|
99552
|
+
/**
|
99553
|
+
* BondAndNominate bondCallIndices.
|
99554
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} bondCallIndices
|
99555
|
+
* @memberof TW.Polkadot.Proto.Staking.BondAndNominate
|
99556
|
+
* @instance
|
99557
|
+
*/
|
99558
|
+
BondAndNominate.prototype.bondCallIndices = null;
|
99559
|
+
|
99560
|
+
/**
|
99561
|
+
* BondAndNominate nominateCallIndices.
|
99562
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} nominateCallIndices
|
99563
|
+
* @memberof TW.Polkadot.Proto.Staking.BondAndNominate
|
99564
|
+
* @instance
|
99565
|
+
*/
|
99566
|
+
BondAndNominate.prototype.nominateCallIndices = null;
|
99567
|
+
|
99550
99568
|
/**
|
99551
99569
|
* Creates a new BondAndNominate instance using the specified properties.
|
99552
99570
|
* @function create
|
@@ -99582,6 +99600,10 @@
|
|
99582
99600
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.nominators[i]);
|
99583
99601
|
if (message.callIndices != null && Object.hasOwnProperty.call(message, "callIndices"))
|
99584
99602
|
$root.TW.Polkadot.Proto.CallIndices.encode(message.callIndices, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
99603
|
+
if (message.bondCallIndices != null && Object.hasOwnProperty.call(message, "bondCallIndices"))
|
99604
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.bondCallIndices, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
99605
|
+
if (message.nominateCallIndices != null && Object.hasOwnProperty.call(message, "nominateCallIndices"))
|
99606
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.nominateCallIndices, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
99585
99607
|
return writer;
|
99586
99608
|
};
|
99587
99609
|
|
@@ -99620,6 +99642,12 @@
|
|
99620
99642
|
case 5:
|
99621
99643
|
message.callIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
99622
99644
|
break;
|
99645
|
+
case 6:
|
99646
|
+
message.bondCallIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
99647
|
+
break;
|
99648
|
+
case 7:
|
99649
|
+
message.nominateCallIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
99650
|
+
break;
|
99623
99651
|
default:
|
99624
99652
|
reader.skipType(tag & 7);
|
99625
99653
|
break;
|
@@ -99666,6 +99694,16 @@
|
|
99666
99694
|
if (error)
|
99667
99695
|
return "callIndices." + error;
|
99668
99696
|
}
|
99697
|
+
if (message.bondCallIndices != null && message.hasOwnProperty("bondCallIndices")) {
|
99698
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.bondCallIndices);
|
99699
|
+
if (error)
|
99700
|
+
return "bondCallIndices." + error;
|
99701
|
+
}
|
99702
|
+
if (message.nominateCallIndices != null && message.hasOwnProperty("nominateCallIndices")) {
|
99703
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.nominateCallIndices);
|
99704
|
+
if (error)
|
99705
|
+
return "nominateCallIndices." + error;
|
99706
|
+
}
|
99669
99707
|
return null;
|
99670
99708
|
};
|
99671
99709
|
|
@@ -99714,6 +99752,16 @@
|
|
99714
99752
|
throw TypeError(".TW.Polkadot.Proto.Staking.BondAndNominate.callIndices: object expected");
|
99715
99753
|
message.callIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.callIndices);
|
99716
99754
|
}
|
99755
|
+
if (object.bondCallIndices != null) {
|
99756
|
+
if (typeof object.bondCallIndices !== "object")
|
99757
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.BondAndNominate.bondCallIndices: object expected");
|
99758
|
+
message.bondCallIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.bondCallIndices);
|
99759
|
+
}
|
99760
|
+
if (object.nominateCallIndices != null) {
|
99761
|
+
if (typeof object.nominateCallIndices !== "object")
|
99762
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.BondAndNominate.nominateCallIndices: object expected");
|
99763
|
+
message.nominateCallIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.nominateCallIndices);
|
99764
|
+
}
|
99717
99765
|
return message;
|
99718
99766
|
};
|
99719
99767
|
|
@@ -99743,6 +99791,8 @@
|
|
99743
99791
|
}
|
99744
99792
|
object.rewardDestination = options.enums === String ? "STAKED" : 0;
|
99745
99793
|
object.callIndices = null;
|
99794
|
+
object.bondCallIndices = null;
|
99795
|
+
object.nominateCallIndices = null;
|
99746
99796
|
}
|
99747
99797
|
if (message.controller != null && message.hasOwnProperty("controller"))
|
99748
99798
|
object.controller = message.controller;
|
@@ -99757,6 +99807,10 @@
|
|
99757
99807
|
}
|
99758
99808
|
if (message.callIndices != null && message.hasOwnProperty("callIndices"))
|
99759
99809
|
object.callIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.callIndices, options);
|
99810
|
+
if (message.bondCallIndices != null && message.hasOwnProperty("bondCallIndices"))
|
99811
|
+
object.bondCallIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.bondCallIndices, options);
|
99812
|
+
if (message.nominateCallIndices != null && message.hasOwnProperty("nominateCallIndices"))
|
99813
|
+
object.nominateCallIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.nominateCallIndices, options);
|
99760
99814
|
return object;
|
99761
99815
|
};
|
99762
99816
|
|
@@ -100755,6 +100809,8 @@
|
|
100755
100809
|
* @interface IChillAndUnbond
|
100756
100810
|
* @property {Uint8Array|null} [value] ChillAndUnbond value
|
100757
100811
|
* @property {TW.Polkadot.Proto.ICallIndices|null} [callIndices] ChillAndUnbond callIndices
|
100812
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [chillCallIndices] ChillAndUnbond chillCallIndices
|
100813
|
+
* @property {TW.Polkadot.Proto.ICallIndices|null} [unbondCallIndices] ChillAndUnbond unbondCallIndices
|
100758
100814
|
*/
|
100759
100815
|
|
100760
100816
|
/**
|
@@ -100788,6 +100844,22 @@
|
|
100788
100844
|
*/
|
100789
100845
|
ChillAndUnbond.prototype.callIndices = null;
|
100790
100846
|
|
100847
|
+
/**
|
100848
|
+
* ChillAndUnbond chillCallIndices.
|
100849
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} chillCallIndices
|
100850
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
100851
|
+
* @instance
|
100852
|
+
*/
|
100853
|
+
ChillAndUnbond.prototype.chillCallIndices = null;
|
100854
|
+
|
100855
|
+
/**
|
100856
|
+
* ChillAndUnbond unbondCallIndices.
|
100857
|
+
* @member {TW.Polkadot.Proto.ICallIndices|null|undefined} unbondCallIndices
|
100858
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
100859
|
+
* @instance
|
100860
|
+
*/
|
100861
|
+
ChillAndUnbond.prototype.unbondCallIndices = null;
|
100862
|
+
|
100791
100863
|
/**
|
100792
100864
|
* Creates a new ChillAndUnbond instance using the specified properties.
|
100793
100865
|
* @function create
|
@@ -100816,6 +100888,10 @@
|
|
100816
100888
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
100817
100889
|
if (message.callIndices != null && Object.hasOwnProperty.call(message, "callIndices"))
|
100818
100890
|
$root.TW.Polkadot.Proto.CallIndices.encode(message.callIndices, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
100891
|
+
if (message.chillCallIndices != null && Object.hasOwnProperty.call(message, "chillCallIndices"))
|
100892
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.chillCallIndices, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
100893
|
+
if (message.unbondCallIndices != null && Object.hasOwnProperty.call(message, "unbondCallIndices"))
|
100894
|
+
$root.TW.Polkadot.Proto.CallIndices.encode(message.unbondCallIndices, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
100819
100895
|
return writer;
|
100820
100896
|
};
|
100821
100897
|
|
@@ -100843,6 +100919,12 @@
|
|
100843
100919
|
case 2:
|
100844
100920
|
message.callIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
100845
100921
|
break;
|
100922
|
+
case 3:
|
100923
|
+
message.chillCallIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
100924
|
+
break;
|
100925
|
+
case 4:
|
100926
|
+
message.unbondCallIndices = $root.TW.Polkadot.Proto.CallIndices.decode(reader, reader.uint32());
|
100927
|
+
break;
|
100846
100928
|
default:
|
100847
100929
|
reader.skipType(tag & 7);
|
100848
100930
|
break;
|
@@ -100870,6 +100952,16 @@
|
|
100870
100952
|
if (error)
|
100871
100953
|
return "callIndices." + error;
|
100872
100954
|
}
|
100955
|
+
if (message.chillCallIndices != null && message.hasOwnProperty("chillCallIndices")) {
|
100956
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.chillCallIndices);
|
100957
|
+
if (error)
|
100958
|
+
return "chillCallIndices." + error;
|
100959
|
+
}
|
100960
|
+
if (message.unbondCallIndices != null && message.hasOwnProperty("unbondCallIndices")) {
|
100961
|
+
var error = $root.TW.Polkadot.Proto.CallIndices.verify(message.unbondCallIndices);
|
100962
|
+
if (error)
|
100963
|
+
return "unbondCallIndices." + error;
|
100964
|
+
}
|
100873
100965
|
return null;
|
100874
100966
|
};
|
100875
100967
|
|
@@ -100895,6 +100987,16 @@
|
|
100895
100987
|
throw TypeError(".TW.Polkadot.Proto.Staking.ChillAndUnbond.callIndices: object expected");
|
100896
100988
|
message.callIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.callIndices);
|
100897
100989
|
}
|
100990
|
+
if (object.chillCallIndices != null) {
|
100991
|
+
if (typeof object.chillCallIndices !== "object")
|
100992
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.ChillAndUnbond.chillCallIndices: object expected");
|
100993
|
+
message.chillCallIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.chillCallIndices);
|
100994
|
+
}
|
100995
|
+
if (object.unbondCallIndices != null) {
|
100996
|
+
if (typeof object.unbondCallIndices !== "object")
|
100997
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.ChillAndUnbond.unbondCallIndices: object expected");
|
100998
|
+
message.unbondCallIndices = $root.TW.Polkadot.Proto.CallIndices.fromObject(object.unbondCallIndices);
|
100999
|
+
}
|
100898
101000
|
return message;
|
100899
101001
|
};
|
100900
101002
|
|
@@ -100920,11 +101022,17 @@
|
|
100920
101022
|
object.value = $util.newBuffer(object.value);
|
100921
101023
|
}
|
100922
101024
|
object.callIndices = null;
|
101025
|
+
object.chillCallIndices = null;
|
101026
|
+
object.unbondCallIndices = null;
|
100923
101027
|
}
|
100924
101028
|
if (message.value != null && message.hasOwnProperty("value"))
|
100925
101029
|
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;
|
100926
101030
|
if (message.callIndices != null && message.hasOwnProperty("callIndices"))
|
100927
101031
|
object.callIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.callIndices, options);
|
101032
|
+
if (message.chillCallIndices != null && message.hasOwnProperty("chillCallIndices"))
|
101033
|
+
object.chillCallIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.chillCallIndices, options);
|
101034
|
+
if (message.unbondCallIndices != null && message.hasOwnProperty("unbondCallIndices"))
|
101035
|
+
object.unbondCallIndices = $root.TW.Polkadot.Proto.CallIndices.toObject(message.unbondCallIndices, options);
|
100928
101036
|
return object;
|
100929
101037
|
};
|
100930
101038
|
|
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={2087316:()=>{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";}}},2088038:()=>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,6 +911,7 @@ export class SolanaTransaction {
|
|
911
911
|
static getComputeUnitLimit(encodedTx: string): string;
|
912
912
|
static setComputeUnitPrice(encodedTx: string, price: string): string;
|
913
913
|
static setComputeUnitLimit(encodedTx: string, limit: string): string;
|
914
|
+
static setFeePayer(encodedTx: string, feePayer: string): string;
|
914
915
|
}
|
915
916
|
export class StarkExMessageSigner {
|
916
917
|
static signMessage(privateKey: PrivateKey, message: string): string;
|