@steerprotocol/sdk 3.2.2 → 3.2.4

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.cjs CHANGED
@@ -15045,7 +15045,8 @@ const aerodromeConfig = (theGraphApiKey) => ({
15045
15045
  beaconContract: MultiPositionManagers.MultiPositionAerodrome,
15046
15046
  subgraph: { [Chain.Base]: getTheGraphResolverUrl("GENunSHWLBXm59mBSgPzQ8metBEp9YDfdqwFr91Av1UM", false, theGraphApiKey) },
15047
15047
  factoryAddress: { [Chain.Base]: "0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A" },
15048
- TickLensAddress: { [Chain.Base]: "0x49a3A5cf91DE1b78c43Dc1adD03E8A71f1Ea2e30" }
15048
+ TickLensAddress: { [Chain.Base]: "0x49a3A5cf91DE1b78c43Dc1adD03E8A71f1Ea2e30" },
15049
+ QuoterV2Address: { [Chain.Base]: "0x254cF9E1E6e233aa1AC962CB9B05b2cfeAaE15b0" }
15049
15050
  });
15050
15051
  //#endregion
15051
15052
  //#region src/const/amm/configs/protocols/aerodrome-v2.ts
@@ -15053,7 +15054,8 @@ const aerodromeV2Config = (theGraphApiKey) => ({
15053
15054
  beaconContract: MultiPositionManagers.MultiPositionAerodromeV2,
15054
15055
  subgraph: { [Chain.Base]: getTheGraphResolverUrl("GENunSHWLBXm59mBSgPzQ8metBEp9YDfdqwFr91Av1UM", false, theGraphApiKey) },
15055
15056
  factoryAddress: { [Chain.Base]: "0xaDe65c38CD4849aDBA595a4323a8C7DdfE89716a" },
15056
- TickLensAddress: { [Chain.Base]: "0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C" }
15057
+ TickLensAddress: { [Chain.Base]: "0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C" },
15058
+ QuoterV2Address: { [Chain.Base]: "0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C" }
15057
15059
  });
15058
15060
  //#endregion
15059
15061
  //#region src/const/amm/configs/protocols/cypher.ts
@@ -15164,7 +15166,8 @@ const aerodromeV3Config = (theGraphApiKey) => ({
15164
15166
  beaconContract: MultiPositionManagers.MultiPositionAerodromeV3,
15165
15167
  subgraph: { [Chain.Base]: getTheGraphResolverUrl("GENunSHWLBXm59mBSgPzQ8metBEp9YDfdqwFr91Av1UM", false, theGraphApiKey) },
15166
15168
  factoryAddress: { [Chain.Base]: "0xf8f2eB4940CFE7d13603DDDD87f123820Fc061Ef" },
15167
- TickLensAddress: { [Chain.Base]: "0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C" }
15169
+ TickLensAddress: { [Chain.Base]: "0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C" },
15170
+ QuoterV2Address: { [Chain.Base]: "0x514c8B5f54112481E28028F1166Bd78501089259" }
15168
15171
  });
15169
15172
  //#endregion
15170
15173
  //#region src/const/amm/configs/ammConfig.ts
@@ -15893,6 +15896,16 @@ var QuoterV2Factory = class {
15893
15896
  limitSqrtPrice: p.limitSqrtPrice || 0n
15894
15897
  };
15895
15898
  }
15899
+ if (isAerodromeVault(protocol)) {
15900
+ const p = params;
15901
+ return {
15902
+ tokenIn: p.tokenIn,
15903
+ tokenOut: p.tokenOut,
15904
+ amountIn: p.amountIn,
15905
+ tickSpacing: p.tickSpacing,
15906
+ sqrtPriceLimitX96: p.sqrtPriceLimitX96 || 0n
15907
+ };
15908
+ }
15896
15909
  if (isThickV2Protocol(protocol)) {
15897
15910
  const p = params;
15898
15911
  return {
@@ -15972,6 +15985,7 @@ var QuoterV2Factory = class {
15972
15985
  if (isAlgebraIntegralProtocol(protocol)) return QuoterV2AlgebgraIntegral;
15973
15986
  if (protocol === Protocol.Lynex) return QuickSwapQuoterV2;
15974
15987
  if (protocol && isAlgebraProtocol(protocol)) return QuickSwapQuoterV2;
15988
+ if (isAerodromeVault(protocol)) return QuoterV2Thick;
15975
15989
  if (isThickV2Protocol(protocol)) return QuoterV2Thick;
15976
15990
  return UniswapV3QuoterABI;
15977
15991
  }
@@ -16068,6 +16082,10 @@ function validateQuoteParams(protocol, params) {
16068
16082
  if (!isAlgebraQuoteParams(params)) throw new Error("AlgebraQuoteParams required: limitSqrtPrice field expected");
16069
16083
  return;
16070
16084
  }
16085
+ if (protocol && isAerodromeVault(protocol)) {
16086
+ if (!isThickQuoteParams(params)) throw new Error("Aerodrome quote params required: must include tickSpacing field");
16087
+ return;
16088
+ }
16071
16089
  if (!isUniswapQuoteParams(params)) throw new Error("UniswapQuoteParams required: must include fee field");
16072
16090
  }
16073
16091
  /**
@@ -16082,6 +16100,7 @@ function getExpectedParamType(beaconName) {
16082
16100
  if (protocol && isShadowProtocol(protocol)) return "ShadowQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
16083
16101
  if (protocol && isThickV2Protocol(protocol)) return "ThickQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
16084
16102
  if (protocol && isAlgebraProtocol(protocol)) return "AlgebraQuoteParams (requires: tokenIn, tokenOut, amountIn, limitSqrtPrice?)";
16103
+ if (protocol && isAerodromeVault(protocol)) return "Aerodrome quote params (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
16085
16104
  return "UniswapQuoteParams (requires: tokenIn, tokenOut, amountIn, fee, sqrtPriceLimitX96?)";
16086
16105
  }
16087
16106
  //#endregion