@trustwallet/wallet-core 4.3.11-rc3 → 4.3.11

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.
@@ -41103,6 +41103,109 @@ export namespace TW {
41103
41103
  public toJSON(): { [k: string]: any };
41104
41104
  }
41105
41105
 
41106
+ /** Properties of a TokenTransferToFeePayer. */
41107
+ interface ITokenTransferToFeePayer {
41108
+
41109
+ /** TokenTransferToFeePayer feeTokenMintAddress */
41110
+ feeTokenMintAddress?: (string|null);
41111
+
41112
+ /** TokenTransferToFeePayer feeSponsorTokenAddress */
41113
+ feeSponsorTokenAddress?: (string|null);
41114
+
41115
+ /** TokenTransferToFeePayer feeAmount */
41116
+ feeAmount?: (Long|null);
41117
+
41118
+ /** TokenTransferToFeePayer feeSenderTokenAddress */
41119
+ feeSenderTokenAddress?: (string|null);
41120
+
41121
+ /** TokenTransferToFeePayer feeDecimals */
41122
+ feeDecimals?: (number|null);
41123
+
41124
+ /** TokenTransferToFeePayer feeTokenProgramId */
41125
+ feeTokenProgramId?: (TW.Solana.Proto.TokenProgramId|null);
41126
+ }
41127
+
41128
+ /** Represents a TokenTransferToFeePayer. */
41129
+ class TokenTransferToFeePayer implements ITokenTransferToFeePayer {
41130
+
41131
+ /**
41132
+ * Constructs a new TokenTransferToFeePayer.
41133
+ * @param [properties] Properties to set
41134
+ */
41135
+ constructor(properties?: TW.Solana.Proto.ITokenTransferToFeePayer);
41136
+
41137
+ /** TokenTransferToFeePayer feeTokenMintAddress. */
41138
+ public feeTokenMintAddress: string;
41139
+
41140
+ /** TokenTransferToFeePayer feeSponsorTokenAddress. */
41141
+ public feeSponsorTokenAddress: string;
41142
+
41143
+ /** TokenTransferToFeePayer feeAmount. */
41144
+ public feeAmount: Long;
41145
+
41146
+ /** TokenTransferToFeePayer feeSenderTokenAddress. */
41147
+ public feeSenderTokenAddress: string;
41148
+
41149
+ /** TokenTransferToFeePayer feeDecimals. */
41150
+ public feeDecimals: number;
41151
+
41152
+ /** TokenTransferToFeePayer feeTokenProgramId. */
41153
+ public feeTokenProgramId: TW.Solana.Proto.TokenProgramId;
41154
+
41155
+ /**
41156
+ * Creates a new TokenTransferToFeePayer instance using the specified properties.
41157
+ * @param [properties] Properties to set
41158
+ * @returns TokenTransferToFeePayer instance
41159
+ */
41160
+ public static create(properties?: TW.Solana.Proto.ITokenTransferToFeePayer): TW.Solana.Proto.TokenTransferToFeePayer;
41161
+
41162
+ /**
41163
+ * Encodes the specified TokenTransferToFeePayer message. Does not implicitly {@link TW.Solana.Proto.TokenTransferToFeePayer.verify|verify} messages.
41164
+ * @param message TokenTransferToFeePayer message or plain object to encode
41165
+ * @param [writer] Writer to encode to
41166
+ * @returns Writer
41167
+ */
41168
+ public static encode(message: TW.Solana.Proto.ITokenTransferToFeePayer, writer?: $protobuf.Writer): $protobuf.Writer;
41169
+
41170
+ /**
41171
+ * Decodes a TokenTransferToFeePayer message from the specified reader or buffer.
41172
+ * @param reader Reader or buffer to decode from
41173
+ * @param [length] Message length if known beforehand
41174
+ * @returns TokenTransferToFeePayer
41175
+ * @throws {Error} If the payload is not a reader or valid buffer
41176
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41177
+ */
41178
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Solana.Proto.TokenTransferToFeePayer;
41179
+
41180
+ /**
41181
+ * Verifies a TokenTransferToFeePayer message.
41182
+ * @param message Plain object to verify
41183
+ * @returns `null` if valid, otherwise the reason why it is not
41184
+ */
41185
+ public static verify(message: { [k: string]: any }): (string|null);
41186
+
41187
+ /**
41188
+ * Creates a TokenTransferToFeePayer message from a plain object. Also converts values to their respective internal types.
41189
+ * @param object Plain object
41190
+ * @returns TokenTransferToFeePayer
41191
+ */
41192
+ public static fromObject(object: { [k: string]: any }): TW.Solana.Proto.TokenTransferToFeePayer;
41193
+
41194
+ /**
41195
+ * Creates a plain object from a TokenTransferToFeePayer message. Also converts values to other types if specified.
41196
+ * @param message TokenTransferToFeePayer
41197
+ * @param [options] Conversion options
41198
+ * @returns Plain object
41199
+ */
41200
+ public static toObject(message: TW.Solana.Proto.TokenTransferToFeePayer, options?: $protobuf.IConversionOptions): { [k: string]: any };
41201
+
41202
+ /**
41203
+ * Converts this TokenTransferToFeePayer to JSON.
41204
+ * @returns JSON object
41205
+ */
41206
+ public toJSON(): { [k: string]: any };
41207
+ }
41208
+
41106
41209
  /** Properties of a CreateNonceAccount. */
