@trustwallet/wallet-core 4.0.18 → 4.0.20

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.
@@ -6215,6 +6215,7 @@ export namespace TW {
6215
6215
  Error_utxo_missing_sighash_method = 7,
6216
6216
  Error_utxo_failed_encoding = 8,
6217
6217
  Error_utxo_insufficient_inputs = 9,
6218
+ Error_utxo_no_outputs_specified = 43,
6218
6219
  Error_utxo_missing_change_script_pubkey = 10,
6219
6220
  Error_zero_sequence_not_enabled = 11,
6220
6221
  Error_unmatched_input_signature_count = 12,
@@ -6981,7 +6982,7 @@ export namespace TW {
6981
6982
  ticker?: (string|null);
6982
6983
 
6983
6984
  /** InputBrc20Inscription transferAmount */
6984
- transferAmount?: (Long|null);
6985
+ transferAmount?: (string|null);
6985
6986
  }
6986
6987
 
6987
6988
  /** Represents an InputBrc20Inscription. */
@@ -7003,7 +7004,7 @@ export namespace TW {
7003
7004
  public ticker: string;
7004
7005
 
7005
7006
  /** InputBrc20Inscription transferAmount. */
7006
- public transferAmount: Long;
7007
+ public transferAmount: string;
7007
7008
 
7008
7009
  /**
7009
7010
  * Creates a new InputBrc20Inscription instance using the specified properties.
@@ -7536,7 +7537,7 @@ export namespace TW {
7536
7537
  ticker?: (string|null);
7537
7538
 
7538
7539
  /** OutputBrc20Inscription transferAmount */
7539
- transferAmount?: (Long|null);
7540
+ transferAmount?: (string|null);
7540
7541
  }
7541
7542
 
7542
7543
  /** Represents an OutputBrc20Inscription. */
@@ -7555,7 +7556,7 @@ export namespace TW {
7555
7556
  public ticker: string;
7556
7557
 
7557
7558
  /** OutputBrc20Inscription transferAmount. */
7558
- public transferAmount: Long;
7559
+ public transferAmount: string;
7559
7560
 
7560
7561
  /**
7561
7562
  * Creates a new OutputBrc20Inscription instance using the specified properties.
@@ -8674,7 +8675,8 @@ export namespace TW {
8674
8675
  Error_missing_sighash_method = 6,
8675
8676
  Error_failed_encoding = 7,
8676
8677
  Error_insufficient_inputs = 8,
8677
- Error_missing_change_script_pubkey = 9
8678
+ Error_no_outputs_specified = 9,
8679
+ Error_missing_change_script_pubkey = 10
8678
8680
  }
8679
8681
 
8680
8682
  /** Properties of a SigningInput. */
@@ -8794,9 +8796,9 @@ export namespace TW {
8794
8796
 
8795
8797
  /** InputSelector enum. */
8796
8798
  enum InputSelector {
8797
- UseAll = 0,
8799
+ SelectAscending = 0,
8798
8800
  SelectInOrder = 1,
8799
- SelectAscending = 2
8801
+ UseAll = 10
8800
8802
  }
8801
8803
 
8802
8804
  /** Properties of a LockTime. */
@@ -9400,6 +9402,9 @@ export namespace TW {
9400
9402
  /** TxInClaim vout */
9401
9403
  vout?: (number|null);
9402
9404
 
9405
+ /** TxInClaim value */
9406
+ value?: (Long|null);
9407
+
9403
9408
  /** TxInClaim sequence */
9404
9409
  sequence?: (number|null);
9405
9410
 
@@ -9425,6 +9430,9 @@ export namespace TW {
9425
9430
  /** TxInClaim vout. */
9426
9431
  public vout: number;
9427
9432
 
9433
+ /** TxInClaim value. */
9434
+ public value: Long;
9435
+
9428
9436
  /** TxInClaim sequence. */
9429
9437
  public sequence: number;
9430
9438
 
@@ -18985,6 +18985,7 @@
18985
18985
  * @property {number} Error_utxo_missing_sighash_method=7 Error_utxo_missing_sighash_method value
18986
18986
  * @property {number} Error_utxo_failed_encoding=8 Error_utxo_failed_encoding value
18987
18987
  * @property {number} Error_utxo_insufficient_inputs=9 Error_utxo_insufficient_inputs value
18988
+ * @property {number} Error_utxo_no_outputs_specified=43 Error_utxo_no_outputs_specified value
18988
18989
  * @property {number} Error_utxo_missing_change_script_pubkey=10 Error_utxo_missing_change_script_pubkey value
18989
18990
  * @property {number} Error_zero_sequence_not_enabled=11 Error_zero_sequence_not_enabled value
18990
18991
  * @property {number} Error_unmatched_input_signature_count=12 Error_unmatched_input_signature_count value
@@ -19031,6 +19032,7 @@
19031
19032
  values[valuesById[7] = "Error_utxo_missing_sighash_method"] = 7;
19032
19033
  values[valuesById[8] = "Error_utxo_failed_encoding"] = 8;
19033
19034
  values[valuesById[9] = "Error_utxo_insufficient_inputs"] = 9;
19035
+ values[valuesById[43] = "Error_utxo_no_outputs_specified"] = 43;
19034
19036
  values[valuesById[10] = "Error_utxo_missing_change_script_pubkey"] = 10;
19035
19037
  values[valuesById[11] = "Error_zero_sequence_not_enabled"] = 11;
19036
19038
  values[valuesById[12] = "Error_unmatched_input_signature_count"] = 12;
@@ -19338,7 +19340,7 @@
19338
19340
  return "inputSelector: enum value expected";
19339
19341
  case 0:
19340
19342
  case 1:
19341
- case 2:
19343
+ case 10:
19342
19344
  break;
19343
19345
  }
19344
19346
  if (message.feePerVb != null && message.hasOwnProperty("feePerVb"))
@@ -19403,7 +19405,7 @@
19403
19405
  }
19404
19406
  }
19405
19407
  switch (object.inputSelector) {
19406
- case "UseAll":
19408
+ case "SelectAscending":
19407
19409
  case 0:
19408
19410
  message.inputSelector = 0;
19409
19411
  break;
@@ -19411,9 +19413,9 @@
19411
19413
  case 1:
19412
19414
  message.inputSelector = 1;
19413
19415
  break;
19414
- case "SelectAscending":
19415
- case 2:
19416
- message.inputSelector = 2;
19416
+ case "UseAll":
19417
+ case 10:
19418
+ message.inputSelector = 10;
19417
19419
  break;
19418
19420
  }
19419
19421
  if (object.feePerVb != null)
@@ -19464,7 +19466,7 @@
19464
19466
  object.privateKey = $util.newBuffer(object.privateKey);
19465
19467
  }
19466
19468
  object.lockTime = null;
19467
- object.inputSelector = options.enums === String ? "UseAll" : 0;
19469
+ object.inputSelector = options.enums === String ? "SelectAscending" : 0;
19468
19470
  if ($util.Long) {
19469
19471
  var long = new $util.Long(0, 0, true);
19470
19472
  object.feePerVb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -21316,7 +21318,7 @@
21316
21318
  * @property {boolean|null} [onePrevout] InputBrc20Inscription onePrevout
21317
21319
  * @property {Uint8Array|null} [inscribeTo] InputBrc20Inscription inscribeTo
21318
21320
  * @property {string|null} [ticker] InputBrc20Inscription ticker
21319
- * @property {Long|null} [transferAmount] InputBrc20Inscription transferAmount
21321
+ * @property {string|null} [transferAmount] InputBrc20Inscription transferAmount
21320
21322
  */
21321
21323
 
21322
21324
  /**
@@ -21360,11 +21362,11 @@
21360
21362
 
21361
21363
  /**
21362
21364
  * InputBrc20Inscription transferAmount.
21363
- * @member {Long} transferAmount
21365
+ * @member {string} transferAmount
21364
21366
  * @memberof TW.BitcoinV2.Proto.Input.InputBrc20Inscription
21365
21367
  * @instance
21366
21368
  */
21367
- InputBrc20Inscription.prototype.transferAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
21369
+ InputBrc20Inscription.prototype.transferAmount = "";
21368
21370
 
21369
21371
  /**
21370
21372
  * Creates a new InputBrc20Inscription instance using the specified properties.
@@ -21397,7 +21399,7 @@
21397
21399
  if (message.ticker != null && Object.hasOwnProperty.call(message, "ticker"))
21398
21400
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.ticker);
21399
21401
  if (message.transferAmount != null && Object.hasOwnProperty.call(message, "transferAmount"))
21400
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.transferAmount);
21402
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.transferAmount);
21401
21403
  return writer;
21402
21404
  };
21403
21405
 
@@ -21429,7 +21431,7 @@
21429
21431
  message.ticker = reader.string();
21430
21432
  break;
21431
21433
  case 4:
21432
- message.transferAmount = reader.uint64();
21434
+ message.transferAmount = reader.string();
21433
21435
  break;
21434
21436
  default:
21435
21437
  reader.skipType(tag & 7);
@@ -21460,8 +21462,8 @@
21460
21462
  if (!$util.isString(message.ticker))
21461
21463
  return "ticker: string expected";
21462
21464
  if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
21463
- if (!$util.isInteger(message.transferAmount) && !(message.transferAmount && $util.isInteger(message.transferAmount.low) && $util.isInteger(message.transferAmount.high)))
21464
- return "transferAmount: integer|Long expected";
21465
+ if (!$util.isString(message.transferAmount))
21466
+ return "transferAmount: string expected";
21465
21467
  return null;
21466
21468
  };
21467
21469
 
@@ -21487,14 +21489,7 @@
21487
21489
  if (object.ticker != null)
21488
21490
  message.ticker = String(object.ticker);
21489
21491
  if (object.transferAmount != null)
21490
- if ($util.Long)
21491
- (message.transferAmount = $util.Long.fromValue(object.transferAmount)).unsigned = true;
21492
- else if (typeof object.transferAmount === "string")
21493
- message.transferAmount = parseInt(object.transferAmount, 10);
21494
- else if (typeof object.transferAmount === "number")
21495
- message.transferAmount = object.transferAmount;
21496
- else if (typeof object.transferAmount === "object")
21497
- message.transferAmount = new $util.LongBits(object.transferAmount.low >>> 0, object.transferAmount.high >>> 0).toNumber(true);
21492
+ message.transferAmount = String(object.transferAmount);
21498
21493
  return message;
21499
21494
  };
21500
21495
 
@@ -21521,11 +21516,7 @@
21521
21516
  object.inscribeTo = $util.newBuffer(object.inscribeTo);
21522
21517
  }
21523
21518
  object.ticker = "";
21524
- if ($util.Long) {
21525
- var long = new $util.Long(0, 0, true);
21526
- object.transferAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
21527
- } else
21528
- object.transferAmount = options.longs === String ? "0" : 0;
21519
+ object.transferAmount = "";
21529
21520
  }
21530
21521
  if (message.onePrevout != null && message.hasOwnProperty("onePrevout"))
21531
21522
  object.onePrevout = message.onePrevout;
@@ -21534,10 +21525,7 @@
21534
21525
  if (message.ticker != null && message.hasOwnProperty("ticker"))
21535
21526
  object.ticker = message.ticker;
21536
21527
  if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
21537
- if (typeof message.transferAmount === "number")
21538
- object.transferAmount = options.longs === String ? String(message.transferAmount) : message.transferAmount;
21539
- else
21540
- object.transferAmount = options.longs === String ? $util.Long.prototype.toString.call(message.transferAmount) : options.longs === Number ? new $util.LongBits(message.transferAmount.low >>> 0, message.transferAmount.high >>> 0).toNumber(true) : message.transferAmount;
21528
+ object.transferAmount = message.transferAmount;
21541
21529
  return object;
21542
21530
  };
21543
21531
 
@@ -22919,7 +22907,7 @@
22919
22907
  * @interface IOutputBrc20Inscription
22920
22908
  * @property {Uint8Array|null} [inscribeTo] OutputBrc20Inscription inscribeTo
22921
22909
  * @property {string|null} [ticker] OutputBrc20Inscription ticker
22922
- * @property {Long|null} [transferAmount] OutputBrc20Inscription transferAmount
22910
+ * @property {string|null} [transferAmount] OutputBrc20Inscription transferAmount
22923
22911
  */
22924
22912
 
22925
22913
  /**
@@ -22955,11 +22943,11 @@
22955
22943
 
22956
22944
  /**
22957
22945
  * OutputBrc20Inscription transferAmount.
22958
- * @member {Long} transferAmount
22946
+ * @member {string} transferAmount
22959
22947
  * @memberof TW.BitcoinV2.Proto.Output.OutputBrc20Inscription
22960
22948
  * @instance
22961
22949
  */
22962
- OutputBrc20Inscription.prototype.transferAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
22950
+ OutputBrc20Inscription.prototype.transferAmount = "";
22963
22951
 
22964
22952
  /**
22965
22953
  * Creates a new OutputBrc20Inscription instance using the specified properties.
@@ -22990,7 +22978,7 @@
22990
22978
  if (message.ticker != null && Object.hasOwnProperty.call(message, "ticker"))
22991
22979
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.ticker);
22992
22980
  if (message.transferAmount != null && Object.hasOwnProperty.call(message, "transferAmount"))
22993
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.transferAmount);
22981
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.transferAmount);
22994
22982
  return writer;
22995
22983
  };
22996
22984
 
@@ -23019,7 +23007,7 @@
23019
23007
  message.ticker = reader.string();
23020
23008
  break;
23021
23009
  case 3:
23022
- message.transferAmount = reader.uint64();
23010
+ message.transferAmount = reader.string();
23023
23011
  break;
23024
23012
  default:
23025
23013
  reader.skipType(tag & 7);
@@ -23047,8 +23035,8 @@
23047
23035
  if (!$util.isString(message.ticker))
23048
23036
  return "ticker: string expected";
23049
23037
  if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
23050
- if (!$util.isInteger(message.transferAmount) && !(message.transferAmount && $util.isInteger(message.transferAmount.low) && $util.isInteger(message.transferAmount.high)))
23051
- return "transferAmount: integer|Long expected";
23038
+ if (!$util.isString(message.transferAmount))
23039
+ return "transferAmount: string expected";
23052
23040
  return null;
23053
23041
  };
23054
23042
 
@@ -23072,14 +23060,7 @@
23072
23060
  if (object.ticker != null)
23073
23061
  message.ticker = String(object.ticker);
23074
23062
  if (object.transferAmount != null)
23075
- if ($util.Long)
23076
- (message.transferAmount = $util.Long.fromValue(object.transferAmount)).unsigned = true;
23077
- else if (typeof object.transferAmount === "string")
23078
- message.transferAmount = parseInt(object.transferAmount, 10);
23079
- else if (typeof object.transferAmount === "number")
23080
- message.transferAmount = object.transferAmount;
23081
- else if (typeof object.transferAmount === "object")
23082
- message.transferAmount = new $util.LongBits(object.transferAmount.low >>> 0, object.transferAmount.high >>> 0).toNumber(true);
23063
+ message.transferAmount = String(object.transferAmount);
23083
23064
  return message;
23084
23065
  };
23085
23066
 
@@ -23105,21 +23086,14 @@
23105
23086
  object.inscribeTo = $util.newBuffer(object.inscribeTo);
23106
23087
  }
23107
23088
  object.ticker = "";
23108
- if ($util.Long) {
23109
- var long = new $util.Long(0, 0, true);
23110
- object.transferAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23111
- } else
23112
- object.transferAmount = options.longs === String ? "0" : 0;
23089
+ object.transferAmount = "";
23113
23090
  }
23114
23091
  if (message.inscribeTo != null && message.hasOwnProperty("inscribeTo"))
23115
23092
  object.inscribeTo = options.bytes === String ? $util.base64.encode(message.inscribeTo, 0, message.inscribeTo.length) : options.bytes === Array ? Array.prototype.slice.call(message.inscribeTo) : message.inscribeTo;
23116
23093
  if (message.ticker != null && message.hasOwnProperty("ticker"))
23117
23094
  object.ticker = message.ticker;
23118
23095
  if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
23119
- if (typeof message.transferAmount === "number")
23120
- object.transferAmount = options.longs === String ? String(message.transferAmount) : message.transferAmount;
23121
- else
23122
- object.transferAmount = options.longs === String ? $util.Long.prototype.toString.call(message.transferAmount) : options.longs === Number ? new $util.LongBits(message.transferAmount.low >>> 0, message.transferAmount.high >>> 0).toNumber(true) : message.transferAmount;
23096
+ object.transferAmount = message.transferAmount;
23123
23097
  return object;
23124
23098
  };
23125
23099
 
@@ -23574,6 +23548,7 @@
23574
23548
  case 7:
23575
23549
  case 8:
23576
23550
  case 9:
23551
+ case 43:
23577
23552
  case 10:
23578
23553
  case 11:
23579
23554
  case 12:
@@ -23701,6 +23676,10 @@
23701
23676
  case 9:
23702
23677
  message.error = 9;
23703
23678
  break;
23679
+ case "Error_utxo_no_outputs_specified":
23680
+ case 43:
23681
+ message.error = 43;
23682
+ break;
23704
23683
  case "Error_utxo_missing_change_script_pubkey":
23705
23684
  case 10:
23706
23685
  message.error = 10;
@@ -24447,6 +24426,7 @@
24447
24426
  case 7:
24448
24427
  case 8:
24449
24428
  case 9:
24429
+ case 43:
24450
24430
  case 10:
24451
24431
  case 11:
24452
24432
  case 12:
@@ -24555,6 +24535,10 @@
24555
24535
  case 9:
24556
24536
  message.error = 9;
24557
24537
  break;
24538
+ case "Error_utxo_no_outputs_specified":
24539
+ case 43:
24540
+ message.error = 43;
24541
+ break;
24558
24542
  case "Error_utxo_missing_change_script_pubkey":
24559
24543
  case 10:
24560
24544
  message.error = 10;
@@ -26034,7 +26018,7 @@
26034
26018
  return "inputSelector: enum value expected";
26035
26019
  case 0:
26036
26020
  case 1:
26037
- case 2:
26021
+ case 10:
26038
26022
  break;
26039
26023
  }
26040
26024
  if (message.taggedOutput != null && message.hasOwnProperty("taggedOutput")) {
@@ -26089,7 +26073,7 @@
26089
26073
  }
26090
26074
  }
26091
26075
  switch (object.inputSelector) {
26092
- case "UseAll":
26076
+ case "SelectAscending":
26093
26077
  case 0:
26094
26078
  message.inputSelector = 0;
26095
26079
  break;
@@ -26097,9 +26081,9 @@
26097
26081
  case 1:
26098
26082
  message.inputSelector = 1;
26099
26083
  break;
26100
- case "SelectAscending":
26101
- case 2:
26102
- message.inputSelector = 2;
26084
+ case "UseAll":
26085
+ case 10:
26086
+ message.inputSelector = 10;
26103
26087
  break;
26104
26088
  }
26105
26089
  if (object.taggedOutput != null) {
@@ -26154,7 +26138,7 @@
26154
26138
  if (options.bytes !== Array)
26155
26139
  object.privateKey = $util.newBuffer(object.privateKey);
26156
26140
  }
26157
- object.inputSelector = options.enums === String ? "UseAll" : 0;
26141
+ object.inputSelector = options.enums === String ? "SelectAscending" : 0;
26158
26142
  object.taggedOutput = null;
26159
26143
  object.inscription = null;
26160
26144
  if ($util.Long) {
@@ -26364,6 +26348,7 @@
26364
26348
  case 7:
26365
26349
  case 8:
26366
26350
  case 9:
26351
+ case 43:
26367
26352
  case 10:
26368
26353
  case 11:
26369
26354
  case 12:
@@ -26463,6 +26448,10 @@
26463
26448
  case 9:
26464
26449
  message.error = 9;
26465
26450
  break;
26451
+ case "Error_utxo_no_outputs_specified":
26452
+ case 43:
26453
+ message.error = 43;
26454
+ break;
26466
26455
  case "Error_utxo_missing_change_script_pubkey":
26467
26456
  case 10:
26468
26457
  message.error = 10;
@@ -26881,7 +26870,8 @@
26881
26870
  * @property {number} Error_missing_sighash_method=6 Error_missing_sighash_method value
26882
26871
  * @property {number} Error_failed_encoding=7 Error_failed_encoding value
26883
26872
  * @property {number} Error_insufficient_inputs=8 Error_insufficient_inputs value
26884
- * @property {number} Error_missing_change_script_pubkey=9 Error_missing_change_script_pubkey value
26873
+ * @property {number} Error_no_outputs_specified=9 Error_no_outputs_specified value
26874
+ * @property {number} Error_missing_change_script_pubkey=10 Error_missing_change_script_pubkey value
26885
26875
  */
26886
26876
  Proto.Error = (function() {
26887
26877
  var valuesById = {}, values = Object.create(valuesById);
@@ -26894,7 +26884,8 @@
26894
26884
  values[valuesById[6] = "Error_missing_sighash_method"] = 6;
26895
26885
  values[valuesById[7] = "Error_failed_encoding"] = 7;
26896
26886
  values[valuesById[8] = "Error_insufficient_inputs"] = 8;
26897
- values[valuesById[9] = "Error_missing_change_script_pubkey"] = 9;
26887
+ values[valuesById[9] = "Error_no_outputs_specified"] = 9;
26888
+ values[valuesById[10] = "Error_missing_change_script_pubkey"] = 10;
26898
26889
  return values;
26899
26890
  })();
26900
26891
 
@@ -27137,7 +27128,7 @@
27137
27128
  return "inputSelector: enum value expected";
27138
27129
  case 0:
27139
27130
  case 1:
27140
- case 2:
27131
+ case 10:
27141
27132
  break;
27142
27133
  }
27143
27134
  if (message.weightBase != null && message.hasOwnProperty("weightBase"))
@@ -27192,7 +27183,7 @@
27192
27183
  }
