@trustwallet/wallet-core 4.0.36 → 4.0.38

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.
@@ -19669,6 +19669,12 @@ export namespace TW {
19669
19669
 
19670
19670
  /** Action removePubAddressMessage */
19671
19671
  removePubAddressMessage?: (TW.FIO.Proto.Action.IRemovePubAddress|null);
19672
+
19673
+ /** Action removeAllPubAddressesMessage */
19674
+ removeAllPubAddressesMessage?: (TW.FIO.Proto.Action.IRemoveAllPubAddress|null);
19675
+
19676
+ /** Action addBundledTransactionsMessage */
19677
+ addBundledTransactionsMessage?: (TW.FIO.Proto.Action.IAddBundledTransactions|null);
19672
19678
  }
19673
19679
 
19674
19680
  /** Represents an Action. */
@@ -19698,8 +19704,14 @@ export namespace TW {
19698
19704
  /** Action removePubAddressMessage. */
19699
19705
  public removePubAddressMessage?: (TW.FIO.Proto.Action.IRemovePubAddress|null);
19700
19706
 
19707
+ /** Action removeAllPubAddressesMessage. */
19708
+ public removeAllPubAddressesMessage?: (TW.FIO.Proto.Action.IRemoveAllPubAddress|null);
19709
+
19710
+ /** Action addBundledTransactionsMessage. */
19711
+ public addBundledTransactionsMessage?: (TW.FIO.Proto.Action.IAddBundledTransactions|null);
19712
+
19701
19713
  /** Action messageOneof. */
19702
- public messageOneof?: ("registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|"removePubAddressMessage");
19714
+ public messageOneof?: ("registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|"removePubAddressMessage"|"removeAllPubAddressesMessage"|"addBundledTransactionsMessage");
19703
19715
 
19704
19716
  /**
19705
19717
  * Creates a new Action instance using the specified properties.
@@ -20012,6 +20024,85 @@ export namespace TW {
20012
20024
  public toJSON(): { [k: string]: any };
20013
20025
  }
20014
20026
 
20027
+ /** Properties of a RemoveAllPubAddress. */
20028
+ interface IRemoveAllPubAddress {
20029
+
20030
+ /** RemoveAllPubAddress fioAddress */
20031
+ fioAddress?: (string|null);
20032
+
20033
+ /** RemoveAllPubAddress fee */
20034
+ fee?: (Long|null);
20035
+ }
20036
+
20037
+ /** Represents a RemoveAllPubAddress. */
20038
+ class RemoveAllPubAddress implements IRemoveAllPubAddress {
20039
+
20040
+ /**
20041
+ * Constructs a new RemoveAllPubAddress.
20042
+ * @param [properties] Properties to set
20043
+ */
20044
+ constructor(properties?: TW.FIO.Proto.Action.IRemoveAllPubAddress);
20045
+
20046
+ /** RemoveAllPubAddress fioAddress. */
20047
+ public fioAddress: string;
20048
+
20049
+ /** RemoveAllPubAddress fee. */
20050
+ public fee: Long;
20051
+
20052
+ /**
20053
+ * Creates a new RemoveAllPubAddress instance using the specified properties.
20054
+ * @param [properties] Properties to set
20055
+ * @returns RemoveAllPubAddress instance
20056
+ */
20057
+ public static create(properties?: TW.FIO.Proto.Action.IRemoveAllPubAddress): TW.FIO.Proto.Action.RemoveAllPubAddress;
20058
+
20059
+ /**
20060
+ * Encodes the specified RemoveAllPubAddress message. Does not implicitly {@link TW.FIO.Proto.Action.RemoveAllPubAddress.verify|verify} messages.
20061
+ * @param message RemoveAllPubAddress message or plain object to encode
20062
+ * @param [writer] Writer to encode to
20063
+ * @returns Writer
20064
+ */
20065
+ public static encode(message: TW.FIO.Proto.Action.IRemoveAllPubAddress, writer?: $protobuf.Writer): $protobuf.Writer;
20066
+
20067
+ /**
20068
+ * Decodes a RemoveAllPubAddress message from the specified reader or buffer.
20069
+ * @param reader Reader or buffer to decode from
20070
+ * @param [length] Message length if known beforehand
20071
+ * @returns RemoveAllPubAddress
20072
+ * @throws {Error} If the payload is not a reader or valid buffer
20073
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20074
+ */
20075
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.FIO.Proto.Action.RemoveAllPubAddress;
20076
+
20077
+ /**
20078
+ * Verifies a RemoveAllPubAddress message.
20079
+ * @param message Plain object to verify
20080
+ * @returns `null` if valid, otherwise the reason why it is not
20081
+ */
20082
+ public static verify(message: { [k: string]: any }): (string|null);
20083
+
20084
+ /**
20085
+ * Creates a RemoveAllPubAddress message from a plain object. Also converts values to their respective internal types.
20086
+ * @param object Plain object
20087
+ * @returns RemoveAllPubAddress
20088
+ */
20089
+ public static fromObject(object: { [k: string]: any }): TW.FIO.Proto.Action.RemoveAllPubAddress;
20090
+
20091
+ /**
20092
+ * Creates a plain object from a RemoveAllPubAddress message. Also converts values to other types if specified.
20093
+ * @param message RemoveAllPubAddress
20094
+ * @param [options] Conversion options
20095
+ * @returns Plain object
20096
+ */
20097
+ public static toObject(message: TW.FIO.Proto.Action.RemoveAllPubAddress, options?: $protobuf.IConversionOptions): { [k: string]: any };
20098
+
20099
+ /**
20100
+ * Converts this RemoveAllPubAddress to JSON.
20101
+ * @returns JSON object
20102
+ */
20103
+ public toJSON(): { [k: string]: any };
20104
+ }
20105
+
20015
20106
  /** Properties of a Transfer. */
20016
20107
  interface ITransfer {
20017
20108
 
@@ -20278,6 +20369,91 @@ export namespace TW {
20278
20369
  */
20279
20370
  public toJSON(): { [k: string]: any };
20280
20371
  }
20372
+
20373
+ /** Properties of an AddBundledTransactions. */
20374
+ interface IAddBundledTransactions {
20375
+
20376
+ /** AddBundledTransactions fioAddress */
20377
+ fioAddress?: (string|null);
20378
+
20379
+ /** AddBundledTransactions bundleSets */
20380
+ bundleSets?: (Long|null);
20381
+
20382
+ /** AddBundledTransactions fee */
20383
+ fee?: (Long|null);
20384
+ }
20385
+
20386
+ /** Represents an AddBundledTransactions. */
20387
+ class AddBundledTransactions implements IAddBundledTransactions {
20388
+
20389
+ /**
20390
+ * Constructs a new AddBundledTransactions.
20391
+ * @param [properties] Properties to set
20392
+ */
20393
+ constructor(properties?: TW.FIO.Proto.Action.IAddBundledTransactions);
20394
+
20395
+ /** AddBundledTransactions fioAddress. */
20396
+ public fioAddress: string;
20397
+
20398
+ /** AddBundledTransactions bundleSets. */
20399
+ public bundleSets: Long;
20400
+
20401
+ /** AddBundledTransactions fee. */
20402
+ public fee: Long;
20403
+
20404
+ /**
20405
+ * Creates a new AddBundledTransactions instance using the specified properties.
20406
+ * @param [properties] Properties to set
20407
+ * @returns AddBundledTransactions instance
20408
+ */
20409
+ public static create(properties?: TW.FIO.Proto.Action.IAddBundledTransactions): TW.FIO.Proto.Action.AddBundledTransactions;
20410
+
20411
+ /**
20412
+ * Encodes the specified AddBundledTransactions message. Does not implicitly {@link TW.FIO.Proto.Action.AddBundledTransactions.verify|verify} messages.
20413
+ * @param message AddBundledTransactions message or plain object to encode
20414
+ * @param [writer] Writer to encode to
20415
+ * @returns Writer
20416
+ */
20417
+ public static encode(message: TW.FIO.Proto.Action.IAddBundledTransactions, writer?: $protobuf.Writer): $protobuf.Writer;
20418
+
20419
+ /**
20420
+ * Decodes an AddBundledTransactions message from the specified reader or buffer.
20421
+ * @param reader Reader or buffer to decode from
20422
+ * @param [length] Message length if known beforehand
20423
+ * @returns AddBundledTransactions
20424
+ * @throws {Error} If the payload is not a reader or valid buffer
20425
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20426
+ */
20427
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.FIO.Proto.Action.AddBundledTransactions;
20428
+
20429
+ /**
20430
+ * Verifies an AddBundledTransactions message.
20431
+ * @param message Plain object to verify
20432
+ * @returns `null` if valid, otherwise the reason why it is not
20433
+ */
20434
+ public static verify(message: { [k: string]: any }): (string|null);
20435
+
20436
+ /**
20437
+ * Creates an AddBundledTransactions message from a plain object. Also converts values to their respective internal types.
20438
+ * @param object Plain object
20439
+ * @returns AddBundledTransactions
20440
+ */
20441
+ public static fromObject(object: { [k: string]: any }): TW.FIO.Proto.Action.AddBundledTransactions;
20442
+
20443
+ /**
20444
+ * Creates a plain object from an AddBundledTransactions message. Also converts values to other types if specified.
20445
+ * @param message AddBundledTransactions
20446
+ * @param [options] Conversion options
20447
+ * @returns Plain object
20448
+ */
20449
+ public static toObject(message: TW.FIO.Proto.Action.AddBundledTransactions, options?: $protobuf.IConversionOptions): { [k: string]: any };
20450
+
20451
+ /**
20452
+ * Converts this AddBundledTransactions to JSON.
20453
+ * @returns JSON object
20454
+ */
20455
+ public toJSON(): { [k: string]: any };
20456
+ }
20281
20457
  }
20282
20458
 
20283
20459
  /** Properties of a ChainParams. */
@@ -59151,6 +59151,8 @@
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
59153
  * @property {TW.FIO.Proto.Action.IRemovePubAddress|null} [removePubAddressMessage] Action removePubAddressMessage
59154
+ * @property {TW.FIO.Proto.Action.IRemoveAllPubAddress|null} [removeAllPubAddressesMessage] Action removeAllPubAddressesMessage
59155
+ * @property {TW.FIO.Proto.Action.IAddBundledTransactions|null} [addBundledTransactionsMessage] Action addBundledTransactionsMessage
59154
59156
  */
59155
59157
 
59156
59158
  /**
@@ -59216,17 +59218,33 @@
59216
59218
  */
59217
59219
  Action.prototype.removePubAddressMessage = null;
59218
59220
 
59221
+ /**
59222
+ * Action removeAllPubAddressesMessage.
59223
+ * @member {TW.FIO.Proto.Action.IRemoveAllPubAddress|null|undefined} removeAllPubAddressesMessage
59224
+ * @memberof TW.FIO.Proto.Action
59225
+ * @instance
59226
+ */
59227
+ Action.prototype.removeAllPubAddressesMessage = null;
59228
+
59229
+ /**
59230
+ * Action addBundledTransactionsMessage.
59231
+ * @member {TW.FIO.Proto.Action.IAddBundledTransactions|null|undefined} addBundledTransactionsMessage
59232
+ * @memberof TW.FIO.Proto.Action
59233
+ * @instance
59234
+ */
59235
+ Action.prototype.addBundledTransactionsMessage = null;
59236
+
59219
59237
  // OneOf field names bound to virtual getters and setters
59220
59238
  var $oneOfFields;
59221
59239
 
59222
59240
  /**
59223
59241
  * Action messageOneof.
59224
- * @member {"registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|"removePubAddressMessage"|undefined} messageOneof
59242
+ * @member {"registerFioAddressMessage"|"addPubAddressMessage"|"transferMessage"|"renewFioAddressMessage"|"newFundsRequestMessage"|"removePubAddressMessage"|"removeAllPubAddressesMessage"|"addBundledTransactionsMessage"|undefined} messageOneof
59225
59243
  * @memberof TW.FIO.Proto.Action
59226
59244
  * @instance
59227
59245
  */
59228
59246
  Object.defineProperty(Action.prototype, "messageOneof", {
59229
- get: $util.oneOfGetter($oneOfFields = ["registerFioAddressMessage", "addPubAddressMessage", "transferMessage", "renewFioAddressMessage", "newFundsRequestMessage", "removePubAddressMessage"]),
59247
+ get: $util.oneOfGetter($oneOfFields = ["registerFioAddressMessage", "addPubAddressMessage", "transferMessage", "renewFioAddressMessage", "newFundsRequestMessage", "removePubAddressMessage", "removeAllPubAddressesMessage", "addBundledTransactionsMessage"]),
59230
59248
  set: $util.oneOfSetter($oneOfFields)
59231
59249
  });
59232
59250
 
@@ -59266,6 +59284,10 @@
59266
59284
  $root.TW.FIO.Proto.Action.NewFundsRequest.encode(message.newFundsRequestMessage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
59267
59285
  if (message.removePubAddressMessage != null && Object.hasOwnProperty.call(message, "removePubAddressMessage"))
59268
59286
  $root.TW.FIO.Proto.Action.RemovePubAddress.encode(message.removePubAddressMessage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
59287
+ if (message.removeAllPubAddressesMessage != null && Object.hasOwnProperty.call(message, "removeAllPubAddressesMessage"))
59288
+ $root.TW.FIO.Proto.Action.RemoveAllPubAddress.encode(message.removeAllPubAddressesMessage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
59289
+ if (message.addBundledTransactionsMessage != null && Object.hasOwnProperty.call(message, "addBundledTransactionsMessage"))
59290
+ $root.TW.FIO.Proto.Action.AddBundledTransactions.encode(message.addBundledTransactionsMessage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
59269
59291
  return writer;
59270
59292
  };
59271
59293
 
@@ -59305,6 +59327,12 @@
59305
59327
  case 6:
59306
59328
  message.removePubAddressMessage = $root.TW.FIO.Proto.Action.RemovePubAddress.decode(reader, reader.uint32());
59307
59329
  break;
59330
+ case 7:
59331
+ message.removeAllPubAddressesMessage = $root.TW.FIO.Proto.Action.RemoveAllPubAddress.decode(reader, reader.uint32());
59332
+ break;
59333
+ case 8:
59334
+ message.addBundledTransactionsMessage = $root.TW.FIO.Proto.Action.AddBundledTransactions.decode(reader, reader.uint32());
59335
+ break;
59308
59336
  default:
59309
59337
  reader.skipType(tag & 7);
59310
59338
  break;
@@ -59383,6 +59411,26 @@
59383
59411
  return "removePubAddressMessage." + error;
59384
59412
  }
59385
59413
  }
59414
+ if (message.removeAllPubAddressesMessage != null && message.hasOwnProperty("removeAllPubAddressesMessage")) {
59415
+ if (properties.messageOneof === 1)
59416
+ return "messageOneof: multiple values";
59417
+ properties.messageOneof = 1;
59418
+ {
59419
+ var error = $root.TW.FIO.Proto.Action.RemoveAllPubAddress.verify(message.removeAllPubAddressesMessage);
59420
+ if (error)
59421
+ return "removeAllPubAddressesMessage." + error;
59422
+ }
59423
+ }
59424
+ if (message.addBundledTransactionsMessage != null && message.hasOwnProperty("addBundledTransactionsMessage")) {
59425
+ if (properties.messageOneof === 1)
59426
+ return "messageOneof: multiple values";
59427
+ properties.messageOneof = 1;
59428
+ {
59429
+ var error = $root.TW.FIO.Proto.Action.AddBundledTransactions.verify(message.addBundledTransactionsMessage);
59430
+ if (error)
59431
+ return "addBundledTransactionsMessage." + error;
59432
+ }
59433
+ }
59386
59434
  return null;
59387
59435
  };
59388
59436
 
@@ -59428,6 +59476,16 @@
59428
59476
  throw TypeError(".TW.FIO.Proto.Action.removePubAddressMessage: object expected");
59429
59477
  message.removePubAddressMessage = $root.TW.FIO.Proto.Action.RemovePubAddress.fromObject(object.removePubAddressMessage);
59430
59478
  }
59479
+ if (object.removeAllPubAddressesMessage != null) {
59480
+ if (typeof object.removeAllPubAddressesMessage !== "object")
59481
+ throw TypeError(".TW.FIO.Proto.Action.removeAllPubAddressesMessage: object expected");
59482
+ message.removeAllPubAddressesMessage = $root.TW.FIO.Proto.Action.RemoveAllPubAddress.fromObject(object.removeAllPubAddressesMessage);
59483
+ }
59484
+ if (object.addBundledTransactionsMessage != null) {
59485
+ if (typeof object.addBundledTransactionsMessage !== "object")
59486
+ throw TypeError(".TW.FIO.Proto.Action.addBundledTransactionsMessage: object expected");
59487
+ message.addBundledTransactionsMessage = $root.TW.FIO.Proto.Action.AddBundledTransactions.fromObject(object.addBundledTransactionsMessage);
59488
+ }
59431
59489
  return message;
59432
59490
  };
59433
59491
 
@@ -59474,6 +59532,16 @@
59474
59532
  if (options.oneofs)
59475
59533
  object.messageOneof = "removePubAddressMessage";
59476
59534
  }
