@stableflow/bridges 3.1.6-rc-d05fd26c08-20260803 → 3.1.6

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/index.d.mts CHANGED
@@ -149,6 +149,8 @@ interface GetAllQuoteParams {
149
149
  isProxy?: boolean;
150
150
  /** When true (default), always calculate destination gas fee. When false, fee is 0 if fromTokenSymbol !== toTokenSymbol. */
151
151
  forceCalculateFee?: boolean;
152
+ /** Time in milliseconds to wait for a quote from the relay. Defaults to 3000. Pass 0 for the fastest quote. */
153
+ quoteWaitingTimeMs?: number;
152
154
  };
153
155
  /**
154
156
  * Optional pre-fetched EVM gas fees by chainId.
package/dist/index.d.ts CHANGED
@@ -149,6 +149,8 @@ interface GetAllQuoteParams {
149
149
  isProxy?: boolean;
150
150
  /** When true (default), always calculate destination gas fee. When false, fee is 0 if fromTokenSymbol !== toTokenSymbol. */
151
151
  forceCalculateFee?: boolean;
152
+ /** Time in milliseconds to wait for a quote from the relay. Defaults to 3000. Pass 0 for the fastest quote. */
153
+ quoteWaitingTimeMs?: number;
152
154
  };
153
155
  /**
154
156
  * Optional pre-fetched EVM gas fees by chainId.
package/dist/index.js CHANGED
@@ -211,6 +211,7 @@ var OneClickService = class {
211
211
  swapType = core.OneClickSwapType.Input,
212
212
  isProxy = true,
213
213
  slippageTolerance,
214
+ quoteWaitingTimeMs = 3e3,
214
215
  ...restParams
215
216
  } = params;
216
217
  const _quoteType = `OneClickService ${fromToken?.chainName}->${toToken?.chainName}`;
@@ -222,7 +223,7 @@ var OneClickService = class {
222
223
  sessionId: `session_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
223
224
  recipientType: "DESTINATION_CHAIN",
224
225
  deadline: new Date(Date.now() + this.offsetTime).toISOString(),
225
- quoteWaitingTimeMs: 0,
226
+ quoteWaitingTimeMs,
226
227
  appFees,
227
228
  referral: "stableflow",
228
229
  amount: amountWei,
@@ -6262,6 +6263,7 @@ var BridgeSFA = class _BridgeSFA {
6262
6263
  _params.swapType = params.oneclickParams?.swapType;
6263
6264
  _params.isProxy = params.oneclickParams?.isProxy;
6264
6265
  _params.forceCalculateFee = params.oneclickParams?.forceCalculateFee;
6266
+ _params.quoteWaitingTimeMs = params.oneclickParams?.quoteWaitingTimeMs;
6265
6267
  }
6266
6268
  if ([
6267
6269
  core.Service.Usdt0,