@trustwallet/wallet-core 4.0.35 → 4.0.36

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.
@@ -19666,6 +19666,9 @@ export namespace TW {
19666
19666
 
19667
19667
  /** Action newFundsRequestMessage */
19668
19668
  newFundsRequestMessage?: (TW.FIO.Proto.Action.INewFundsRequest|null);
19669
+
19670
+ /** Action removePubAddressMessage */
19671
+ removePubAddressMessage?: (TW.FIO.Proto.Action.IRemovePubAddress|null);
19669
19672
  }
19670
19673
 
19671
19674
  /** Represents an Action. */
@@ -19692,8 +19695,11 @@ export namespace TW {
19692
19695
  /** Action newFundsRequestMessage. */
19693
19696
  public newFundsRequestMessage?: (TW.FIO.Proto.Action.INewFundsRequest|null);
19694
19697
 
19698
+ /** Action removePubAddressMessage. */
19699
+ public removePubAddressMessage?: (TW.FIO.Proto.Action.IRemovePubAddress|null);
19700
+
19695
19701
  /** Action messageOneof. */
19696
- public messageOneof?: ("registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage");
19702
+ public messageOneof?: ("registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|"removePubAddressMessage");
19697
19703
 
19698
19704
  /**
19699
19705
  * Creates a new Action instance using the specified properties.
@@ -19921,6 +19927,91 @@ export namespace TW {
19921
19927
  public toJSON(): { [k: string]: any };
19922
19928
  }
19923
19929
 
19930
+ /** Properties of a RemovePubAddress. */
19931
+ interface IRemovePubAddress {
19932
+
19933
+ /** RemovePubAddress fioAddress */
19934
+ fioAddress?: (string|null);
19935
+
19936
+ /** RemovePubAddress publicAddresses */
19937
+ publicAddresses?: (TW.FIO.Proto.IPublicAddress[]|null);
19938
+
19939
+ /** RemovePubAddress fee */
19940
+ fee?: (Long|null);
19941
+ }
19942
+
19943
+ /** Represents a RemovePubAddress. */
19944
+ class RemovePubAddress implements IRemovePubAddress {
19945
+
19946
+ /**
19947
+ * Constructs a new RemovePubAddress.
19948
+ * @param [properties] Properties to set
19949
+ */
19950
+ constructor(properties?: TW.FIO.Proto.Action.IRemovePubAddress);
19951
+
19952
+ /** RemovePubAddress fioAddress. */
19953
+ public fioAddress: string;
19954
+
19955
+ /** RemovePubAddress publicAddresses. */
19956
+ public publicAddresses: TW.FIO.Proto.IPublicAddress[];
19957
+
19958
+ /** RemovePubAddress fee. */
19959
+ public fee: Long;
19960
+
19961
+ /**
19962
+ * Creates a new RemovePubAddress instance using the specified properties.
19963
+ * @param [properties] Properties to set
19964
+ * @returns RemovePubAddress instance
19965
+ */
19966
+ public static create(properties?: TW.FIO.Proto.Action.IRemovePubAddress): TW.FIO.Proto.Action.RemovePubAddress;
19967
+
19968
+ /**
19969
+ * Encodes the specified RemovePubAddress message. Does not implicitly {@link TW.FIO.Proto.Action.RemovePubAddress.verify|verify} messages.
19970
+ * @param message RemovePubAddress message or plain object to encode
19971
+ * @param [writer] Writer to encode to
19972
+ * @returns Writer
19973
+ */
19974
+ public static encode(message: TW.FIO.Proto.Action.IRemovePubAddress, writer?: $protobuf.Writer): $protobuf.Writer;
19975
+
19976
+ /**
19977
+ * Decodes a RemovePubAddress message from the specified reader or buffer.
19978
+ * @param reader Reader or buffer to decode from
19979
+ * @param [length] Message length if known beforehand
19980
+ * @returns RemovePubAddress
19981
+ * @throws {Error} If the payload is not a reader or valid buffer
19982
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19983
+ */
19984
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.FIO.Proto.Action.RemovePubAddress;
19985
+
19986
+ /**
19987
+ * Verifies a RemovePubAddress message.
19988
+ * @param message Plain object to verify
19989
+ * @returns `null` if valid, otherwise the reason why it is not
19990
+ */
19991
+ public static verify(message: { [k: string]: any }): (string|null);
19992
+
19993
+ /**
19994
+ * Creates a RemovePubAddress message from a plain object. Also converts values to their respective internal types.
19995
+ * @param object Plain object
19996
+ * @returns RemovePubAddress
19997
+ */
19998
+ public static fromObject(object: { [k: string]: any }): TW.FIO.Proto.Action.RemovePubAddress;
19999
+
20000
+ /**
20001
+ * Creates a plain object from a RemovePubAddress message. Also converts values to other types if specified.
20002
+ * @param message RemovePubAddress
20003
+ * @param [options] Conversion options
20004
+ * @returns Plain object
20005
+ */
20006
+ public static toObject(message: TW.FIO.Proto.Action.RemovePubAddress, options?: $protobuf.IConversionOptions): { [k: string]: any };
20007
+
20008
+ /**
20009
+ * Converts this RemovePubAddress to JSON.
20010
+ * @returns JSON object
20011
+ */
20012
+ public toJSON(): { [k: string]: any };
20013
+ }
20014
+
19924
20015
  /** Properties of a Transfer. */
19925
20016
  interface ITransfer {
19926
20017
 
@@ -20388,6 +20479,9 @@ export namespace TW {
20388
20479
 
20389
20480
  /** SigningOutput errorMessage */
20390
20481
  errorMessage?: (string|null);
20482
+
20483
+ /** SigningOutput actionName */
20484
+ actionName?: (string|null);
20391
20485
  }
20392
20486
 
20393
20487
  /** Represents a SigningOutput. */
@@ -20408,6 +20502,9 @@ export namespace TW {
20408
20502
  /** SigningOutput errorMessage. */
20409
20503
  public errorMessage: string;
20410
20504
 
20505
+ /** SigningOutput actionName. */
20506
+ public actionName: string;
20507
+
20411
20508
  /**
20412
20509
  * Creates a new SigningOutput instance using the specified properties.
20413
20510
  * @param [properties] Properties to set
@@ -59150,6 +59150,7 @@
59150
59150
  * @property {TW.FIO.Proto.Action.ITransfer|null} [transferMessage] Action transferMessage
59151
59151
  * @property {TW.FIO.Proto.Action.IRenewFioAddress|null} [renewFioAddressMessage] Action renewFioAddressMessage
59152
59152
  * @property {TW.FIO.Proto.Action.INewFundsRequest|null} [newFundsRequestMessage] Action newFundsRequestMessage
59153
+ * @property {TW.FIO.Proto.Action.IRemovePubAddress|null} [removePubAddressMessage] Action removePubAddressMessage
59153
59154
  */
59154
59155
 
59155
59156
  /**
@@ -59207,17 +59208,25 @@
59207
59208
  */
59208
59209
  Action.prototype.newFundsRequestMessage = null;
59209
59210
 
59211
+ /**
59212
+ * Action removePubAddressMessage.
59213
+ * @member {TW.FIO.Proto.Action.IRemovePubAddress|null|undefined} removePubAddressMessage
59214
+ * @memberof TW.FIO.Proto.Action
59215
+ * @instance
59216
+ */
59217
+ Action.prototype.removePubAddressMessage = null;
59218
+
59210
59219
  // OneOf field names bound to virtual getters and setters
59211
59220
  var $oneOfFields;
59212
59221
 
59213
59222
  /**
59214
59223
  * Action messageOneof.
59215
- * @member {"registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|undefined} messageOneof
59224
+ * @member {"registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|"removePubAddressMessage"|undefined} messageOneof
59216
59225
  * @memberof TW.FIO.Proto.Action
59217
59226
  * @instance
59218
59227
  */
59219
59228
  Object.defineProperty(Action.prototype, "messageOneof", {
59220
- get: $util.oneOfGetter($oneOfFields = ["registerFioAddressMessage", "addPubAddressMessage", "transferMessage", "renewFioAddressMessage", "newFundsRequestMessage"]),
59229
+ get: $util.oneOfGetter($oneOfFields = ["registerFioAddressMessage", "addPubAddressMessage", "transferMessage", "renewFioAddressMessage", "newFundsRequestMessage", "removePubAddressMessage"]),
59221
59230
  set: $util.oneOfSetter($oneOfFields)
59222
59231
  });
59223
59232
 
@@ -59255,6 +59264,8 @@
59255
59264
  $root.TW.FIO.Proto.Action.RenewFioAddress.encode(message.renewFioAddressMessage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
59256
59265
  if (message.newFundsRequestMessage != null && Object.hasOwnProperty.call(message, "newFundsRequestMessage"))
59257
59266
  $root.TW.FIO.Proto.Action.NewFundsRequest.encode(message.newFundsRequestMessage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
59267
+ if (message.removePubAddressMessage != null && Object.hasOwnProperty.call(message, "removePubAddressMessage"))
59268
+ $root.TW.FIO.Proto.Action.RemovePubAddress.encode(message.removePubAddressMessage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
59258
59269
  return writer;
59259
59270
  };
59260
59271
 
@@ -59291,6 +59302,9 @@
59291
59302
  case 5:
59292
59303
  message.newFundsRequestMessage = $root.TW.FIO.Proto.Action.NewFundsRequest.decode(reader, reader.uint32());
59293
59304
  break;
59305
+ case 6:
59306
+ message.removePubAddressMessage = $root.TW.FIO.Proto.Action.RemovePubAddress.decode(reader, reader.uint32());
59307
+ break;
59294
59308
  default:
59295
59309
  reader.skipType(tag & 7);
59296
59310
  break;
@@ -59359,6 +59373,16 @@
59359
59373
  return "newFundsRequestMessage." + error;
59360
59374
  }
59361
59375
  }
59376
+ if (message.removePubAddressMessage != null && message.hasOwnProperty("removePubAddressMessage")) {
59377
+ if (properties.messageOneof === 1)
59378
+ return "messageOneof: multiple values";
59379
+ properties.messageOneof = 1;
59380
+ {
59381
+ var error = $root.TW.FIO.Proto.Action.RemovePubAddress.verify(message.removePubAddressMessage);
59382
+ if (error)
59383
+ return "removePubAddressMessage." + error;
59384
+ }
59385
+ }
59362
59386
  return null;
59363
59387
  };
59364
59388
 
@@ -59399,6 +59423,11 @@
59399
59423
  throw TypeError(".TW.FIO.Proto.Action.newFundsRequestMessage: object expected");
59400
59424
  message.newFundsRequestMessage = $root.TW.FIO.Proto.Action.NewFundsRequest.fromObject(object.newFundsRequestMessage);
59401
59425
  }
59426
+ if (object.removePubAddressMessage != null) {
59427
+ if (typeof object.removePubAddressMessage !== "object")
59428
+ throw TypeError(".TW.FIO.Proto.Action.removePubAddressMessage: object expected");
59429
+ message.removePubAddressMessage = $root.TW.FIO.Proto.Action.RemovePubAddress.fromObject(object.removePubAddressMessage);
59430
+ }
59402
59431
  return message;
59403
59432
  };
59404
59433
 
@@ -59440,6 +59469,11 @@
59440
59469
  if (options.oneofs)
59441
59470
  object.messageOneof = "newFundsRequestMessage";
59442
59471
  }
