@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.browser.mjs
CHANGED
|
@@ -15895,6 +15895,16 @@ var QuoterV2Factory = class {
|
|
|
15895
15895
|
limitSqrtPrice: p.limitSqrtPrice || 0n
|
|
15896
15896
|
};
|
|
15897
15897
|
}
|
|
15898
|
+
if (isAerodromeVault(protocol)) {
|
|
15899
|
+
const p = params;
|
|
15900
|
+
return {
|
|
15901
|
+
tokenIn: p.tokenIn,
|
|
15902
|
+
tokenOut: p.tokenOut,
|
|
15903
|
+
amountIn: p.amountIn,
|
|
15904
|
+
tickSpacing: p.tickSpacing,
|
|
15905
|
+
sqrtPriceLimitX96: p.sqrtPriceLimitX96 || 0n
|
|
15906
|
+
};
|
|
15907
|
+
}
|
|
15898
15908
|
if (isThickV2Protocol(protocol)) {
|
|
15899
15909
|
const p = params;
|
|
15900
15910
|
return {
|
|
@@ -15974,6 +15984,7 @@ var QuoterV2Factory = class {
|
|
|
15974
15984
|
if (isAlgebraIntegralProtocol(protocol)) return QuoterV2AlgebgraIntegral;
|
|
15975
15985
|
if (protocol === Protocol.Lynex) return QuickSwapQuoterV2;
|
|
15976
15986
|
if (protocol && isAlgebraProtocol(protocol)) return QuickSwapQuoterV2;
|
|
15987
|
+
if (isAerodromeVault(protocol)) return QuoterV2Thick;
|
|
15977
15988
|
if (isThickV2Protocol(protocol)) return QuoterV2Thick;
|
|
15978
15989
|
return UniswapV3QuoterABI;
|
|
15979
15990
|
}
|
|
@@ -16070,6 +16081,10 @@ function validateQuoteParams(protocol, params) {
|
|
|
16070
16081
|
if (!isAlgebraQuoteParams(params)) throw new Error("AlgebraQuoteParams required: limitSqrtPrice field expected");
|
|
16071
16082
|
return;
|
|
16072
16083
|
}
|
|
16084
|
+
if (protocol && isAerodromeVault(protocol)) {
|
|
16085
|
+
if (!isThickQuoteParams(params)) throw new Error("Aerodrome quote params required: must include tickSpacing field");
|
|
16086
|
+
return;
|
|
16087
|
+
}
|
|
16073
16088
|
if (!isUniswapQuoteParams(params)) throw new Error("UniswapQuoteParams required: must include fee field");
|
|
16074
16089
|
}
|
|
16075
16090
|
/**
|
|
@@ -16084,6 +16099,7 @@ function getExpectedParamType(beaconName) {
|
|
|
16084
16099
|
if (protocol && isShadowProtocol(protocol)) return "ShadowQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16085
16100
|
if (protocol && isThickV2Protocol(protocol)) return "ThickQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16086
16101
|
if (protocol && isAlgebraProtocol(protocol)) return "AlgebraQuoteParams (requires: tokenIn, tokenOut, amountIn, limitSqrtPrice?)";
|
|
16102
|
+
if (protocol && isAerodromeVault(protocol)) return "Aerodrome quote params (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16087
16103
|
return "UniswapQuoteParams (requires: tokenIn, tokenOut, amountIn, fee, sqrtPriceLimitX96?)";
|
|
16088
16104
|
}
|
|
16089
16105
|
//#endregion
|