@hyperbridge/sdk 2.8.3 → 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.
@@ -1,4 +1,4 @@
1
- export { by as AggregationLogger, bz as BidNonceKeyFn, bA as BidSignature, bB as ENTRY_POINT_V08_ADDRESS, bC as FILL_ORDER_ABI, bD as FetchLike, bE as FillData, bF as HexString, bG as IntentGatewayV2, bH as LpBalance, bI as OrderCommitmentFn, bJ as PhantomAggregation, bK as PhantomLegAggregation, bL as PhantomLegBidder, bM as RecoverBidSigner, bN as RpcBidInfo, bO as SolverBalanceReader, bP as YieldVaultMap, bQ as aggregatePhantomBids, be as decodeAcceptedSourceChains, bf as decodeERC7821ExecuteBatch, bg as decodePhantomBidDeclaration, bh as decodeUserOpScale, bj as encodeAcceptedSourceChains, bk as encodeERC7821ExecuteBatch, bm as encodePhantomBidDeclaration, bn as encodeUserOpScale, bR as extractFillData, bS as fetchBidsForOrder, bT as memoizedSolverBalance, bU as orderCommitmentFromDecoded, bV as recoverBidSignerViem, bW as setAggregationFetch, bX as splitBidSignature, bY as weightedMedian, bZ as zipFillLegs } from './intents-helpers-CxCDx-hH.cjs';
1
+ export { bE as AggregationLogger, bF as BidNonceKeyFn, bG as BidSignature, bH as ENTRY_POINT_V08_ADDRESS, bI as FILL_ORDER_ABI, bJ as FetchLike, bK as FillData, bL as HexString, bM as IntentGatewayV2, bN as LpBalance, bO as OrderCommitmentFn, bP as PhantomAggregation, bQ as PhantomLegAggregation, bR as PhantomLegBidder, bS as RecoverBidSigner, bT as RpcBidInfo, bU as SolverBalanceReader, bV as YieldVaultMap, bW as aggregatePhantomBids, bi as decodeAcceptedSourceChains, bj as decodeERC7821ExecuteBatch, bk as decodePhantomBidDeclaration, bl as decodeUserOpScale, bn as encodeAcceptedSourceChains, bo as encodeERC7821ExecuteBatch, bq as encodePhantomBidDeclaration, br as encodeUserOpScale, bX as extractFillData, bY as fetchBidsForOrder, bZ as memoizedSolverBalance, b_ as orderCommitmentFromDecoded, bA as poolSlug, b$ as recoverBidSignerViem, c0 as setAggregationFetch, bB as sortPoolSymbols, c1 as splitBidSignature, c2 as weightedMedian, c3 as zipFillLegs } from './intents-helpers-Cf0-Odlu.cjs';
2
2
  import 'consola';
3
3
  import 'decimal.js';
4
4
  import 'graphql-request';
