@trustwallet/wallet-core 4.3.18 → 4.3.20
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.
|
@@ -12306,6 +12306,12 @@ export namespace TW {
|
|
|
12306
12306
|
|
|
12307
12307
|
/** THORChainAsset synth */
|
|
12308
12308
|
synth?: (boolean|null);
|
|
12309
|
+
|
|
12310
|
+
/** THORChainAsset trade */
|
|
12311
|
+
trade?: (boolean|null);
|
|
12312
|
+
|
|
12313
|
+
/** THORChainAsset secured */
|
|
12314
|
+
secured?: (boolean|null);
|
|
12309
12315
|
}
|
|
12310
12316
|
|
|
12311
12317
|
/** Represents a THORChainAsset. */
|
|
@@ -12329,6 +12335,12 @@ export namespace TW {
|
|
|
12329
12335
|
/** THORChainAsset synth. */
|
|
12330
12336
|
public synth: boolean;
|
|
12331
12337
|
|
|
12338
|
+
/** THORChainAsset trade. */
|
|
12339
|
+
public trade: boolean;
|
|
12340
|
+
|
|
12341
|
+
/** THORChainAsset secured. */
|
|
12342
|
+
public secured: boolean;
|
|
12343
|
+
|
|
12332
12344
|
/**
|
|
12333
12345
|
* Creates a new THORChainAsset instance using the specified properties.
|
|
12334
12346
|
* @param [properties] Properties to set
|
|
@@ -36718,6 +36730,9 @@ export namespace TW {
|
|
|
36718
36730
|
/** SigningInput multiAddress */
|
|
36719
36731
|
multiAddress?: (boolean|null);
|
|
36720
36732
|
|
|
36733
|
+
/** SigningInput chargeNativeAsAssetTxPayment */
|
|
36734
|
+
chargeNativeAsAssetTxPayment?: (boolean|null);
|
|
36735
|
+
|
|
36721
36736
|
/** SigningInput balanceCall */
|
|
36722
36737
|
balanceCall?: (TW.Polkadot.Proto.IBalance|null);
|
|
36723
36738
|
|
|
@@ -36764,6 +36779,9 @@ export namespace TW {
|
|
|
36764
36779
|
/** SigningInput multiAddress. */
|
|
36765
36780
|
public multiAddress: boolean;
|
|
36766
36781
|
|
|
36782
|
+
/** SigningInput chargeNativeAsAssetTxPayment. */
|
|
36783
|
+
public chargeNativeAsAssetTxPayment: boolean;
|
|
36784
|
+
|
|
36767
36785
|
/** SigningInput balanceCall. */
|
|
36768
36786
|
public balanceCall?: (TW.Polkadot.Proto.IBalance|null);
|
|
36769
36787
|
|
|
@@ -36909,6 +36909,8 @@
|
|
|
36909
36909
|
* @property {string|null} [symbol] THORChainAsset symbol
|
|
36910
36910
|
* @property {string|null} [ticker] THORChainAsset ticker
|
|
36911
36911
|
* @property {boolean|null} [synth] THORChainAsset synth
|
|
36912
|
+
* @property {boolean|null} [trade] THORChainAsset trade
|
|
36913
|
+
* @property {boolean|null} [secured] THORChainAsset secured
|
|
36912
36914
|
*/
|
|
36913
36915
|
|
|
36914
36916
|
/**
|
|
@@ -36958,6 +36960,22 @@
|
|
|
36958
36960
|
*/
|
|
36959
36961
|
THORChainAsset.prototype.synth = false;
|
|
36960
36962
|
|
|
36963
|
+
/**
|
|
36964
|
+
* THORChainAsset trade.
|
|
36965
|
+
* @member {boolean} trade
|
|
36966
|
+
* @memberof TW.Cosmos.Proto.THORChainAsset
|
|
36967
|
+
* @instance
|
|
36968
|
+
*/
|
|
36969
|
+
THORChainAsset.prototype.trade = false;
|
|
36970
|
+
|
|
36971
|
+
/**
|
|
36972
|
+
* THORChainAsset secured.
|
|
36973
|
+
* @member {boolean} secured
|
|
36974
|
+
* @memberof TW.Cosmos.Proto.THORChainAsset
|
|
36975
|
+
* @instance
|
|
36976
|
+
*/
|
|
36977
|
+
THORChainAsset.prototype.secured = false;
|
|
36978
|
+
|
|
36961
36979
|
/**
|
|
36962
36980
|
* Creates a new THORChainAsset instance using the specified properties.
|
|
36963
36981
|
* @function create
|
|
@@ -36990,6 +37008,10 @@
|
|
|
36990
37008
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.ticker);
|
|
36991
37009
|
if (message.synth != null && Object.hasOwnProperty.call(message, "synth"))
|
|
36992
37010
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.synth);
|
|
37011
|
+
if (message.trade != null && Object.hasOwnProperty.call(message, "trade"))
|
|
37012
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.trade);
|
|
37013
|
+
if (message.secured != null && Object.hasOwnProperty.call(message, "secured"))
|
|
37014
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.secured);
|
|
36993
37015
|
return writer;
|
|
36994
37016
|
};
|
|
36995
37017
|
|
|
@@ -37023,6 +37045,12 @@
|
|
|
37023
37045
|
case 4:
|
|
37024
37046
|
message.synth = reader.bool();
|
|
37025
37047
|
break;
|
|
37048
|
+
case 5:
|
|
37049
|
+
message.trade = reader.bool();
|
|
37050
|
+
break;
|
|
37051
|
+
case 6:
|
|
37052
|
+
message.secured = reader.bool();
|
|
37053
|
+
break;
|
|
37026
37054
|
default:
|
|
37027
37055
|
reader.skipType(tag & 7);
|
|
37028
37056
|
break;
|
|
@@ -37054,6 +37082,12 @@
|
|
|
37054
37082
|
if (message.synth != null && message.hasOwnProperty("synth"))
|
|
37055
37083
|
if (typeof message.synth !== "boolean")
|
|
37056
37084
|
return "synth: boolean expected";
|
|
37085
|
+
if (message.trade != null && message.hasOwnProperty("trade"))
|
|
37086
|
+
if (typeof message.trade !== "boolean")
|
|
37087
|
+
return "trade: boolean expected";
|
|
37088
|
+
if (message.secured != null && message.hasOwnProperty("secured"))
|
|
37089
|
+
if (typeof message.secured !== "boolean")
|
|
37090
|
+
return "secured: boolean expected";
|
|
37057
37091
|
return null;
|
|
37058
37092
|
};
|
|
37059
37093
|
|
|
@@ -37077,6 +37111,10 @@
|
|
|
37077
37111
|
message.ticker = String(object.ticker);
|
|
37078
37112
|
if (object.synth != null)
|
|
37079
37113
|
message.synth = Boolean(object.synth);
|
|
37114
|
+
if (object.trade != null)
|
|
37115
|
+
message.trade = Boolean(object.trade);
|
|
37116
|
+
if (object.secured != null)
|
|
37117
|
+
message.secured = Boolean(object.secured);
|
|
37080
37118
|
return message;
|
|
37081
37119
|
};
|
|
37082
37120
|
|
|
@@ -37098,6 +37136,8 @@
|
|
|
37098
37136
|
object.symbol = "";
|
|
37099
37137
|
object.ticker = "";
|
|
37100
37138
|
object.synth = false;
|
|
37139
|
+
object.trade = false;
|
|
37140
|
+
object.secured = false;
|
|
37101
37141
|
}
|
|
37102
37142
|
if (message.chain != null && message.hasOwnProperty("chain"))
|
|
37103
37143
|
object.chain = message.chain;
|
|
@@ -37107,6 +37147,10 @@
|
|
|
37107
37147
|
object.ticker = message.ticker;
|
|
37108
37148
|
if (message.synth != null && message.hasOwnProperty("synth"))
|
|
37109
37149
|
object.synth = message.synth;
|
|
37150
|
+
if (message.trade != null && message.hasOwnProperty("trade"))
|
|
37151
|
+
object.trade = message.trade;
|
|
37152
|
+
if (message.secured != null && message.hasOwnProperty("secured"))
|
|
37153
|
+
object.secured = message.secured;
|
|
37110
37154
|
return object;
|
|
37111
37155
|
};
|
|
37112
37156
|
|
|
@@ -108627,6 +108671,7 @@
|
|
|
108627
108671
|
* @property {Uint8Array|null} [privateKey] SigningInput privateKey
|
|
108628
108672
|
* @property {number|null} [network] SigningInput network
|
|
108629
108673
|
* @property {boolean|null} [multiAddress] SigningInput multiAddress
|
|
108674
|
+
* @property {boolean|null} [chargeNativeAsAssetTxPayment] SigningInput chargeNativeAsAssetTxPayment
|
|
108630
108675
|
* @property {TW.Polkadot.Proto.IBalance|null} [balanceCall] SigningInput balanceCall
|
|
108631
108676
|
* @property {TW.Polkadot.Proto.IStaking|null} [stakingCall] SigningInput stakingCall
|
|
108632
108677
|
*/
|
|
@@ -108726,6 +108771,14 @@
|
|
|
108726
108771
|
*/
|
|
108727
108772
|
SigningInput.prototype.multiAddress = false;
|
|
108728
108773
|
|
|
108774
|
+
/**
|
|
108775
|
+
* SigningInput chargeNativeAsAssetTxPayment.
|
|
108776
|
+
* @member {boolean} chargeNativeAsAssetTxPayment
|
|
108777
|
+
* @memberof TW.Polkadot.Proto.SigningInput
|
|
108778
|
+
* @instance
|
|
108779
|
+
*/
|
|
108780
|
+
SigningInput.prototype.chargeNativeAsAssetTxPayment = false;
|
|
108781
|
+
|
|
108729
108782
|
/**
|
|
108730
108783
|
* SigningInput balanceCall.
|
|
108731
108784
|
* @member {TW.Polkadot.Proto.IBalance|null|undefined} balanceCall
|
|
@@ -108804,6 +108857,8 @@
|
|
|
108804
108857
|
$root.TW.Polkadot.Proto.Balance.encode(message.balanceCall, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
108805
108858
|
if (message.stakingCall != null && Object.hasOwnProperty.call(message, "stakingCall"))
|
|
108806
108859
|
$root.TW.Polkadot.Proto.Staking.encode(message.stakingCall, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
108860
|
+
if (message.chargeNativeAsAssetTxPayment != null && Object.hasOwnProperty.call(message, "chargeNativeAsAssetTxPayment"))
|
|
108861
|
+
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.chargeNativeAsAssetTxPayment);
|
|
108807
108862
|
return writer;
|
|
108808
108863
|
};
|
|
108809
108864
|
|
|
@@ -108855,6 +108910,9 @@
|
|
|
108855
108910
|
case 10:
|
|
108856
108911
|
message.multiAddress = reader.bool();
|
|
108857
108912
|
break;
|
|
108913
|
+
case 13:
|
|
108914
|
+
message.chargeNativeAsAssetTxPayment = reader.bool();
|
|
108915
|
+
break;
|
|
108858
108916
|
case 11:
|
|
108859
108917
|
message.balanceCall = $root.TW.Polkadot.Proto.Balance.decode(reader, reader.uint32());
|
|
108860
108918
|
break;
|
|
@@ -108913,6 +108971,9 @@
|
|
|
108913
108971
|
if (message.multiAddress != null && message.hasOwnProperty("multiAddress"))
|
|
108914
108972
|
if (typeof message.multiAddress !== "boolean")
|
|
108915
108973
|
return "multiAddress: boolean expected";
|
|
108974
|
+
if (message.chargeNativeAsAssetTxPayment != null && message.hasOwnProperty("chargeNativeAsAssetTxPayment"))
|
|
108975
|
+
if (typeof message.chargeNativeAsAssetTxPayment !== "boolean")
|
|
108976
|
+
return "chargeNativeAsAssetTxPayment: boolean expected";
|
|
108916
108977
|
if (message.balanceCall != null && message.hasOwnProperty("balanceCall")) {
|
|
108917
108978
|
properties.messageOneof = 1;
|
|
108918
108979
|
{
|
|
@@ -108988,6 +109049,8 @@
|
|
|
108988
109049
|
message.network = object.network >>> 0;
|
|
108989
109050
|
if (object.multiAddress != null)
|
|
108990
109051
|
message.multiAddress = Boolean(object.multiAddress);
|
|
109052
|
+
if (object.chargeNativeAsAssetTxPayment != null)
|
|
109053
|
+
message.chargeNativeAsAssetTxPayment = Boolean(object.chargeNativeAsAssetTxPayment);
|
|
108991
109054
|
if (object.balanceCall != null) {
|
|
108992
109055
|
if (typeof object.balanceCall !== "object")
|
|
108993
109056
|
throw TypeError(".TW.Polkadot.Proto.SigningInput.balanceCall: object expected");
|
|
@@ -109053,6 +109116,7 @@
|
|
|
109053
109116
|
}
|
|
109054
109117
|
object.network = 0;
|
|
109055
109118
|
object.multiAddress = false;
|
|
109119
|
+
object.chargeNativeAsAssetTxPayment = false;
|
|
109056
109120
|
}
|
|
109057
109121
|
if (message.blockHash != null && message.hasOwnProperty("blockHash"))
|
|
109058
109122
|
object.blockHash = options.bytes === String ? $util.base64.encode(message.blockHash, 0, message.blockHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.blockHash) : message.blockHash;
|
|
@@ -109087,6 +109151,8 @@
|
|
|
109087
109151
|
if (options.oneofs)
|
|
109088
109152
|
object.messageOneof = "stakingCall";
|
|
109089
109153
|
}
|
|
109154
|
+
if (message.chargeNativeAsAssetTxPayment != null && message.hasOwnProperty("chargeNativeAsAssetTxPayment"))
|
|
109155
|
+
object.chargeNativeAsAssetTxPayment = message.chargeNativeAsAssetTxPayment;
|
|
109090
109156
|
return object;
|
|
109091
109157
|
};
|
|
109092
109158
|
|
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={2211956:()=>{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";}}},2212678:()=>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
|