@steerprotocol/sdk 3.7.0 → 3.7.2
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 +15 -2
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +15 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -250,6 +250,8 @@ let MultiPositionManagers = /* @__PURE__ */ function(MultiPositionManagers) {
|
|
|
250
250
|
MultiPositionManagers["MultiPositionBlackholeOld"] = "MultiPositionBlackhole";
|
|
251
251
|
MultiPositionManagers["AlgebraHook"] = "AlgebraHook";
|
|
252
252
|
MultiPositionManagers["MultiPositionAerodrome"] = "MultiPositionAerodrome";
|
|
253
|
+
MultiPositionManagers["MultiPositionAerodromeSlipstream"] = "MultiPositionAerodromeSlipstream";
|
|
254
|
+
MultiPositionManagers["MultiPositionAerodromeFlexible"] = "MultiPositionAerodromeFlexible";
|
|
253
255
|
MultiPositionManagers["MultiPositionAerodromeV2"] = "AerodromeStakedPositionManager";
|
|
254
256
|
MultiPositionManagers["MultiPositionAerodromeV3"] = "AerodromeStakedPositionManagerV3";
|
|
255
257
|
MultiPositionManagers["MultiPositionNest"] = "MultiPositionNest";
|
|
@@ -285,6 +287,11 @@ const UniswapHookBeacons = [
|
|
|
285
287
|
MultiPositionManagers.TestUniswapJITHook,
|
|
286
288
|
MultiPositionManagers.MultiPositionUniswapV4HookOld
|
|
287
289
|
];
|
|
290
|
+
const AerodromeBeacons = [
|
|
291
|
+
MultiPositionManagers.MultiPositionAerodrome,
|
|
292
|
+
MultiPositionManagers.MultiPositionAerodromeSlipstream,
|
|
293
|
+
MultiPositionManagers.MultiPositionAerodromeFlexible
|
|
294
|
+
];
|
|
288
295
|
//#endregion
|
|
289
296
|
//#region src/const/deployments/abis.ts
|
|
290
297
|
const abis = {
|
|
@@ -15151,12 +15158,14 @@ const katanaIntegralConfig = () => ({
|
|
|
15151
15158
|
//#endregion
|
|
15152
15159
|
//#region src/const/amm/configs/protocols/aerodrome.ts
|
|
15153
15160
|
const aerodromeConfig = (theGraphApiKey) => ({
|
|
15154
|
-
beaconContract:
|
|
15161
|
+
beaconContract: AerodromeBeacons[0],
|
|
15162
|
+
additionalBeaconContracts: [...AerodromeBeacons.slice(1)],
|
|
15155
15163
|
subgraph: { [Chain.Base]: getTheGraphResolverUrl("GENunSHWLBXm59mBSgPzQ8metBEp9YDfdqwFr91Av1UM", false, theGraphApiKey) },
|
|
15156
15164
|
factoryAddress: {
|
|
15157
15165
|
[Chain.Arc]: "0xb89Df768aF2CFE637ceB352c587Fe8edAf491d03",
|
|
15158
15166
|
[Chain.Base]: "0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A"
|
|
15159
15167
|
},
|
|
15168
|
+
NFTManagerAddress: { [Chain.Arc]: "0xc84bB45D43CD25D02b83B4C085eaA4e08da8f473" },
|
|
15160
15169
|
TickLensAddress: {
|
|
15161
15170
|
[Chain.Base]: "0x49a3A5cf91DE1b78c43Dc1adD03E8A71f1Ea2e30",
|
|
15162
15171
|
[Chain.Arc]: "0xC6679cC98acC7C7Da0E3cb1766FB6cafC2110Bfb"
|
|
@@ -15362,12 +15371,14 @@ const TEST_UNISWAP_JIT_HOOK_BEACON = MultiPositionManagers.TestUniswapJITHook;
|
|
|
15362
15371
|
const UNISWAP_V4_NO_ORACLE_BEACON = MultiPositionManagers.MultiPositionUniswapV4NoOracle;
|
|
15363
15372
|
const UNISWAP_V4_HOOK_BEACON_NAMES = UniswapHookBeacons;
|
|
15364
15373
|
const UNISWAP_V4_BEACON_NAMES = UniswapV4Beacons;
|
|
15374
|
+
const AERODROME_BEACON_NAMES = AerodromeBeacons;
|
|
15365
15375
|
const includesBeacon = (beaconNames, beaconName) => {
|
|
15366
15376
|
if (!beaconName) return false;
|
|
15367
15377
|
const normalizedBeaconName = beaconName.toLowerCase();
|
|
15368
15378
|
return beaconNames.some((knownBeaconName) => knownBeaconName.toLowerCase() === normalizedBeaconName);
|
|
15369
15379
|
};
|
|
15370
15380
|
const isUniswapV4Beacon = (beaconName) => includesBeacon(UNISWAP_V4_BEACON_NAMES, beaconName);
|
|
15381
|
+
const isAerodromeBeacon = (beaconName) => includesBeacon(AERODROME_BEACON_NAMES, beaconName);
|
|
15371
15382
|
const isUniswapV4HookBeacon = (beaconName) => includesBeacon(UNISWAP_V4_HOOK_BEACON_NAMES, beaconName);
|
|
15372
15383
|
const shouldValidateUniswapV4VaultHook = (beaconName) => beaconName?.toLowerCase() !== UNISWAP_V4_NO_ORACLE_BEACON.toLowerCase();
|
|
15373
15384
|
const UNISWAP_V4_BEACON_SUPPORTED_CHAINS = {
|
|
@@ -15513,6 +15524,8 @@ const CUSTOM_BEACON_TO_PROTOCOL_MAP = {
|
|
|
15513
15524
|
[StrykePositionManagers.StrykeShadowManager]: Protocol.Shadow,
|
|
15514
15525
|
[MultiPositionManagers.MultiPositionUniswapV4ALM]: Protocol.UniswapV4,
|
|
15515
15526
|
[MultiPositionManagers.MultiPositionAerodrome]: Protocol.Aerodrome,
|
|
15527
|
+
[MultiPositionManagers.MultiPositionAerodromeSlipstream]: Protocol.Aerodrome,
|
|
15528
|
+
[MultiPositionManagers.MultiPositionAerodromeFlexible]: Protocol.Aerodrome,
|
|
15516
15529
|
[MultiPositionManagers.MultiPositionUniswapV4HookOld]: Protocol.UniswapV4,
|
|
15517
15530
|
[MultiPositionManagers.MultiPositionBlackholeOld]: Protocol.Blackhole,
|
|
15518
15531
|
[MultiPositionManagers.MultiPositionUniswapV4Hook]: Protocol.UniswapV4,
|
|
@@ -28917,6 +28930,7 @@ async function verifyV4PoolAction(params) {
|
|
|
28917
28930
|
* See {@link SmartRewards} for detailed API documentation.
|
|
28918
28931
|
*/
|
|
28919
28932
|
//#endregion
|
|
28933
|
+
exports.AERODROME_BEACON_NAMES = AERODROME_BEACON_NAMES;
|
|
28920
28934
|
exports.AERODROME_PROTOCOLS = AERODROME_PROTOCOLS;
|
|
28921
28935
|
exports.AERODROME_SLIPSTREAM_LIFECYCLE_DEPLOYMENTS = AERODROME_SLIPSTREAM_LIFECYCLE_DEPLOYMENTS;
|
|
28922
28936
|
exports.ALGEBRA_INTEGRAL_PROTOCOLS = ALGEBRA_INTEGRAL_PROTOCOLS;
|
|
@@ -28925,6 +28939,7 @@ exports.ALGEBRA_LIFECYCLE_DEPLOYMENTS = ALGEBRA_LIFECYCLE_DEPLOYMENTS;
|
|
|
28925
28939
|
exports.ALGEBRA_PROTOCOLS = ALGEBRA_PROTOCOLS;
|
|
28926
28940
|
exports.AMMType = AMMType;
|
|
28927
28941
|
exports.API_URLS = API_URLS;
|
|
28942
|
+
exports.AerodromeBeacons = AerodromeBeacons;
|
|
28928
28943
|
exports.AlgebgraHookBeacons = AlgebgraHookBeacons;
|
|
28929
28944
|
exports.CURRENT_V4_LIFECYCLE_DEPLOYMENTS = CURRENT_V4_LIFECYCLE_DEPLOYMENTS;
|
|
28930
28945
|
exports.Chain = Chain;
|
|
@@ -29103,6 +29118,7 @@ exports.inspectAlgebraPool = inspectAlgebraPool;
|
|
|
29103
29118
|
exports.inspectV3Pool = inspectV3Pool;
|
|
29104
29119
|
exports.inspectV4Pool = inspectV4Pool;
|
|
29105
29120
|
exports.integerSqrt = integerSqrt;
|
|
29121
|
+
exports.isAerodromeBeacon = isAerodromeBeacon;
|
|
29106
29122
|
exports.isAerodromeVault = isAerodromeVault;
|
|
29107
29123
|
exports.isAlgebraDirectionProtocol = isAlgebraDirectionProtocol;
|
|
29108
29124
|
exports.isAlgebraIntegral21QuoteParams = isAlgebraIntegral21QuoteParams;
|