59535
+ if (message.removeAllPubAddressesMessage != null && message.hasOwnProperty("removeAllPubAddressesMessage")) {
59536
+ object.removeAllPubAddressesMessage = $root.TW.FIO.Proto.Action.RemoveAllPubAddress.toObject(message.removeAllPubAddressesMessage, options);
59537
+ if (options.oneofs)
59538
+ object.messageOneof = "removeAllPubAddressesMessage";
59539
+ }
59540
+ if (message.addBundledTransactionsMessage != null && message.hasOwnProperty("addBundledTransactionsMessage")) {
59541
+ object.addBundledTransactionsMessage = $root.TW.FIO.Proto.Action.AddBundledTransactions.toObject(message.addBundledTransactionsMessage, options);
59542
+ if (options.oneofs)
59543
+ object.messageOneof = "addBundledTransactionsMessage";
59544
+ }
59477
59545
  return object;
59478
59546
  };
59479
59547
 
@@ -60183,6 +60251,201 @@
60183
60251
  return RemovePubAddress;
60184
60252
  })();
60185
60253
 
60254
+ Action.RemoveAllPubAddress = (function() {
60255
+
60256
+ /**
60257
+ * Properties of a RemoveAllPubAddress.
60258
+ * @memberof TW.FIO.Proto.Action
60259
+ * @interface IRemoveAllPubAddress
60260
+ * @property {string|null} [fioAddress] RemoveAllPubAddress fioAddress
60261
+ * @property {Long|null} [fee] RemoveAllPubAddress fee
60262
+ */
60263
+
60264
+ /**
60265
+ * Constructs a new RemoveAllPubAddress.
60266
+ * @memberof TW.FIO.Proto.Action
60267
+ * @classdesc Represents a RemoveAllPubAddress.
60268
+ * @implements IRemoveAllPubAddress
60269
+ * @constructor
60270
+ * @param {TW.FIO.Proto.Action.IRemoveAllPubAddress=} [properties] Properties to set
60271
+ */
60272
+ function RemoveAllPubAddress(properties) {
60273
+ if (properties)
60274
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60275
+ if (properties[keys[i]] != null)
60276
+ this[keys[i]] = properties[keys[i]];
60277
+ }
60278
+
60279
+ /**
60280
+ * RemoveAllPubAddress fioAddress.
60281
+ * @member {string} fioAddress
60282
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60283
+ * @instance
60284
+ */
60285
+ RemoveAllPubAddress.prototype.fioAddress = "";
60286
+
60287
+ /**
60288
+ * RemoveAllPubAddress fee.
60289
+ * @member {Long} fee
60290
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60291
+ * @instance
60292
+ */
60293
+ RemoveAllPubAddress.prototype.fee = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
60294
+
60295
+ /**
60296
+ * Creates a new RemoveAllPubAddress instance using the specified properties.
60297
+ * @function create
60298
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60299
+ * @static
60300
+ * @param {TW.FIO.Proto.Action.IRemoveAllPubAddress=} [properties] Properties to set
60301
+ * @returns {TW.FIO.Proto.Action.RemoveAllPubAddress} RemoveAllPubAddress instance
60302
+ */
60303
+ RemoveAllPubAddress.create = function create(properties) {
60304
+ return new RemoveAllPubAddress(properties);
60305
+ };
60306
+
60307
+ /**
60308
+ * Encodes the specified RemoveAllPubAddress message. Does not implicitly {@link TW.FIO.Proto.Action.RemoveAllPubAddress.verify|verify} messages.
60309
+ * @function encode
60310
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60311
+ * @static
60312
+ * @param {TW.FIO.Proto.Action.IRemoveAllPubAddress} message RemoveAllPubAddress message or plain object to encode
60313
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60314
+ * @returns {$protobuf.Writer} Writer
60315
+ */
60316
+ RemoveAllPubAddress.encode = function encode(message, writer) {
60317
+ if (!writer)
60318
+ writer = $Writer.create();
60319
+ if (message.fioAddress != null && Object.hasOwnProperty.call(message, "fioAddress"))
60320
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.fioAddress);
60321
+ if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
60322
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.fee);
60323
+ return writer;
60324
+ };
60325
+
60326
+ /**
60327
+ * Decodes a RemoveAllPubAddress message from the specified reader or buffer.
60328
+ * @function decode
60329
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60330
+ * @static
60331
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60332
+ * @param {number} [length] Message length if known beforehand
60333
+ * @returns {TW.FIO.Proto.Action.RemoveAllPubAddress} RemoveAllPubAddress
60334
+ * @throws {Error} If the payload is not a reader or valid buffer
60335
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60336
+ */
60337
+ RemoveAllPubAddress.decode = function decode(reader, length) {
60338
+ if (!(reader instanceof $Reader))
60339
+ reader = $Reader.create(reader);
60340
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.FIO.Proto.Action.RemoveAllPubAddress();
60341
+ while (reader.pos < end) {
60342
+ var tag = reader.uint32();
60343
+ switch (tag >>> 3) {
60344
+ case 1:
60345
+ message.fioAddress = reader.string();
60346
+ break;
60347
+ case 3:
60348
+ message.fee = reader.uint64();
60349
+ break;
60350
+ default:
60351
+ reader.skipType(tag & 7);
60352
+ break;
60353
+ }
60354
+ }
60355
+ return message;
60356
+ };
60357
+
60358
+ /**
60359
+ * Verifies a RemoveAllPubAddress message.
60360
+ * @function verify
60361
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60362
+ * @static
60363
+ * @param {Object.<string,*>} message Plain object to verify
60364
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60365
+ */
60366
+ RemoveAllPubAddress.verify = function verify(message) {
60367
+ if (typeof message !== "object" || message === null)
60368
+ return "object expected";
60369
+ if (message.fioAddress != null && message.hasOwnProperty("fioAddress"))
60370
+ if (!$util.isString(message.fioAddress))
60371
+ return "fioAddress: string expected";
60372
+ if (message.fee != null && message.hasOwnProperty("fee"))
60373
+ if (!$util.isInteger(message.fee) && !(message.fee && $util.isInteger(message.fee.low) && $util.isInteger(message.fee.high)))
60374
+ return "fee: integer|Long expected";
60375
+ return null;
60376
+ };
60377
+
60378
+ /**
60379
+ * Creates a RemoveAllPubAddress message from a plain object. Also converts values to their respective internal types.
60380
+ * @function fromObject
60381
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60382
+ * @static
60383
+ * @param {Object.<string,*>} object Plain object
60384
+ * @returns {TW.FIO.Proto.Action.RemoveAllPubAddress} RemoveAllPubAddress
60385
+ */
60386
+ RemoveAllPubAddress.fromObject = function fromObject(object) {
60387
+ if (object instanceof $root.TW.FIO.Proto.Action.RemoveAllPubAddress)
60388
+ return object;
60389
+ var message = new $root.TW.FIO.Proto.Action.RemoveAllPubAddress();
60390
+ if (object.fioAddress != null)
60391
+ message.fioAddress = String(object.fioAddress);
60392
+ if (object.fee != null)
60393
+ if ($util.Long)
60394
+ (message.fee = $util.Long.fromValue(object.fee)).unsigned = true;
60395
+ else if (typeof object.fee === "string")
60396
+ message.fee = parseInt(object.fee, 10);
60397
+ else if (typeof object.fee === "number")
60398
+ message.fee = object.fee;
60399
+ else if (typeof object.fee === "object")
60400
+ message.fee = new $util.LongBits(object.fee.low >>> 0, object.fee.high >>> 0).toNumber(true);
60401
+ return message;
60402
+ };
60403
+
60404
+ /**
60405
+ * Creates a plain object from a RemoveAllPubAddress message. Also converts values to other types if specified.
60406
+ * @function toObject
60407
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60408
+ * @static
60409
+ * @param {TW.FIO.Proto.Action.RemoveAllPubAddress} message RemoveAllPubAddress
60410
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60411
+ * @returns {Object.<string,*>} Plain object
60412
+ */
60413
+ RemoveAllPubAddress.toObject = function toObject(message, options) {
60414
+ if (!options)
60415
+ options = {};
60416
+ var object = {};
60417
+ if (options.defaults) {
60418
+ object.fioAddress = "";
60419
+ if ($util.Long) {
60420
+ var long = new $util.Long(0, 0, true);
60421
+ object.fee = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
60422
+ } else
60423
+ object.fee = options.longs === String ? "0" : 0;
60424
+ }
60425
+ if (message.fioAddress != null && message.hasOwnProperty("fioAddress"))
60426
+ object.fioAddress = message.fioAddress;
60427
+ if (message.fee != null && message.hasOwnProperty("fee"))
60428
+ if (typeof message.fee === "number")
60429
+ object.fee = options.longs === String ? String(message.fee) : message.fee;
60430
+ else
60431
+ 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;
60432
+ return object;
60433
+ };
60434
+
60435
+ /**
60436
+ * Converts this RemoveAllPubAddress to JSON.
60437
+ * @function toJSON
60438
+ * @memberof TW.FIO.Proto.Action.RemoveAllPubAddress
60439
+ * @instance
60440
+ * @returns {Object.<string,*>} JSON object
60441
+ */
60442
+ RemoveAllPubAddress.prototype.toJSON = function toJSON() {
60443
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60444
+ };
60445
+
60446
+ return RemoveAllPubAddress;
60447
+ })();
60448
+
60186
60449
  Action.Transfer = (function() {
60187
60450
 
60188
60451
  /**
@@ -60897,6 +61160,237 @@
60897
61160
  return NewFundsRequest;
60898
61161
  })();
60899
61162
 
61163
+ Action.AddBundledTransactions = (function() {
61164
+
61165
+ /**
61166
+ * Properties of an AddBundledTransactions.
61167
+ * @memberof TW.FIO.Proto.Action
61168
+ * @interface IAddBundledTransactions
61169
+ * @property {string|null} [fioAddress] AddBundledTransactions fioAddress
61170
+ * @property {Long|null} [bundleSets] AddBundledTransactions bundleSets
61171
+ * @property {Long|null} [fee] AddBundledTransactions fee
61172
+ */
61173
+
61174
+ /**
61175
+ * Constructs a new AddBundledTransactions.
61176
+ * @memberof TW.FIO.Proto.Action
61177
+ * @classdesc Represents an AddBundledTransactions.
61178
+ * @implements IAddBundledTransactions
61179
+ * @constructor
61180
+ * @param {TW.FIO.Proto.Action.IAddBundledTransactions=} [properties] Properties to set
61181
+ */
61182
+ function AddBundledTransactions(properties) {
61183
+ if (properties)
61184
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61185
+ if (properties[keys[i]] != null)
61186
+ this[keys[i]] = properties[keys[i]];
61187
+ }
61188
+
61189
+ /**
61190
+ * AddBundledTransactions fioAddress.
61191
+ * @member {string} fioAddress
61192
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61193
+ * @instance
61194
+ */
61195
+ AddBundledTransactions.prototype.fioAddress = "";
61196
+
61197
+ /**
61198
+ * AddBundledTransactions bundleSets.
61199
+ * @member {Long} bundleSets
61200
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61201
+ * @instance
61202
+ */
61203
+ AddBundledTransactions.prototype.bundleSets = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
61204
+
61205
+ /**
61206
+ * AddBundledTransactions fee.
61207
+ * @member {Long} fee
61208
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61209
+ * @instance
61210
+ */
61211
+ AddBundledTransactions.prototype.fee = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
61212
+
61213
+ /**
61214
+ * Creates a new AddBundledTransactions instance using the specified properties.
61215
+ * @function create
61216
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61217
+ * @static
61218
+ * @param {TW.FIO.Proto.Action.IAddBundledTransactions=} [properties] Properties to set
61219
+ * @returns {TW.FIO.Proto.Action.AddBundledTransactions} AddBundledTransactions instance
61220
+ */
61221
+ AddBundledTransactions.create = function create(properties) {
61222
+ return new AddBundledTransactions(properties);
61223
+ };
61224
+
61225
+ /**
61226
+ * Encodes the specified AddBundledTransactions message. Does not implicitly {@link TW.FIO.Proto.Action.AddBundledTransactions.verify|verify} messages.
61227
+ * @function encode
61228
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61229
+ * @static
61230
+ * @param {TW.FIO.Proto.Action.IAddBundledTransactions} message AddBundledTransactions message or plain object to encode
61231
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61232
+ * @returns {$protobuf.Writer} Writer
61233
+ */
61234
+ AddBundledTransactions.encode = function encode(message, writer) {
61235
+ if (!writer)
61236
+ writer = $Writer.create();
61237
+ if (message.fioAddress != null && Object.hasOwnProperty.call(message, "fioAddress"))
61238
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.fioAddress);
61239
+ if (message.bundleSets != null && Object.hasOwnProperty.call(message, "bundleSets"))
61240
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.bundleSets);
61241
+ if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
61242
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.fee);
61243
+ return writer;
61244
+ };
61245
+
61246
+ /**
61247
+ * Decodes an AddBundledTransactions message from the specified reader or buffer.
61248
+ * @function decode
61249
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61250
+ * @static
61251
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61252
+ * @param {number} [length] Message length if known beforehand
61253
+ * @returns {TW.FIO.Proto.Action.AddBundledTransactions} AddBundledTransactions
61254
+ * @throws {Error} If the payload is not a reader or valid buffer
61255
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61256
+ */
61257
+ AddBundledTransactions.decode = function decode(reader, length) {
61258
+ if (!(reader instanceof $Reader))
61259
+ reader = $Reader.create(reader);
61260
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.FIO.Proto.Action.AddBundledTransactions();
61261
+ while (reader.pos < end) {
61262
+ var tag = reader.uint32();
61263
+ switch (tag >>> 3) {
61264
+ case 1:
61265
+ message.fioAddress = reader.string();
61266
+ break;
61267
+ case 2:
61268
+ message.bundleSets = reader.uint64();
61269
+ break;
61270
+ case 3:
61271
+ message.fee = reader.uint64();
61272
+ break;
61273
+ default:
61274
+ reader.skipType(tag & 7);
61275
+ break;
61276
+ }
61277
+ }
61278
+ return message;
61279
+ };
61280
+
61281
+ /**
61282
+ * Verifies an AddBundledTransactions message.
61283
+ * @function verify
61284
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61285
+ * @static
61286
+ * @param {Object.<string,*>} message Plain object to verify
61287
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
61288
+ */
61289
+ AddBundledTransactions.verify = function verify(message) {
61290
+ if (typeof message !== "object" || message === null)
61291
+ return "object expected";
61292
+ if (message.fioAddress != null && message.hasOwnProperty("fioAddress"))
61293
+ if (!$util.isString(message.fioAddress))
61294
+ return "fioAddress: string expected";
61295
+ if (message.bundleSets != null && message.hasOwnProperty("bundleSets"))
61296
+ if (!$util.isInteger(message.bundleSets) && !(message.bundleSets && $util.isInteger(message.bundleSets.low) && $util.isInteger(message.bundleSets.high)))
61297
+ return "bundleSets: integer|Long expected";
61298
+ if (message.fee != null && message.hasOwnProperty("fee"))
61299
+ if (!$util.isInteger(message.fee) && !(message.fee && $util.isInteger(message.fee.low) && $util.isInteger(message.fee.high)))
61300
+ return "fee: integer|Long expected";
61301
+ return null;
61302
+ };
61303
+
61304
+ /**
61305
+ * Creates an AddBundledTransactions message from a plain object. Also converts values to their respective internal types.
61306
+ * @function fromObject
61307
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61308
+ * @static
61309
+ * @param {Object.<string,*>} object Plain object
61310
+ * @returns {TW.FIO.Proto.Action.AddBundledTransactions} AddBundledTransactions
61311
+ */
61312
+ AddBundledTransactions.fromObject = function fromObject(object) {
61313
+ if (object instanceof $root.TW.FIO.Proto.Action.AddBundledTransactions)
61314
+ return object;
61315
+ var message = new $root.TW.FIO.Proto.Action.AddBundledTransactions();
61316
+ if (object.fioAddress != null)
61317
+ message.fioAddress = String(object.fioAddress);
61318
+ if (object.bundleSets != null)
61319
+ if ($util.Long)
61320
+ (message.bundleSets = $util.Long.fromValue(object.bundleSets)).unsigned = true;
61321
+ else if (typeof object.bundleSets === "string")
61322
+ message.bundleSets = parseInt(object.bundleSets, 10);
61323
+ else if (typeof object.bundleSets === "number")
61324
+ message.bundleSets = object.bundleSets;
61325
+ else if (typeof object.bundleSets === "object")
61326
+ message.bundleSets = new $util.LongBits(object.bundleSets.low >>> 0, object.bundleSets.high >>> 0).toNumber(true);
61327
+ if (object.fee != null)
61328
+ if ($util.Long)
61329
+ (message.fee = $util.Long.fromValue(object.fee)).unsigned = true;
61330
+ else if (typeof object.fee === "string")
61331
+ message.fee = parseInt(object.fee, 10);
61332
+ else if (typeof object.fee === "number")
61333
+ message.fee = object.fee;
61334
+ else if (typeof object.fee === "object")
61335
+ message.fee = new $util.LongBits(object.fee.low >>> 0, object.fee.high >>> 0).toNumber(true);
61336
+ return message;
61337
+ };
61338
+
61339
+ /**
61340
+ * Creates a plain object from an AddBundledTransactions message. Also converts values to other types if specified.
61341
+ * @function toObject
61342
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61343
+ * @static
61344
+ * @param {TW.FIO.Proto.Action.AddBundledTransactions} message AddBundledTransactions
61345
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
61346
+ * @returns {Object.<string,*>} Plain object
61347
+ */
61348
+ AddBundledTransactions.toObject = function toObject(message, options) {
61349
+ if (!options)
61350
+ options = {};
61351
+ var object = {};
61352
+ if (options.defaults) {
61353
+ object.fioAddress = "";
61354
+ if ($util.Long) {
61355
+ var long = new $util.Long(0, 0, true);
61356
+ object.bundleSets = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
61357
+ } else
61358
+ object.bundleSets = options.longs === String ? "0" : 0;
61359
+ if ($util.Long) {
61360
+ var long = new $util.Long(0, 0, true);
61361
+ object.fee = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
61362
+ } else
61363
+ object.fee = options.longs === String ? "0" : 0;
61364
+ }
61365
+ if (message.fioAddress != null && message.hasOwnProperty("fioAddress"))
61366
+ object.fioAddress = message.fioAddress;
61367
+ if (message.bundleSets != null && message.hasOwnProperty("bundleSets"))
61368
+ if (typeof message.bundleSets === "number")
61369
+ object.bundleSets = options.longs === String ? String(message.bundleSets) : message.bundleSets;
61370
+ else
61371
+ object.bundleSets = options.longs === String ? $util.Long.prototype.toString.call(message.bundleSets) : options.longs === Number ? new $util.LongBits(message.bundleSets.low >>> 0, message.bundleSets.high >>> 0).toNumber(true) : message.bundleSets;
61372
+ if (message.fee != null && message.hasOwnProperty("fee"))
61373
+ if (typeof message.fee === "number")
61374
+ object.fee = options.longs === String ? String(message.fee) : message.fee;
61375
+ else
61376
+ 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;
61377
+ return object;
61378
+ };
61379
+
61380
+ /**
61381
+ * Converts this AddBundledTransactions to JSON.
61382
+ * @function toJSON
61383
+ * @memberof TW.FIO.Proto.Action.AddBundledTransactions
61384
+ * @instance
61385
+ * @returns {Object.<string,*>} JSON object
61386
+ */
61387
+ AddBundledTransactions.prototype.toJSON = function toJSON() {
61388
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
61389
+ };
61390
+
61391
+ return AddBundledTransactions;
61392
+ })();
61393
+
60900
61394
  return Action;
60901
61395
  })();
60902
61396
 
@@ -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={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)}
37
+ var Wa,Xa,Ya={2050260:()=>{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";}}},2050982:()=>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.36",
3
+ "version": "4.0.38",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",