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