59472
+ if (message.removePubAddressMessage != null && message.hasOwnProperty("removePubAddressMessage")) {
59473
+ object.removePubAddressMessage = $root.TW.FIO.Proto.Action.RemovePubAddress.toObject(message.removePubAddressMessage, options);
59474
+ if (options.oneofs)
59475
+ object.messageOneof = "removePubAddressMessage";
59476
+ }
59443
59477
  return object;
59444
59478
  };
59445
59479
 
@@ -59910,6 +59944,245 @@
59910
59944
  return AddPubAddress;
59911
59945
  })();
59912
59946
 
59947
+ Action.RemovePubAddress = (function() {
59948
+
59949
+ /**
59950
+ * Properties of a RemovePubAddress.
59951
+ * @memberof TW.FIO.Proto.Action
59952
+ * @interface IRemovePubAddress
59953
+ * @property {string|null} [fioAddress] RemovePubAddress fioAddress
59954
+ * @property {Array.<TW.FIO.Proto.IPublicAddress>|null} [publicAddresses] RemovePubAddress publicAddresses
59955
+ * @property {Long|null} [fee] RemovePubAddress fee
59956
+ */
59957
+
59958
+ /**
59959
+ * Constructs a new RemovePubAddress.
59960
+ * @memberof TW.FIO.Proto.Action
59961
+ * @classdesc Represents a RemovePubAddress.
59962
+ * @implements IRemovePubAddress
59963
+ * @constructor
59964
+ * @param {TW.FIO.Proto.Action.IRemovePubAddress=} [properties] Properties to set
59965
+ */
59966
+ function RemovePubAddress(properties) {
59967
+ this.publicAddresses = [];
59968
+ if (properties)
59969
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59970
+ if (properties[keys[i]] != null)
59971
+ this[keys[i]] = properties[keys[i]];
59972
+ }
59973
+
59974
+ /**
59975
+ * RemovePubAddress fioAddress.
59976
+ * @member {string} fioAddress
59977
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
59978
+ * @instance
59979
+ */
59980
+ RemovePubAddress.prototype.fioAddress = "";
59981
+
59982
+ /**
59983
+ * RemovePubAddress publicAddresses.
59984
+ * @member {Array.<TW.FIO.Proto.IPublicAddress>} publicAddresses
59985
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
59986
+ * @instance
59987
+ */
59988
+ RemovePubAddress.prototype.publicAddresses = $util.emptyArray;
59989
+
59990
+ /**
59991
+ * RemovePubAddress fee.
59992
+ * @member {Long} fee
59993
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
59994
+ * @instance
59995
+ */
59996
+ RemovePubAddress.prototype.fee = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
59997
+
59998
+ /**
59999
+ * Creates a new RemovePubAddress instance using the specified properties.
60000
+ * @function create
60001
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60002
+ * @static
60003
+ * @param {TW.FIO.Proto.Action.IRemovePubAddress=} [properties] Properties to set
60004
+ * @returns {TW.FIO.Proto.Action.RemovePubAddress} RemovePubAddress instance
60005
+ */
60006
+ RemovePubAddress.create = function create(properties) {
60007
+ return new RemovePubAddress(properties);
60008
+ };
60009
+
60010
+ /**
60011
+ * Encodes the specified RemovePubAddress message. Does not implicitly {@link TW.FIO.Proto.Action.RemovePubAddress.verify|verify} messages.
60012
+ * @function encode
60013
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60014
+ * @static
60015
+ * @param {TW.FIO.Proto.Action.IRemovePubAddress} message RemovePubAddress message or plain object to encode
60016
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60017
+ * @returns {$protobuf.Writer} Writer
60018
+ */
60019
+ RemovePubAddress.encode = function encode(message, writer) {
60020
+ if (!writer)
60021
+ writer = $Writer.create();
60022
+ if (message.fioAddress != null && Object.hasOwnProperty.call(message, "fioAddress"))
60023
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.fioAddress);
60024
+ if (message.publicAddresses != null && message.publicAddresses.length)
60025
+ for (var i = 0; i < message.publicAddresses.length; ++i)
60026
+ $root.TW.FIO.Proto.PublicAddress.encode(message.publicAddresses[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
60027
+ if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
60028
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.fee);
60029
+ return writer;
60030
+ };
60031
+
60032
+ /**
60033
+ * Decodes a RemovePubAddress message from the specified reader or buffer.
60034
+ * @function decode
60035
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60036
+ * @static
60037
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60038
+ * @param {number} [length] Message length if known beforehand
60039
+ * @returns {TW.FIO.Proto.Action.RemovePubAddress} RemovePubAddress
60040
+ * @throws {Error} If the payload is not a reader or valid buffer
60041
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60042
+ */
60043
+ RemovePubAddress.decode = function decode(reader, length) {
60044
+ if (!(reader instanceof $Reader))
60045
+ reader = $Reader.create(reader);
60046
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.FIO.Proto.Action.RemovePubAddress();
60047
+ while (reader.pos < end) {
60048
+ var tag = reader.uint32();
60049
+ switch (tag >>> 3) {
60050
+ case 1:
60051
+ message.fioAddress = reader.string();
60052
+ break;
60053
+ case 2:
60054
+ if (!(message.publicAddresses && message.publicAddresses.length))
60055
+ message.publicAddresses = [];
60056
+ message.publicAddresses.push($root.TW.FIO.Proto.PublicAddress.decode(reader, reader.uint32()));
60057
+ break;
60058
+ case 3:
60059
+ message.fee = reader.uint64();
60060
+ break;
60061
+ default:
60062
+ reader.skipType(tag & 7);
60063
+ break;
60064
+ }
60065
+ }
60066
+ return message;
60067
+ };
60068
+
60069
+ /**
60070
+ * Verifies a RemovePubAddress message.
60071
+ * @function verify
60072
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60073
+ * @static
60074
+ * @param {Object.<string,*>} message Plain object to verify
60075
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60076
+ */
60077
+ RemovePubAddress.verify = function verify(message) {
60078
+ if (typeof message !== "object" || message === null)
60079
+ return "object expected";
60080
+ if (message.fioAddress != null && message.hasOwnProperty("fioAddress"))
60081
+ if (!$util.isString(message.fioAddress))
60082
+ return "fioAddress: string expected";
60083
+ if (message.publicAddresses != null && message.hasOwnProperty("publicAddresses")) {
60084
+ if (!Array.isArray(message.publicAddresses))
60085
+ return "publicAddresses: array expected";
60086
+ for (var i = 0; i < message.publicAddresses.length; ++i) {
60087
+ var error = $root.TW.FIO.Proto.PublicAddress.verify(message.publicAddresses[i]);
60088
+ if (error)
60089
+ return "publicAddresses." + error;
60090
+ }
60091
+ }
60092
+ if (message.fee != null && message.hasOwnProperty("fee"))
60093
+ if (!$util.isInteger(message.fee) && !(message.fee && $util.isInteger(message.fee.low) && $util.isInteger(message.fee.high)))
60094
+ return "fee: integer|Long expected";
60095
+ return null;
60096
+ };
60097
+
60098
+ /**
60099
+ * Creates a RemovePubAddress message from a plain object. Also converts values to their respective internal types.
60100
+ * @function fromObject
60101
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60102
+ * @static
60103
+ * @param {Object.<string,*>} object Plain object
60104
+ * @returns {TW.FIO.Proto.Action.RemovePubAddress} RemovePubAddress
60105
+ */
60106
+ RemovePubAddress.fromObject = function fromObject(object) {
60107
+ if (object instanceof $root.TW.FIO.Proto.Action.RemovePubAddress)
60108
+ return object;
60109
+ var message = new $root.TW.FIO.Proto.Action.RemovePubAddress();
60110
+ if (object.fioAddress != null)
60111
+ message.fioAddress = String(object.fioAddress);
60112
+ if (object.publicAddresses) {
60113
+ if (!Array.isArray(object.publicAddresses))
60114
+ throw TypeError(".TW.FIO.Proto.Action.RemovePubAddress.publicAddresses: array expected");
60115
+ message.publicAddresses = [];
60116
+ for (var i = 0; i < object.publicAddresses.length; ++i) {
60117
+ if (typeof object.publicAddresses[i] !== "object")
60118
+ throw TypeError(".TW.FIO.Proto.Action.RemovePubAddress.publicAddresses: object expected");
60119
+ message.publicAddresses[i] = $root.TW.FIO.Proto.PublicAddress.fromObject(object.publicAddresses[i]);
60120
+ }
60121
+ }
60122
+ if (object.fee != null)
60123
+ if ($util.Long)
60124
+ (message.fee = $util.Long.fromValue(object.fee)).unsigned = true;
60125
+ else if (typeof object.fee === "string")
60126
+ message.fee = parseInt(object.fee, 10);
60127
+ else if (typeof object.fee === "number")
60128
+ message.fee = object.fee;
60129
+ else if (typeof object.fee === "object")
60130
+ message.fee = new $util.LongBits(object.fee.low >>> 0, object.fee.high >>> 0).toNumber(true);
60131
+ return message;
60132
+ };
60133
+
60134
+ /**
60135
+ * Creates a plain object from a RemovePubAddress message. Also converts values to other types if specified.
60136
+ * @function toObject
60137
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60138
+ * @static
60139
+ * @param {TW.FIO.Proto.Action.RemovePubAddress} message RemovePubAddress
60140
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60141
+ * @returns {Object.<string,*>} Plain object
60142
+ */
60143
+ RemovePubAddress.toObject = function toObject(message, options) {
60144
+ if (!options)
60145
+ options = {};
60146
+ var object = {};
60147
+ if (options.arrays || options.defaults)
60148
+ object.publicAddresses = [];
60149
+ if (options.defaults) {
60150
+ object.fioAddress = "";
60151
+ if ($util.Long) {
60152
+ var long = new $util.Long(0, 0, true);
60153
+ object.fee = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
60154
+ } else
60155
+ object.fee = options.longs === String ? "0" : 0;
60156
+ }
60157
+ if (message.fioAddress != null && message.hasOwnProperty("fioAddress"))
60158
+ object.fioAddress = message.fioAddress;
60159
+ if (message.publicAddresses && message.publicAddresses.length) {
60160
+ object.publicAddresses = [];
60161
+ for (var j = 0; j < message.publicAddresses.length; ++j)
60162
+ object.publicAddresses[j] = $root.TW.FIO.Proto.PublicAddress.toObject(message.publicAddresses[j], options);
60163
+ }
60164
+ if (message.fee != null && message.hasOwnProperty("fee"))
60165
+ if (typeof message.fee === "number")
60166
+ object.fee = options.longs === String ? String(message.fee) : message.fee;
60167
+ else
60168
+ object.fee = options.longs === String ? $util.Long.prototype.toString.call(message.fee) : options.longs === Number ? new $util.LongBits(message.fee.low >>> 0, message.fee.high >>> 0).toNumber(true) : message.fee;
60169
+ return object;
60170
+ };
60171
+
60172
+ /**
60173
+ * Converts this RemovePubAddress to JSON.
60174
+ * @function toJSON
60175
+ * @memberof TW.FIO.Proto.Action.RemovePubAddress
60176
+ * @instance
60177
+ * @returns {Object.<string,*>} JSON object
60178
+ */
60179
+ RemovePubAddress.prototype.toJSON = function toJSON() {
60180
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60181
+ };
60182
+
60183
+ return RemovePubAddress;
60184
+ })();
60185
+
59913
60186
  Action.Transfer = (function() {
59914
60187
 
59915
60188
  /**
@@ -61164,6 +61437,7 @@
61164
61437
  * @property {string|null} [json] SigningOutput json
61165
61438
  * @property {TW.Common.Proto.SigningError|null} [error] SigningOutput error
61166
61439
  * @property {string|null} [errorMessage] SigningOutput errorMessage
61440
+ * @property {string|null} [actionName] SigningOutput actionName
61167
61441
  */
61168
61442
 
61169
61443
  /**
@@ -61205,6 +61479,14 @@
61205
61479
  */
61206
61480
  SigningOutput.prototype.errorMessage = "";
61207
61481
 
61482
+ /**
61483
+ * SigningOutput actionName.
61484
+ * @member {string} actionName
61485
+ * @memberof TW.FIO.Proto.SigningOutput
61486
+ * @instance
61487
+ */
61488
+ SigningOutput.prototype.actionName = "";
61489
+
61208
61490
  /**
61209
61491
  * Creates a new SigningOutput instance using the specified properties.
61210
61492
  * @function create
@@ -61235,6 +61517,8 @@
61235
61517
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.error);
61236
61518
  if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
61237
61519
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorMessage);
61520
+ if (message.actionName != null && Object.hasOwnProperty.call(message, "actionName"))
61521
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionName);
61238
61522
  return writer;
61239
61523
  };
61240
61524
 
@@ -61265,6 +61549,9 @@
61265
61549
  case 3:
61266
61550
  message.errorMessage = reader.string();
61267
61551
  break;
61552
+ case 4:
61553
+ message.actionName = reader.string();
61554
+ break;
61268
61555
  default:
61269
61556
  reader.skipType(tag & 7);
61270
61557
  break;
@@ -61322,6 +61609,9 @@
61322
61609
  if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
61323
61610
  if (!$util.isString(message.errorMessage))
61324
61611
  return "errorMessage: string expected";
61612
+ if (message.actionName != null && message.hasOwnProperty("actionName"))
61613
+ if (!$util.isString(message.actionName))
61614
+ return "actionName: string expected";
61325
61615
  return null;
61326
61616
  };
61327
61617
 
@@ -61447,6 +61737,8 @@
61447
61737
  }
61448
61738
  if (object.errorMessage != null)
61449
61739
  message.errorMessage = String(object.errorMessage);
61740
+ if (object.actionName != null)
61741
+ message.actionName = String(object.actionName);
61450
61742
  return message;
61451
61743
  };
61452
61744
 
@@ -61467,6 +61759,7 @@
61467
61759
  object.json = "";
61468
61760
  object.error = options.enums === String ? "OK" : 0;
61469
61761
  object.errorMessage = "";
61762
+ object.actionName = "";
61470
61763
  }
61471
61764
  if (message.json != null && message.hasOwnProperty("json"))
61472
61765
  object.json = message.json;
@@ -61474,6 +61767,8 @@
61474
61767
  object.error = options.enums === String ? $root.TW.Common.Proto.SigningError[message.error] : message.error;
61475
61768
  if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
61476
61769
  object.errorMessage = message.errorMessage;
61770
+ if (message.actionName != null && message.hasOwnProperty("actionName"))
61771
+ object.actionName = message.actionName;
61477
61772
  return object;
61478
61773
  };
61479
61774
 
@@ -34,7 +34,7 @@ function Ra(){H++;g.monitorRunDependencies&&g.monitorRunDependencies(H);assert(!
34
34
  function Sa(){return K.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function M(a){return function(){var b=g.asm;assert(Na,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var K;K="wallet-core.wasm";if(!Sa()){var Ta=K;K=g.locateFile?g.locateFile(Ta,x):x+Ta}
35
35
  function Ua(){var a=K;try{if(a==K&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){n(b)}}
36
36
  function Va(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(K))return fetch(K,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+K+"'";return a.arrayBuffer()}).catch(function(){return Ua()});if(ja)return new Promise(function(a,b){ja(K,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Ua()})}
37
- var Wa,Xa,Ya={2048788:()=>{if(void 0===g.ea)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.ea=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.ea=a}catch(e){throw"No secure random number generator found";}}},2049510:()=>g.ea()};function Za(a){for(;0<a.length;)a.shift()(g)}
37
+ var Wa,Xa,Ya={2049364:()=>{if(void 0===g.ea)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.ea=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.ea=a}catch(e){throw"No secure random number generator found";}}},2050086:()=>g.ea()};function Za(a){for(;0<a.length;)a.shift()(g)}
38
38
  function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){$a||($a={});$a[a]||($a[a]=1,v&&(a="warning: "+a),y(a))}var $a;function ab(a){this.l=a-24;this.Na=function(b){G[this.l+4>>2]=b};this.Ia=function(b){G[this.l+8>>2]=b};this.Ja=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.Ka=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Na(b);this.Ia(c);this.Ja();this.Ea();this.Ka()};this.Da=function(){G[this.l+16>>2]=0}}
39
39
  var bb=0,cb=(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},db=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=cb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},eb=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},fb=
40
40
  a=>{if("/"===a)return"/";a=db(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.0.35",
3
+ "version": "4.0.36",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",