@fuel-ts/account 0.100.6 → 0.101.0

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.
package/dist/account.d.ts CHANGED
@@ -130,7 +130,7 @@ export declare class Account extends AbstractAccount implements WithAddress {
130
130
  * @returns A promise that resolves to the funded transaction request.
131
131
  *
132
132
  * @deprecated Use provider.assembleTx instead
133
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
133
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
134
134
  */
135
135
  fund<T extends TransactionRequest>(request: T, params: EstimatedTxParams): Promise<T>;
136
136
  /**
@@ -245,7 +245,7 @@ export declare class Account extends AbstractAccount implements WithAddress {
245
245
  * @returns A promise that resolves to the transaction cost object.
246
246
  *
247
247
  * @deprecated Use provider.assembleTx instead
248
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
248
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
249
249
  */
250
250
  getTransactionCost(transactionRequestLike: TransactionRequestLike, { signatureCallback, quantities, gasPrice }?: TransactionCostParams): Promise<TransactionCost>;
251
251
  /**
@@ -17991,7 +17991,7 @@
17991
17991
  return {
17992
17992
  FUEL_CORE: "0.43.1",
17993
17993
  FORC: "0.68.1",
17994
- FUELS: "0.100.6"
17994
+ FUELS: "0.101.0"
17995
17995
  };
17996
17996
  }
17997
17997
  __name(getBuiltinVersions, "getBuiltinVersions");
@@ -32429,6 +32429,11 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
32429
32429
  if (statusChange.type === "PreconfirmationSuccessStatus" || statusChange.type === "PreconfirmationFailureStatus") {
32430
32430
  this.preConfirmationStatus = statusChange;
32431
32431
  this.resolveStatus("preConfirmation");
32432
+ const pendingConfirmationResolvers = this.statusResolvers.get("confirmation");
32433
+ if (!pendingConfirmationResolvers) {
32434
+ this.waitingForStreamData = false;
32435
+ break;
32436
+ }
32432
32437
  }
32433
32438
  if (statusChange.type === "SuccessStatus" || statusChange.type === "FailureStatus") {
32434
32439
  this.resolveStatus("confirmation");
@@ -33569,7 +33574,7 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
33569
33574
  * @returns A promise that resolves to the transaction cost object.
33570
33575
  *
33571
33576
  * @deprecated Use provider.assembleTx instead
33572
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
33577
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
33573
33578
  */
33574
33579
  async getTransactionCost(transactionRequestLike, { signatureCallback, gasPrice: gasPriceParam } = {}) {
33575
33580
  const txRequestClone = clone_default(transactionRequestify(transactionRequestLike));
@@ -33713,7 +33718,7 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
33713
33718
  requiredBalances,
33714
33719
  estimatePredicates,
33715
33720
  excludeInput,
33716
- reserveGas: reserveGas ? reserveGas.toString(10) : void 0
33721
+ reserveGas: reserveGas ? bn(reserveGas).toString(10) : void 0
33717
33722
  });
33718
33723
  if (status.type === "DryRunFailureStatus") {
33719
33724
  const parsedReceipts = status.receipts.map(deserializeReceipt);
@@ -33725,8 +33730,8 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
33725
33730
  if (gqlTransaction.policies?.maxFee) {
33726
33731
  request2.maxFee = bn(gqlTransaction.policies.maxFee);
33727
33732
  }
33728
- if (gqlTransaction.scriptGasLimit) {
33729
- request2.gasLimit = bn(gqlTransaction.scriptGasLimit);
33733
+ if (request2.type === TransactionType.Script) {
33734
+ request2.gasLimit = bn(gqlTransaction.scriptGasLimit).add(bn(reserveGas));
33730
33735
  }
33731
33736
  const rawReceipts = status.receipts;
33732
33737
  const chainId = await this.getChainId();
@@ -34818,7 +34823,7 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
34818
34823
  * @returns A promise that resolves to the funded transaction request.
34819
34824
  *
34820
34825
  * @deprecated Use provider.assembleTx instead
34821
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
34826
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
34822
34827
  */
34823
34828
  async fund(request2, params) {
34824
34829
  const {
@@ -35237,7 +35242,7 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
35237
35242
  * @returns A promise that resolves to the transaction cost object.
35238
35243
  *
35239
35244
  * @deprecated Use provider.assembleTx instead
35240
- * Check the migration guide https://docs.fuel.network/guide/assembling-transactions/migration-guide.html for more information.
35245
+ * Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
35241
35246
  */
35242
35247
  async getTransactionCost(transactionRequestLike, { signatureCallback, quantities = [], gasPrice } = {}) {
35243
35248
  const txRequestClone = clone_default(transactionRequestify(transactionRequestLike));
@@ -41506,6 +41511,14 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
41506
41511
  configurableConstants: overrides.configurableConstants ?? this.configurableConstants
41507
41512
  });
41508
41513
  }
41514
+ /**
41515
+ * Sets the predicate data.
41516
+ *
41517
+ * @param data - The data to be set for the predicate.
41518
+ */
41519
+ setData(data) {
41520
+ this.predicateData = data;
41521
+ }
41509
41522
  /**
41510
41523
  * Processes the predicate data and returns the altered bytecode and interface.
41511
41524
  *