@steerprotocol/sdk 3.2.6 → 3.2.7
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 +33 -5
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +42 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +12 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +33 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -269,11 +269,18 @@ const AlgebgraHookBeacons = [
|
|
|
269
269
|
MultiPositionManagers.TestCypherAlgebraIntegralHook,
|
|
270
270
|
MultiPositionManagers.TestQuickswapAlgebraIntegralHook
|
|
271
271
|
];
|
|
272
|
-
const
|
|
273
|
-
MultiPositionManagers.
|
|
272
|
+
const UniswapV4Beacons = [
|
|
273
|
+
MultiPositionManagers.MultiPositionUniswapV4ALM,
|
|
274
274
|
MultiPositionManagers.MultiPositionUniswapV4HookOld,
|
|
275
|
+
MultiPositionManagers.TestUniswapJITHook,
|
|
276
|
+
MultiPositionManagers.MultiPositionUniswapV4Hook,
|
|
275
277
|
MultiPositionManagers.MultiPositionReserveV4,
|
|
276
|
-
MultiPositionManagers.
|
|
278
|
+
MultiPositionManagers.MultiPositionUniswapV4NoOracle
|
|
279
|
+
];
|
|
280
|
+
const UniswapHookBeacons = [
|
|
281
|
+
MultiPositionManagers.MultiPositionUniswapV4Hook,
|
|
282
|
+
MultiPositionManagers.TestUniswapJITHook,
|
|
283
|
+
MultiPositionManagers.MultiPositionUniswapV4HookOld
|
|
277
284
|
];
|
|
278
285
|
//#endregion
|
|
279
286
|
//#region src/const/deployments/abis.ts
|
|
@@ -15085,7 +15092,7 @@ const sparkIntegralConfig = () => ({
|
|
|
15085
15092
|
//#region src/const/amm/configs/protocols/uniswapv4.ts
|
|
15086
15093
|
const uniswapV4Config = (theGraphApiKey) => ({
|
|
15087
15094
|
beaconContract: MultiPositionManagers.MultiPositionUniswapV4ALM,
|
|
15088
|
-
additionalBeaconContracts:
|
|
15095
|
+
additionalBeaconContracts: UniswapV4Beacons.slice(1),
|
|
15089
15096
|
subgraph: {
|
|
15090
15097
|
[Chain.Unichain]: getTheGraphResolverUrl(`EoCvJ5tyMLMJcTnLQwWpjAtPdn74PcrZgzfcT5bYxNBH`, false, theGraphApiKey),
|
|
15091
15098
|
[Chain.BSC]: getTheGraphResolverUrl(`EAq1nJKgjnuKH6Gj4RFjCW7LcL7E2uipbncdwV7TTWkX`, false, theGraphApiKey),
|
|
@@ -15244,6 +15251,27 @@ const getAmmConfig = (theGraphApiKey) => {
|
|
|
15244
15251
|
};
|
|
15245
15252
|
//#endregion
|
|
15246
15253
|
//#region src/const/amm/utils/beacon.ts
|
|
15254
|
+
const TEST_UNISWAP_JIT_HOOK_BEACON = MultiPositionManagers.TestUniswapJITHook;
|
|
15255
|
+
const UNISWAP_V4_NO_ORACLE_BEACON = MultiPositionManagers.MultiPositionUniswapV4NoOracle;
|
|
15256
|
+
const UNISWAP_V4_HOOK_BEACON_NAMES = UniswapHookBeacons;
|
|
15257
|
+
const UNISWAP_V4_BEACON_NAMES = UniswapV4Beacons;
|
|
15258
|
+
const includesBeacon = (beaconNames, beaconName) => {
|
|
15259
|
+
if (!beaconName) return false;
|
|
15260
|
+
const normalizedBeaconName = beaconName.toLowerCase();
|
|
15261
|
+
return beaconNames.some((knownBeaconName) => knownBeaconName.toLowerCase() === normalizedBeaconName);
|
|
15262
|
+
};
|
|
15263
|
+
const isUniswapV4Beacon = (beaconName) => includesBeacon(UNISWAP_V4_BEACON_NAMES, beaconName);
|
|
15264
|
+
const isUniswapV4HookBeacon = (beaconName) => includesBeacon(UNISWAP_V4_HOOK_BEACON_NAMES, beaconName);
|
|
15265
|
+
const shouldValidateUniswapV4VaultHook = (beaconName) => beaconName?.toLowerCase() !== UNISWAP_V4_NO_ORACLE_BEACON.toLowerCase();
|
|
15266
|
+
const UNISWAP_V4_BEACON_SUPPORTED_CHAINS = {
|
|
15267
|
+
[TEST_UNISWAP_JIT_HOOK_BEACON.toLowerCase()]: [Chain.BSC],
|
|
15268
|
+
[UNISWAP_V4_NO_ORACLE_BEACON.toLowerCase()]: [Chain.Robinhood]
|
|
15269
|
+
};
|
|
15270
|
+
const getUniswapV4BeaconSupportedChains = (beaconName) => beaconName ? UNISWAP_V4_BEACON_SUPPORTED_CHAINS[beaconName.toLowerCase()] : void 0;
|
|
15271
|
+
const isUniswapV4BeaconAvailableOnChain = (beaconName, chain) => {
|
|
15272
|
+
const supportedChains = getUniswapV4BeaconSupportedChains(beaconName);
|
|
15273
|
+
return !supportedChains || supportedChains.includes(chain);
|
|
15274
|
+
};
|
|
15247
15275
|
const BEACON_TO_SUPPORTED_PROTOCOL_MAP = {
|
|
15248
15276
|
retro: "Retro",
|
|
15249
15277
|
forge: "Forge",
|
|
@@ -23715,6 +23743,6 @@ var FeeManagerClient = class extends SubgraphClient {
|
|
|
23715
23743
|
* See {@link SmartRewards} for detailed API documentation.
|
|
23716
23744
|
*/
|
|
23717
23745
|
//#endregion
|
|
23718
|
-
export { AERODROME_PROTOCOLS, ALGEBRA_INTEGRAL_PROTOCOLS, ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS, ALGEBRA_PROTOCOLS, AMMType, API_URLS, AlgebgraHookBeacons, Chain, ChainId, DIRECTIONAL_ALGEBRA_PROTOCOLS, FEE_MANAGER_ABI, FeeManagerClient, MultiPositionManagers, POOLSHARK_PROTOCOLS, PoolClient, Protocol, QuickSwapQuoterV2, QuoterV2AlgebgraIntegral, QuoterV2AlgebgraIntegral21, QuoterV2Factory, QuoterV2Shadow, QuoterV2Thick, SHADOW_PROTOCOLS, SingleAssetDepositClient, SmartRewards, StakingClient, StakingProtocol, SteerClient, StrykePositionManagers, SubgraphClient, SubgraphVaultClient, UniswapHookBeacons, UniswapV3PoolABI, UniswapV3QuoterABI, VAULT_FEES_ABI, VaultClient, abis, apechainAddresses, arbitrumAddresses, arbitrumgoerliAddresses, arthswapConfig, astarAddresses, astarzkevmAddresses, avalancheAddresses, bartiotestAddresses, baseAddresses, baseSwapConfig, basexConfig, beraAddresses, bittensorAddresses, bittensorUniV3Config, blastAddresses, bscAddresses, calculateLimitPrice, calculateSwapAmount, camelotConfig, celoAddresses, chainIdToName, chainNameToId, crustConfig, deprecatedBundlesURL, determineSwapDirection, equilibreConfig, erc1155Abi, erc20Abi, erc721Abi, estimateLpTokens, ethAddresses, evmosAddresses, fantomAddresses, fenixConfig, filecoinAddresses, flareAddresses, forgeConfig, fusionxConfig, getAmmConfig, getAmmConfigByChainId, getApiUrl, getBeaconNameByProtocol, getContractAddressByChainIdAndContractName, getExpectedParamType, getFactoryAddress, getInitCodeHash, getNFTManagerAddress, getNetworkByChainId, getPoolHelperByChainId, getPoolSlot0, getProtcolTypeByAmmType, getProtocolBySubgraph, getProtocolConfigByBeacon, getProtocolContractAddresses, getProtocolInfoByChainId, getProtocolInfoByName, getProtocolSubgraphURL, getProtocolTypeByBeacon, getProtocolsForChainId, getQuoterV2Address, getStabilityVaultsPeripheryAddress, getStabilityVaultsSubgraphUrl, getSubgraphUrlByChainId, getSupportedChainByChainId, getSupportedChainIds, getSupportedChains, getSwapRouterAddress, getTheGraphResolverUrl, getTickLensAddress, getVaultReserves, glyphConfig, goerliAddresses, hemiAddresses, henjinConfig, herculesConfig, horizaConfig, isAerodromeVault, isAlgebraDirectionProtocol, isAlgebraIntegral21QuoteParams, isAlgebraIntegralProtocol, isAlgebraIntegralV2Protocol, isAlgebraProtocol, isAlgebraProtocolBySubgraph, isAlgebraQuoteParams, isPoolSharkProtocol, isShadowProtocol, isShadowQuoteParams, isSingleAssetDepositSupported, isThickQuoteParams, isThickV2Protocol, isUniswapQuoteParams, isValidStakingProtocol, katanaAddresses, katanaConfig, kavaAddresses, kimConfig, kinetixConfig, lineaAddresses, linehubConfig, localhostAddresses, lynexConfig, maiaConfig, mantaAddresses, mantleAddresses, metaVaultConfig, metisAddresses, modeAddresses, moonbeamAddresses, mumbaiAddresses, nestVaultConfig, networks, normalizeProtocol, novaswapConfig, okxtestnetAddresses, optimismAddresses, optimismgoerliAddresses, pancakeSwapConfig, polygonAddresses, polyzkevmAddresses, poolsharkConfig, quickSwapAlgebraConfig, quickSwapConfig, quickSwapIntegralConfig, quickSwapUniv3Config, retroConfig, robinhoodAddresses, rootstockAddresses, sagaAddresses, scrollAddresses, seiAddresses, shadowConfig, simulateSwap, singleTokenDepositAbi, soneiumAddresses, sonicAddresses, spark32Config, sparkConfig, stabilityVaultsConfig, steerSubgraphConfig, supswapConfig, sushiConfig, swapmodeConfig, swapsicleConfig, taikoAddresses, telosAddresses, thenaConfig, thickConfig, thrusterConfig, thundercoreAddresses, uniAddresses, uniswapConfig, validateQuoteParams, validateSwapParams, xlayerAddresses, zetaAddresses, zircuitAddresses };
|
|
23746
|
+
export { AERODROME_PROTOCOLS, ALGEBRA_INTEGRAL_PROTOCOLS, ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS, ALGEBRA_PROTOCOLS, AMMType, API_URLS, AlgebgraHookBeacons, Chain, ChainId, DIRECTIONAL_ALGEBRA_PROTOCOLS, FEE_MANAGER_ABI, FeeManagerClient, MultiPositionManagers, POOLSHARK_PROTOCOLS, PoolClient, Protocol, QuickSwapQuoterV2, QuoterV2AlgebgraIntegral, QuoterV2AlgebgraIntegral21, QuoterV2Factory, QuoterV2Shadow, QuoterV2Thick, SHADOW_PROTOCOLS, SingleAssetDepositClient, SmartRewards, StakingClient, StakingProtocol, SteerClient, StrykePositionManagers, SubgraphClient, SubgraphVaultClient, TEST_UNISWAP_JIT_HOOK_BEACON, UNISWAP_V4_BEACON_NAMES, UNISWAP_V4_HOOK_BEACON_NAMES, UNISWAP_V4_NO_ORACLE_BEACON, UniswapHookBeacons, UniswapV3PoolABI, UniswapV3QuoterABI, UniswapV4Beacons, VAULT_FEES_ABI, VaultClient, abis, apechainAddresses, arbitrumAddresses, arbitrumgoerliAddresses, arthswapConfig, astarAddresses, astarzkevmAddresses, avalancheAddresses, bartiotestAddresses, baseAddresses, baseSwapConfig, basexConfig, beraAddresses, bittensorAddresses, bittensorUniV3Config, blastAddresses, bscAddresses, calculateLimitPrice, calculateSwapAmount, camelotConfig, celoAddresses, chainIdToName, chainNameToId, crustConfig, deprecatedBundlesURL, determineSwapDirection, equilibreConfig, erc1155Abi, erc20Abi, erc721Abi, estimateLpTokens, ethAddresses, evmosAddresses, fantomAddresses, fenixConfig, filecoinAddresses, flareAddresses, forgeConfig, fusionxConfig, getAmmConfig, getAmmConfigByChainId, getApiUrl, getBeaconNameByProtocol, getContractAddressByChainIdAndContractName, getExpectedParamType, getFactoryAddress, getInitCodeHash, getNFTManagerAddress, getNetworkByChainId, getPoolHelperByChainId, getPoolSlot0, getProtcolTypeByAmmType, getProtocolBySubgraph, getProtocolConfigByBeacon, getProtocolContractAddresses, getProtocolInfoByChainId, getProtocolInfoByName, getProtocolSubgraphURL, getProtocolTypeByBeacon, getProtocolsForChainId, getQuoterV2Address, getStabilityVaultsPeripheryAddress, getStabilityVaultsSubgraphUrl, getSubgraphUrlByChainId, getSupportedChainByChainId, getSupportedChainIds, getSupportedChains, getSwapRouterAddress, getTheGraphResolverUrl, getTickLensAddress, getUniswapV4BeaconSupportedChains, getVaultReserves, glyphConfig, goerliAddresses, hemiAddresses, henjinConfig, herculesConfig, horizaConfig, isAerodromeVault, isAlgebraDirectionProtocol, isAlgebraIntegral21QuoteParams, isAlgebraIntegralProtocol, isAlgebraIntegralV2Protocol, isAlgebraProtocol, isAlgebraProtocolBySubgraph, isAlgebraQuoteParams, isPoolSharkProtocol, isShadowProtocol, isShadowQuoteParams, isSingleAssetDepositSupported, isThickQuoteParams, isThickV2Protocol, isUniswapQuoteParams, isUniswapV4Beacon, isUniswapV4BeaconAvailableOnChain, isUniswapV4HookBeacon, isValidStakingProtocol, katanaAddresses, katanaConfig, kavaAddresses, kimConfig, kinetixConfig, lineaAddresses, linehubConfig, localhostAddresses, lynexConfig, maiaConfig, mantaAddresses, mantleAddresses, metaVaultConfig, metisAddresses, modeAddresses, moonbeamAddresses, mumbaiAddresses, nestVaultConfig, networks, normalizeProtocol, novaswapConfig, okxtestnetAddresses, optimismAddresses, optimismgoerliAddresses, pancakeSwapConfig, polygonAddresses, polyzkevmAddresses, poolsharkConfig, quickSwapAlgebraConfig, quickSwapConfig, quickSwapIntegralConfig, quickSwapUniv3Config, retroConfig, robinhoodAddresses, rootstockAddresses, sagaAddresses, scrollAddresses, seiAddresses, shadowConfig, shouldValidateUniswapV4VaultHook, simulateSwap, singleTokenDepositAbi, soneiumAddresses, sonicAddresses, spark32Config, sparkConfig, stabilityVaultsConfig, steerSubgraphConfig, supswapConfig, sushiConfig, swapmodeConfig, swapsicleConfig, taikoAddresses, telosAddresses, thenaConfig, thickConfig, thrusterConfig, thundercoreAddresses, uniAddresses, uniswapConfig, validateQuoteParams, validateSwapParams, xlayerAddresses, zetaAddresses, zircuitAddresses };
|
|
23719
23747
|
|
|
23720
23748
|
//# sourceMappingURL=index.browser.mjs.map
|