@hyperbridge/sdk 2.8.4 → 2.8.5

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.
@@ -16397,12 +16397,9 @@ var OrderCanceller = class _OrderCanceller {
16397
16397
  static DEFAULT_MAX_RECOVERY_RESTARTS = 1;
16398
16398
  static PROOF_FRESHNESS_MAX_RETRIES = 3;
16399
16399
  static PROOF_FRESHNESS_BACKOFF_MS = 500;
16400
- /**
16401
- * Gas budget used to size the relayer fee for a cross-chain cancellation
16402
- * message (the GET response or RefundEscrow POST executed on the source
16403
- * chain), priced at the source chain's gas price.
16404
- */
16405
- static CANCEL_MESSAGE_GAS = 800000n;
16400
+ /** Gas budgets used to price cancellation delivery on the source chain. */
16401
+ static SOURCE_GET_RESPONSE_GAS = 1000000n;
16402
+ static REFUND_POST_GAS = 1000000n;
16406
16403
  logger = consola.createConsola({
16407
16404
  level: consola.LogLevels.info,
16408
16405
  formatOptions: { columns: 80, colors: true, compact: true, date: false }
@@ -16440,9 +16437,7 @@ var OrderCanceller = class _OrderCanceller {
16440
16437
  return { nativeValue: 0n, relayerFee: 0n };
16441
16438
  }
16442
16439
  const height = order.deadline + 1n;
16443
- const destIntentGateway = this.ctx.dest.configService.getIntentGatewayAddress(
16444
- destStateMachine
16445
- );
16440
+ const destIntentGateway = this.ctx.dest.configService.getIntentGatewayAddress(destStateMachine);
16446
16441
  const slotHash = await this.ctx.dest.client.readContract({
16447
16442
  abi: ABI3,
16448
16443
  address: destIntentGateway,
@@ -16463,7 +16458,7 @@ var OrderCanceller = class _OrderCanceller {
16463
16458
  };
16464
16459
  const feeInSourceFeeToken = await convertGasToFeeToken(
16465
16460
  this.ctx,
16466
- _OrderCanceller.CANCEL_MESSAGE_GAS,
16461
+ _OrderCanceller.SOURCE_GET_RESPONSE_GAS,
16467
16462
  "source",
16468
16463
  sourceStateMachine
16469
16464
  );
@@ -17009,9 +17004,7 @@ var OrderCanceller = class _OrderCanceller {
17009
17004
  return null;
17010
17005
  }
17011
17006
  async removeRecoveryItems(...keys) {
17012
- await Promise.all(
17013
- [...new Set(keys)].map((key) => this.ctx.cancellationStorage.removeItem(key))
17014
- );
17007
+ await Promise.all([...new Set(keys)].map((key) => this.ctx.cancellationStorage.removeItem(key)));
17015
17008
  }
17016
17009
  /**
17017
17010
  * Returns the order identifier required to persist or clear recovery state.
@@ -17059,7 +17052,7 @@ var OrderCanceller = class _OrderCanceller {
17059
17052
  async estimateRelayerFee(sourceChainId, destChainId) {
17060
17053
  const feeInSourceFeeToken = await convertGasToFeeToken(
17061
17054
  this.ctx,
17062
- _OrderCanceller.CANCEL_MESSAGE_GAS,
17055
+ _OrderCanceller.REFUND_POST_GAS,
17063
17056
  "source",
17064
17057
  sourceChainId
17065
17058
  );
@@ -17341,8 +17334,7 @@ var BidManager = class {
17341
17334
  );
17342
17335
  }
17343
17336
  const solverSignature = await solverSigner.signTypedData(
17344
- CryptoUtils.packedUserOpTypedData(userOp, entryPointAddress, chainId),
17345
- Number(chainId)
17337
+ CryptoUtils.packedUserOpTypedData(userOp, entryPointAddress, chainId)
17346
17338
  );
17347
17339
  const signature = viem.concat([order.id, solverSignature]);
17348
17340
  return { ...userOp, signature };