@steerprotocol/sdk 3.2.3 → 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.browser.mjs +16 -0
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15896,6 +15896,16 @@ var QuoterV2Factory = class {
|
|
|
15896
15896
|
limitSqrtPrice: p.limitSqrtPrice || 0n
|
|
15897
15897
|
};
|
|
15898
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
|
+
}
|
|
15899
15909
|
if (isThickV2Protocol(protocol)) {
|
|
15900
15910
|
const p = params;
|
|
15901
15911
|
return {
|
|
@@ -15975,6 +15985,7 @@ var QuoterV2Factory = class {
|
|
|
15975
15985
|
if (isAlgebraIntegralProtocol(protocol)) return QuoterV2AlgebgraIntegral;
|
|
15976
15986
|
if (protocol === Protocol.Lynex) return QuickSwapQuoterV2;
|
|
15977
15987
|
if (protocol && isAlgebraProtocol(protocol)) return QuickSwapQuoterV2;
|
|
15988
|
+
if (isAerodromeVault(protocol)) return QuoterV2Thick;
|
|
15978
15989
|
if (isThickV2Protocol(protocol)) return QuoterV2Thick;
|
|
15979
15990
|
return UniswapV3QuoterABI;
|
|
15980
15991
|
}
|
|
@@ -16071,6 +16082,10 @@ function validateQuoteParams(protocol, params) {
|
|
|
16071
16082
|
if (!isAlgebraQuoteParams(params)) throw new Error("AlgebraQuoteParams required: limitSqrtPrice field expected");
|
|
16072
16083
|
return;
|
|
16073
16084
|
}
|
|
16085
|
+
if (protocol && isAerodromeVault(protocol)) {
|
|
16086
|
+
if (!isThickQuoteParams(params)) throw new Error("Aerodrome quote params required: must include tickSpacing field");
|
|
16087
|
+
return;
|
|
16088
|
+
}
|
|
16074
16089
|
if (!isUniswapQuoteParams(params)) throw new Error("UniswapQuoteParams required: must include fee field");
|
|
16075
16090
|
}
|
|
16076
16091
|
/**
|
|
@@ -16085,6 +16100,7 @@ function getExpectedParamType(beaconName) {
|
|
|
16085
16100
|
if (protocol && isShadowProtocol(protocol)) return "ShadowQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16086
16101
|
if (protocol && isThickV2Protocol(protocol)) return "ThickQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16087
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?)";
|
|
16088
16104
|
return "UniswapQuoteParams (requires: tokenIn, tokenOut, amountIn, fee, sqrtPriceLimitX96?)";
|
|
16089
16105
|
}
|
|
16090
16106
|
//#endregion
|