@trustwallet/wallet-core 4.1.15 → 4.1.16
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.
@@ -43679,6 +43679,9 @@ export namespace TW {
|
|
43679
43679
|
/** Transaction feeLimit */
|
43680
43680
|
feeLimit?: (Long|null);
|
43681
43681
|
|
43682
|
+
/** Transaction memo */
|
43683
|
+
memo?: (string|null);
|
43684
|
+
|
43682
43685
|
/** Transaction transfer */
|
43683
43686
|
transfer?: (TW.Tron.Proto.ITransferContract|null);
|
43684
43687
|
|
@@ -43746,6 +43749,9 @@ export namespace TW {
|
|
43746
43749
|
/** Transaction feeLimit. */
|
43747
43750
|
public feeLimit: Long;
|
43748
43751
|
|
43752
|
+
/** Transaction memo. */
|
43753
|
+
public memo: string;
|
43754
|
+
|
43749
43755
|
/** Transaction transfer. */
|
43750
43756
|
public transfer?: (TW.Tron.Proto.ITransferContract|null);
|
43751
43757
|
|
@@ -128934,6 +128934,7 @@
|
|
128934
128934
|
* @property {Long|null} [expiration] Transaction expiration
|
128935
128935
|
* @property {TW.Tron.Proto.IBlockHeader|null} [blockHeader] Transaction blockHeader
|
128936
128936
|
* @property {Long|null} [feeLimit] Transaction feeLimit
|
128937
|
+
* @property {string|null} [memo] Transaction memo
|
128937
128938
|
* @property {TW.Tron.Proto.ITransferContract|null} [transfer] Transaction transfer
|
128938
128939
|
* @property {TW.Tron.Proto.ITransferAssetContract|null} [transferAsset] Transaction transferAsset
|
128939
128940
|
* @property {TW.Tron.Proto.IFreezeBalanceContract|null} [freezeBalance] Transaction freezeBalance
|
@@ -128998,6 +128999,14 @@
|
|
128998
128999
|
*/
|
128999
129000
|
Transaction.prototype.feeLimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
129000
129001
|
|
129002
|
+
/**
|
129003
|
+
* Transaction memo.
|
129004
|
+
* @member {string} memo
|
129005
|
+
* @memberof TW.Tron.Proto.Transaction
|
129006
|
+
* @instance
|
129007
|
+
*/
|
129008
|
+
Transaction.prototype.memo = "";
|
129009
|
+
|
129001
129010
|
/**
|
129002
129011
|
* Transaction transfer.
|
129003
129012
|
* @member {TW.Tron.Proto.ITransferContract|null|undefined} transfer
|
@@ -129164,6 +129173,8 @@
|
|
129164
129173
|
$root.TW.Tron.Proto.BlockHeader.encode(message.blockHeader, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
129165
129174
|
if (message.feeLimit != null && Object.hasOwnProperty.call(message, "feeLimit"))
|
129166
129175
|
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.feeLimit);
|
129176
|
+
if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
|
129177
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo);
|
129167
129178
|
if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer"))
|
129168
129179
|
$root.TW.Tron.Proto.TransferContract.encode(message.transfer, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
129169
129180
|
if (message.transferAsset != null && Object.hasOwnProperty.call(message, "transferAsset"))
|
@@ -129227,6 +129238,9 @@
|
|
129227
129238
|
case 4:
|
129228
129239
|
message.feeLimit = reader.int64();
|
129229
129240
|
break;
|
129241
|
+
case 5:
|
129242
|
+
message.memo = reader.string();
|
129243
|
+
break;
|
129230
129244
|
case 10:
|
129231
129245
|
message.transfer = $root.TW.Tron.Proto.TransferContract.decode(reader, reader.uint32());
|
129232
129246
|
break;
|
@@ -129306,6 +129320,9 @@
|
|
129306
129320
|
if (message.feeLimit != null && message.hasOwnProperty("feeLimit"))
|
129307
129321
|
if (!$util.isInteger(message.feeLimit) && !(message.feeLimit && $util.isInteger(message.feeLimit.low) && $util.isInteger(message.feeLimit.high)))
|
129308
129322
|
return "feeLimit: integer|Long expected";
|
129323
|
+
if (message.memo != null && message.hasOwnProperty("memo"))
|
129324
|
+
if (!$util.isString(message.memo))
|
129325
|
+
return "memo: string expected";
|
129309
129326
|
if (message.transfer != null && message.hasOwnProperty("transfer")) {
|
129310
129327
|
properties.contractOneof = 1;
|
129311
129328
|
{
|
@@ -129501,6 +129518,8 @@
|
|
129501
129518
|
message.feeLimit = object.feeLimit;
|
129502
129519
|
else if (typeof object.feeLimit === "object")
|
129503
129520
|
message.feeLimit = new $util.LongBits(object.feeLimit.low >>> 0, object.feeLimit.high >>> 0).toNumber();
|
129521
|
+
if (object.memo != null)
|
129522
|
+
message.memo = String(object.memo);
|
129504
129523
|
if (object.transfer != null) {
|
129505
129524
|
if (typeof object.transfer !== "object")
|
129506
129525
|
throw TypeError(".TW.Tron.Proto.Transaction.transfer: object expected");
|
@@ -129609,6 +129628,7 @@
|
|
129609
129628
|
object.feeLimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
129610
129629
|
} else
|
129611
129630
|
object.feeLimit = options.longs === String ? "0" : 0;
|
129631
|
+
object.memo = "";
|
129612
129632
|
}
|
129613
129633
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
129614
129634
|
if (typeof message.timestamp === "number")
|
@@ -129627,6 +129647,8 @@
|
|
129627
129647
|
object.feeLimit = options.longs === String ? String(message.feeLimit) : message.feeLimit;
|
129628
129648
|
else
|
129629
129649
|
object.feeLimit = options.longs === String ? $util.Long.prototype.toString.call(message.feeLimit) : options.longs === Number ? new $util.LongBits(message.feeLimit.low >>> 0, message.feeLimit.high >>> 0).toNumber() : message.feeLimit;
|
129650
|
+
if (message.memo != null && message.hasOwnProperty("memo"))
|
129651
|
+
object.memo = message.memo;
|
129630
129652
|
if (message.transfer != null && message.hasOwnProperty("transfer")) {
|
129631
129653
|
object.transfer = $root.TW.Tron.Proto.TransferContract.toObject(message.transfer, options);
|
129632
129654
|
if (options.oneofs)
|
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={2083028:()=>{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";}}},2083750:()=>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
|