@panoptic-eng/sdk 1.0.70 → 1.0.72
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/{cow-sGuN0eas.js → cow-DMLTQhqt.js} +1 -1
- package/dist/{greeks-DNPP24KL.js → greeks-CEv-Uex1.js} +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -23
- package/dist/index.js.map +1 -1
- package/dist/{irm-6RzXXa1_.js → irm-BI9so_9s.js} +192 -15
- package/dist/panoptic/v2/index.d.ts +38 -16
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +287 -255
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +40 -18
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +287 -255
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{rates-DDK4ZimJ.js → rates-BOGkyjVy.js} +2 -2
- package/dist/{router-njWsLvZc.js → router-CL6snZVH.js} +30 -4
- package/dist/rpc/index.d.ts.map +1 -1
- package/dist/uniswap/index.d.ts +10 -1
- package/dist/uniswap/index.d.ts.map +1 -1
- package/dist/uniswap/index.js +27 -1
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-BrG4T_Gh.js → v2-DIrXTXMw.js} +38 -183
- package/dist/{writes-CI6Haer-.js → writes-BNNd0vjF.js} +2 -2
- package/dist/zodiac/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MulticallNoDataError, MulticallResultFailedError, MulticallResultMissingError, PanopticValidationError, collateralTrackerV2Abi, decodeLeftRightUnsigned, getBlockMeta, getPool, getPositions, panopticPoolV2Abi, riskEngineAbi } from "./rates-
|
|
2
|
-
import { NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, tickToSqrtPriceX96 } from "./greeks-
|
|
1
|
+
import { MulticallNoDataError, MulticallResultFailedError, MulticallResultMissingError, PanopticValidationError, collateralTrackerV2Abi, decodeLeftRightUnsigned, getBlockMeta, getPool, getPositions, panopticPoolV2Abi, riskEngineAbi } from "./rates-BOGkyjVy.js";
|
|
2
|
+
import { NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, tickToSqrtPriceX96 } from "./greeks-CEv-Uex1.js";
|
|
3
3
|
import { decodeFunctionResult, encodeFunctionData } from "viem";
|
|
4
|
-
import { call } from "viem/actions";
|
|
4
|
+
import { call, multicall } from "viem/actions";
|
|
5
5
|
|
|
6
6
|
//#region src/abis/multicall3.ts
|
|
7
7
|
const Multicall3Abi = [
|
|
@@ -2004,6 +2004,181 @@ async function readBlockAndAggregate({ client, calls, blockNumber }) {
|
|
|
2004
2004
|
};
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
|
+
//#endregion
|
|
2008
|
+
//#region src/panoptic/v2/reads/buyingPower.ts
|
|
2009
|
+
const Q128$1 = 1n << 128n;
|
|
2010
|
+
/** Immutable collateral tracker addresses, suitable for a pool-scoped cache. */
|
|
2011
|
+
async function getPoolCollateralAddresses(params) {
|
|
2012
|
+
const [collateralToken0, collateralToken1] = await multicall(params.client, {
|
|
2013
|
+
contracts: [{
|
|
2014
|
+
address: params.poolAddress,
|
|
2015
|
+
abi: panopticPoolV2Abi,
|
|
2016
|
+
functionName: "collateralToken0"
|
|
2017
|
+
}, {
|
|
2018
|
+
address: params.poolAddress,
|
|
2019
|
+
abi: panopticPoolV2Abi,
|
|
2020
|
+
functionName: "collateralToken1"
|
|
2021
|
+
}],
|
|
2022
|
+
blockNumber: params.blockNumber,
|
|
2023
|
+
allowFailure: false
|
|
2024
|
+
});
|
|
2025
|
+
return {
|
|
2026
|
+
collateralToken0,
|
|
2027
|
+
collateralToken1
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Apply owed interest to one token's collateral the way `RiskEngine._getMargin`
|
|
2032
|
+
* does. Interest the balance can pay is deducted from the balance; interest it
|
|
2033
|
+
* cannot pay zeroes the balance and the uncovered remainder becomes additional
|
|
2034
|
+
* requirement in the same token, where cross-collateral conversion lets the
|
|
2035
|
+
* other token cover it.
|
|
2036
|
+
*/
|
|
2037
|
+
function applyOwedInterest(assets, interestOwed) {
|
|
2038
|
+
if (interestOwed > assets) return {
|
|
2039
|
+
balance: 0n,
|
|
2040
|
+
requirementExtra: interestOwed - assets
|
|
2041
|
+
};
|
|
2042
|
+
return {
|
|
2043
|
+
balance: assets - interestOwed,
|
|
2044
|
+
requirementExtra: 0n
|
|
2045
|
+
};
|
|
2046
|
+
}
|
|
2047
|
+
function convert0to1$1(amount, sqrtPriceX96) {
|
|
2048
|
+
if (sqrtPriceX96 < Q128$1) return amount * sqrtPriceX96 * sqrtPriceX96 >> 192n;
|
|
2049
|
+
const sp2Hi = sqrtPriceX96 * sqrtPriceX96 >> 64n;
|
|
2050
|
+
return amount * sp2Hi >> 128n;
|
|
2051
|
+
}
|
|
2052
|
+
function convert1to0$1(amount, sqrtPriceX96) {
|
|
2053
|
+
if (sqrtPriceX96 < Q128$1) {
|
|
2054
|
+
const denom = sqrtPriceX96 * sqrtPriceX96;
|
|
2055
|
+
return amount * (1n << 192n) / denom;
|
|
2056
|
+
}
|
|
2057
|
+
const sp2Hi = sqrtPriceX96 * sqrtPriceX96 >> 64n;
|
|
2058
|
+
return amount * (1n << 128n) / sp2Hi;
|
|
2059
|
+
}
|
|
2060
|
+
/**
|
|
2061
|
+
* Get account-level buying power.
|
|
2062
|
+
*
|
|
2063
|
+
* Uses `CollateralTracker.assetsAndInterest` for collateral and owed interest
|
|
2064
|
+
* and `PanopticPool.getFullPositionsData.collateralRequirements[]` for the
|
|
2065
|
+
* per-position required margin — so loan tokenIds (width=0 shorts) contribute
|
|
2066
|
+
* to the requirement instead of being netted out of the balance, and owed
|
|
2067
|
+
* interest reduces headroom exactly as the RiskEngine solvency check does.
|
|
2068
|
+
*
|
|
2069
|
+
* Accepts a plain viem `Client` (not just `PublicClient`) so it works with wagmi's
|
|
2070
|
+
* `useClient()` without needing a cast.
|
|
2071
|
+
*
|
|
2072
|
+
* @param params - The parameters
|
|
2073
|
+
* @returns Account buying power data with optional block metadata
|
|
2074
|
+
*/
|
|
2075
|
+
async function getAccountBuyingPower(params) {
|
|
2076
|
+
const { client, poolAddress, account, tokenIds } = params;
|
|
2077
|
+
const blockNumber = params.blockNumber ?? params._meta?.blockNumber;
|
|
2078
|
+
let collateralToken0;
|
|
2079
|
+
let collateralToken1;
|
|
2080
|
+
if (params.collateralAddresses) {
|
|
2081
|
+
collateralToken0 = params.collateralAddresses.collateralToken0;
|
|
2082
|
+
collateralToken1 = params.collateralAddresses.collateralToken1;
|
|
2083
|
+
} else {
|
|
2084
|
+
const addresses = await getPoolCollateralAddresses({
|
|
2085
|
+
client,
|
|
2086
|
+
poolAddress,
|
|
2087
|
+
blockNumber
|
|
2088
|
+
});
|
|
2089
|
+
collateralToken0 = addresses.collateralToken0;
|
|
2090
|
+
collateralToken1 = addresses.collateralToken1;
|
|
2091
|
+
}
|
|
2092
|
+
const calls = [
|
|
2093
|
+
{
|
|
2094
|
+
target: poolAddress,
|
|
2095
|
+
callData: encodeFunctionData({
|
|
2096
|
+
abi: panopticPoolV2Abi,
|
|
2097
|
+
functionName: "getCurrentTick"
|
|
2098
|
+
})
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
target: collateralToken0,
|
|
2102
|
+
callData: encodeFunctionData({
|
|
2103
|
+
abi: collateralTrackerV2Abi,
|
|
2104
|
+
functionName: "assetsAndInterest",
|
|
2105
|
+
args: [account]
|
|
2106
|
+
})
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
target: collateralToken1,
|
|
2110
|
+
callData: encodeFunctionData({
|
|
2111
|
+
abi: collateralTrackerV2Abi,
|
|
2112
|
+
functionName: "assetsAndInterest",
|
|
2113
|
+
args: [account]
|
|
2114
|
+
})
|
|
2115
|
+
}
|
|
2116
|
+
];
|
|
2117
|
+
const positionDataIndex = tokenIds.length > 0 ? calls.length : null;
|
|
2118
|
+
if (positionDataIndex !== null) calls.push({
|
|
2119
|
+
target: poolAddress,
|
|
2120
|
+
callData: encodeFunctionData({
|
|
2121
|
+
abi: panopticPoolV2Abi,
|
|
2122
|
+
functionName: "getFullPositionsData",
|
|
2123
|
+
args: [
|
|
2124
|
+
account,
|
|
2125
|
+
true,
|
|
2126
|
+
tokenIds
|
|
2127
|
+
]
|
|
2128
|
+
})
|
|
2129
|
+
});
|
|
2130
|
+
const { _meta, results } = await readBlockAndAggregate({
|
|
2131
|
+
client,
|
|
2132
|
+
calls,
|
|
2133
|
+
blockNumber
|
|
2134
|
+
});
|
|
2135
|
+
const currentTickResult = decodeFunctionResult({
|
|
2136
|
+
abi: panopticPoolV2Abi,
|
|
2137
|
+
functionName: "getCurrentTick",
|
|
2138
|
+
data: requireReturnData(results, 0, "PanopticPool.getCurrentTick")
|
|
2139
|
+
});
|
|
2140
|
+
const [rawAssets0, interest0] = decodeFunctionResult({
|
|
2141
|
+
abi: collateralTrackerV2Abi,
|
|
2142
|
+
functionName: "assetsAndInterest",
|
|
2143
|
+
data: requireReturnData(results, 1, "CollateralTracker.assetsAndInterest token0")
|
|
2144
|
+
});
|
|
2145
|
+
const [rawAssets1, interest1] = decodeFunctionResult({
|
|
2146
|
+
abi: collateralTrackerV2Abi,
|
|
2147
|
+
functionName: "assetsAndInterest",
|
|
2148
|
+
data: requireReturnData(results, 2, "CollateralTracker.assetsAndInterest token1")
|
|
2149
|
+
});
|
|
2150
|
+
const { balance: assets0, requirementExtra: interestDue0 } = applyOwedInterest(rawAssets0, interest0);
|
|
2151
|
+
const { balance: assets1, requirementExtra: interestDue1 } = applyOwedInterest(rawAssets1, interest1);
|
|
2152
|
+
const currentTick = BigInt(currentTickResult);
|
|
2153
|
+
const positionDataResult = positionDataIndex === null ? null : decodeFunctionResult({
|
|
2154
|
+
abi: panopticPoolV2Abi,
|
|
2155
|
+
functionName: "getFullPositionsData",
|
|
2156
|
+
data: requireReturnData(results, positionDataIndex, "PanopticPool.getFullPositionsData")
|
|
2157
|
+
});
|
|
2158
|
+
let required0Native = interestDue0;
|
|
2159
|
+
let required1Native = interestDue1;
|
|
2160
|
+
if (positionDataResult) {
|
|
2161
|
+
const collateralRequirements = positionDataResult[3];
|
|
2162
|
+
for (const packed of collateralRequirements) {
|
|
2163
|
+
const decoded = decodeLeftRightUnsigned(packed);
|
|
2164
|
+
required0Native += decoded.right;
|
|
2165
|
+
required1Native += decoded.left;
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
const sqrtPriceX96 = tickToSqrtPriceX96(currentTick);
|
|
2169
|
+
const collateralBalance0 = assets0 + convert1to0$1(assets1, sqrtPriceX96);
|
|
2170
|
+
const requiredCollateral0 = required0Native + convert1to0$1(required1Native, sqrtPriceX96);
|
|
2171
|
+
const collateralBalance1 = assets1 + convert0to1$1(assets0, sqrtPriceX96);
|
|
2172
|
+
const requiredCollateral1 = required1Native + convert0to1$1(required0Native, sqrtPriceX96);
|
|
2173
|
+
return {
|
|
2174
|
+
collateralBalance0,
|
|
2175
|
+
requiredCollateral0,
|
|
2176
|
+
collateralBalance1,
|
|
2177
|
+
requiredCollateral1,
|
|
2178
|
+
_meta
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2007
2182
|
//#endregion
|
|
2008
2183
|
//#region src/panoptic/v2/reads/checks.ts
|
|
2009
2184
|
const FP96 = 1n << 96n;
|
|
@@ -2024,7 +2199,7 @@ function convert1to0(amount, sqrtPriceX96) {
|
|
|
2024
2199
|
/**
|
|
2025
2200
|
* Check if an account is liquidatable with detailed margin breakdown.
|
|
2026
2201
|
*
|
|
2027
|
-
* Sources
|
|
2202
|
+
* Sources collateral and owed interest from `CollateralTracker.assetsAndInterest` and per-position
|
|
2028
2203
|
* required margin from `PanopticPool.getFullPositionsData.collateralRequirements[]`,
|
|
2029
2204
|
* cross-converted to each token denomination at `atTick`. Loan tokenIds
|
|
2030
2205
|
* (width=0 shorts) contribute correctly to required margin.
|
|
@@ -2085,7 +2260,7 @@ async function isLiquidatable(params) {
|
|
|
2085
2260
|
target: collateralToken0,
|
|
2086
2261
|
callData: encodeFunctionData({
|
|
2087
2262
|
abi: collateralTrackerV2Abi,
|
|
2088
|
-
functionName: "
|
|
2263
|
+
functionName: "assetsAndInterest",
|
|
2089
2264
|
args: [account]
|
|
2090
2265
|
})
|
|
2091
2266
|
});
|
|
@@ -2094,7 +2269,7 @@ async function isLiquidatable(params) {
|
|
|
2094
2269
|
target: collateralToken1,
|
|
2095
2270
|
callData: encodeFunctionData({
|
|
2096
2271
|
abi: collateralTrackerV2Abi,
|
|
2097
|
-
functionName: "
|
|
2272
|
+
functionName: "assetsAndInterest",
|
|
2098
2273
|
args: [account]
|
|
2099
2274
|
})
|
|
2100
2275
|
});
|
|
@@ -2125,23 +2300,25 @@ async function isLiquidatable(params) {
|
|
|
2125
2300
|
data: requireReturnData(results, currentTickIndex, "PanopticPool.getCurrentTick")
|
|
2126
2301
|
}));
|
|
2127
2302
|
}
|
|
2128
|
-
const
|
|
2303
|
+
const [rawAssets0, interest0] = decodeFunctionResult({
|
|
2129
2304
|
abi: collateralTrackerV2Abi,
|
|
2130
|
-
functionName: "
|
|
2131
|
-
data: requireReturnData(results, assets0Index, "CollateralTracker.
|
|
2305
|
+
functionName: "assetsAndInterest",
|
|
2306
|
+
data: requireReturnData(results, assets0Index, "CollateralTracker.assetsAndInterest token0")
|
|
2132
2307
|
});
|
|
2133
|
-
const
|
|
2308
|
+
const [rawAssets1, interest1] = decodeFunctionResult({
|
|
2134
2309
|
abi: collateralTrackerV2Abi,
|
|
2135
|
-
functionName: "
|
|
2136
|
-
data: requireReturnData(results, assets1Index, "CollateralTracker.
|
|
2310
|
+
functionName: "assetsAndInterest",
|
|
2311
|
+
data: requireReturnData(results, assets1Index, "CollateralTracker.assetsAndInterest token1")
|
|
2137
2312
|
});
|
|
2313
|
+
const { balance: assets0, requirementExtra: interestDue0 } = applyOwedInterest(rawAssets0, interest0);
|
|
2314
|
+
const { balance: assets1, requirementExtra: interestDue1 } = applyOwedInterest(rawAssets1, interest1);
|
|
2138
2315
|
const positionDataResult = positionDataIndex === null ? null : decodeFunctionResult({
|
|
2139
2316
|
abi: panopticPoolV2Abi,
|
|
2140
2317
|
functionName: "getFullPositionsData",
|
|
2141
2318
|
data: requireReturnData(results, positionDataIndex, "PanopticPool.getFullPositionsData")
|
|
2142
2319
|
});
|
|
2143
|
-
let required0Native =
|
|
2144
|
-
let required1Native =
|
|
2320
|
+
let required0Native = interestDue0;
|
|
2321
|
+
let required1Native = interestDue1;
|
|
2145
2322
|
if (positionDataResult) {
|
|
2146
2323
|
const collateralRequirements = positionDataResult[3];
|
|
2147
2324
|
for (const packed of collateralRequirements) {
|
|
@@ -3048,4 +3225,4 @@ async function getIrmCurve(params) {
|
|
|
3048
3225
|
}
|
|
3049
3226
|
|
|
3050
3227
|
//#endregion
|
|
3051
|
-
export { BORROW_INDEX_BITS, BPS_SCALE, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MULTICALL3_ADDRESS, Multicall3Abi, RATE_AT_TARGET_BITS, SECONDS_PER_YEAR, UNREALIZED_INTEREST_BITS, UniswapV3PoolAbi, WAD as WAD$1, deriveSupplyRatePerSecWad, getAccountCollateral, getAccountSummaryBasic, getAccountSummaryRisk, getCollateralAddresses, getCollateralData, getCurrentRates, getInterestState, getIrmCurrent, getIrmCurve, getLiquidationPrices, getNetLiquidationValue, getNetLiquidationValues, isLiquidatable, packMarketState, panopticQueryAbi, ratePerSecWadToAprPct, readBlockAndAggregate, requireReturnData, utilizationBpsToWad, utilizationPctToWad };
|
|
3228
|
+
export { BORROW_INDEX_BITS, BPS_SCALE, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MULTICALL3_ADDRESS, Multicall3Abi, RATE_AT_TARGET_BITS, SECONDS_PER_YEAR, UNREALIZED_INTEREST_BITS, UniswapV3PoolAbi, WAD as WAD$1, applyOwedInterest, deriveSupplyRatePerSecWad, getAccountBuyingPower, getAccountCollateral, getAccountSummaryBasic, getAccountSummaryRisk, getCollateralAddresses, getCollateralData, getCurrentRates, getInterestState, getIrmCurrent, getIrmCurve, getLiquidationPrices, getNetLiquidationValue, getNetLiquidationValues, getPoolCollateralAddresses, isLiquidatable, packMarketState, panopticQueryAbi as panopticQueryAbi$1, ratePerSecWadToAprPct, readBlockAndAggregate, requireReturnData, utilizationBpsToWad, utilizationPctToWad };
|
|
@@ -6102,7 +6102,7 @@ interface IsLiquidatableParams {
|
|
|
6102
6102
|
/**
|
|
6103
6103
|
* Check if an account is liquidatable with detailed margin breakdown.
|
|
6104
6104
|
*
|
|
6105
|
-
* Sources
|
|
6105
|
+
* Sources collateral and owed interest from `CollateralTracker.assetsAndInterest` and per-position
|
|
6106
6106
|
* required margin from `PanopticPool.getFullPositionsData.collateralRequirements[]`,
|
|
6107
6107
|
* cross-converted to each token denomination at `atTick`. Loan tokenIds
|
|
6108
6108
|
* (width=0 shorts) contribute correctly to required margin.
|
|
@@ -6994,13 +6994,17 @@ interface MarginBuffer {
|
|
|
6994
6994
|
bufferPercent0: bigint | null;
|
|
6995
6995
|
/** Buffer as percentage of required margin in bps (slot 1). null if no requirement. */
|
|
6996
6996
|
bufferPercent1: bigint | null;
|
|
6997
|
-
/**
|
|
6997
|
+
/**
|
|
6998
|
+
* Account collateral net of the owed interest each token's balance can pay,
|
|
6999
|
+
* denominated in token0. Equals gross collateral when no interest is owed.
|
|
7000
|
+
*/
|
|
6998
7001
|
currentMargin0: bigint;
|
|
6999
|
-
/**
|
|
7002
|
+
/** Same, denominated in token1 */
|
|
7000
7003
|
currentMargin1: bigint;
|
|
7001
7004
|
/**
|
|
7002
7005
|
* Sum of per-position collateral requirements from
|
|
7003
|
-
* `getFullPositionsData.collateralRequirements[]`,
|
|
7006
|
+
* `getFullPositionsData.collateralRequirements[]`, plus any owed interest
|
|
7007
|
+
* that a token's balance could not pay, denominated in token0.
|
|
7004
7008
|
* Loans/credits (width=0) contribute correctly.
|
|
7005
7009
|
*/
|
|
7006
7010
|
requiredMargin0: bigint;
|
|
@@ -7065,7 +7069,7 @@ interface MarginBuffer {
|
|
|
7065
7069
|
* Reads, all pinned to the same block:
|
|
7066
7070
|
* - `getCurrentTick` (sequencing dependency for sqrtPrice conversion)
|
|
7067
7071
|
* - `getFullPositionsData(account, true, tokenIds)` → collateralRequirements
|
|
7068
|
-
* - `CollateralTracker.
|
|
7072
|
+
* - `CollateralTracker.assetsAndInterest(account)` on both trackers → collateral and owed interest
|
|
7069
7073
|
* - `PanopticQuery.getLiquidationPrices(...)` → liquidation boundaries
|
|
7070
7074
|
*
|
|
7071
7075
|
* @param params - The parameters
|
|
@@ -7269,19 +7273,20 @@ interface GetAccountBuyingPowerParams {
|
|
|
7269
7273
|
/**
|
|
7270
7274
|
* Result of getAccountBuyingPower.
|
|
7271
7275
|
*
|
|
7272
|
-
* Both per-token values are the
|
|
7273
|
-
* into the respective single-token denomination at the current
|
|
7276
|
+
* Both per-token values are the account total, net of owed interest,
|
|
7277
|
+
* cross-converted into the respective single-token denomination at the current
|
|
7278
|
+
* tick:
|
|
7274
7279
|
* - `collateralBalance0` / `requiredCollateral0` are in token0 units
|
|
7275
7280
|
* - `collateralBalance1` / `requiredCollateral1` are in token1 units
|
|
7276
7281
|
*/
|
|
7277
7282
|
interface AccountBuyingPower {
|
|
7278
|
-
/**
|
|
7283
|
+
/** Collateral (deposits + borrowed shares) net of payable owed interest, denominated in token0 */
|
|
7279
7284
|
collateralBalance0: bigint;
|
|
7280
|
-
/**
|
|
7285
|
+
/** Per-position collateral requirements plus unpayable owed interest, denominated in token0 */
|
|
7281
7286
|
requiredCollateral0: bigint;
|
|
7282
|
-
/**
|
|
7287
|
+
/** Collateral (deposits + borrowed shares) net of payable owed interest, denominated in token1 */
|
|
7283
7288
|
collateralBalance1: bigint;
|
|
7284
|
-
/**
|
|
7289
|
+
/** Per-position collateral requirements plus unpayable owed interest, denominated in token1 */
|
|
7285
7290
|
requiredCollateral1: bigint;
|
|
7286
7291
|
/** Block metadata for the Multicall3 aggregate read */
|
|
7287
7292
|
_meta: BlockMeta;
|
|
@@ -7289,10 +7294,11 @@ interface AccountBuyingPower {
|
|
|
7289
7294
|
/**
|
|
7290
7295
|
* Get account-level buying power.
|
|
7291
7296
|
*
|
|
7292
|
-
* Uses
|
|
7293
|
-
*
|
|
7294
|
-
*
|
|
7295
|
-
*
|
|
7297
|
+
* Uses `CollateralTracker.assetsAndInterest` for collateral and owed interest
|
|
7298
|
+
* and `PanopticPool.getFullPositionsData.collateralRequirements[]` for the
|
|
7299
|
+
* per-position required margin — so loan tokenIds (width=0 shorts) contribute
|
|
7300
|
+
* to the requirement instead of being netted out of the balance, and owed
|
|
7301
|
+
* interest reduces headroom exactly as the RiskEngine solvency check does.
|
|
7296
7302
|
*
|
|
7297
7303
|
* Accepts a plain viem `Client` (not just `PublicClient`) so it works with wagmi's
|
|
7298
7304
|
* `useClient()` without needing a cast.
|
|
@@ -13312,6 +13318,22 @@ declare function ladderStrikeSequence(params: {
|
|
|
13312
13318
|
count: number;
|
|
13313
13319
|
} & StrikeGeometry): LadderStrike[] | null;
|
|
13314
13320
|
|
|
13321
|
+
//#endregion
|
|
13322
|
+
//#region src/panoptic/v2/greeks/legLiquidity.d.ts
|
|
13323
|
+
/** The Uniswap range and liquidity backing one option leg, with the contract's rounding. */
|
|
13324
|
+
declare function getLegLiquidityRange(leg: Pick<TokenIdLeg, 'asset' | 'optionRatio' | 'strike' | 'width'>, positionSize: bigint, tickSpacing: bigint): {
|
|
13325
|
+
lowerTick: bigint;
|
|
13326
|
+
upperTick: bigint;
|
|
13327
|
+
sqrtLower: bigint;
|
|
13328
|
+
sqrtUpper: bigint;
|
|
13329
|
+
liquidity: bigint;
|
|
13330
|
+
};
|
|
13331
|
+
/**
|
|
13332
|
+
* One option leg's signed holding of `tokenIndex` at `currentTick`: the amount
|
|
13333
|
+
* its liquidity holds minus the amount the leg moved, positive for short legs.
|
|
13334
|
+
*/
|
|
13335
|
+
declare function getLegTokenInventory(leg: Pick<TokenIdLeg, 'asset' | 'optionRatio' | 'strike' | 'width' | 'tokenType' | 'isLong'>, currentTick: bigint, positionSize: bigint, tickSpacing: bigint, tokenIndex: 0n | 1n): bigint;
|
|
13336
|
+
|
|
13315
13337
|
//#endregion
|
|
13316
13338
|
//#region src/panoptic/v2/bot/index.d.ts
|
|
13317
13339
|
/**
|
|
@@ -17355,5 +17377,5 @@ declare function getPositionVolatilityHistory({
|
|
|
17355
17377
|
}>;
|
|
17356
17378
|
|
|
17357
17379
|
//#endregion
|
|
17358
|
-
export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BetaResult, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildCreditWrappedDispatchParams, BuildProtectedSettleDispatchParams, BuildTemporaryLoanRecoveryDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosePremiumProtectionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralBreakdown, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralStrategyKind, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditSwapCall, CreditSwapCallParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedOraclePack, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DeriveStrategy, DeriveUniqueTokenIdParams, DeriveUniqueTokenIdResult, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchIntent, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralBreakdownParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, ExecuteSettleSequenceParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, ForfeitablePremium, GenerateOverlappingTokenIdsParams, GenerateOverlappingTokenIdsResult, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetForfeitablePremiumParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleRiskParametersParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, HedgeLimitEstimate, HelperLiquidateParams, IndicatorCandle, IndicatorPoint, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LadderStrike, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationGateTicks, LiquidationPrices, LiquidationQuote, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, LpFundingPolicy, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MARKET_INDICATOR_PERIODS, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MarketIndicator, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolSwap, PoolSwapKey, PoolSwapStream, PoolSwapTransport, PoolSwapWatcher, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionMintFundingParams, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionValueCurve, PositionValueInput, PositionVolatilityObservation, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewRepayParams, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProtectedSettlePlan, ProviderLagError, QuoteLiquidationParams, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, ScreenAccountExactParams, ScreenAccountExactResult, SettleParams, SettlePremiumBatchResult, SettlePremiumBatchTargetResult, SettlePremiumFromParams, SettlePremiumFromSimulation, SettleSequenceCallsParams, SettleSequenceClose, SettleSequenceSimulation, SettleSequenceTarget, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateClosePremiumProtectionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSettlePremiumBatchParams, SimulateSettlePremiumFromParams, SimulateSettleSequenceParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, SplitTokenIdByTimescaleResult, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamPoolSwapsParams, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, StrikeClassification, StrikeOrientation, SubscribePoolSwapsParams, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapPoolRef, SwapSimulation, SwapStreamEventSource, SwapStreamEventSourceFactory, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TemporaryLoanRecoveryQuote, TemporaryLoanRecoveryQuoteParams, TemporaryLoanRecoveryResult, TemporaryLoanRecoveryUnavailableReason, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapBlockData, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsafePremiumSettlementError, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3ExactInQuote, V3PoolConfig, V4PoolConfig, VARIANCE_RATIO_LAG, ValidateBatchParams, VolatilityComparisonReason, WAD, WatchEventsParams, WatchPoolSwapsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, applyMintBuffer, applyMintBufferPerToken, apportion, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertLpPositionFunded, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildCreditWrappedDispatch, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildSfpmSwapCalldata, buildSfpmSwapPlan, buildTemporaryLoanRecoveryDispatch, buildTokenShortfallRecoveryDispatch, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure, calculateMarketIndicator, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculatePositionValues, calculatePositionVolatilityMetrics, calculateResyncBlock, calculateSpreadWad, calculateVarianceProfile, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralCurveTicks, collateralRuleKindFor, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleRiskParameters, decodeOracleTiming, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, deriveUniqueTokenId, detectReorg, diagnoseOracleSafeMode, dispatch, dispatchAndWait, emptyLiquidateParams, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, ensureSfpmV3PoolInitialized, estimateBlockNumbers, estimateCloseZapSwap, estimateCollateralBreakdown, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, failPendingPosition, feeGrowthInsideX128, feesFromFeeGrowthDelta, fetchPoolId, fetchPoolSwaps, fetchSfpmV3PoolId, fetchUniswapFeeData, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, generateOverlappingTokenIds, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosePositionTransferEstimate, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralCurve, getCollateralCurveInputs, getCollateralData, getCollateralRequiredBase, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getExecutableLpMaxSize, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getForfeitablePremium, getGuardianUnlockState, getHedgeLimits, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolCurrentTick, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionDeltaMetrics, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositionMintFunding, getPositionValueCurve, getPositionVolatilityHistory, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getSimpleLoanTokenIndex, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenIdValidationError, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, isolateGroupTokenId, jsonSerializer, ladderStrikeSequence, liquidate, liquidateAndWait, loadCheckpoint, logReturns, marketPnlInQuote, marketRiskFromValues, marketScenario, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, netLiquidationValueInQuote, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticLiquidatorAbi, panopticPoolV2Abi, panopticQueryAbi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseStreamedKey, parseStreamedSwap, parseSwapLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, positionValueKey, positionValueTicks, prepareIndicatorCandles, prepareLiquidityGamma, preparePositionGamma, preparePositionValue, preparePositionValueCurve, previewBorrow, previewDeposit, previewMint, previewRedeem, previewRepay, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, quoteLiquidation, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteTokenShortfallSwap, quoteV3ExactIn, ratePerSecWadToAprPct, realizedBeta, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolveLadderStrike, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scaleCollateralRequired, scanChunks, screenAccountExact, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateClosePremiumProtection, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, streamPoolSwaps, subscribePoolSwaps, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, valuePositionAccrual, verifyBlockContinuity, watchEvents, watchPoolSwaps, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
17380
|
+
export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BetaResult, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildCreditWrappedDispatchParams, BuildProtectedSettleDispatchParams, BuildTemporaryLoanRecoveryDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosePremiumProtectionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralBreakdown, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralStrategyKind, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditSwapCall, CreditSwapCallParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedOraclePack, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DeriveStrategy, DeriveUniqueTokenIdParams, DeriveUniqueTokenIdResult, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchIntent, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralBreakdownParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, ExecuteSettleSequenceParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, ForfeitablePremium, GenerateOverlappingTokenIdsParams, GenerateOverlappingTokenIdsResult, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetForfeitablePremiumParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleRiskParametersParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, HedgeLimitEstimate, HelperLiquidateParams, IndicatorCandle, IndicatorPoint, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LadderStrike, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationGateTicks, LiquidationPrices, LiquidationQuote, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, LpFundingPolicy, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MARKET_INDICATOR_PERIODS, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MarketIndicator, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolSwap, PoolSwapKey, PoolSwapStream, PoolSwapTransport, PoolSwapWatcher, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionMintFundingParams, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionValueCurve, PositionValueInput, PositionVolatilityObservation, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewRepayParams, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProtectedSettlePlan, ProviderLagError, QuoteLiquidationParams, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, ScreenAccountExactParams, ScreenAccountExactResult, SettleParams, SettlePremiumBatchResult, SettlePremiumBatchTargetResult, SettlePremiumFromParams, SettlePremiumFromSimulation, SettleSequenceCallsParams, SettleSequenceClose, SettleSequenceSimulation, SettleSequenceTarget, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateClosePremiumProtectionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSettlePremiumBatchParams, SimulateSettlePremiumFromParams, SimulateSettleSequenceParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, SplitTokenIdByTimescaleResult, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamPoolSwapsParams, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, StrikeClassification, StrikeOrientation, SubscribePoolSwapsParams, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapPoolRef, SwapSimulation, SwapStreamEventSource, SwapStreamEventSourceFactory, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TemporaryLoanRecoveryQuote, TemporaryLoanRecoveryQuoteParams, TemporaryLoanRecoveryResult, TemporaryLoanRecoveryUnavailableReason, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapBlockData, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsafePremiumSettlementError, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3ExactInQuote, V3PoolConfig, V4PoolConfig, VARIANCE_RATIO_LAG, ValidateBatchParams, VolatilityComparisonReason, WAD, WatchEventsParams, WatchPoolSwapsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, applyMintBuffer, applyMintBufferPerToken, apportion, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertLpPositionFunded, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildCreditWrappedDispatch, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildSfpmSwapCalldata, buildSfpmSwapPlan, buildTemporaryLoanRecoveryDispatch, buildTokenShortfallRecoveryDispatch, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure, calculateMarketIndicator, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculatePositionValues, calculatePositionVolatilityMetrics, calculateResyncBlock, calculateSpreadWad, calculateVarianceProfile, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralCurveTicks, collateralRuleKindFor, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleRiskParameters, decodeOracleTiming, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, deriveUniqueTokenId, detectReorg, diagnoseOracleSafeMode, dispatch, dispatchAndWait, emptyLiquidateParams, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, ensureSfpmV3PoolInitialized, estimateBlockNumbers, estimateCloseZapSwap, estimateCollateralBreakdown, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, failPendingPosition, feeGrowthInsideX128, feesFromFeeGrowthDelta, fetchPoolId, fetchPoolSwaps, fetchSfpmV3PoolId, fetchUniswapFeeData, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, generateOverlappingTokenIds, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosePositionTransferEstimate, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralCurve, getCollateralCurveInputs, getCollateralData, getCollateralRequiredBase, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getExecutableLpMaxSize, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getForfeitablePremium, getGuardianUnlockState, getHedgeLimits, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegLiquidityRange, getLegNetValueWidth0, getLegTokenInventory, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolCurrentTick, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionDeltaMetrics, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositionMintFunding, getPositionValueCurve, getPositionVolatilityHistory, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getSimpleLoanTokenIndex, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenIdValidationError, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, isolateGroupTokenId, jsonSerializer, ladderStrikeSequence, liquidate, liquidateAndWait, loadCheckpoint, logReturns, marketPnlInQuote, marketRiskFromValues, marketScenario, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, netLiquidationValueInQuote, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticLiquidatorAbi, panopticPoolV2Abi, panopticQueryAbi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseStreamedKey, parseStreamedSwap, parseSwapLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, positionValueKey, positionValueTicks, prepareIndicatorCandles, prepareLiquidityGamma, preparePositionGamma, preparePositionValue, preparePositionValueCurve, previewBorrow, previewDeposit, previewMint, previewRedeem, previewRepay, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, quoteLiquidation, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteTokenShortfallSwap, quoteV3ExactIn, ratePerSecWadToAprPct, realizedBeta, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolveLadderStrike, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scaleCollateralRequired, scanChunks, screenAccountExact, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateClosePremiumProtection, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, streamPoolSwaps, subscribePoolSwaps, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, valuePositionAccrual, verifyBlockContinuity, watchEvents, watchPoolSwaps, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
17359
17381
|
//# sourceMappingURL=index.d.ts.map
|