@trustwallet/wallet-core 4.3.17 → 4.3.19
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
|
|
@@ -41296,8 +41308,8 @@ export namespace TW {
|
|
|
41296
41308
|
/** TokenTransferToFeePayer feeTokenMintAddress */
|
|
41297
41309
|
feeTokenMintAddress?: (string|null);
|
|
41298
41310
|
|
|
41299
|
-
/** TokenTransferToFeePayer
|
|
41300
|
-
|
|
41311
|
+
/** TokenTransferToFeePayer feeRecipientTokenAddress */
|
|
41312
|
+
feeRecipientTokenAddress?: (string|null);
|
|
41301
41313
|
|
|
41302
41314
|
/** TokenTransferToFeePayer feeAmount */
|
|
41303
41315
|
feeAmount?: (Long|null);
|
|
@@ -41324,8 +41336,8 @@ export namespace TW {
|
|
|
41324
41336
|
/** TokenTransferToFeePayer feeTokenMintAddress. */
|
|
41325
41337
|
public feeTokenMintAddress: string;
|
|
41326
41338
|
|
|
41327
|
-
/** TokenTransferToFeePayer
|
|
41328
|
-
public
|
|
41339
|
+
/** TokenTransferToFeePayer feeRecipientTokenAddress. */
|
|
41340
|
+
public feeRecipientTokenAddress: string;
|
|
41329
41341
|
|
|
41330
41342
|
/** TokenTransferToFeePayer feeAmount. */
|
|
41331
41343
|
public feeAmount: Long;
|
|
@@ -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
|
|
|
@@ -121421,7 +121465,7 @@
|
|
|
121421
121465
|
* @memberof TW.Solana.Proto
|
|
121422
121466
|
* @interface ITokenTransferToFeePayer
|
|
121423
121467
|
* @property {string|null} [feeTokenMintAddress] TokenTransferToFeePayer feeTokenMintAddress
|
|
121424
|
-
* @property {string|null} [
|
|
121468
|
+
* @property {string|null} [feeRecipientTokenAddress] TokenTransferToFeePayer feeRecipientTokenAddress
|
|
121425
121469
|
* @property {Long|null} [feeAmount] TokenTransferToFeePayer feeAmount
|
|
121426
121470
|
* @property {string|null} [feeSenderTokenAddress] TokenTransferToFeePayer feeSenderTokenAddress
|
|
121427
121471
|
* @property {number|null} [feeDecimals] TokenTransferToFeePayer feeDecimals
|
|
@@ -121452,12 +121496,12 @@
|
|
|
121452
121496
|
TokenTransferToFeePayer.prototype.feeTokenMintAddress = "";
|
|
121453
121497
|
|
|
121454
121498
|
/**
|
|
121455
|
-
* TokenTransferToFeePayer
|
|
121456
|
-
* @member {string}
|
|
121499
|
+
* TokenTransferToFeePayer feeRecipientTokenAddress.
|
|
121500
|
+
* @member {string} feeRecipientTokenAddress
|
|
121457
121501
|
* @memberof TW.Solana.Proto.TokenTransferToFeePayer
|
|
121458
121502
|
* @instance
|
|
121459
121503
|
*/
|
|
121460
|
-
TokenTransferToFeePayer.prototype.
|
|
121504
|
+
TokenTransferToFeePayer.prototype.feeRecipientTokenAddress = "";
|
|
121461
121505
|
|
|
121462
121506
|
/**
|
|
121463
121507
|
* TokenTransferToFeePayer feeAmount.
|
|
@@ -121517,8 +121561,8 @@
|
|
|
121517
121561
|
writer = $Writer.create();
|
|
121518
121562
|
if (message.feeTokenMintAddress != null && Object.hasOwnProperty.call(message, "feeTokenMintAddress"))
|
|
121519
121563
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.feeTokenMintAddress);
|
|
121520
|
-
if (message.
|
|
121521
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
121564
|
+
if (message.feeRecipientTokenAddress != null && Object.hasOwnProperty.call(message, "feeRecipientTokenAddress"))
|
|
121565
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.feeRecipientTokenAddress);
|
|
121522
121566
|
if (message.feeAmount != null && Object.hasOwnProperty.call(message, "feeAmount"))
|
|
121523
121567
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.feeAmount);
|
|
121524
121568
|
if (message.feeSenderTokenAddress != null && Object.hasOwnProperty.call(message, "feeSenderTokenAddress"))
|
|
@@ -121552,7 +121596,7 @@
|
|
|
121552
121596
|
message.feeTokenMintAddress = reader.string();
|
|
121553
121597
|
break;
|
|
121554
121598
|
case 2:
|
|
121555
|
-
message.
|
|
121599
|
+
message.feeRecipientTokenAddress = reader.string();
|
|
121556
121600
|
break;
|
|
121557
121601
|
case 3:
|
|
121558
121602
|
message.feeAmount = reader.uint64();
|
|
@@ -121588,9 +121632,9 @@
|
|
|
121588
121632
|
if (message.feeTokenMintAddress != null && message.hasOwnProperty("feeTokenMintAddress"))
|
|
121589
121633
|
if (!$util.isString(message.feeTokenMintAddress))
|
|
121590
121634
|
return "feeTokenMintAddress: string expected";
|
|
121591
|
-
if (message.
|
|
121592
|
-
if (!$util.isString(message.
|
|
121593
|
-
return "
|
|
121635
|
+
if (message.feeRecipientTokenAddress != null && message.hasOwnProperty("feeRecipientTokenAddress"))
|
|
121636
|
+
if (!$util.isString(message.feeRecipientTokenAddress))
|
|
121637
|
+
return "feeRecipientTokenAddress: string expected";
|
|
121594
121638
|
if (message.feeAmount != null && message.hasOwnProperty("feeAmount"))
|
|
121595
121639
|
if (!$util.isInteger(message.feeAmount) && !(message.feeAmount && $util.isInteger(message.feeAmount.low) && $util.isInteger(message.feeAmount.high)))
|
|
121596
121640
|
return "feeAmount: integer|Long expected";
|
|
@@ -121625,8 +121669,8 @@
|
|
|
121625
121669
|
var message = new $root.TW.Solana.Proto.TokenTransferToFeePayer();
|
|
121626
121670
|
if (object.feeTokenMintAddress != null)
|
|
121627
121671
|
message.feeTokenMintAddress = String(object.feeTokenMintAddress);
|
|
121628
|
-
if (object.
|
|
121629
|
-
message.
|
|
121672
|
+
if (object.feeRecipientTokenAddress != null)
|
|
121673
|
+
message.feeRecipientTokenAddress = String(object.feeRecipientTokenAddress);
|
|
121630
121674
|
if (object.feeAmount != null)
|
|
121631
121675
|
if ($util.Long)
|
|
121632
121676
|
(message.feeAmount = $util.Long.fromValue(object.feeAmount)).unsigned = true;
|
|
@@ -121668,7 +121712,7 @@
|
|
|
121668
121712
|
var object = {};
|
|
121669
121713
|
if (options.defaults) {
|
|
121670
121714
|
object.feeTokenMintAddress = "";
|
|
121671
|
-
object.
|
|
121715
|
+
object.feeRecipientTokenAddress = "";
|
|
121672
121716
|
if ($util.Long) {
|
|
121673
121717
|
var long = new $util.Long(0, 0, true);
|
|
121674
121718
|
object.feeAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -121680,8 +121724,8 @@
|
|
|
121680
121724
|
}
|
|
121681
121725
|
if (message.feeTokenMintAddress != null && message.hasOwnProperty("feeTokenMintAddress"))
|
|
121682
121726
|
object.feeTokenMintAddress = message.feeTokenMintAddress;
|
|
121683
|
-
if (message.
|
|
121684
|
-
object.
|
|
121727
|
+
if (message.feeRecipientTokenAddress != null && message.hasOwnProperty("feeRecipientTokenAddress"))
|
|
121728
|
+
object.feeRecipientTokenAddress = message.feeRecipientTokenAddress;
|
|
121685
121729
|
if (message.feeAmount != null && message.hasOwnProperty("feeAmount"))
|
|
121686
121730
|
if (typeof message.feeAmount === "number")
|
|
121687
121731
|
object.feeAmount = options.longs === String ? String(message.feeAmount) : message.feeAmount;
|
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
|