27193
27184
  }
27194
27185
  switch (object.inputSelector) {
27195
- case "UseAll":
27186
+ case "SelectAscending":
27196
27187
  case 0:
27197
27188
  message.inputSelector = 0;
27198
27189
  break;
@@ -27200,9 +27191,9 @@
27200
27191
  case 1:
27201
27192
  message.inputSelector = 1;
27202
27193
  break;
27203
- case "SelectAscending":
27204
- case 2:
27205
- message.inputSelector = 2;
27194
+ case "UseAll":
27195
+ case 10:
27196
+ message.inputSelector = 10;
27206
27197
  break;
27207
27198
  }
27208
27199
  if (object.weightBase != null)
@@ -27244,7 +27235,7 @@
27244
27235
  if (options.defaults) {
27245
27236
  object.version = 0;
27246
27237
  object.lockTime = null;
27247
- object.inputSelector = options.enums === String ? "UseAll" : 0;
27238
+ object.inputSelector = options.enums === String ? "SelectAscending" : 0;
27248
27239
  if ($util.Long) {
27249
27240
  var long = new $util.Long(0, 0, true);
27250
27241
  object.weightBase = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -27305,15 +27296,15 @@
27305
27296
  * InputSelector enum.
27306
27297
  * @name TW.Utxo.Proto.InputSelector
27307
27298
  * @enum {number}
27308
- * @property {number} UseAll=0 UseAll value
27299
+ * @property {number} SelectAscending=0 SelectAscending value
27309
27300
  * @property {number} SelectInOrder=1 SelectInOrder value
27310
- * @property {number} SelectAscending=2 SelectAscending value
27301
+ * @property {number} UseAll=10 UseAll value
27311
27302
  */
27312
27303
  Proto.InputSelector = (function() {
27313
27304
  var valuesById = {}, values = Object.create(valuesById);
27314
- values[valuesById[0] = "UseAll"] = 0;
27305
+ values[valuesById[0] = "SelectAscending"] = 0;
27315
27306
  values[valuesById[1] = "SelectInOrder"] = 1;
27316
- values[valuesById[2] = "SelectAscending"] = 2;
27307
+ values[valuesById[10] = "UseAll"] = 10;
27317
27308
  return values;
27318
27309
  })();
27319
27310
 
@@ -28429,6 +28420,7 @@
28429
28420
  case 7:
28430
28421
  case 8:
28431
28422
  case 9:
28423
+ case 10:
28432
28424
  break;
28433
28425
  }
28434
28426
  if (message.txid != null && message.hasOwnProperty("txid"))
@@ -28519,10 +28511,14 @@
28519
28511
  case 8:
28520
28512
  message.error = 8;
28521
28513
  break;
28522
- case "Error_missing_change_script_pubkey":
28514
+ case "Error_no_outputs_specified":
28523
28515
  case 9:
28524
28516
  message.error = 9;
28525
28517
  break;
28518
+ case "Error_missing_change_script_pubkey":
28519
+ case 10:
28520
+ message.error = 10;
28521
+ break;
28526
28522
  }
