@hyperbridge/sdk 2.8.21 → 2.8.22

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.
@@ -3758,8 +3758,7 @@ interface OrderFeesQuote {
3758
3758
  * The amount to set as `Order.fees`, denominated in the source-chain fee
3759
3759
  * token. Same-chain fills carry a 2x margin over the estimated fill gas without
3760
3760
  * a gas-price bump. Cross-chain orders originating on Ethereum mainnet use 50%
3761
- * SDK-only gas-price headroom; other source chains use 10%. The settlement
3762
- * relayer fee is then added with a further 5% buffer over the whole sum.
3761
+ * SDK-only gas-price headroom; other source chains use 100%. The settlement relayer fee is then added with a further 5% buffer over the whole sum.
3763
3762
  */
3764
3763
  fees: bigint;
3765
3764
  /**
@@ -5449,9 +5448,9 @@ declare class IntentGateway {
5449
5448
  * 1. If `order.fees` is unset or zero, prices the fee on an internal copy
5450
5449
  * via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
5451
5450
  * estimate without a gas-price bump; cross-chain order fees originating on
5452
- * Ethereum price gas 50% above the live price, while other source chains use
5453
- * 10%, before attaching (fill gas + the settlement relayer fee)
5454
- * with a further 5% buffer over the whole sum — strictly above the solver's
5451
+ * Ethereum mainnet price gas 50% above the live price, while other source
5452
+ * chains use 100%, before attaching (fill gas + the settlement relayer
5453
+ * fee) with a further 5% buffer over the whole sum — strictly above the solver's
5455
5454
  * unpadded requirement. Direct solver estimates remain unbumped. The wei
5456
5455
  * cost used for the `value` field receives a 2% buffer.
5457
5456
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
@@ -5705,7 +5704,7 @@ declare class IntentGateway {
5705
5704
  *
5706
5705
  * @param order - The order to quote. `order.fees` is ignored and not mutated.
5707
5706
  * Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
5708
- * when the source chain is Ethereum mainnet and 10% for other source chains.
5707
+ * when the source chain is Ethereum mainnet and 100% for other source chains.
5709
5708
  * Same-chain quotes and direct calls to {@link estimateFillOrder}, including
5710
5709
  * Simplex solver estimates, remain unbumped.
5711
5710
  *
@@ -19374,17 +19374,13 @@ function formatOptional(amount) {
19374
19374
  }
19375
19375
 
19376
19376
  // src/protocols/intents/IntentGateway.ts
19377
- var ORDER_FEE_GAS_PRICE_BUMP_POLICY = {
19378
- defaultPercent: 10n,
19379
- bySourceStateMachineId: {
19380
- ["EVM-1" /* MAINNET */]: 50n
19381
- }
19382
- };
19377
+ var ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 50n;
19378
+ var DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 100n;
19383
19379
  function resolveOrderFeeGasPriceBump(sourceStateMachineId, isSameChain) {
19384
19380
  if (isSameChain) {
19385
19381
  return 0n;
19386
19382
  }
19387
- return ORDER_FEE_GAS_PRICE_BUMP_POLICY.bySourceStateMachineId[sourceStateMachineId] ?? ORDER_FEE_GAS_PRICE_BUMP_POLICY.defaultPercent;
19383
+ return sourceStateMachineId === "EVM-1" /* MAINNET */ ? ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT : DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT;
19388
19384
  }
19389
19385
  var IntentGateway = class _IntentGateway {
19390
19386
  /** EVM chain on which orders are placed and escrowed. */
@@ -19559,9 +19555,9 @@ var IntentGateway = class _IntentGateway {
19559
19555
  * 1. If `order.fees` is unset or zero, prices the fee on an internal copy
19560
19556
  * via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
19561
19557
  * estimate without a gas-price bump; cross-chain order fees originating on
19562
- * Ethereum price gas 50% above the live price, while other source chains use
19563
- * 10%, before attaching (fill gas + the settlement relayer fee)
19564
- * with a further 5% buffer over the whole sum — strictly above the solver's
19558
+ * Ethereum mainnet price gas 50% above the live price, while other source
19559
+ * chains use 100%, before attaching (fill gas + the settlement relayer
19560
+ * fee) with a further 5% buffer over the whole sum — strictly above the solver's
19565
19561
  * unpadded requirement. Direct solver estimates remain unbumped. The wei
19566
19562
  * cost used for the `value` field receives a 2% buffer.
19567
19563
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
@@ -19951,7 +19947,7 @@ var IntentGateway = class _IntentGateway {
19951
19947
  *
19952
19948
  * @param order - The order to quote. `order.fees` is ignored and not mutated.
19953
19949
  * Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
19954
- * when the source chain is Ethereum mainnet and 10% for other source chains.
19950
+ * when the source chain is Ethereum mainnet and 100% for other source chains.
19955
19951
  * Same-chain quotes and direct calls to {@link estimateFillOrder}, including
19956
19952
  * Simplex solver estimates, remain unbumped.
19957
19953
  *