@trustwallet/wallet-core 4.2.5 → 4.2.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.
@@ -27307,6 +27307,9 @@ export namespace TW {
|
|
27307
27307
|
|
27308
27308
|
/** Accounts guardian */
|
27309
27309
|
guardian?: (string|null);
|
27310
|
+
|
27311
|
+
/** Accounts relayer */
|
27312
|
+
relayer?: (string|null);
|
27310
27313
|
}
|
27311
27314
|
|
27312
27315
|
/** Represents an Accounts. */
|
@@ -27336,6 +27339,9 @@ export namespace TW {
|
|
27336
27339
|
/** Accounts guardian. */
|
27337
27340
|
public guardian: string;
|
27338
27341
|
|
27342
|
+
/** Accounts relayer. */
|
27343
|
+
public relayer: string;
|
27344
|
+
|
27339
27345
|
/**
|
27340
27346
|
* Creates a new Accounts instance using the specified properties.
|
27341
27347
|
* @param [properties] Properties to set
|
@@ -41786,6 +41792,9 @@ export namespace TW {
|
|
41786
41792
|
/** SigningInput transferObject */
|
41787
41793
|
transferObject?: (TW.Sui.Proto.ITransferObject|null);
|
41788
41794
|
|
41795
|
+
/** SigningInput rawJson */
|
41796
|
+
rawJson?: (string|null);
|
41797
|
+
|
41789
41798
|
/** SigningInput gasBudget */
|
41790
41799
|
gasBudget?: (Long|null);
|
41791
41800
|
|
@@ -41829,6 +41838,9 @@ export namespace TW {
|
|
41829
41838
|
/** SigningInput transferObject. */
|
41830
41839
|
public transferObject?: (TW.Sui.Proto.ITransferObject|null);
|
41831
41840
|
|
41841
|
+
/** SigningInput rawJson. */
|
41842
|
+
public rawJson?: (string|null);
|
41843
|
+
|
41832
41844
|
/** SigningInput gasBudget. */
|
41833
41845
|
public gasBudget: Long;
|
41834
41846
|
|
@@ -41836,7 +41848,7 @@ export namespace TW {
|
|
41836
41848
|
public referenceGasPrice: Long;
|
41837
41849
|
|
41838
41850
|
/** SigningInput transactionPayload. */
|
41839
|
-
public transactionPayload?: ("signDirectMessage"|"pay"|"paySui"|"payAllSui"|"requestAddStake"|"requestWithdrawStake"|"transferObject");
|
41851
|
+
public transactionPayload?: ("signDirectMessage"|"pay"|"paySui"|"payAllSui"|"requestAddStake"|"requestWithdrawStake"|"transferObject"|"rawJson");
|
41840
41852
|
|
41841
41853
|
/**
|
41842
41854
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -80628,6 +80628,7 @@
|
|
80628
80628
|
* @property {string|null} [receiver] Accounts receiver
|
80629
80629
|
* @property {string|null} [receiverUsername] Accounts receiverUsername
|
80630
80630
|
* @property {string|null} [guardian] Accounts guardian
|
80631
|
+
* @property {string|null} [relayer] Accounts relayer
|
80631
80632
|
*/
|
80632
80633
|
|
80633
80634
|
/**
|
@@ -80693,6 +80694,14 @@
|
|
80693
80694
|
*/
|
80694
80695
|
Accounts.prototype.guardian = "";
|
80695
80696
|
|
80697
|
+
/**
|
80698
|
+
* Accounts relayer.
|
80699
|
+
* @member {string} relayer
|
80700
|
+
* @memberof TW.MultiversX.Proto.Accounts
|
80701
|
+
* @instance
|
80702
|
+
*/
|
80703
|
+
Accounts.prototype.relayer = "";
|
80704
|
+
|
80696
80705
|
/**
|
80697
80706
|
* Creates a new Accounts instance using the specified properties.
|
80698
80707
|
* @function create
|
@@ -80729,6 +80738,8 @@
|
|
80729
80738
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.receiverUsername);
|
80730
80739
|
if (message.guardian != null && Object.hasOwnProperty.call(message, "guardian"))
|
80731
80740
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.guardian);
|
80741
|
+
if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer"))
|
80742
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.relayer);
|
80732
80743
|
return writer;
|
80733
80744
|
};
|
80734
80745
|
|
@@ -80768,6 +80779,9 @@
|
|
80768
80779
|
case 6:
|
80769
80780
|
message.guardian = reader.string();
|
80770
80781
|
break;
|
80782
|
+
case 7:
|
80783
|
+
message.relayer = reader.string();
|
80784
|
+
break;
|
80771
80785
|
default:
|
80772
80786
|
reader.skipType(tag & 7);
|
80773
80787
|
break;
|
@@ -80805,6 +80819,9 @@
|
|
80805
80819
|
if (message.guardian != null && message.hasOwnProperty("guardian"))
|
80806
80820
|
if (!$util.isString(message.guardian))
|
80807
80821
|
return "guardian: string expected";
|
80822
|
+
if (message.relayer != null && message.hasOwnProperty("relayer"))
|
80823
|
+
if (!$util.isString(message.relayer))
|
80824
|
+
return "relayer: string expected";
|
80808
80825
|
return null;
|
80809
80826
|
};
|
80810
80827
|
|
@@ -80839,6 +80856,8 @@
|
|
80839
80856
|
message.receiverUsername = String(object.receiverUsername);
|
80840
80857
|
if (object.guardian != null)
|
80841
80858
|
message.guardian = String(object.guardian);
|
80859
|
+
if (object.relayer != null)
|
80860
|
+
message.relayer = String(object.relayer);
|
80842
80861
|
return message;
|
80843
80862
|
};
|
80844
80863
|
|
@@ -80866,6 +80885,7 @@
|
|
80866
80885
|
object.receiver = "";
|
80867
80886
|
object.receiverUsername = "";
|
80868
80887
|
object.guardian = "";
|
80888
|
+
object.relayer = "";
|
80869
80889
|
}
|
80870
80890
|
if (message.senderNonce != null && message.hasOwnProperty("senderNonce"))
|
80871
80891
|
if (typeof message.senderNonce === "number")
|
@@ -80882,6 +80902,8 @@
|
|
80882
80902
|
object.receiverUsername = message.receiverUsername;
|
80883
80903
|
if (message.guardian != null && message.hasOwnProperty("guardian"))
|
80884
80904
|
object.guardian = message.guardian;
|
80905
|
+
if (message.relayer != null && message.hasOwnProperty("relayer"))
|
80906
|
+
object.relayer = message.relayer;
|
80885
80907
|
return object;
|
80886
80908
|
};
|
80887
80909
|
|
@@ -123039,6 +123061,7 @@
|
|
123039
123061
|
* @property {TW.Sui.Proto.IRequestAddStake|null} [requestAddStake] SigningInput requestAddStake
|
123040
123062
|
* @property {TW.Sui.Proto.IRequestWithdrawStake|null} [requestWithdrawStake] SigningInput requestWithdrawStake
|
123041
123063
|
* @property {TW.Sui.Proto.ITransferObject|null} [transferObject] SigningInput transferObject
|
123064
|
+
* @property {string|null} [rawJson] SigningInput rawJson
|
123042
123065
|
* @property {Long|null} [gasBudget] SigningInput gasBudget
|
123043
123066
|
* @property {Long|null} [referenceGasPrice] SigningInput referenceGasPrice
|
123044
123067
|
*/
|
@@ -123130,6 +123153,14 @@
|
|
123130
123153
|
*/
|
123131
123154
|
SigningInput.prototype.transferObject = null;
|
123132
123155
|
|
123156
|
+
/**
|
123157
|
+
* SigningInput rawJson.
|
123158
|
+
* @member {string|null|undefined} rawJson
|
123159
|
+
* @memberof TW.Sui.Proto.SigningInput
|
123160
|
+
* @instance
|
123161
|
+
*/
|
123162
|
+
SigningInput.prototype.rawJson = null;
|
123163
|
+
|
123133
123164
|
/**
|
123134
123165
|
* SigningInput gasBudget.
|
123135
123166
|
* @member {Long} gasBudget
|
@@ -123151,12 +123182,12 @@
|
|
123151
123182
|
|
123152
123183
|
/**
|
123153
123184
|
* SigningInput transactionPayload.
|
123154
|
-
* @member {"signDirectMessage"|"pay"|"paySui"|"payAllSui"|"requestAddStake"|"requestWithdrawStake"|"transferObject"|undefined} transactionPayload
|
123185
|
+
* @member {"signDirectMessage"|"pay"|"paySui"|"payAllSui"|"requestAddStake"|"requestWithdrawStake"|"transferObject"|"rawJson"|undefined} transactionPayload
|
123155
123186
|
* @memberof TW.Sui.Proto.SigningInput
|
123156
123187
|
* @instance
|
123157
123188
|
*/
|
123158
123189
|
Object.defineProperty(SigningInput.prototype, "transactionPayload", {
|
123159
|
-
get: $util.oneOfGetter($oneOfFields = ["signDirectMessage", "pay", "paySui", "payAllSui", "requestAddStake", "requestWithdrawStake", "transferObject"]),
|
123190
|
+
get: $util.oneOfGetter($oneOfFields = ["signDirectMessage", "pay", "paySui", "payAllSui", "requestAddStake", "requestWithdrawStake", "transferObject", "rawJson"]),
|
123160
123191
|
set: $util.oneOfSetter($oneOfFields)
|
123161
123192
|
});
|
123162
123193
|
|
@@ -123202,6 +123233,8 @@
|
|
123202
123233
|
$root.TW.Sui.Proto.RequestWithdrawStake.encode(message.requestWithdrawStake, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
123203
123234
|
if (message.transferObject != null && Object.hasOwnProperty.call(message, "transferObject"))
|
123204
123235
|
$root.TW.Sui.Proto.TransferObject.encode(message.transferObject, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
123236
|
+
if (message.rawJson != null && Object.hasOwnProperty.call(message, "rawJson"))
|
123237
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.rawJson);
|
123205
123238
|
if (message.gasBudget != null && Object.hasOwnProperty.call(message, "gasBudget"))
|
123206
123239
|
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.gasBudget);
|
123207
123240
|
if (message.referenceGasPrice != null && Object.hasOwnProperty.call(message, "referenceGasPrice"))
|
@@ -123254,6 +123287,9 @@
|
|
123254
123287
|
case 9:
|
123255
123288
|
message.transferObject = $root.TW.Sui.Proto.TransferObject.decode(reader, reader.uint32());
|
123256
123289
|
break;
|
123290
|
+
case 10:
|
123291
|
+
message.rawJson = reader.string();
|
123292
|
+
break;
|
123257
123293
|
case 12:
|
123258
123294
|
message.gasBudget = reader.uint64();
|
123259
123295
|
break;
|
@@ -123354,6 +123390,13 @@
|
|
123354
123390
|
return "transferObject." + error;
|
123355
123391
|
}
|
123356
123392
|
}
|
123393
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson")) {
|
123394
|
+
if (properties.transactionPayload === 1)
|
123395
|
+
return "transactionPayload: multiple values";
|
123396
|
+
properties.transactionPayload = 1;
|
123397
|
+
if (!$util.isString(message.rawJson))
|
123398
|
+
return "rawJson: string expected";
|
123399
|
+
}
|
123357
123400
|
if (message.gasBudget != null && message.hasOwnProperty("gasBudget"))
|
123358
123401
|
if (!$util.isInteger(message.gasBudget) && !(message.gasBudget && $util.isInteger(message.gasBudget.low) && $util.isInteger(message.gasBudget.high)))
|
123359
123402
|
return "gasBudget: integer|Long expected";
|
@@ -123417,6 +123460,8 @@
|
|
123417
123460
|
throw TypeError(".TW.Sui.Proto.SigningInput.transferObject: object expected");
|
123418
123461
|
message.transferObject = $root.TW.Sui.Proto.TransferObject.fromObject(object.transferObject);
|
123419
123462
|
}
|
123463
|
+
if (object.rawJson != null)
|
123464
|
+
message.rawJson = String(object.rawJson);
|
123420
123465
|
if (object.gasBudget != null)
|
123421
123466
|
if ($util.Long)
|
123422
123467
|
(message.gasBudget = $util.Long.fromValue(object.gasBudget)).unsigned = true;
|
@@ -123510,6 +123555,11 @@
|
|
123510
123555
|
if (options.oneofs)
|
123511
123556
|
object.transactionPayload = "transferObject";
|
123512
123557
|
}
|
123558
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson")) {
|
123559
|
+
object.rawJson = message.rawJson;
|
123560
|
+
if (options.oneofs)
|
123561
|
+
object.transactionPayload = "rawJson";
|
123562
|
+
}
|
123513
123563
|
if (message.gasBudget != null && message.hasOwnProperty("gasBudget"))
|
123514
123564
|
if (typeof message.gasBudget === "number")
|
123515
123565
|
object.gasBudget = options.longs === String ? String(message.gasBudget) : message.gasBudget;
|
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={2091412:()=>{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";}}},2092134:()=>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
|