28527
28523
  if (object.txid != null)
28528
28524
  if (typeof object.txid === "string")
@@ -29255,6 +29251,7 @@
29255
29251
  * @interface ITxInClaim
29256
29252
  * @property {Uint8Array|null} [txid] TxInClaim txid
29257
29253
  * @property {number|null} [vout] TxInClaim vout
29254
+ * @property {Long|null} [value] TxInClaim value
29258
29255
  * @property {number|null} [sequence] TxInClaim sequence
29259
29256
  * @property {Uint8Array|null} [scriptSig] TxInClaim scriptSig
29260
29257
  * @property {Array.<Uint8Array>|null} [witnessItems] TxInClaim witnessItems
@@ -29292,6 +29289,14 @@
29292
29289
  */
29293
29290
  TxInClaim.prototype.vout = 0;
29294
29291
 
29292
+ /**
29293
+ * TxInClaim value.
29294
+ * @member {Long} value
29295
+ * @memberof TW.Utxo.Proto.TxInClaim
29296
+ * @instance
29297
+ */
29298
+ TxInClaim.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
29299
+
29295
29300
  /**
29296
29301
  * TxInClaim sequence.
29297
29302
  * @member {number} sequence
@@ -29344,13 +29349,15 @@
29344
29349
  writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.txid);
29345
29350
  if (message.vout != null && Object.hasOwnProperty.call(message, "vout"))
29346
29351
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.vout);
29352
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
29353
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.value);
29347
29354
  if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence"))
29348
- writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.sequence);
29355
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.sequence);
29349
29356
  if (message.scriptSig != null && Object.hasOwnProperty.call(message, "scriptSig"))
29350
- writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.scriptSig);
29357
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.scriptSig);
29351
29358
  if (message.witnessItems != null && message.witnessItems.length)
29352
29359
  for (var i = 0; i < message.witnessItems.length; ++i)
29353
- writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.witnessItems[i]);
29360
+ writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.witnessItems[i]);
29354
29361
  return writer;
29355
29362
  };
29356
29363
 
@@ -29379,12 +29386,15 @@
29379
29386
  message.vout = reader.uint32();
29380
29387
  break;
29381
29388
  case 3:
29382
- message.sequence = reader.uint32();
29389
+ message.value = reader.uint64();
29383
29390
  break;
29384
29391
  case 4:
29385
- message.scriptSig = reader.bytes();
29392
+ message.sequence = reader.uint32();
29386
29393
  break;
29387
29394
  case 5:
29395
+ message.scriptSig = reader.bytes();
29396
+ break;
29397
+ case 6:
29388
29398
  if (!(message.witnessItems && message.witnessItems.length))
29389
29399
  message.witnessItems = [];
29390
29400
  message.witnessItems.push(reader.bytes());
@@ -29414,6 +29424,9 @@
29414
29424
  if (message.vout != null && message.hasOwnProperty("vout"))
29415
29425
  if (!$util.isInteger(message.vout))
29416
29426
  return "vout: integer expected";
29427
+ if (message.value != null && message.hasOwnProperty("value"))
29428
+ if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
29429
+ return "value: integer|Long expected";
29417
29430
  if (message.sequence != null && message.hasOwnProperty("sequence"))
29418
29431
  if (!$util.isInteger(message.sequence))
29419
29432
  return "sequence: integer expected";
@@ -29449,6 +29462,15 @@
29449
29462
  message.txid = object.txid;
29450
29463
  if (object.vout != null)
29451
29464
  message.vout = object.vout >>> 0;
29465
+ if (object.value != null)
29466
+ if ($util.Long)
29467
+ (message.value = $util.Long.fromValue(object.value)).unsigned = true;
29468
+ else if (typeof object.value === "string")
29469
+ message.value = parseInt(object.value, 10);
29470
+ else if (typeof object.value === "number")
29471
+ message.value = object.value;
29472
+ else if (typeof object.value === "object")
29473
+ message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
29452
29474
  if (object.sequence != null)
29453
29475
  message.sequence = object.sequence >>> 0;
29454
29476
  if (object.scriptSig != null)
@@ -29493,6 +29515,11 @@
29493
29515
  object.txid = $util.newBuffer(object.txid);
29494
29516
  }
29495
29517
  object.vout = 0;
29518
+ if ($util.Long) {
29519
+ var long = new $util.Long(0, 0, true);
29520
+ object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
29521
+ } else
29522
+ object.value = options.longs === String ? "0" : 0;
29496
29523
  object.sequence = 0;
29497
29524
  if (options.bytes === String)
29498
29525
  object.scriptSig = "";
@@ -29506,6 +29533,11 @@
29506
29533
  object.txid = options.bytes === String ? $util.base64.encode(message.txid, 0, message.txid.length) : options.bytes === Array ? Array.prototype.slice.call(message.txid) : message.txid;
29507
29534
  if (message.vout != null && message.hasOwnProperty("vout"))
29508
29535
  object.vout = message.vout;
29536
+ if (message.value != null && message.hasOwnProperty("value"))
29537
+ if (typeof message.value === "number")
29538
+ object.value = options.longs === String ? String(message.value) : message.value;
29539
+ else
29540
+ object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value;
29509
29541
  if (message.sequence != null && message.hasOwnProperty("sequence"))
29510
29542
  object.sequence = message.sequence;
29511
29543
  if (message.scriptSig != null && message.hasOwnProperty("scriptSig"))
@@ -29703,6 +29735,7 @@
29703
29735
  case 7:
29704
29736
  case 8:
29705
29737
  case 9:
29738
+ case 10:
29706
29739
  break;
29707
29740
  }
29708
29741
  if (message.encoded != null && message.hasOwnProperty("encoded"))
@@ -29769,10 +29802,14 @@
29769
29802
  case 8:
29770
29803
  message.error = 8;
29771
29804
  break;
29772
- case "Error_missing_change_script_pubkey":
29805
+ case "Error_no_outputs_specified":
29773
29806
  case 9:
29774
29807
  message.error = 9;
29775
29808
  break;
29809
+ case "Error_missing_change_script_pubkey":
29810
+ case 10:
29811
+ message.error = 10;
29812
+ break;
29776
29813
  }
29777
29814
  if (object.encoded != null)
29778
29815
  if (typeof object.encoded === "string")
@@ -146,8 +146,8 @@ d);e=e.min.call(e,2147483648,d+(65536-d%65536)%65536);a:{d=e;var f=ra.buffer;try
146
146
  b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(1===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.read)throw new I(28);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.read(m,k,q,t,u);r||(m.position+=x);var E=x;if(0>E){var P=-1;break a}b+=E;if(E<n)break;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==
147
147
  typeof L||!(M instanceof I))throw M;return M.D}},fd_seek:function(a,b,c,d,e){try{assert(b==b>>>0||b==(b|0));assert(c===(c|0));var f=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(f))return 61;var h=N(a);Yb(h,f,d);$a=[h.position>>>0,(Za=h.position,1<=+Math.abs(Za)?0<Za?(Math.min(+Math.floor(Za/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Za-+(~~Za>>>0))/4294967296)>>>0:0)];D[e>>2]=$a[0];D[e+4>>2]=$a[1];h.fa&&0===f&&0===d&&(h.fa=null);return 0}catch(l){if("undefined"==typeof L||!(l instanceof
148
148
  I))throw l;return l.D}},fd_write:function(a,b,c,d){try{a:{var e=N(a);a=b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(0===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.write)throw new I(28);m.seekable&&m.flags&1024&&Yb(m,0,2);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.write(m,k,q,t,u,void 0);r||(m.position+=x);var E=
149
- x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,invoke_iijj:Zd,invoke_jii:$d,invoke_jiii:ae,invoke_jj:be,invoke_jjji:ce,invoke_v:de,invoke_vi:ee,invoke_vii:fe,invoke_viii:ge,invoke_viiii:he,invoke_viiiii:ie,invoke_viiiiii:je,invoke_viiiiiii:ke,
150
- invoke_viiiiiiii:le,invoke_viiiiiji:me,invoke_viiij:ne,invoke_viiijii:oe,invoke_viij:pe,invoke_viijii:qe,invoke_vij:re,strftime_l:function(a,b,c,d){return Kd(a,b,c,d)}};
149
+ x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,invoke_iijii:Zd,invoke_iijj:$d,invoke_jii:ae,invoke_jiii:be,invoke_jj:ce,invoke_jjji:de,invoke_v:ee,invoke_vi:fe,invoke_vii:ge,invoke_viii:he,invoke_viiii:ie,invoke_viiiii:je,invoke_viiiiii:ke,invoke_viiiiiii:le,
150
+ invoke_viiiiiiii:me,invoke_viiiiiji:ne,invoke_viiijii:oe,invoke_viij:pe,invoke_viijii:qe,invoke_vij:re,strftime_l:function(a,b,c,d){return Kd(a,b,c,d)}};
151
151
  (function(){function a(f){g.asm=f.exports;ra=g.asm.memory;assert(ra,"memory not found in wasm exports");Da();Fa=g.asm.__indirect_function_table;assert(Fa,"table not found in wasm exports");Ma.unshift(g.asm.__wasm_call_ctors);Qa--;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert(Ta["wasm-instantiate"]);delete Ta["wasm-instantiate"];0==Qa&&(null!==Ra&&(clearInterval(Ra),Ra=null),Sa&&(f=Sa,Sa=null,f()))}function b(f){assert(g===e,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?");
152
152
  e=null;a(f.instance)}function c(f){return Ya().then(function(h){return WebAssembly.instantiate(h,d)}).then(function(h){return h}).then(f,function(h){y("failed to asynchronously prepare wasm: "+h);ma(G)&&y("warning: Loading from a file URI ("+G+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing");p(h)})}var d={env:se,wasi_snapshot_preview1:se};Ua();var e=g;if(g.instantiateWasm)try{return g.instantiateWasm(d,
153
153
  a)}catch(f){y("Module.instantiateWasm callback failed with error: "+f),ba(f)}(function(){return qa||"function"!=typeof WebAssembly.instantiateStreaming||Va()||ma(G)||v||"function"!=typeof fetch?c(b):fetch(G,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(h){y("wasm streaming compile failed: "+h);y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);return{}})();g.___wasm_call_ctors=H("__wasm_call_ctors");
@@ -155,13 +155,13 @@ var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._f
155
155
  var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),te=g._emscripten_stack_init=function(){return(te=g._emscripten_stack_init=g.asm.emscripten_stack_init).apply(null,arguments)};g._emscripten_stack_get_free=function(){return(g._emscripten_stack_get_free=g.asm.emscripten_stack_get_free).apply(null,arguments)};g._emscripten_stack_get_base=function(){return(g._emscripten_stack_get_base=g.asm.emscripten_stack_get_base).apply(null,arguments)};
156
156
  var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_end=g.asm.emscripten_stack_get_end).apply(null,arguments)},Y=g.stackSave=H("stackSave"),Z=g.stackRestore=H("stackRestore");g.stackAlloc=H("stackAlloc");g._emscripten_stack_get_current=function(){return(g._emscripten_stack_get_current=g.asm.emscripten_stack_get_current).apply(null,arguments)};g.___cxa_free_exception=H("__cxa_free_exception");var Od=g.___cxa_can_catch=H("__cxa_can_catch");g.___cxa_is_pointer_type=H("__cxa_is_pointer_type");
157
157
  g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var ue=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");var ve=g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");var we=g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
158
- var xe=g.dynCall_jj=H("dynCall_jj"),ye=g.dynCall_vij=H("dynCall_vij"),ze=g.dynCall_iij=H("dynCall_iij"),Ae=g.dynCall_viiij=H("dynCall_viiij"),Be=g.dynCall_iijj=H("dynCall_iijj"),Ce=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),De=g.dynCall_viiijii=H("dynCall_viiijii"),Ee=g.dynCall_viij=H("dynCall_viij"),Fe=g.dynCall_jjji=H("dynCall_jjji");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");
159
- function fe(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ee(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ge(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ie(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Td(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
160
- function he(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function de(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Ud(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
161
- function Vd(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function je(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function Wd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ke(a,b,c,d,e,f,h,l){var n=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}
162
- function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function le(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function be(a,b,c){var d=Y();try{return xe(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function re(a,b,c,d){var e=Y();try{ye(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function $d(a,b,c){var d=Y();try{return ue(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
163
- function Yd(a,b,c,d){var e=Y();try{return ze(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ne(a,b,c,d,e,f){var h=Y();try{Ae(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Zd(a,b,c,d,e,f){var h=Y();try{return Be(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function me(a,b,c,d,e,f,h,l,n){var m=Y();try{Ce(a,b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function ae(a,b,c,d){var e=Y();try{return ve(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
164
- function qe(a,b,c,d,e,f,h){var l=Y();try{we(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function oe(a,b,c,d,e,f,h,l){var n=Y();try{De(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function pe(a,b,c,d,e){var f=Y();try{Ee(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function ce(a,b,c,d,e,f){var h=Y();try{return Fe(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
158
+ var xe=g.dynCall_jj=H("dynCall_jj"),ye=g.dynCall_vij=H("dynCall_vij"),ze=g.dynCall_iijii=H("dynCall_iijii"),Ae=g.dynCall_iij=H("dynCall_iij"),Be=g.dynCall_iijj=H("dynCall_iijj"),Ce=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),De=g.dynCall_viiijii=H("dynCall_viiijii"),Ee=g.dynCall_viij=H("dynCall_viij"),Fe=g.dynCall_jjji=H("dynCall_jjji");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");
159
+ function ge(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function fe(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function he(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function je(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ee(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}
160
+ function Td(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ie(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function Ud(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
161
+ function Vd(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function ke(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function le(a,b,c,d,e,f,h,l){var n=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function Wd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
162
+ function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function me(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function ce(a,b,c){var d=Y();try{return xe(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function re(a,b,c,d){var e=Y();try{ye(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ae(a,b,c){var d=Y();try{return ue(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
163
+ function Zd(a,b,c,d,e,f){var h=Y();try{return ze(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Yd(a,b,c,d){var e=Y();try{return Ae(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function $d(a,b,c,d,e,f){var h=Y();try{return Be(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ne(a,b,c,d,e,f,h,l,n){var m=Y();try{Ce(a,b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}
164
+ function be(a,b,c,d){var e=Y();try{return ve(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function qe(a,b,c,d,e,f,h){var l=Y();try{we(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function oe(a,b,c,d,e,f,h,l){var n=Y();try{De(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function pe(a,b,c,d,e){var f=Y();try{Ee(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function de(a,b,c,d,e,f){var h=Y();try{return Fe(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
165
165
  "run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
166
166
  Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");p(b)}})});
167
167
  "stringToNewUTF8 exitJS inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName traverseStack convertPCtoSourceLocation runMainThreadEmAsm jstoi_q jstoi_s listenOnce autoResumeAudioContext handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString intArrayToString AsciiToString stringToAscii allocateUTF8OnStack writeStringToMemory getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace stackTrace checkWasiClock createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate newNativePromise getPromise exception_addRef exception_decRef setMainLoop _setNetworkCallback registerInheritedInstance unregisterInheritedInstance validateThis".split(" ").forEach(function(a){"undefined"===typeof globalThis||
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.0.18",
3
+ "version": "4.0.20",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",