41107
41210
  interface ICreateNonceAccount {
41108
41211
 
@@ -42267,6 +42370,9 @@ export namespace TW {
42267
42370
 
42268
42371
  /** SigningInput priorityFeeLimit */
42269
42372
  priorityFeeLimit?: (TW.Solana.Proto.IPriorityFeeLimit|null);
42373
+
42374
+ /** SigningInput tokenTransferToFeePayer */
42375
+ tokenTransferToFeePayer?: (TW.Solana.Proto.ITokenTransferToFeePayer|null);
42270
42376
  }
42271
42377
 
42272
42378
  /** Represents a SigningInput. */
@@ -42347,6 +42453,9 @@ export namespace TW {
42347
42453
  /** SigningInput priorityFeeLimit. */
42348
42454
  public priorityFeeLimit?: (TW.Solana.Proto.IPriorityFeeLimit|null);
42349
42455
 
42456
+ /** SigningInput tokenTransferToFeePayer. */
42457
+ public tokenTransferToFeePayer?: (TW.Solana.Proto.ITokenTransferToFeePayer|null);
42458
+
42350
42459
  /** SigningInput transactionType. */
42351
42460
  public transactionType?: ("transferTransaction"|"delegateStakeTransaction"|"deactivateStakeTransaction"|"deactivateAllStakeTransaction"|"withdrawTransaction"|"withdrawAllTransaction"|"createTokenAccountTransaction"|"tokenTransferTransaction"|"createAndTransferTokenTransaction"|"createNonceAccount"|"withdrawNonceAccount"|"advanceNonceAccount");
42352
42461
 
@@ -120885,6 +120885,302 @@
120885
120885
  return CreateAndTransferToken;
120886
120886
  })();
120887
120887
 
