@trustwallet/wallet-core 4.3.14 → 4.3.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.
@@ -42560,6 +42560,9 @@ export namespace TW {
42560
42560
 
42561
42561
  /** SigningInput tokenTransferToFeePayer */
42562
42562
  tokenTransferToFeePayer?: (TW.Solana.Proto.ITokenTransferToFeePayer|null);
42563
+
42564
+ /** SigningInput transferToFeePayer */
42565
+ transferToFeePayer?: (TW.Solana.Proto.ITransfer|null);
42563
42566
  }
42564
42567
 
42565
42568
  /** Represents a SigningInput. */
@@ -42643,6 +42646,9 @@ export namespace TW {
42643
42646
  /** SigningInput tokenTransferToFeePayer. */
42644
42647
  public tokenTransferToFeePayer?: (TW.Solana.Proto.ITokenTransferToFeePayer|null);
42645
42648
 
42649
+ /** SigningInput transferToFeePayer. */
42650
+ public transferToFeePayer?: (TW.Solana.Proto.ITransfer|null);
42651
+
42646
42652
  /** SigningInput transactionType. */
42647
42653
  public transactionType?: ("transferTransaction"|"delegateStakeTransaction"|"deactivateStakeTransaction"|"deactivateAllStakeTransaction"|"withdrawTransaction"|"withdrawAllTransaction"|"createTokenAccountTransaction"|"tokenTransferTransaction"|"createAndTransferTokenTransaction"|"createNonceAccount"|"withdrawNonceAccount"|"advanceNonceAccount");
42648
42654
 
@@ -124740,6 +124740,7 @@
124740
124740
  * @property {TW.Solana.Proto.IPriorityFeePrice|null} [priorityFeePrice] SigningInput priorityFeePrice
124741
124741
  * @property {TW.Solana.Proto.IPriorityFeeLimit|null} [priorityFeeLimit] SigningInput priorityFeeLimit
124742
124742
  * @property {TW.Solana.Proto.ITokenTransferToFeePayer|null} [tokenTransferToFeePayer] SigningInput tokenTransferToFeePayer
124743
+ * @property {TW.Solana.Proto.ITransfer|null} [transferToFeePayer] SigningInput transferToFeePayer
124743
124744
  */
124744
124745
 
124745
124746
  /**
@@ -124949,6 +124950,14 @@
124949
124950
  */
124950
124951
  SigningInput.prototype.tokenTransferToFeePayer = null;
124951
124952
 
124953
+ /**
124954
+ * SigningInput transferToFeePayer.
124955
+ * @member {TW.Solana.Proto.ITransfer|null|undefined} transferToFeePayer
124956
+ * @memberof TW.Solana.Proto.SigningInput
124957
+ * @instance
124958
+ */
124959
+ SigningInput.prototype.transferToFeePayer = null;
124960
+
124952
124961
  // OneOf field names bound to virtual getters and setters
124953
124962
  var $oneOfFields;
124954
124963
 
@@ -125035,6 +125044,8 @@
125035
125044
  $root.TW.Solana.Proto.PriorityFeeLimit.encode(message.priorityFeeLimit, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
125036
125045
  if (message.tokenTransferToFeePayer != null && Object.hasOwnProperty.call(message, "tokenTransferToFeePayer"))
125037
125046
  $root.TW.Solana.Proto.TokenTransferToFeePayer.encode(message.tokenTransferToFeePayer, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
125047
+ if (message.transferToFeePayer != null && Object.hasOwnProperty.call(message, "transferToFeePayer"))
125048
+ $root.TW.Solana.Proto.Transfer.encode(message.transferToFeePayer, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
125038
125049
  return writer;
125039
125050
  };
125040
125051
 
@@ -125128,6 +125139,9 @@
125128
125139
  case 24:
125129
125140
  message.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.decode(reader, reader.uint32());
125130
125141
  break;
125142
+ case 25:
125143
+ message.transferToFeePayer = $root.TW.Solana.Proto.Transfer.decode(reader, reader.uint32());
125144
+ break;
125131
125145
  default:
125132
125146
  reader.skipType(tag & 7);
125133
125147
  break;
@@ -125315,6 +125329,11 @@
125315
125329
  if (error)
125316
125330
  return "tokenTransferToFeePayer." + error;
125317
125331
  }
125332
+ if (message.transferToFeePayer != null && message.hasOwnProperty("transferToFeePayer")) {
125333
+ var error = $root.TW.Solana.Proto.Transfer.verify(message.transferToFeePayer);
125334
+ if (error)
125335
+ return "transferToFeePayer." + error;
125336
+ }
125318
125337
  return null;
125319
125338
  };
125320
125339
 
@@ -125440,6 +125459,11 @@
125440
125459
  throw TypeError(".TW.Solana.Proto.SigningInput.tokenTransferToFeePayer: object expected");
125441
125460
  message.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.fromObject(object.tokenTransferToFeePayer);
125442
125461
  }
125462
+ if (object.transferToFeePayer != null) {
125463
+ if (typeof object.transferToFeePayer !== "object")
125464
+ throw TypeError(".TW.Solana.Proto.SigningInput.transferToFeePayer: object expected");
125465
+ message.transferToFeePayer = $root.TW.Solana.Proto.Transfer.fromObject(object.transferToFeePayer);
125466
+ }
125443
125467
  return message;
125444
125468
  };
125445
125469
 
@@ -125481,6 +125505,7 @@
125481
125505
  object.priorityFeePrice = null;
125482
125506
  object.priorityFeeLimit = null;
125483
125507
  object.tokenTransferToFeePayer = null;
125508
+ object.transferToFeePayer = null;
125484
125509
  }
125485
125510
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
125486
125511
  object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey;
@@ -125566,6 +125591,8 @@
125566
125591
  object.priorityFeeLimit = $root.TW.Solana.Proto.PriorityFeeLimit.toObject(message.priorityFeeLimit, options);
125567
125592
  if (message.tokenTransferToFeePayer != null && message.hasOwnProperty("tokenTransferToFeePayer"))
125568
125593
  object.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.toObject(message.tokenTransferToFeePayer, options);
125594
+ if (message.transferToFeePayer != null && message.hasOwnProperty("transferToFeePayer"))
125595
+ object.transferToFeePayer = $root.TW.Solana.Proto.Transfer.toObject(message.transferToFeePayer, options);
125569
125596
  return object;
125570
125597
  };
125571
125598
 
@@ -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={2211508:()=>{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";}}},2212230:()=>g.fa()};
39
+ var eb={2211700:()=>{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";}}},2212422:()=>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
@@ -925,6 +925,7 @@ export class SolanaTransaction {
925
925
  static setComputeUnitLimit(encodedTx: string, limit: string): string;
926
926
  static setFeePayer(encodedTx: string, feePayer: string): string;
927
927
  static insertInstruction(encodedTx: string, insertAt: number, instruction: string): string;
928
+ static insertTransferInstruction(encodedTx: string, insertAt: number, from: string, to: string, lamports: string): string;
928
929
  }
929
930
  export class StarkExMessageSigner {
930
931
  static signMessage(privateKey: PrivateKey, message: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.3.14",
3
+ "version": "4.3.16",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",