@@ -1,4 +1,4 @@
1
- export { by as AggregationLogger, bz as BidNonceKeyFn, bA as BidSignature, bB as ENTRY_POINT_V08_ADDRESS, bC as FILL_ORDER_ABI, bD as FetchLike, bE as FillData, bF as HexString, bG as IntentGatewayV2, bH as LpBalance, bI as OrderCommitmentFn, bJ as PhantomAggregation, bK as PhantomLegAggregation, bL as PhantomLegBidder, bM as RecoverBidSigner, bN as RpcBidInfo, bO as SolverBalanceReader, bP as YieldVaultMap, bQ as aggregatePhantomBids, be as decodeAcceptedSourceChains, bf as decodeERC7821ExecuteBatch, bg as decodePhantomBidDeclaration, bh as decodeUserOpScale, bj as encodeAcceptedSourceChains, bk as encodeERC7821ExecuteBatch, bm as encodePhantomBidDeclaration, bn as encodeUserOpScale, bR as extractFillData, bS as fetchBidsForOrder, bT as memoizedSolverBalance, bU as orderCommitmentFromDecoded, bV as recoverBidSignerViem, bW as setAggregationFetch, bX as splitBidSignature, bY as weightedMedian, bZ as zipFillLegs } from './intents-helpers-CxCDx-hH.js';
1
+ export { bE as AggregationLogger, bF as BidNonceKeyFn, bG as BidSignature, bH as ENTRY_POINT_V08_ADDRESS, bI as FILL_ORDER_ABI, bJ as FetchLike, bK as FillData, bL as HexString, bM as IntentGatewayV2, bN as LpBalance, bO as OrderCommitmentFn, bP as PhantomAggregation, bQ as PhantomLegAggregation, bR as PhantomLegBidder, bS as RecoverBidSigner, bT as RpcBidInfo, bU as SolverBalanceReader, bV as YieldVaultMap, bW as aggregatePhantomBids, bi as decodeAcceptedSourceChains, bj as decodeERC7821ExecuteBatch, bk as decodePhantomBidDeclaration, bl as decodeUserOpScale, bn as encodeAcceptedSourceChains, bo as encodeERC7821ExecuteBatch, bq as encodePhantomBidDeclaration, br as encodeUserOpScale, bX as extractFillData, bY as fetchBidsForOrder, bZ as memoizedSolverBalance, b_ as orderCommitmentFromDecoded, bA as poolSlug, b$ as recoverBidSignerViem, c0 as setAggregationFetch, bB as sortPoolSymbols, c1 as splitBidSignature, c2 as weightedMedian, c3 as zipFillLegs } from './intents-helpers-Cf0-Odlu.js';
2
2
  import 'consola';
3
3
  import 'decimal.js';
4
4
  import 'graphql-request';
@@ -1937,6 +1937,14 @@ function decodeUserOpScale(hex) {
1937
1937
  signature: u8aToHex(new Uint8Array(decoded.signature))
1938
1938
  };
1939
1939
  }
1940
+
1941
+ // src/protocols/intents/liquidity-pool.ts
1942
+ function sortPoolSymbols(symbolA, symbolB) {
1943
+ return symbolA.toLowerCase() <= symbolB.toLowerCase() ? [symbolA, symbolB] : [symbolB, symbolA];
1944
+ }
1945
+ function poolSlug(symbolA, symbolB) {
1946
+ return sortPoolSymbols(symbolA, symbolB).join("-");
1947
+ }
1940
1948
  var SELECT_SOLVER_TYPEHASH = keccak256(toHex("SelectSolver(bytes32 commitment,address solver)"));
1941
1949
  var PACKED_USEROP_TYPEHASH = keccak256(
1942
1950
  toHex(
@@ -3018,6 +3026,6 @@ async function runAggregation(params, isDelegated) {
3018
3026
  return { legs, lpBalances };
3019
3027
  }
3020
3028
 
3021
- export { ENTRY_POINT_V08_ADDRESS, FILL_ORDER_ABI, IntentGatewayV2_default as IntentGatewayV2, aggregatePhantomBids, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodePhantomBidDeclaration, decodeUserOpScale, encodeAcceptedSourceChains, encodeERC7821ExecuteBatch, encodePhantomBidDeclaration, encodeUserOpScale, extractFillData, fetchBidsForOrder, memoizedSolverBalance, orderCommitmentFromDecoded, recoverBidSignerViem, setAggregationFetch, splitBidSignature, weightedMedian, zipFillLegs };
3029
+ export { ENTRY_POINT_V08_ADDRESS, FILL_ORDER_ABI, IntentGatewayV2_default as IntentGatewayV2, aggregatePhantomBids, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodePhantomBidDeclaration, decodeUserOpScale, encodeAcceptedSourceChains, encodeERC7821ExecuteBatch, encodePhantomBidDeclaration, encodeUserOpScale, extractFillData, fetchBidsForOrder, memoizedSolverBalance, orderCommitmentFromDecoded, poolSlug, recoverBidSignerViem, setAggregationFetch, sortPoolSymbols, splitBidSignature, weightedMedian, zipFillLegs };
3022
3030
  //# sourceMappingURL=intents-helpers.js.map
3023
3031
  //# sourceMappingURL=intents-helpers.js.map