120888
+ Proto.TokenTransferToFeePayer = (function() {
120889
+
120890
+ /**
120891
+ * Properties of a TokenTransferToFeePayer.
120892
+ * @memberof TW.Solana.Proto
120893
+ * @interface ITokenTransferToFeePayer
120894
+ * @property {string|null} [feeTokenMintAddress] TokenTransferToFeePayer feeTokenMintAddress
120895
+ * @property {string|null} [feeSponsorTokenAddress] TokenTransferToFeePayer feeSponsorTokenAddress
120896
+ * @property {Long|null} [feeAmount] TokenTransferToFeePayer feeAmount
120897
+ * @property {string|null} [feeSenderTokenAddress] TokenTransferToFeePayer feeSenderTokenAddress
120898
+ * @property {number|null} [feeDecimals] TokenTransferToFeePayer feeDecimals
120899
+ * @property {TW.Solana.Proto.TokenProgramId|null} [feeTokenProgramId] TokenTransferToFeePayer feeTokenProgramId
120900
+ */
120901
+
120902
+ /**
120903
+ * Constructs a new TokenTransferToFeePayer.
120904
+ * @memberof TW.Solana.Proto
120905
+ * @classdesc Represents a TokenTransferToFeePayer.
120906
+ * @implements ITokenTransferToFeePayer
120907
+ * @constructor
120908
+ * @param {TW.Solana.Proto.ITokenTransferToFeePayer=} [properties] Properties to set
120909
+ */
120910
+ function TokenTransferToFeePayer(properties) {
120911
+ if (properties)
120912
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
120913
+ if (properties[keys[i]] != null)
120914
+ this[keys[i]] = properties[keys[i]];
120915
+ }
120916
+
120917
+ /**
120918
+ * TokenTransferToFeePayer feeTokenMintAddress.
120919
+ * @member {string} feeTokenMintAddress
120920
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120921
+ * @instance
120922
+ */
120923
+ TokenTransferToFeePayer.prototype.feeTokenMintAddress = "";
120924
+
120925
+ /**
120926
+ * TokenTransferToFeePayer feeSponsorTokenAddress.
120927
+ * @member {string} feeSponsorTokenAddress
120928
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120929
+ * @instance
120930
+ */
120931
+ TokenTransferToFeePayer.prototype.feeSponsorTokenAddress = "";
120932
+
120933
+ /**
120934
+ * TokenTransferToFeePayer feeAmount.
120935
+ * @member {Long} feeAmount
120936
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120937
+ * @instance
120938
+ */
120939
+ TokenTransferToFeePayer.prototype.feeAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
120940
+
120941
+ /**
120942
+ * TokenTransferToFeePayer feeSenderTokenAddress.
120943
+ * @member {string} feeSenderTokenAddress
120944
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120945
+ * @instance
120946
+ */
120947
+ TokenTransferToFeePayer.prototype.feeSenderTokenAddress = "";
120948
+
120949
+ /**
120950
+ * TokenTransferToFeePayer feeDecimals.
120951
+ * @member {number} feeDecimals
120952
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120953
+ * @instance
120954
+ */
120955
+ TokenTransferToFeePayer.prototype.feeDecimals = 0;
120956
+
120957
+ /**
120958
+ * TokenTransferToFeePayer feeTokenProgramId.
120959
+ * @member {TW.Solana.Proto.TokenProgramId} feeTokenProgramId
120960
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120961
+ * @instance
120962
+ */
120963
+ TokenTransferToFeePayer.prototype.feeTokenProgramId = 0;
120964
+
120965
+ /**
120966
+ * Creates a new TokenTransferToFeePayer instance using the specified properties.
120967
+ * @function create
120968
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120969
+ * @static
120970
+ * @param {TW.Solana.Proto.ITokenTransferToFeePayer=} [properties] Properties to set
120971
+ * @returns {TW.Solana.Proto.TokenTransferToFeePayer} TokenTransferToFeePayer instance
120972
+ */
120973
+ TokenTransferToFeePayer.create = function create(properties) {
120974
+ return new TokenTransferToFeePayer(properties);
120975
+ };
120976
+
120977
+ /**
120978
+ * Encodes the specified TokenTransferToFeePayer message. Does not implicitly {@link TW.Solana.Proto.TokenTransferToFeePayer.verify|verify} messages.
120979
+ * @function encode
120980
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
120981
+ * @static
120982
+ * @param {TW.Solana.Proto.ITokenTransferToFeePayer} message TokenTransferToFeePayer message or plain object to encode
120983
+ * @param {$protobuf.Writer} [writer] Writer to encode to
120984
+ * @returns {$protobuf.Writer} Writer
120985
+ */
120986
+ TokenTransferToFeePayer.encode = function encode(message, writer) {
120987
+ if (!writer)
120988
+ writer = $Writer.create();
120989
+ if (message.feeTokenMintAddress != null && Object.hasOwnProperty.call(message, "feeTokenMintAddress"))
120990
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.feeTokenMintAddress);
120991
+ if (message.feeSponsorTokenAddress != null && Object.hasOwnProperty.call(message, "feeSponsorTokenAddress"))
120992
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.feeSponsorTokenAddress);
120993
+ if (message.feeAmount != null && Object.hasOwnProperty.call(message, "feeAmount"))
120994
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.feeAmount);
120995
+ if (message.feeSenderTokenAddress != null && Object.hasOwnProperty.call(message, "feeSenderTokenAddress"))
120996
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.feeSenderTokenAddress);
120997
+ if (message.feeDecimals != null && Object.hasOwnProperty.call(message, "feeDecimals"))
120998
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.feeDecimals);
120999
+ if (message.feeTokenProgramId != null && Object.hasOwnProperty.call(message, "feeTokenProgramId"))
121000
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.feeTokenProgramId);
121001
+ return writer;
121002
+ };
121003
+
121004
+ /**
121005
+ * Decodes a TokenTransferToFeePayer message from the specified reader or buffer.
121006
+ * @function decode
121007
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
121008
+ * @static
121009
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
121010
+ * @param {number} [length] Message length if known beforehand
121011
+ * @returns {TW.Solana.Proto.TokenTransferToFeePayer} TokenTransferToFeePayer
121012
+ * @throws {Error} If the payload is not a reader or valid buffer
121013
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
121014
+ */
121015
+ TokenTransferToFeePayer.decode = function decode(reader, length) {
121016
+ if (!(reader instanceof $Reader))
121017
+ reader = $Reader.create(reader);
121018
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Solana.Proto.TokenTransferToFeePayer();
121019
+ while (reader.pos < end) {
121020
+ var tag = reader.uint32();
121021
+ switch (tag >>> 3) {
121022
+ case 1:
121023
+ message.feeTokenMintAddress = reader.string();
121024
+ break;
121025
+ case 2:
121026
+ message.feeSponsorTokenAddress = reader.string();
121027
+ break;
121028
+ case 3:
121029
+ message.feeAmount = reader.uint64();
121030
+ break;
121031
+ case 4:
121032
+ message.feeSenderTokenAddress = reader.string();
121033
+ break;
121034
+ case 5:
121035
+ message.feeDecimals = reader.uint32();
121036
+ break;
121037
+ case 6:
121038
+ message.feeTokenProgramId = reader.int32();
121039
+ break;
121040
+ default:
121041
+ reader.skipType(tag & 7);
121042
+ break;
121043
+ }
121044
+ }
121045
+ return message;
121046
+ };
121047
+
121048
+ /**
121049
+ * Verifies a TokenTransferToFeePayer message.
121050
+ * @function verify
121051
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
121052
+ * @static
121053
+ * @param {Object.<string,*>} message Plain object to verify
121054
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
121055
+ */
121056
+ TokenTransferToFeePayer.verify = function verify(message) {
121057
+ if (typeof message !== "object" || message === null)
121058
+ return "object expected";
121059
+ if (message.feeTokenMintAddress != null && message.hasOwnProperty("feeTokenMintAddress"))
121060
+ if (!$util.isString(message.feeTokenMintAddress))
121061
+ return "feeTokenMintAddress: string expected";
121062
+ if (message.feeSponsorTokenAddress != null && message.hasOwnProperty("feeSponsorTokenAddress"))
121063
+ if (!$util.isString(message.feeSponsorTokenAddress))
121064
+ return "feeSponsorTokenAddress: string expected";
121065
+ if (message.feeAmount != null && message.hasOwnProperty("feeAmount"))
121066
+ if (!$util.isInteger(message.feeAmount) && !(message.feeAmount && $util.isInteger(message.feeAmount.low) && $util.isInteger(message.feeAmount.high)))
121067
+ return "feeAmount: integer|Long expected";
121068
+ if (message.feeSenderTokenAddress != null && message.hasOwnProperty("feeSenderTokenAddress"))
121069
+ if (!$util.isString(message.feeSenderTokenAddress))
121070
+ return "feeSenderTokenAddress: string expected";
121071
+ if (message.feeDecimals != null && message.hasOwnProperty("feeDecimals"))
121072
+ if (!$util.isInteger(message.feeDecimals))
121073
+ return "feeDecimals: integer expected";
121074
+ if (message.feeTokenProgramId != null && message.hasOwnProperty("feeTokenProgramId"))
121075
+ switch (message.feeTokenProgramId) {
121076
+ default:
121077
+ return "feeTokenProgramId: enum value expected";
121078
+ case 0:
121079
+ case 1:
121080
+ break;
121081
+ }
121082
+ return null;
121083
+ };
121084
+
121085
+ /**
121086
+ * Creates a TokenTransferToFeePayer message from a plain object. Also converts values to their respective internal types.
121087
+ * @function fromObject
121088
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
121089
+ * @static
121090
+ * @param {Object.<string,*>} object Plain object
121091
+ * @returns {TW.Solana.Proto.TokenTransferToFeePayer} TokenTransferToFeePayer
121092
+ */
121093
+ TokenTransferToFeePayer.fromObject = function fromObject(object) {
121094
+ if (object instanceof $root.TW.Solana.Proto.TokenTransferToFeePayer)
121095
+ return object;
121096
+ var message = new $root.TW.Solana.Proto.TokenTransferToFeePayer();
121097
+ if (object.feeTokenMintAddress != null)
121098
+ message.feeTokenMintAddress = String(object.feeTokenMintAddress);
121099
+ if (object.feeSponsorTokenAddress != null)
121100
+ message.feeSponsorTokenAddress = String(object.feeSponsorTokenAddress);
121101
+ if (object.feeAmount != null)
121102
+ if ($util.Long)
121103
+ (message.feeAmount = $util.Long.fromValue(object.feeAmount)).unsigned = true;
121104
+ else if (typeof object.feeAmount === "string")
121105
+ message.feeAmount = parseInt(object.feeAmount, 10);
121106
+ else if (typeof object.feeAmount === "number")
121107
+ message.feeAmount = object.feeAmount;
121108
+ else if (typeof object.feeAmount === "object")
121109
+ message.feeAmount = new $util.LongBits(object.feeAmount.low >>> 0, object.feeAmount.high >>> 0).toNumber(true);
121110
+ if (object.feeSenderTokenAddress != null)
121111
+ message.feeSenderTokenAddress = String(object.feeSenderTokenAddress);
121112
+ if (object.feeDecimals != null)
121113
+ message.feeDecimals = object.feeDecimals >>> 0;
121114
+ switch (object.feeTokenProgramId) {
121115
+ case "TokenProgram":
121116
+ case 0:
121117
+ message.feeTokenProgramId = 0;
121118
+ break;
121119
+ case "Token2022Program":
121120
+ case 1:
121121
+ message.feeTokenProgramId = 1;
121122
+ break;
121123
+ }
121124
+ return message;
121125
+ };
121126
+
121127
+ /**
121128
+ * Creates a plain object from a TokenTransferToFeePayer message. Also converts values to other types if specified.
121129
+ * @function toObject
121130
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
121131
+ * @static
121132
+ * @param {TW.Solana.Proto.TokenTransferToFeePayer} message TokenTransferToFeePayer
121133
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
121134
+ * @returns {Object.<string,*>} Plain object
121135
+ */
121136
+ TokenTransferToFeePayer.toObject = function toObject(message, options) {
121137
+ if (!options)
121138
+ options = {};
121139
+ var object = {};
121140
+ if (options.defaults) {
121141
+ object.feeTokenMintAddress = "";
121142
+ object.feeSponsorTokenAddress = "";
121143
+ if ($util.Long) {
121144
+ var long = new $util.Long(0, 0, true);
121145
+ object.feeAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
121146
+ } else
121147
+ object.feeAmount = options.longs === String ? "0" : 0;
121148
+ object.feeSenderTokenAddress = "";
121149
+ object.feeDecimals = 0;
121150
+ object.feeTokenProgramId = options.enums === String ? "TokenProgram" : 0;
121151
+ }
121152
+ if (message.feeTokenMintAddress != null && message.hasOwnProperty("feeTokenMintAddress"))
121153
+ object.feeTokenMintAddress = message.feeTokenMintAddress;
121154
+ if (message.feeSponsorTokenAddress != null && message.hasOwnProperty("feeSponsorTokenAddress"))
121155
+ object.feeSponsorTokenAddress = message.feeSponsorTokenAddress;
121156
+ if (message.feeAmount != null && message.hasOwnProperty("feeAmount"))
121157
+ if (typeof message.feeAmount === "number")
121158
+ object.feeAmount = options.longs === String ? String(message.feeAmount) : message.feeAmount;
121159
+ else
121160
+ object.feeAmount = options.longs === String ? $util.Long.prototype.toString.call(message.feeAmount) : options.longs === Number ? new $util.LongBits(message.feeAmount.low >>> 0, message.feeAmount.high >>> 0).toNumber(true) : message.feeAmount;
121161
+ if (message.feeSenderTokenAddress != null && message.hasOwnProperty("feeSenderTokenAddress"))
121162
+ object.feeSenderTokenAddress = message.feeSenderTokenAddress;
121163
+ if (message.feeDecimals != null && message.hasOwnProperty("feeDecimals"))
121164
+ object.feeDecimals = message.feeDecimals;
121165
+ if (message.feeTokenProgramId != null && message.hasOwnProperty("feeTokenProgramId"))
121166
+ object.feeTokenProgramId = options.enums === String ? $root.TW.Solana.Proto.TokenProgramId[message.feeTokenProgramId] : message.feeTokenProgramId;
121167
+ return object;
121168
+ };
121169
+
121170
+ /**
121171
+ * Converts this TokenTransferToFeePayer to JSON.
121172
+ * @function toJSON
121173
+ * @memberof TW.Solana.Proto.TokenTransferToFeePayer
121174
+ * @instance
121175
+ * @returns {Object.<string,*>} JSON object
121176
+ */
121177
+ TokenTransferToFeePayer.prototype.toJSON = function toJSON() {
121178
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
121179
+ };
121180
+
121181
+ return TokenTransferToFeePayer;
121182
+ })();
121183
+
120888
121184
  Proto.CreateNonceAccount = (function() {
120889
121185
 
120890
121186
  /**
@@ -123914,6 +124210,7 @@
123914
124210
  * @property {TW.Solana.Proto.Encoding|null} [txEncoding] SigningInput txEncoding
123915
124211
  * @property {TW.Solana.Proto.IPriorityFeePrice|null} [priorityFeePrice] SigningInput priorityFeePrice
123916
124212
  * @property {TW.Solana.Proto.IPriorityFeeLimit|null} [priorityFeeLimit] SigningInput priorityFeeLimit
124213
+ * @property {TW.Solana.Proto.ITokenTransferToFeePayer|null} [tokenTransferToFeePayer] SigningInput tokenTransferToFeePayer
123917
124214
  */
123918
124215
 
123919
124216
  /**
@@ -124115,6 +124412,14 @@
124115
124412
  */
124116
124413
  SigningInput.prototype.priorityFeeLimit = null;
124117
124414
 
124415
+ /**
124416
+ * SigningInput tokenTransferToFeePayer.
124417
+ * @member {TW.Solana.Proto.ITokenTransferToFeePayer|null|undefined} tokenTransferToFeePayer
124418
+ * @memberof TW.Solana.Proto.SigningInput
124419
+ * @instance
124420
+ */
124421
+ SigningInput.prototype.tokenTransferToFeePayer = null;
124422
+
124118
124423
  // OneOf field names bound to virtual getters and setters
124119
124424
  var $oneOfFields;
124120
124425
 
@@ -124199,6 +124504,8 @@
124199
124504
  $root.TW.Solana.Proto.PriorityFeePrice.encode(message.priorityFeePrice, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
124200
124505
  if (message.priorityFeeLimit != null && Object.hasOwnProperty.call(message, "priorityFeeLimit"))
124201
124506
  $root.TW.Solana.Proto.PriorityFeeLimit.encode(message.priorityFeeLimit, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
124507
+ if (message.tokenTransferToFeePayer != null && Object.hasOwnProperty.call(message, "tokenTransferToFeePayer"))
124508
+ $root.TW.Solana.Proto.TokenTransferToFeePayer.encode(message.tokenTransferToFeePayer, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
124202
124509
  return writer;
124203
124510
  };
124204
124511
 
@@ -124289,6 +124596,9 @@
124289
124596
  case 23:
124290
124597
  message.priorityFeeLimit = $root.TW.Solana.Proto.PriorityFeeLimit.decode(reader, reader.uint32());
124291
124598
  break;
124599
+ case 24:
124600
+ message.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.decode(reader, reader.uint32());
124601
+ break;
124292
124602
  default:
124293
124603
  reader.skipType(tag & 7);
124294
124604
  break;
@@ -124471,6 +124781,11 @@
124471
124781
  if (error)
124472
124782
  return "priorityFeeLimit." + error;
124473
124783
  }
124784
+ if (message.tokenTransferToFeePayer != null && message.hasOwnProperty("tokenTransferToFeePayer")) {
124785
+ var error = $root.TW.Solana.Proto.TokenTransferToFeePayer.verify(message.tokenTransferToFeePayer);
124786
+ if (error)
124787
+ return "tokenTransferToFeePayer." + error;
124788
+ }
124474
124789
  return null;
124475
124790
  };
124476
124791
 
@@ -124591,6 +124906,11 @@
124591
124906
  throw TypeError(".TW.Solana.Proto.SigningInput.priorityFeeLimit: object expected");
124592
124907
  message.priorityFeeLimit = $root.TW.Solana.Proto.PriorityFeeLimit.fromObject(object.priorityFeeLimit);
124593
124908
  }
124909
+ if (object.tokenTransferToFeePayer != null) {
124910
+ if (typeof object.tokenTransferToFeePayer !== "object")
124911
+ throw TypeError(".TW.Solana.Proto.SigningInput.tokenTransferToFeePayer: object expected");
124912
+ message.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.fromObject(object.tokenTransferToFeePayer);
124913
+ }
124594
124914
  return message;
124595
124915
  };
