@steerprotocol/sdk 3.2.3 → 3.2.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.
- package/dist/index.browser.mjs +20 -1
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +20 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +20 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -260,6 +260,8 @@ let MultiPositionManagers = /* @__PURE__ */ function(MultiPositionManagers) {
|
|
|
260
260
|
MultiPositionManagers["MultiPositionReserveV4"] = "MultiPositionReserveV4";
|
|
261
261
|
MultiPositionManagers["TestCypherAlgebraIntegralHook"] = "TestCypherAlgebraIntegralHook";
|
|
262
262
|
MultiPositionManagers["TestQuickswapAlgebraIntegralHook"] = "TestQuickswapAlgebraIntegralHook";
|
|
263
|
+
MultiPositionManagers["TestUniswapJITHook"] = "TestUniswapJITHook";
|
|
264
|
+
MultiPositionManagers["MultiPositionUniswapV4NoOracle"] = "MultiPositionUniswapV4NoOracle";
|
|
263
265
|
return MultiPositionManagers;
|
|
264
266
|
}({});
|
|
265
267
|
const AlgebgraHookBeacons = [
|
|
@@ -271,7 +273,8 @@ const AlgebgraHookBeacons = [
|
|
|
271
273
|
const UniswapHookBeacons = [
|
|
272
274
|
MultiPositionManagers.MultiPositionUniswapV4Hook,
|
|
273
275
|
MultiPositionManagers.MultiPositionUniswapV4HookOld,
|
|
274
|
-
MultiPositionManagers.MultiPositionReserveV4
|
|
276
|
+
MultiPositionManagers.MultiPositionReserveV4,
|
|
277
|
+
MultiPositionManagers.TestUniswapJITHook
|
|
275
278
|
];
|
|
276
279
|
//#endregion
|
|
277
280
|
//#region src/const/deployments/abis.ts
|
|
@@ -15896,6 +15899,16 @@ var QuoterV2Factory = class {
|
|
|
15896
15899
|
limitSqrtPrice: p.limitSqrtPrice || 0n
|
|
15897
15900
|
};
|
|
15898
15901
|
}
|
|
15902
|
+
if (isAerodromeVault(protocol)) {
|
|
15903
|
+
const p = params;
|
|
15904
|
+
return {
|
|
15905
|
+
tokenIn: p.tokenIn,
|
|
15906
|
+
tokenOut: p.tokenOut,
|
|
15907
|
+
amountIn: p.amountIn,
|
|
15908
|
+
tickSpacing: p.tickSpacing,
|
|
15909
|
+
sqrtPriceLimitX96: p.sqrtPriceLimitX96 || 0n
|
|
15910
|
+
};
|
|
15911
|
+
}
|
|
15899
15912
|
if (isThickV2Protocol(protocol)) {
|
|
15900
15913
|
const p = params;
|
|
15901
15914
|
return {
|
|
@@ -15975,6 +15988,7 @@ var QuoterV2Factory = class {
|
|
|
15975
15988
|
if (isAlgebraIntegralProtocol(protocol)) return QuoterV2AlgebgraIntegral;
|
|
15976
15989
|
if (protocol === Protocol.Lynex) return QuickSwapQuoterV2;
|
|
15977
15990
|
if (protocol && isAlgebraProtocol(protocol)) return QuickSwapQuoterV2;
|
|
15991
|
+
if (isAerodromeVault(protocol)) return QuoterV2Thick;
|
|
15978
15992
|
if (isThickV2Protocol(protocol)) return QuoterV2Thick;
|
|
15979
15993
|
return UniswapV3QuoterABI;
|
|
15980
15994
|
}
|
|
@@ -16071,6 +16085,10 @@ function validateQuoteParams(protocol, params) {
|
|
|
16071
16085
|
if (!isAlgebraQuoteParams(params)) throw new Error("AlgebraQuoteParams required: limitSqrtPrice field expected");
|
|
16072
16086
|
return;
|
|
16073
16087
|
}
|
|
16088
|
+
if (protocol && isAerodromeVault(protocol)) {
|
|
16089
|
+
if (!isThickQuoteParams(params)) throw new Error("Aerodrome quote params required: must include tickSpacing field");
|
|
16090
|
+
return;
|
|
16091
|
+
}
|
|
16074
16092
|
if (!isUniswapQuoteParams(params)) throw new Error("UniswapQuoteParams required: must include fee field");
|
|
16075
16093
|
}
|
|
16076
16094
|
/**
|
|
@@ -16085,6 +16103,7 @@ function getExpectedParamType(beaconName) {
|
|
|
16085
16103
|
if (protocol && isShadowProtocol(protocol)) return "ShadowQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16086
16104
|
if (protocol && isThickV2Protocol(protocol)) return "ThickQuoteParams (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16087
16105
|
if (protocol && isAlgebraProtocol(protocol)) return "AlgebraQuoteParams (requires: tokenIn, tokenOut, amountIn, limitSqrtPrice?)";
|
|
16106
|
+
if (protocol && isAerodromeVault(protocol)) return "Aerodrome quote params (requires: tokenIn, tokenOut, amountIn, tickSpacing, sqrtPriceLimitX96?)";
|
|
16088
16107
|
return "UniswapQuoteParams (requires: tokenIn, tokenOut, amountIn, fee, sqrtPriceLimitX96?)";
|
|
16089
16108
|
}
|
|
16090
16109
|
//#endregion
|