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