@steerprotocol/sdk 3.6.1 → 3.7.1
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 +81 -4
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +84 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +81 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ let decimal_js = require("decimal.js");
|
|
|
7
7
|
//#region src/const/chain.ts
|
|
8
8
|
let Chain = /* @__PURE__ */ function(Chain) {
|
|
9
9
|
Chain["Polygon"] = "Polygon";
|
|
10
|
+
Chain["Arc"] = "Arc";
|
|
10
11
|
Chain["Arbitrum"] = "Arbitrum";
|
|
11
12
|
Chain["Optimism"] = "Optimism";
|
|
12
13
|
Chain["BSC"] = "BSC";
|
|
@@ -61,6 +62,7 @@ let Chain = /* @__PURE__ */ function(Chain) {
|
|
|
61
62
|
}({});
|
|
62
63
|
const ChainId = {
|
|
63
64
|
Polygon: 137,
|
|
65
|
+
Arc: 5042,
|
|
64
66
|
Arbitrum: 42161,
|
|
65
67
|
Optimism: 10,
|
|
66
68
|
BSC: 56,
|
|
@@ -248,6 +250,7 @@ let MultiPositionManagers = /* @__PURE__ */ function(MultiPositionManagers) {
|
|
|
248
250
|
MultiPositionManagers["MultiPositionBlackholeOld"] = "MultiPositionBlackhole";
|
|
249
251
|
MultiPositionManagers["AlgebraHook"] = "AlgebraHook";
|
|
250
252
|
MultiPositionManagers["MultiPositionAerodrome"] = "MultiPositionAerodrome";
|
|
253
|
+
MultiPositionManagers["MultiPositionAerodromeSlipstream"] = "MultiPositionAerodromeSlipstream";
|
|
251
254
|
MultiPositionManagers["MultiPositionAerodromeV2"] = "AerodromeStakedPositionManager";
|
|
252
255
|
MultiPositionManagers["MultiPositionAerodromeV3"] = "AerodromeStakedPositionManagerV3";
|
|
253
256
|
MultiPositionManagers["MultiPositionNest"] = "MultiPositionNest";
|
|
@@ -283,6 +286,7 @@ const UniswapHookBeacons = [
|
|
|
283
286
|
MultiPositionManagers.TestUniswapJITHook,
|
|
284
287
|
MultiPositionManagers.MultiPositionUniswapV4HookOld
|
|
285
288
|
];
|
|
289
|
+
const AerodromeBeacons = [MultiPositionManagers.MultiPositionAerodrome, MultiPositionManagers.MultiPositionAerodromeSlipstream];
|
|
286
290
|
//#endregion
|
|
287
291
|
//#region src/const/deployments/abis.ts
|
|
288
292
|
const abis = {
|
|
@@ -6412,6 +6416,54 @@ const apechainAddresses = {
|
|
|
6412
6416
|
}
|
|
6413
6417
|
};
|
|
6414
6418
|
//#endregion
|
|
6419
|
+
//#region src/const/deployments/arc.ts
|
|
6420
|
+
const arcAddresses = {
|
|
6421
|
+
KeeperRegistry: {
|
|
6422
|
+
address: "0xE463a4A82881EF599fe8310f23ba8766Dcc448A3",
|
|
6423
|
+
startBlock: 21326564
|
|
6424
|
+
},
|
|
6425
|
+
Orchestrator: {
|
|
6426
|
+
address: "0x8725f2f77508EDd583C6f3840F88Db6A2d0Cf009",
|
|
6427
|
+
startBlock: 21326605
|
|
6428
|
+
},
|
|
6429
|
+
StrategyRegistry: {
|
|
6430
|
+
address: "0x08857cb7B2a481DB85984E32BdC03e95c0662eb6",
|
|
6431
|
+
startBlock: 21326585
|
|
6432
|
+
},
|
|
6433
|
+
VaultRegistry: {
|
|
6434
|
+
address: "0x52Db9bcb9EFdBAaa8E1D2326E0b69c57Bf14c333",
|
|
6435
|
+
startBlock: 21326644
|
|
6436
|
+
},
|
|
6437
|
+
BundleRegistry: {
|
|
6438
|
+
address: "0x6511080422911D210681f5618DBd50DEC3e954de",
|
|
6439
|
+
startBlock: 21326748
|
|
6440
|
+
},
|
|
6441
|
+
GasVault: {
|
|
6442
|
+
address: "0x0a271fc23BA4c6A4a668E7Ceef9aDE60C59f5Ec5",
|
|
6443
|
+
startBlock: 21326697
|
|
6444
|
+
},
|
|
6445
|
+
WhitelistRegistry: {
|
|
6446
|
+
address: "0x20B895F7C02e754AdC461e80b39a9e85f02e2bE3",
|
|
6447
|
+
startBlock: 21326621
|
|
6448
|
+
},
|
|
6449
|
+
SteerPeriphery: {
|
|
6450
|
+
address: "0x3e2135a491CD90Ed1e7313Bd8Efd51aba8018F69",
|
|
6451
|
+
startBlock: 21326728
|
|
6452
|
+
},
|
|
6453
|
+
StakingRewards: {
|
|
6454
|
+
address: "0xfdC6A32f2622be7Bf1481BFAC8bC6e35C42fD665",
|
|
6455
|
+
startBlock: 21326676
|
|
6456
|
+
},
|
|
6457
|
+
Helper: {
|
|
6458
|
+
address: "0xCD31EbF762A5d1F88399E692316903767DA06Cf9",
|
|
6459
|
+
startBlock: 21326630
|
|
6460
|
+
},
|
|
6461
|
+
FeeManager: {
|
|
6462
|
+
address: "0x83966243D6055b1A1157f800cBC9f5084162b871",
|
|
6463
|
+
startBlock: 21326767
|
|
6464
|
+
}
|
|
6465
|
+
};
|
|
6466
|
+
//#endregion
|
|
6415
6467
|
//#region src/const/deployments/arbitrum.ts
|
|
6416
6468
|
const arbitrumAddresses = {
|
|
6417
6469
|
"BundleRegistry": {
|
|
@@ -8443,6 +8495,10 @@ const feeManagerContractsByChainId = {
|
|
|
8443
8495
|
30: { address: "0xAa4448AeF5f5967693751BFB67197946BB6D1dC0" },
|
|
8444
8496
|
40: { address: "0xE431A1dE6F37cD08AAA8821F83bD2157857E8172" },
|
|
8445
8497
|
146: { address: "0x51aC65B177F084455750131A81706C32b466101D" },
|
|
8498
|
+
5042: {
|
|
8499
|
+
address: "0x83966243D6055b1A1157f800cBC9f5084162b871",
|
|
8500
|
+
startBlock: 21326767
|
|
8501
|
+
},
|
|
8446
8502
|
199: { address: "0xdca3251Ebe8f85458E8d95813bCb816460e4bef1" },
|
|
8447
8503
|
314: { address: "0x0C5c5BEB833fD382b04e039f151942DC3D9A60ce" },
|
|
8448
8504
|
1284: { address: "0xfF42cD42d8a5812CB38fb3C0720Dfc490912f48B" },
|
|
@@ -8483,6 +8539,15 @@ const networks = {
|
|
|
8483
8539
|
wrappedNativeToken: "WETH",
|
|
8484
8540
|
transactionType: 0
|
|
8485
8541
|
},
|
|
8542
|
+
[Chain.Arc]: {
|
|
8543
|
+
address: "0x3600000000000000000000000000000000000000",
|
|
8544
|
+
name: Chain.Arc,
|
|
8545
|
+
wrappedNativeToken: "USDC",
|
|
8546
|
+
isWrappingEnabled: false,
|
|
8547
|
+
...arcAddresses,
|
|
8548
|
+
chainId: ChainId.Arc,
|
|
8549
|
+
transactionType: 0
|
|
8550
|
+
},
|
|
8486
8551
|
[Chain.Arbitrum]: {
|
|
8487
8552
|
address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
8488
8553
|
name: Chain.Arbitrum,
|
|
@@ -9226,6 +9291,7 @@ const steerSubgraphConfig = {
|
|
|
9226
9291
|
[Chain.Polygon]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-polygon/prod/gn",
|
|
9227
9292
|
[Chain.BSC]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-bsc-beta/prod/gn",
|
|
9228
9293
|
[Chain.Optimism]: "https://subgraph-proxy-server-xf2uthetka-as.a.run.app/gateway-arbitrum/GgW1EwNARL3dyo3acQ3VhraQQ66MHT7QnYuGcQc5geDG",
|
|
9294
|
+
[Chain.Arc]: "https://api.goldsky.com/api/public/project_cm2k9xbkz4qg901vs51bm5uau/subgraphs/steer-protocol-arc-mainnet/prod/gn",
|
|
9229
9295
|
[Chain.Arbitrum]: "https://api.subgraph.ormilabs.com/api/public/803c8c8c-be12-4188-8523-b9853e23051d/subgraphs/steer-protocol-arbitrum/prod/gn",
|
|
9230
9296
|
[Chain.Evmos]: offlineSubgraphUrl("evmos"),
|
|
9231
9297
|
[Chain.Thundercore]: offlineSubgraphUrl("thundercore"),
|
|
@@ -15087,10 +15153,18 @@ const katanaIntegralConfig = () => ({
|
|
|
15087
15153
|
//#endregion
|
|
15088
15154
|
//#region src/const/amm/configs/protocols/aerodrome.ts
|
|
15089
15155
|
const aerodromeConfig = (theGraphApiKey) => ({
|
|
15090
|
-
beaconContract:
|
|
15156
|
+
beaconContract: AerodromeBeacons[0],
|
|
15157
|
+
additionalBeaconContracts: [...AerodromeBeacons.slice(1)],
|
|
15091
15158
|
subgraph: { [Chain.Base]: getTheGraphResolverUrl("GENunSHWLBXm59mBSgPzQ8metBEp9YDfdqwFr91Av1UM", false, theGraphApiKey) },
|
|
15092
|
-
factoryAddress: {
|
|
15093
|
-
|
|
15159
|
+
factoryAddress: {
|
|
15160
|
+
[Chain.Arc]: "0xb89Df768aF2CFE637ceB352c587Fe8edAf491d03",
|
|
15161
|
+
[Chain.Base]: "0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A"
|
|
15162
|
+
},
|
|
15163
|
+
NFTManagerAddress: { [Chain.Arc]: "0xc84bB45D43CD25D02b83B4C085eaA4e08da8f473" },
|
|
15164
|
+
TickLensAddress: {
|
|
15165
|
+
[Chain.Base]: "0x49a3A5cf91DE1b78c43Dc1adD03E8A71f1Ea2e30",
|
|
15166
|
+
[Chain.Arc]: "0xC6679cC98acC7C7Da0E3cb1766FB6cafC2110Bfb"
|
|
15167
|
+
},
|
|
15094
15168
|
QuoterV2Address: { [Chain.Base]: "0x254cF9E1E6e233aa1AC962CB9B05b2cfeAaE15b0" }
|
|
15095
15169
|
});
|
|
15096
15170
|
//#endregion
|
|
@@ -15292,12 +15366,14 @@ const TEST_UNISWAP_JIT_HOOK_BEACON = MultiPositionManagers.TestUniswapJITHook;
|
|
|
15292
15366
|
const UNISWAP_V4_NO_ORACLE_BEACON = MultiPositionManagers.MultiPositionUniswapV4NoOracle;
|
|
15293
15367
|
const UNISWAP_V4_HOOK_BEACON_NAMES = UniswapHookBeacons;
|
|
15294
15368
|
const UNISWAP_V4_BEACON_NAMES = UniswapV4Beacons;
|
|
15369
|
+
const AERODROME_BEACON_NAMES = AerodromeBeacons;
|
|
15295
15370
|
const includesBeacon = (beaconNames, beaconName) => {
|
|
15296
15371
|
if (!beaconName) return false;
|
|
15297
15372
|
const normalizedBeaconName = beaconName.toLowerCase();
|
|
15298
15373
|
return beaconNames.some((knownBeaconName) => knownBeaconName.toLowerCase() === normalizedBeaconName);
|
|
15299
15374
|
};
|
|
15300
15375
|
const isUniswapV4Beacon = (beaconName) => includesBeacon(UNISWAP_V4_BEACON_NAMES, beaconName);
|
|
15376
|
+
const isAerodromeBeacon = (beaconName) => includesBeacon(AERODROME_BEACON_NAMES, beaconName);
|
|
15301
15377
|
const isUniswapV4HookBeacon = (beaconName) => includesBeacon(UNISWAP_V4_HOOK_BEACON_NAMES, beaconName);
|
|
15302
15378
|
const shouldValidateUniswapV4VaultHook = (beaconName) => beaconName?.toLowerCase() !== UNISWAP_V4_NO_ORACLE_BEACON.toLowerCase();
|
|
15303
15379
|
const UNISWAP_V4_BEACON_SUPPORTED_CHAINS = {
|
|
@@ -15443,6 +15519,7 @@ const CUSTOM_BEACON_TO_PROTOCOL_MAP = {
|
|
|
15443
15519
|
[StrykePositionManagers.StrykeShadowManager]: Protocol.Shadow,
|
|
15444
15520
|
[MultiPositionManagers.MultiPositionUniswapV4ALM]: Protocol.UniswapV4,
|
|
15445
15521
|
[MultiPositionManagers.MultiPositionAerodrome]: Protocol.Aerodrome,
|
|
15522
|
+
[MultiPositionManagers.MultiPositionAerodromeSlipstream]: Protocol.Aerodrome,
|
|
15446
15523
|
[MultiPositionManagers.MultiPositionUniswapV4HookOld]: Protocol.UniswapV4,
|
|
15447
15524
|
[MultiPositionManagers.MultiPositionBlackholeOld]: Protocol.Blackhole,
|
|
15448
15525
|
[MultiPositionManagers.MultiPositionUniswapV4Hook]: Protocol.UniswapV4,
|
|
@@ -28847,6 +28924,7 @@ async function verifyV4PoolAction(params) {
|
|
|
28847
28924
|
* See {@link SmartRewards} for detailed API documentation.
|
|
28848
28925
|
*/
|
|
28849
28926
|
//#endregion
|
|
28927
|
+
exports.AERODROME_BEACON_NAMES = AERODROME_BEACON_NAMES;
|
|
28850
28928
|
exports.AERODROME_PROTOCOLS = AERODROME_PROTOCOLS;
|
|
28851
28929
|
exports.AERODROME_SLIPSTREAM_LIFECYCLE_DEPLOYMENTS = AERODROME_SLIPSTREAM_LIFECYCLE_DEPLOYMENTS;
|
|
28852
28930
|
exports.ALGEBRA_INTEGRAL_PROTOCOLS = ALGEBRA_INTEGRAL_PROTOCOLS;
|
|
@@ -28855,6 +28933,7 @@ exports.ALGEBRA_LIFECYCLE_DEPLOYMENTS = ALGEBRA_LIFECYCLE_DEPLOYMENTS;
|
|
|
28855
28933
|
exports.ALGEBRA_PROTOCOLS = ALGEBRA_PROTOCOLS;
|
|
28856
28934
|
exports.AMMType = AMMType;
|
|
28857
28935
|
exports.API_URLS = API_URLS;
|
|
28936
|
+
exports.AerodromeBeacons = AerodromeBeacons;
|
|
28858
28937
|
exports.AlgebgraHookBeacons = AlgebgraHookBeacons;
|
|
28859
28938
|
exports.CURRENT_V4_LIFECYCLE_DEPLOYMENTS = CURRENT_V4_LIFECYCLE_DEPLOYMENTS;
|
|
28860
28939
|
exports.Chain = Chain;
|
|
@@ -28919,6 +28998,7 @@ exports.algebraPoolBaseAbi = algebraPoolBaseAbi;
|
|
|
28919
28998
|
exports.apechainAddresses = apechainAddresses;
|
|
28920
28999
|
exports.arbitrumAddresses = arbitrumAddresses;
|
|
28921
29000
|
exports.arbitrumgoerliAddresses = arbitrumgoerliAddresses;
|
|
29001
|
+
exports.arcAddresses = arcAddresses;
|
|
28922
29002
|
exports.arthswapConfig = arthswapConfig;
|
|
28923
29003
|
exports.assertAerodromeSlipstreamInitialPrice = assertAerodromeSlipstreamInitialPrice;
|
|
28924
29004
|
exports.assertAlgebraInitialPrice = assertAlgebraInitialPrice;
|
|
@@ -29032,6 +29112,7 @@ exports.inspectAlgebraPool = inspectAlgebraPool;
|
|
|
29032
29112
|
exports.inspectV3Pool = inspectV3Pool;
|
|
29033
29113
|
exports.inspectV4Pool = inspectV4Pool;
|
|
29034
29114
|
exports.integerSqrt = integerSqrt;
|
|
29115
|
+
exports.isAerodromeBeacon = isAerodromeBeacon;
|
|
29035
29116
|
exports.isAerodromeVault = isAerodromeVault;
|
|
29036
29117
|
exports.isAlgebraDirectionProtocol = isAlgebraDirectionProtocol;
|
|
29037
29118
|
exports.isAlgebraIntegral21QuoteParams = isAlgebraIntegral21QuoteParams;
|