@hyperbridge/sdk 2.8.19 → 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.
@@ -2607,7 +2607,7 @@ var chainConfigs = {
2607
2607
  UniswapV3Quoter: "0x0000000000000000000000000000000000000000",
2608
2608
  UniswapV4Quoter: "0x0000000000000000000000000000000000000000",
2609
2609
  EntryPointV08: "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108",
2610
- SolverAccount: "0x153DB990FE3b761B54ad71D0f1A0987dF11740DB"
2610
+ SolverAccount: "0xf98E484858F59C30e31D2695ac18F92bc7C7b799"
2611
2611
  },
2612
2612
  rpcEnvKey: "BSC_CHAPEL",
2613
2613
  defaultRpcUrl: "https://bnb-testnet.api.onfinality.io/public",
@@ -2733,7 +2733,7 @@ var chainConfigs = {
2733
2733
  },
2734
2734
  addresses: {
2735
2735
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2736
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
2736
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
2737
2737
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2738
2738
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2739
2739
  UniswapRouter02: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
@@ -2800,7 +2800,7 @@ var chainConfigs = {
2800
2800
  },
2801
2801
  addresses: {
2802
2802
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2803
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
2803
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
2804
2804
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2805
2805
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2806
2806
  UniswapRouter02: "0x10ED43C718714eb63d5aA57B78B54704E256024E",
@@ -2861,7 +2861,7 @@ var chainConfigs = {
2861
2861
  },
2862
2862
  addresses: {
2863
2863
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2864
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
2864
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
2865
2865
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2866
2866
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2867
2867
  UniswapRouter02: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
@@ -2935,7 +2935,7 @@ var chainConfigs = {
2935
2935
  },
2936
2936
  addresses: {
2937
2937
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
2938
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
2938
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
2939
2939
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
2940
2940
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
2941
2941
  UniswapRouter02: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
@@ -3009,7 +3009,7 @@ var chainConfigs = {
3009
3009
  },
3010
3010
  addresses: {
3011
3011
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3012
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
3012
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
3013
3013
  TokenGateway: "0x8b536105b6Fae2aE9199f5146D3C57Dfe53b614E",
3014
3014
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3015
3015
  UniswapRouter02: "0xd2f9496824951D5237cC71245D659E48d0d5f9E8",
@@ -3103,7 +3103,7 @@ var chainConfigs = {
3103
3103
  Calldispatcher: "0x876F1891982E260026630c233A4897160A281Fb8",
3104
3104
  Permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
3105
3105
  EntryPointV08: "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108",
3106
- SolverAccount: "0x153DB990FE3b761B54ad71D0f1A0987dF11740DB"
3106
+ SolverAccount: "0xf98E484858F59C30e31D2695ac18F92bc7C7b799"
3107
3107
  },
3108
3108
  rpcEnvKey: "POLYGON_AMOY",
3109
3109
  defaultRpcUrl: "https://rpc-amoy.polygon.technology",
@@ -3127,7 +3127,7 @@ var chainConfigs = {
3127
3127
  },
3128
3128
  addresses: {
3129
3129
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3130
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
3130
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
3131
3131
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
3132
3132
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3133
3133
  UniswapRouter02: "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",
@@ -3162,7 +3162,7 @@ var chainConfigs = {
3162
3162
  },
3163
3163
  addresses: {
3164
3164
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3165
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
3165
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
3166
3166
  TokenGateway: "0xFd413e3AFe560182C4471F4d143A96d3e259B6dE",
3167
3167
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3168
3168
  UniswapRouter02: "0xB2e26652e4BAd1e56055A051f922E06760cA0BFE",
@@ -3318,7 +3318,7 @@ var chainConfigs = {
3318
3318
  },
3319
3319
  addresses: {
3320
3320
  IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
3321
- SolverAccount: "0xd5535d4DeB17F050e52B6efda2fDe00435f39279",
3321
+ SolverAccount: "0x77c3394CA5881A74f18139AC87D0c11F8Faa90cC",
3322
3322
  Host: "0x620128E2B19193d6Bd244a3AC8D3bBa0541B19c3",
3323
3323
  Calldispatcher: "0xE2C7e576E26E0bE7aC97c6fE925bcDAbD87c4bEd"
3324
3324
  },
@@ -19325,17 +19325,13 @@ function formatOptional(amount) {
19325
19325
  }
19326
19326
 
19327
19327
  // src/protocols/intents/IntentGateway.ts
19328
- var ORDER_FEE_GAS_PRICE_BUMP_POLICY = {
19329
- defaultPercent: 10n,
19330
- bySourceStateMachineId: {
19331
- ["EVM-1" /* MAINNET */]: 50n
19332
- }
19333
- };
19328
+ var ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 50n;
19329
+ var DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 100n;
19334
19330
  function resolveOrderFeeGasPriceBump(sourceStateMachineId, isSameChain) {
19335
19331
  if (isSameChain) {
19336
19332
  return 0n;
19337
19333
  }
19338
- return ORDER_FEE_GAS_PRICE_BUMP_POLICY.bySourceStateMachineId[sourceStateMachineId] ?? ORDER_FEE_GAS_PRICE_BUMP_POLICY.defaultPercent;
19334
+ return sourceStateMachineId === "EVM-1" /* MAINNET */ ? ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT : DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT;
19339
19335
  }
19340
19336
  var IntentGateway = class _IntentGateway {
19341
19337
  /** EVM chain on which orders are placed and escrowed. */
@@ -19510,9 +19506,9 @@ var IntentGateway = class _IntentGateway {
19510
19506
  * 1. If `order.fees` is unset or zero, prices the fee on an internal copy
19511
19507
  * via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
19512
19508
  * estimate without a gas-price bump; cross-chain order fees originating on
19513
- * Ethereum price gas 50% above the live price, while other source chains use
19514
- * 10%, before attaching (fill gas + the settlement relayer fee)
19515
- * with a further 5% buffer over the whole sum — strictly above the solver's
19509
+ * Ethereum mainnet price gas 50% above the live price, while other source
19510
+ * chains use 100%, before attaching (fill gas + the settlement relayer
19511
+ * fee) with a further 5% buffer over the whole sum — strictly above the solver's
19516
19512
  * unpadded requirement. Direct solver estimates remain unbumped. The wei
19517
19513
  * cost used for the `value` field receives a 2% buffer.
19518
19514
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
@@ -19902,7 +19898,7 @@ var IntentGateway = class _IntentGateway {
19902
19898
  *
19903
19899
  * @param order - The order to quote. `order.fees` is ignored and not mutated.
19904
19900
  * Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
19905
- * when the source chain is Ethereum mainnet and 10% for other source chains.
19901
+ * when the source chain is Ethereum mainnet and 100% for other source chains.
19906
19902
  * Same-chain quotes and direct calls to {@link estimateFillOrder}, including
19907
19903
  * Simplex solver estimates, remain unbumped.
19908
19904
  *