124596
124916
 
@@ -124631,6 +124951,7 @@
124631
124951
  object.txEncoding = options.enums === String ? "Base58" : 0;
124632
124952
  object.priorityFeePrice = null;
124633
124953
  object.priorityFeeLimit = null;
124954
+ object.tokenTransferToFeePayer = null;
124634
124955
  }
124635
124956
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
124636
124957
  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;
@@ -124714,6 +125035,8 @@
124714
125035
  object.priorityFeePrice = $root.TW.Solana.Proto.PriorityFeePrice.toObject(message.priorityFeePrice, options);
124715
125036
  if (message.priorityFeeLimit != null && message.hasOwnProperty("priorityFeeLimit"))
124716
125037
  object.priorityFeeLimit = $root.TW.Solana.Proto.PriorityFeeLimit.toObject(message.priorityFeeLimit, options);
125038
+ if (message.tokenTransferToFeePayer != null && message.hasOwnProperty("tokenTransferToFeePayer"))
125039
+ object.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.toObject(message.tokenTransferToFeePayer, options);
124717
125040
  return object;
124718
125041
  };
124719
125042
 
@@ -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={2190708:()=>{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";}}},2191430:()=>g.fa()};
39
+ var eb={2191412:()=>{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";}}},2192134:()=>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
@@ -92,23 +92,14 @@ export class AsnParser {
92
92
  }
93
93
  export class Barz {
94
94
  static getCounterfactualAddress(input: Uint8Array | Buffer): string;
95
- static getCounterfactualAddressBridge(input: Uint8Array | Buffer): string;
96
95
  static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string, salt: number): Uint8Array;
97
- static getInitCodeBridge(factory: string, publicKey: PublicKey, verificationFacet: string, salt: number): Uint8Array;
98
96
  static getFormattedSignature(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer, clientDataJson: string): Uint8Array;
99
- static getFormattedSignatureBridge(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer, clientDataJson: string): Uint8Array;
100
97
  static getPrefixedMsgHash(msgHash: Uint8Array | Buffer, barzAddress: string, chainId: number): Uint8Array;
101
- static getPrefixedMsgHashBridge(msgHash: Uint8Array | Buffer, barzAddress: string, chainId: number): Uint8Array;
102
98
  static getDiamondCutCode(input: Uint8Array | Buffer): Uint8Array;
103
- static getDiamondCutCodeBridge(input: Uint8Array | Buffer): Uint8Array;
104
99
  static getAuthorizationHash(chainId: Uint8Array | Buffer, contractAddress: string, nonce: Uint8Array | Buffer): Uint8Array;
105
- static getAuthorizationHashBridge(chainId: Uint8Array | Buffer, contractAddress: string, nonce: Uint8Array | Buffer): Uint8Array;
106
100
  static signAuthorization(chainId: Uint8Array | Buffer, contractAddress: string, nonce: Uint8Array | Buffer, privateKey: string): string;
107
- static signAuthorizationBridge(chainId: Uint8Array | Buffer, contractAddress: string, nonce: Uint8Array | Buffer, privateKey: string): string;
108
101
  static getEncodedHash(chainId: Uint8Array | Buffer, codeAddress: string, codeName: string, codeVersion: string, typeHash: string, domainSeparatorHash: string, sender: string, userOpHash: string): Uint8Array;
109
- static getEncodedHashBridge(chainId: Uint8Array | Buffer, codeAddress: string, codeName: string, codeVersion: string, typeHash: string, domainSeparatorHash: string, sender: string, userOpHash: string): Uint8Array;
110
102
  static getSignedHash(hash: string, privateKey: string): Uint8Array;
111
- static getSignedHashBridge(hash: string, privateKey: string): Uint8Array;
112
103
  }
113
104
  export class Base32 {
114
105
  static decodeWithAlphabet(string: string, alphabet: string): Uint8Array;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.3.11-rc3",
3
+ "version": "4.3.11",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",