@panoptic-eng/sdk 1.0.22 → 1.0.24
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/index.d.ts +4 -4
- package/dist/cow/index.js +3 -3
- package/dist/cow/types.d.ts +2 -3
- package/dist/{cow-C_SGXoWr.js → cow-DW6LjXES.js} +2 -2
- package/dist/{cow-C_SGXoWr.js.map → cow-DW6LjXES.js.map} +1 -1
- package/dist/{index-BuJcj5aO.d.ts → index-CIlr4SNh.d.ts} +4 -3
- package/dist/index-CIlr4SNh.d.ts.map +1 -0
- package/dist/index.d.ts +75 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +116 -3
- package/dist/index.js.map +1 -1
- package/dist/{irm-C7OUVANR.d.ts → irm-CSJX9BsU.d.ts} +56 -3
- package/dist/{irm-C7OUVANR.d.ts.map → irm-CSJX9BsU.d.ts.map} +1 -1
- package/dist/{irm-DNK3N7qk.js → irm-Dw6fa-DV.js} +34 -3
- package/dist/irm-Dw6fa-DV.js.map +1 -0
- package/dist/panoptic/v2/index.d.ts +569 -12
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +378 -21
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/{position-BK4a-Yyu.js → position-GYsTTl71.js} +51 -2
- package/dist/position-GYsTTl71.js.map +1 -0
- package/dist/{router-BZvOeloX.js → router-_vB5ArjF.js} +2 -2
- package/dist/{router-BZvOeloX.js.map → router-_vB5ArjF.js.map} +1 -1
- package/dist/simulation-4SzTI-xf.d.ts +435 -0
- package/dist/simulation-4SzTI-xf.d.ts.map +1 -0
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.d.ts.map +1 -1
- package/dist/tx-Banz1S18.d.ts +367 -0
- package/dist/tx-Banz1S18.d.ts.map +1 -0
- package/dist/{types-CRvvn2ce.d.ts → types-Bzw_7NJv.d.ts} +2 -2
- package/dist/{types-CRvvn2ce.d.ts.map → types-Bzw_7NJv.d.ts.map} +1 -1
- package/dist/types-CspUPolV.d.ts +892 -0
- package/dist/types-CspUPolV.d.ts.map +1 -0
- package/dist/uniswap/index.d.ts +3 -3
- package/dist/uniswap/index.js +3 -3
- package/dist/{writes-DymnVbiE.js → writes-h-IX3XQq.js} +77 -12
- package/dist/writes-h-IX3XQq.js.map +1 -0
- package/dist/zodiac/index.d.ts +1 -6
- package/dist/zodiac/index.d.ts.map +1 -1
- package/dist/zodiac/index.js +1 -6
- package/dist/zodiac/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-BuJcj5aO.d.ts.map +0 -1
- package/dist/index-DVMjZi1E.d.ts +0 -1801
- package/dist/index-DVMjZi1E.d.ts.map +0 -1
- package/dist/irm-CGykVo3q.d.ts +0 -32
- package/dist/irm-CGykVo3q.d.ts.map +0 -1
- package/dist/irm-DNK3N7qk.js.map +0 -1
- package/dist/panoptic/v2/types/index.d.ts +0 -3
- package/dist/panoptic/v2/types/index.js +0 -0
- package/dist/position-BK4a-Yyu.js.map +0 -1
- package/dist/types-BQejAFnu.d.ts +0 -245
- package/dist/types-BQejAFnu.d.ts.map +0 -1
- package/dist/writes-DymnVbiE.js.map +0 -1
|
@@ -1,18 +1,160 @@
|
|
|
1
|
-
import { isCowSupportedChain$1 as isCowSupportedChain } from "../../index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { isCowSupportedChain$1 as isCowSupportedChain } from "../../index-CIlr4SNh.js";
|
|
2
|
+
import { BlockMeta, ClosePositionSimulation, ClosedPosition, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LegGreeksParams, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, Position, PositionGreeks, RealizedPnL, SettleSimulation, SimulationResult, StoredPositionData, TokenFlow, TokenIdLeg, WithdrawSimulation } from "../../simulation-4SzTI-xf.js";
|
|
3
|
+
import { CheckRouterApprovalParams, CollateralTracker, CurrentRates, FetchPoolIdParams, FetchPoolIdResult, GetOracleStateParams, GetPoolMetadataParams, GetPoolParams, GetRiskParametersParams, GetUtilizationParams, OracleState, Pool, PoolHealthStatus, PoolKey, PoolMetadata, QuoteSwapExactInViaRouterParams, QuoteSwapExactOutViaRouterParams, RiskEngine, RiskParameters, SafeMode, SafeModeState, TickLimitsResult, Utilization, fetchPoolId$1 as fetchPoolId, formatPriceRange$1 as formatPriceRange, formatTick$1 as formatTick, formatTickRange$1 as formatTickRange, getOracleState$1 as getOracleState, getPool$1 as getPool, getPoolMetadata$1 as getPoolMetadata, getPricesAtTick$1 as getPricesAtTick, getRiskParameters$1 as getRiskParameters, getTickSpacing$1 as getTickSpacing, getUtilization$1 as getUtilization, priceToTick$1 as priceToTick, roundToTickSpacing$1 as roundToTickSpacing, sqrtPriceX96ToPriceDecimalScaled$1 as sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick$1 as sqrtPriceX96ToTick, tickLimits$1 as tickLimits, tickToPrice$1 as tickToPrice, tickToPriceDecimalScaled$1 as tickToPriceDecimalScaled, tickToSqrtPriceX96$1 as tickToSqrtPriceX96, validateBuilderCode$1 as validateBuilderCode } from "../../types-CspUPolV.js";
|
|
4
|
+
import { BORROW_INDEX_BITS$1 as BORROW_INDEX_BITS, BPS_SCALE$1 as BPS_SCALE, ChainDeployment, IrmCurrent, IrmMarketStateInputs, IrmPoint, MARKET_EPOCH_BITS$1 as MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT$1 as MARKET_EPOCH_SHIFT, RATE_AT_TARGET_BITS$1 as RATE_AT_TARGET_BITS, SECONDS_PER_YEAR$1 as SECONDS_PER_YEAR, UNREALIZED_INTEREST_BITS$1 as UNREALIZED_INTEREST_BITS, annualizePerSecondRateWad$1 as annualizePerSecondRateWad, collateralTrackerV2Abi$1 as collateralTrackerV2Abi, deriveSupplyRatePerSecWad$1 as deriveSupplyRatePerSecWad, formatPerSecondRateWadAsAprPct$1 as formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct$1 as formatPerSecondRateWadAsApyPct, getChainDeployment$1 as getChainDeployment, getIrmCurrent$1 as getIrmCurrent, getIrmCurve$1 as getIrmCurve, isSupportedChain$1 as isSupportedChain, packMarketState$1 as packMarketState, panopticPoolV2Abi$1 as panopticPoolV2Abi, ratePerSecWadToAprPct$1 as ratePerSecWadToAprPct, requireChainDeployment$1 as requireChainDeployment, utilizationBpsToWad$1 as utilizationBpsToWad, utilizationPctToWad$1 as utilizationPctToWad } from "../../irm-CSJX9BsU.js";
|
|
5
|
+
import { AccountLiquidatedEvent, BaseEvent, DepositEvent, DispatchCall, EventSubscription, ForcedExercisedEvent, LegUpdate, NonceManager, OptionBurntEvent, OptionMintedEvent, PanopticEvent, PanopticEventType, PremiumSettledEvent, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, WithdrawEvent } from "../../tx-Banz1S18.js";
|
|
6
|
+
import { CheckCowApprovalParams, QuoteCowSwapParams } from "../../types-Bzw_7NJv.js";
|
|
7
7
|
import { Abi, Address as Address$1, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, WalletClient } from "viem";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
|
-
import * as
|
|
9
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
10
10
|
|
|
11
|
-
//#region src/panoptic/v2/
|
|
11
|
+
//#region src/panoptic/v2/types/account.d.ts
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @see Errors.sol:9
|
|
13
|
+
* Collateral data for a single token.
|
|
15
14
|
*/
|
|
15
|
+
/**
|
|
16
|
+
* Collateral data for a single token.
|
|
17
|
+
*/
|
|
18
|
+
interface TokenCollateral {
|
|
19
|
+
/** Total assets deposited (in underlying token) */
|
|
20
|
+
assets: bigint;
|
|
21
|
+
/** Collateral shares owned */
|
|
22
|
+
shares: bigint;
|
|
23
|
+
/** Available (unlocked) assets */
|
|
24
|
+
availableAssets: bigint;
|
|
25
|
+
/** Locked assets (used as collateral for positions) */
|
|
26
|
+
lockedAssets: bigint;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Account collateral data for both tokens.
|
|
30
|
+
*/
|
|
31
|
+
interface AccountCollateral {
|
|
32
|
+
/** Account address */
|
|
33
|
+
account: Address$1;
|
|
34
|
+
/** Pool address */
|
|
35
|
+
poolAddress: Address$1;
|
|
36
|
+
/** Token 0 collateral */
|
|
37
|
+
token0: TokenCollateral;
|
|
38
|
+
/** Token 1 collateral */
|
|
39
|
+
token1: TokenCollateral;
|
|
40
|
+
/** Number of open position legs */
|
|
41
|
+
legCount: bigint;
|
|
42
|
+
/** Block metadata */
|
|
43
|
+
_meta: BlockMeta;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Base account summary for UI dashboards.
|
|
47
|
+
*
|
|
48
|
+
* This shape contains non-helper-dependent data only.
|
|
49
|
+
*/
|
|
50
|
+
interface AccountSummaryBasic {
|
|
51
|
+
/** Account address */
|
|
52
|
+
account: Address$1;
|
|
53
|
+
/** Pool data */
|
|
54
|
+
pool: Pool;
|
|
55
|
+
/** Collateral data */
|
|
56
|
+
collateral: AccountCollateral;
|
|
57
|
+
/** Open positions */
|
|
58
|
+
positions: Position[];
|
|
59
|
+
/** Health status of the pool */
|
|
60
|
+
healthStatus: PoolHealthStatus;
|
|
61
|
+
/** Whether wallet is on wrong network */
|
|
62
|
+
networkMismatch: boolean;
|
|
63
|
+
/** Block metadata */
|
|
64
|
+
_meta: BlockMeta;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Risk-focused account summary for UI dashboards and bots.
|
|
68
|
+
*
|
|
69
|
+
* Includes everything in AccountSummaryBasic plus helper-dependent risk fields.
|
|
70
|
+
*/
|
|
71
|
+
interface AccountSummaryRisk extends AccountSummaryBasic {
|
|
72
|
+
/** Total position greeks */
|
|
73
|
+
totalGreeks: PositionGreeks;
|
|
74
|
+
/** Net liquidation value for token 0 */
|
|
75
|
+
netLiquidationValue0: bigint;
|
|
76
|
+
/** Net liquidation value for token 1 */
|
|
77
|
+
netLiquidationValue1: bigint;
|
|
78
|
+
/** Maintenance margin required for token 0 */
|
|
79
|
+
maintenanceMargin0: bigint;
|
|
80
|
+
/** Maintenance margin required for token 1 */
|
|
81
|
+
maintenanceMargin1: bigint;
|
|
82
|
+
/** Margin excess (positive) or deficit (negative) for token 0 */
|
|
83
|
+
marginExcess0: bigint;
|
|
84
|
+
/** Margin excess (positive) or deficit (negative) for token 1 */
|
|
85
|
+
marginExcess1: bigint;
|
|
86
|
+
/** Margin shortfall for token 0 (positive shortfall, negative excess) */
|
|
87
|
+
marginShortfall0: bigint;
|
|
88
|
+
/** Margin shortfall for token 1 (positive shortfall, negative excess) */
|
|
89
|
+
marginShortfall1: bigint;
|
|
90
|
+
/** Current margin (collateral balance) for token 0 */
|
|
91
|
+
currentMargin0: bigint;
|
|
92
|
+
/** Current margin (collateral balance) for token 1 */
|
|
93
|
+
currentMargin1: bigint;
|
|
94
|
+
/** Whether the account is liquidatable */
|
|
95
|
+
isLiquidatable: boolean;
|
|
96
|
+
/** Liquidation price bounds */
|
|
97
|
+
liquidationPrices: LiquidationPrices;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Net liquidation value result.
|
|
101
|
+
*/
|
|
102
|
+
interface NetLiquidationValue {
|
|
103
|
+
/** Net liquidation value for token 0 */
|
|
104
|
+
value0: bigint;
|
|
105
|
+
/** Net liquidation value for token 1 */
|
|
106
|
+
value1: bigint;
|
|
107
|
+
/** Tick used for calculation */
|
|
108
|
+
atTick: bigint;
|
|
109
|
+
/** Whether pending premium was included */
|
|
110
|
+
includedPendingPremium: boolean;
|
|
111
|
+
/** Block metadata */
|
|
112
|
+
_meta: BlockMeta;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Net liquidation values at multiple ticks.
|
|
116
|
+
*/
|
|
117
|
+
interface NetLiquidationValues {
|
|
118
|
+
/** Net liquidation values for token 0 at each tick */
|
|
119
|
+
values0: bigint[];
|
|
120
|
+
/** Net liquidation values for token 1 at each tick */
|
|
121
|
+
values1: bigint[];
|
|
122
|
+
/** Ticks used for calculation */
|
|
123
|
+
atTicks: bigint[];
|
|
124
|
+
/** Block metadata */
|
|
125
|
+
_meta: BlockMeta;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Liquidation prices result.
|
|
129
|
+
*/
|
|
130
|
+
interface LiquidationPrices {
|
|
131
|
+
/** Lower liquidation tick (null if position is safe at MIN_TICK) */
|
|
132
|
+
lowerTick: bigint | null;
|
|
133
|
+
/** Upper liquidation tick (null if position is safe at MAX_TICK) */
|
|
134
|
+
upperTick: bigint | null;
|
|
135
|
+
/** Whether the account is currently liquidatable */
|
|
136
|
+
isLiquidatable: boolean;
|
|
137
|
+
/** Block metadata */
|
|
138
|
+
_meta: BlockMeta;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Collateral estimate for a potential position.
|
|
142
|
+
*/
|
|
143
|
+
interface CollateralEstimate {
|
|
144
|
+
/** Required collateral for token 0 */
|
|
145
|
+
required0: bigint;
|
|
146
|
+
/** Required collateral for token 1 */
|
|
147
|
+
required1: bigint;
|
|
148
|
+
/** Post-position margin excess for token 0 */
|
|
149
|
+
postMarginExcess0: bigint;
|
|
150
|
+
/** Post-position margin excess for token 1 */
|
|
151
|
+
postMarginExcess1: bigint;
|
|
152
|
+
/** Whether the position would be openable */
|
|
153
|
+
canOpen: boolean;
|
|
154
|
+
/** Block metadata */
|
|
155
|
+
_meta: BlockMeta;
|
|
156
|
+
} //#endregion
|
|
157
|
+
//#region src/panoptic/v2/errors/contract.d.ts
|
|
16
158
|
/**
|
|
17
159
|
* The account is not solvent enough to perform the desired action.
|
|
18
160
|
* @see Errors.sol:9
|
|
@@ -1111,6 +1253,195 @@ declare function parsePanopticError(error: unknown): ParsedError | null;
|
|
|
1111
1253
|
*/
|
|
1112
1254
|
declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: new (...args: unknown[]) => T): error is T;
|
|
1113
1255
|
|
|
1256
|
+
//#endregion
|
|
1257
|
+
//#region src/panoptic/v2/types/chunks.d.ts
|
|
1258
|
+
/**
|
|
1259
|
+
* Chunk spread represents a range of ticks being tracked.
|
|
1260
|
+
* Used to organize position data for efficient storage and retrieval.
|
|
1261
|
+
*/
|
|
1262
|
+
interface ChunkSpread {
|
|
1263
|
+
/** Lower tick bound (inclusive) */
|
|
1264
|
+
tickLower: bigint;
|
|
1265
|
+
/** Upper tick bound (exclusive) */
|
|
1266
|
+
tickUpper: bigint;
|
|
1267
|
+
/** Pool address */
|
|
1268
|
+
poolAddress: Address$1;
|
|
1269
|
+
/** Chain ID */
|
|
1270
|
+
chainId: bigint;
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Chunk key for storage lookup.
|
|
1274
|
+
* Format: chain{chainId}:pool{poolAddress}:chunk{tickLower}:{tickUpper}
|
|
1275
|
+
*/
|
|
1276
|
+
interface ChunkKey {
|
|
1277
|
+
/** Chain ID */
|
|
1278
|
+
chainId: bigint;
|
|
1279
|
+
/** Pool address */
|
|
1280
|
+
poolAddress: Address$1;
|
|
1281
|
+
/** Lower tick bound */
|
|
1282
|
+
tickLower: bigint;
|
|
1283
|
+
/** Upper tick bound */
|
|
1284
|
+
tickUpper: bigint;
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Chunk data stored in persistent storage.
|
|
1288
|
+
*/
|
|
1289
|
+
interface ChunkData {
|
|
1290
|
+
/** The chunk key */
|
|
1291
|
+
key: ChunkKey;
|
|
1292
|
+
/** Token IDs in this chunk */
|
|
1293
|
+
tokenIds: bigint[];
|
|
1294
|
+
/** Last update block number */
|
|
1295
|
+
lastBlock: bigint;
|
|
1296
|
+
/** Last update block hash */
|
|
1297
|
+
lastBlockHash: Hash;
|
|
1298
|
+
/** Creation timestamp */
|
|
1299
|
+
createdAt: bigint;
|
|
1300
|
+
/** Last update timestamp */
|
|
1301
|
+
updatedAt: bigint;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Chunk metadata for LRU eviction.
|
|
1305
|
+
*/
|
|
1306
|
+
interface ChunkMetadata {
|
|
1307
|
+
/** The chunk key */
|
|
1308
|
+
key: ChunkKey;
|
|
1309
|
+
/** Access count for frequency-based eviction */
|
|
1310
|
+
accessCount: bigint;
|
|
1311
|
+
/** Last access timestamp */
|
|
1312
|
+
lastAccessedAt: bigint;
|
|
1313
|
+
/** Size in bytes (approximate) */
|
|
1314
|
+
sizeBytes: bigint;
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Chunk statistics for monitoring.
|
|
1318
|
+
*/
|
|
1319
|
+
interface ChunkStats {
|
|
1320
|
+
/** Total number of chunks */
|
|
1321
|
+
totalChunks: bigint;
|
|
1322
|
+
/** Total token IDs across all chunks */
|
|
1323
|
+
totalTokenIds: bigint;
|
|
1324
|
+
/** Oldest chunk timestamp */
|
|
1325
|
+
oldestChunk: bigint;
|
|
1326
|
+
/** Newest chunk timestamp */
|
|
1327
|
+
newestChunk: bigint;
|
|
1328
|
+
/** Average chunk size */
|
|
1329
|
+
avgChunkSize: bigint;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
//#endregion
|
|
1333
|
+
//#region src/panoptic/v2/types/poolConfig.d.ts
|
|
1334
|
+
/** V3 pool configuration. */
|
|
1335
|
+
interface V3PoolConfig {
|
|
1336
|
+
version: 'v3';
|
|
1337
|
+
/** Uniswap V3 pool contract address */
|
|
1338
|
+
poolAddress: Address$1;
|
|
1339
|
+
}
|
|
1340
|
+
/** V4 pool configuration. */
|
|
1341
|
+
interface V4PoolConfig {
|
|
1342
|
+
version: 'v4';
|
|
1343
|
+
/** StateView contract address */
|
|
1344
|
+
stateViewAddress: Address$1;
|
|
1345
|
+
/** V4 pool ID (bytes32) */
|
|
1346
|
+
poolId: `0x${string}`;
|
|
1347
|
+
}
|
|
1348
|
+
/** Discriminated union of V3 and V4 pool configurations. */
|
|
1349
|
+
type PoolVersionConfig = V3PoolConfig | V4PoolConfig;
|
|
1350
|
+
|
|
1351
|
+
//#endregion
|
|
1352
|
+
//#region src/panoptic/v2/types/sync.d.ts
|
|
1353
|
+
/**
|
|
1354
|
+
* Sync status enum.
|
|
1355
|
+
*/
|
|
1356
|
+
type SyncStatus = 'idle' | 'syncing' | 'error' | 'complete';
|
|
1357
|
+
/**
|
|
1358
|
+
* Sync state for tracking synchronization progress.
|
|
1359
|
+
*/
|
|
1360
|
+
interface SyncState {
|
|
1361
|
+
/** Current sync status */
|
|
1362
|
+
status: SyncStatus;
|
|
1363
|
+
/** Last synced block number */
|
|
1364
|
+
lastSyncedBlock: bigint;
|
|
1365
|
+
/** Last synced block hash */
|
|
1366
|
+
lastSyncedBlockHash: Hash;
|
|
1367
|
+
/** Target block to sync to */
|
|
1368
|
+
targetBlock: bigint;
|
|
1369
|
+
/** Number of positions found during sync */
|
|
1370
|
+
positionsFound: bigint;
|
|
1371
|
+
/** Progress percentage (0-100) */
|
|
1372
|
+
progress: bigint;
|
|
1373
|
+
/** Error message if status is 'error' */
|
|
1374
|
+
errorMessage?: string;
|
|
1375
|
+
/** Timestamp when sync started */
|
|
1376
|
+
startedAt: bigint;
|
|
1377
|
+
/** Timestamp when sync completed (or errored) */
|
|
1378
|
+
completedAt?: bigint;
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Sync checkpoint for resumable syncs.
|
|
1382
|
+
*/
|
|
1383
|
+
interface SyncCheckpoint {
|
|
1384
|
+
/** Chain ID */
|
|
1385
|
+
chainId: bigint;
|
|
1386
|
+
/** Pool address being synced */
|
|
1387
|
+
poolAddress: Address$1;
|
|
1388
|
+
/** Account address being synced */
|
|
1389
|
+
account: Address$1;
|
|
1390
|
+
/** Last processed block */
|
|
1391
|
+
lastBlock: bigint;
|
|
1392
|
+
/** Last processed block hash */
|
|
1393
|
+
lastBlockHash: Hash;
|
|
1394
|
+
/** Positions discovered so far */
|
|
1395
|
+
positionIds: bigint[];
|
|
1396
|
+
/** Checkpoint creation timestamp */
|
|
1397
|
+
createdAt: bigint;
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* Sync options for customizing sync behavior.
|
|
1401
|
+
*/
|
|
1402
|
+
interface SyncOptions {
|
|
1403
|
+
/** Starting block for sync (defaults to pool deployment block) */
|
|
1404
|
+
fromBlock?: bigint;
|
|
1405
|
+
/** Ending block for sync (defaults to latest) */
|
|
1406
|
+
toBlock?: bigint;
|
|
1407
|
+
/** Batch size for event fetching */
|
|
1408
|
+
batchSize?: bigint;
|
|
1409
|
+
/** Whether to use checkpoints for resumable syncs */
|
|
1410
|
+
useCheckpoints?: boolean;
|
|
1411
|
+
/** Progress callback */
|
|
1412
|
+
onProgress?: (state: SyncState) => void;
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* Sync result after completion.
|
|
1416
|
+
*/
|
|
1417
|
+
interface SyncResult {
|
|
1418
|
+
/** Whether sync completed successfully */
|
|
1419
|
+
success: boolean;
|
|
1420
|
+
/** Final sync state */
|
|
1421
|
+
state: SyncState;
|
|
1422
|
+
/** Position IDs discovered */
|
|
1423
|
+
positionIds: bigint[];
|
|
1424
|
+
/** Number of blocks processed */
|
|
1425
|
+
blocksProcessed: bigint;
|
|
1426
|
+
/** Duration in milliseconds */
|
|
1427
|
+
durationMs: bigint;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Reorg detection result.
|
|
1431
|
+
*/
|
|
1432
|
+
interface ReorgDetection {
|
|
1433
|
+
/** Whether a reorg was detected */
|
|
1434
|
+
detected: boolean;
|
|
1435
|
+
/** Block number where reorg started (if detected) */
|
|
1436
|
+
reorgBlock?: bigint;
|
|
1437
|
+
/** Expected block hash */
|
|
1438
|
+
expectedHash?: Hash;
|
|
1439
|
+
/** Actual block hash */
|
|
1440
|
+
actualHash?: Hash;
|
|
1441
|
+
/** Number of blocks to resync */
|
|
1442
|
+
blocksToResync?: bigint;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1114
1445
|
//#endregion
|
|
1115
1446
|
//#region src/panoptic/v2/utils/constants.d.ts
|
|
1116
1447
|
/**
|
|
@@ -2228,6 +2559,12 @@ interface GetMaxPositionSizeParams {
|
|
|
2228
2559
|
precisionPct?: number;
|
|
2229
2560
|
/** Whether to swap tokens at mint (affects collateral requirements, default: false) */
|
|
2230
2561
|
swapAtMint?: boolean;
|
|
2562
|
+
/**
|
|
2563
|
+
* Whether the solvency simulation may count accrued premia as collateral. MUST match the
|
|
2564
|
+
* mint (which uses `false`) — passing `true` credits premia the mint won't, so the search
|
|
2565
|
+
* returns a size larger than the account can actually mint. Defaults to `false`.
|
|
2566
|
+
*/
|
|
2567
|
+
usePremiaAsCollateral?: boolean;
|
|
2231
2568
|
/** Optional block number for historical queries */
|
|
2232
2569
|
blockNumber?: bigint;
|
|
2233
2570
|
/** Optional pre-fetched block metadata (skips getBlockMeta RPC call) */
|
|
@@ -2259,6 +2596,16 @@ interface GetRequiredCreditForITMParams {
|
|
|
2259
2596
|
positionSize: bigint;
|
|
2260
2597
|
/** Existing position IDs held by the account (defaults to empty) */
|
|
2261
2598
|
existingPositionIds?: bigint[];
|
|
2599
|
+
/**
|
|
2600
|
+
* Whether the position will be minted with a token swap (Zap). Controls the
|
|
2601
|
+
* dispatch tickLimit direction and therefore what the measured flow looks like:
|
|
2602
|
+
* - `true` (default): descending tickLimits → SFPM swap → flow consolidated to
|
|
2603
|
+
* the single token the mint would swap into.
|
|
2604
|
+
* - `false`: ascending tickLimits → no swap → the true two-sided flow (both
|
|
2605
|
+
* tokens), matching a cover-at-mint open.
|
|
2606
|
+
* Must match the swapAtMint used at mint for the measurement to be meaningful.
|
|
2607
|
+
*/
|
|
2608
|
+
swapAtMint?: boolean;
|
|
2262
2609
|
/** Optional block number for simulation */
|
|
2263
2610
|
blockNumber?: bigint;
|
|
2264
2611
|
/** Optional pre-fetched block metadata (skips getBlockMeta RPC call) */
|
|
@@ -2312,6 +2659,178 @@ interface RequiredCreditForITM {
|
|
|
2312
2659
|
* ```
|
|
2313
2660
|
*/
|
|
2314
2661
|
declare function getRequiredCreditForITM(params: GetRequiredCreditForITMParams): Promise<RequiredCreditForITM>;
|
|
2662
|
+
/**
|
|
2663
|
+
* Parameters for getItmAmounts.
|
|
2664
|
+
*/
|
|
2665
|
+
interface GetItmAmountsParams {
|
|
2666
|
+
/** viem PublicClient */
|
|
2667
|
+
client: PublicClient;
|
|
2668
|
+
/** PanopticQuery address (holds the getItmAmounts view) */
|
|
2669
|
+
queryAddress: Address$1;
|
|
2670
|
+
/** PanopticPool address the position would be minted on */
|
|
2671
|
+
poolAddress: Address$1;
|
|
2672
|
+
/** The option position (may already include width=0 neutralizing legs) */
|
|
2673
|
+
tokenId: bigint;
|
|
2674
|
+
/** Position size (number of contracts) */
|
|
2675
|
+
positionSize: bigint;
|
|
2676
|
+
/** Optional block number */
|
|
2677
|
+
blockNumber?: bigint;
|
|
2678
|
+
/** Optional pre-fetched block metadata */
|
|
2679
|
+
_meta?: BlockMeta;
|
|
2680
|
+
}
|
|
2681
|
+
/**
|
|
2682
|
+
* Result of getItmAmounts: the net in-the-money amounts a mint of `tokenId` would
|
|
2683
|
+
* accumulate in the SFPM before the mint-time netting swap.
|
|
2684
|
+
*/
|
|
2685
|
+
interface ItmAmounts {
|
|
2686
|
+
/** Net ITM amount of token0 (SFPM sign convention). */
|
|
2687
|
+
itm0: bigint;
|
|
2688
|
+
/** Net ITM amount of token1. */
|
|
2689
|
+
itm1: bigint;
|
|
2690
|
+
/** Block metadata */
|
|
2691
|
+
_meta: BlockMeta;
|
|
2692
|
+
}
|
|
2693
|
+
/**
|
|
2694
|
+
* Read the net `itmAmounts` a mint of `tokenId` would produce, via
|
|
2695
|
+
* `PanopticQuery.getItmAmounts`. This is the swap-independent, per-leg-linear
|
|
2696
|
+
* projection that drives the SFPM's mint-time netting swap: the swap only fires
|
|
2697
|
+
* when `itmAmounts != 0`. Sizing width=0 legs so the combined tokenId returns
|
|
2698
|
+
* (~0, ~0) here makes the mint swap dust — regardless of Zap vs cover.
|
|
2699
|
+
*
|
|
2700
|
+
* @param params - The parameters
|
|
2701
|
+
* @returns The net itm0/itm1 with block metadata
|
|
2702
|
+
*/
|
|
2703
|
+
declare function getItmAmounts(params: GetItmAmountsParams): Promise<ItmAmounts>;
|
|
2704
|
+
/**
|
|
2705
|
+
* Parameters for createFlowNeutralTokenId.
|
|
2706
|
+
*/
|
|
2707
|
+
interface CreateFlowNeutralTokenIdParams {
|
|
2708
|
+
/** viem PublicClient */
|
|
2709
|
+
client: PublicClient;
|
|
2710
|
+
/** PanopticPool address the position would be minted on */
|
|
2711
|
+
poolAddress: Address$1;
|
|
2712
|
+
/** Account address (whose collateral flow the neutralization targets) */
|
|
2713
|
+
account: Address$1;
|
|
2714
|
+
/** The base tokenId (without neutralizing legs) */
|
|
2715
|
+
tokenId: bigint;
|
|
2716
|
+
/** Position size (number of contracts) — unchanged by this function */
|
|
2717
|
+
positionSize: bigint;
|
|
2718
|
+
/**
|
|
2719
|
+
* PanopticQuery address. When provided, the position's true intrinsic (`getItmAmounts`)
|
|
2720
|
+
* gates neutralization: an OTM position (no ITM) gets NO leg, even though its realized
|
|
2721
|
+
* flow is non-zero from the open commission. Without it, OTM detection falls back to the
|
|
2722
|
+
* commission-inclusive realized flow, which spuriously neutralizes the fee.
|
|
2723
|
+
*/
|
|
2724
|
+
queryAddress?: Address$1;
|
|
2725
|
+
/** Existing position IDs held by the account (defaults to empty) */
|
|
2726
|
+
existingPositionIds?: bigint[];
|
|
2727
|
+
/**
|
|
2728
|
+
* Whether the position will be minted with a token swap (Zap). Must match the
|
|
2729
|
+
* mint: the neutralization targets the NET token flow under this swap mode, so a
|
|
2730
|
+
* mismatch would neutralize the wrong quantity. Defaults to `true`.
|
|
2731
|
+
*/
|
|
2732
|
+
swapAtMint?: boolean;
|
|
2733
|
+
/**
|
|
2734
|
+
* Size at which to MEASURE the base flow that sizes the neutralizing leg(s). The leg
|
|
2735
|
+
* strikes are position-size-independent (the flow is linear in size), so measuring at a
|
|
2736
|
+
* small affordable reference and reusing the result for `positionSize` yields the same
|
|
2737
|
+
* legs. Set this below `positionSize` to avoid the un-neutralized base dispatch reverting
|
|
2738
|
+
* with NotEnoughTokens at large sizes under Cover (the gross ITM would exceed the
|
|
2739
|
+
* account's balance even though the neutralized mint nets ~0). Defaults to `positionSize`;
|
|
2740
|
+
* clamped to `positionSize` if larger.
|
|
2741
|
+
*/
|
|
2742
|
+
referenceSize?: bigint;
|
|
2743
|
+
/** Optional block number (pins base + verify measurements to one block) */
|
|
2744
|
+
blockNumber?: bigint;
|
|
2745
|
+
/** Optional pre-fetched block metadata */
|
|
2746
|
+
_meta?: BlockMeta;
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* A single width=0 neutralizing leg emitted by {@link createFlowNeutralTokenId}.
|
|
2750
|
+
*/
|
|
2751
|
+
interface NeutralLeg {
|
|
2752
|
+
/** The encoded strike of the leg (sign follows the `asset === 0 ? +t : -t` convention). */
|
|
2753
|
+
strike: bigint;
|
|
2754
|
+
/** Asset (0n or 1n) of the leg. Always `1n - tokenType` (asset ≠ tokenType, so it is strike-tunable). */
|
|
2755
|
+
asset: bigint;
|
|
2756
|
+
/** Token type (0n or 1n) — the token this leg neutralizes (its itm slot). */
|
|
2757
|
+
tokenType: bigint;
|
|
2758
|
+
/** true = credit leg (isLong, offsets negative itm), false = loan leg (short, offsets positive itm). */
|
|
2759
|
+
isCredit: boolean;
|
|
2760
|
+
}
|
|
2761
|
+
/**
|
|
2762
|
+
* Result of createFlowNeutralTokenId.
|
|
2763
|
+
*/
|
|
2764
|
+
interface FlowNeutralTokenId {
|
|
2765
|
+
/**
|
|
2766
|
+
* New tokenId with the neutralizing legs appended after the base legs (base legs keep
|
|
2767
|
+
* their original indices, so the option leg stays at index 0). Equals the original
|
|
2768
|
+
* tokenId when OTM (`neutralLegs` empty).
|
|
2769
|
+
*/
|
|
2770
|
+
tokenId: bigint;
|
|
2771
|
+
/**
|
|
2772
|
+
* Position size to use when opening this tokenId. Always equal to the input
|
|
2773
|
+
* `positionSize` — neutralizing legs are sized via their strike, not by
|
|
2774
|
+
* rescaling the position.
|
|
2775
|
+
*/
|
|
2776
|
+
positionSize: bigint;
|
|
2777
|
+
/**
|
|
2778
|
+
* The neutralizing legs added, appended after the base legs. 0 entries = OTM/no leg;
|
|
2779
|
+
* 1 = the single dominant-token neutralizing leg (single-leg neutralization).
|
|
2780
|
+
*/
|
|
2781
|
+
neutralLegs: NeutralLeg[];
|
|
2782
|
+
/** The BASE position's net-flow measurement (what the legs offset). */
|
|
2783
|
+
originalCredit: RequiredCreditForITM;
|
|
2784
|
+
/**
|
|
2785
|
+
* The COMBINED (neutralized) position's actual token flow under the mint's swap,
|
|
2786
|
+
* from a verify re-measurement. Use this for the Account-Balances display and to
|
|
2787
|
+
* gate the mint — its `delta0/delta1` are the residual net transfer (≈ dust).
|
|
2788
|
+
*/
|
|
2789
|
+
neutralizedTokenFlow: TokenFlow$1;
|
|
2790
|
+
/** Block metadata */
|
|
2791
|
+
_meta: BlockMeta;
|
|
2792
|
+
}
|
|
2793
|
+
/**
|
|
2794
|
+
* Create a flow-neutral tokenId by adding width=0 credit/loan leg(s) that zero the
|
|
2795
|
+
* position's NET token transfer at mint — the amount the user would otherwise send/receive
|
|
2796
|
+
* (and be surprised by at burn).
|
|
2797
|
+
*
|
|
2798
|
+
* Each leg is sized against the **realized net flow**, measured by
|
|
2799
|
+
* {@link getRequiredCreditForITM} under the mint's own `swapAtMint`. Verified on-chain: a
|
|
2800
|
+
* width=0 leg's marginal effect on its token's flow is LINEAR and 1:1 with its notional
|
|
2801
|
+
* (`positionSize · 1.0001^strike`, matching the contract's `getAmountsMoved`). So sizing the
|
|
2802
|
+
* notional to `|net flow|` and solving the strike directly drives the residual to ~dust in
|
|
2803
|
+
* ONE shot — no fixed-point loop. (Example: flow 122.08 USDC → strike −228275 → residual
|
|
2804
|
+
* −0.032 USDC.)
|
|
2805
|
+
*
|
|
2806
|
+
* How many legs, keyed on swap mode:
|
|
2807
|
+
* - **Zap** (`swapAtMint=true`): the mint swap consolidates the flow into ONE token and a
|
|
2808
|
+
* width=0 leg can only move the asset axis afterwards, so we add a single leg on the
|
|
2809
|
+
* dominant token; the smaller side is a swap artifact left as dust.
|
|
2810
|
+
* - **Cover** (`swapAtMint=false`): no swap, so the flow is genuinely two-sided and each
|
|
2811
|
+
* token's flow is independent — we add one leg PER token above dust (up to 2), each
|
|
2812
|
+
* sized 1:1 to its own side. This neutralizes both sides of e.g. a two-leg straddle.
|
|
2813
|
+
* Each width=0 leg has `asset ≠ tokenType` (strike-tunable):
|
|
2814
|
+
* - token0 flow ← width=0 call leg (tokenType0, asset1)
|
|
2815
|
+
* - token1 flow ← width=0 put leg (tokenType1, asset0)
|
|
2816
|
+
* `creditAmount = −delta`: a positive amount (user would deposit) → a short LOAN leg;
|
|
2817
|
+
* negative (user would receive) → a long CREDIT leg. `neutralizedTokenFlow` is a single
|
|
2818
|
+
* verify measurement of the combined position under the ACTUAL mint swap mode.
|
|
2819
|
+
*
|
|
2820
|
+
* Neutral legs (self-partnered, width=0) are placed so index 0 carries the correct swap
|
|
2821
|
+
* frame: for a single-leg CALL (option `tokenType === asset`) they are PREPENDED so the
|
|
2822
|
+
* credit leg leads and the mint swap is asset-token friendly; for a PUT (and any multi-leg
|
|
2823
|
+
* base) they are APPENDED so the option leg stays at index 0. `positionSize` is never
|
|
2824
|
+
* modified.
|
|
2825
|
+
*
|
|
2826
|
+
* @param params - The parameters
|
|
2827
|
+
* @returns The flow-neutral tokenId, the neutralizing legs, the base net-flow
|
|
2828
|
+
* measurement, and the combined position's residual flow. `neutralLegs` is empty
|
|
2829
|
+
* when the position is OTM (input tokenId returned unchanged).
|
|
2830
|
+
* @throws PanopticError if positionSize <= 0, base legs + 1 > 4, the current tick
|
|
2831
|
+
* is unavailable, or a neutralizing strike falls outside the valid tick range.
|
|
2832
|
+
*/
|
|
2833
|
+
declare function createFlowNeutralTokenId(params: CreateFlowNeutralTokenIdParams): Promise<FlowNeutralTokenId>;
|
|
2315
2834
|
/**
|
|
2316
2835
|
* Parameters for getMaxWithdrawable.
|
|
2317
2836
|
*/
|
|
@@ -2858,6 +3377,15 @@ declare function getLegValue(leg: TokenIdLeg, currentTick: bigint, mintTick: big
|
|
|
2858
3377
|
* @returns Leg delta in asset token smallest units
|
|
2859
3378
|
*/
|
|
2860
3379
|
declare function getLegDelta(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, mintTick: bigint | undefined, definedRisk: boolean, assetIndex?: bigint): bigint;
|
|
3380
|
+
/** Convert a delta between token frames at the current pool tick. */
|
|
3381
|
+
declare function toVaultFrameAtTick(delta: bigint, fromAsset: bigint, vaultAssetIndex: 0n | 1n, currentTick: bigint, flipSignOnAssetInversion?: boolean): bigint;
|
|
3382
|
+
/**
|
|
3383
|
+
* Calculate one leg's wallet-aware delta in the vault asset frame.
|
|
3384
|
+
*
|
|
3385
|
+
* Width-zero loans and credits must be evaluated directly in the vault frame.
|
|
3386
|
+
* Option legs remain in their natural leg frame until converted at the mark tick.
|
|
3387
|
+
*/
|
|
3388
|
+
declare function getLegDeltaInVaultFrame(leg: TokenIdLeg, currentTick: bigint, positionSize: bigint, poolTickSpacing: bigint, mintTick: bigint | undefined, definedRisk: boolean, vaultAssetIndex: 0n | 1n): bigint;
|
|
2861
3389
|
/**
|
|
2862
3390
|
* Calculate the gamma (dollar gamma) of a single leg.
|
|
2863
3391
|
*
|
|
@@ -4407,10 +4935,20 @@ declare function usePreviewRedeem(poolAddress: Address$1, tokenIndex: 0 | 1, amo
|
|
|
4407
4935
|
declare function useEstimateCollateralRequired(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, queryAddress: Address$1, account?: Address$1, options?: QueryOptions & {
|
|
4408
4936
|
atTick?: bigint;
|
|
4409
4937
|
}): QueryObserverResult<TData, TError>;
|
|
4938
|
+
declare function useFlowNeutralTokenId(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, account?: Address$1, options?: QueryOptions & {
|
|
4939
|
+
existingPositionIds?: bigint[];
|
|
4940
|
+
neutralizeITM?: boolean;
|
|
4941
|
+
swapAtMint?: boolean;
|
|
4942
|
+
/** Size to measure the base flow at (defaults to positionSize). See SDK param. */
|
|
4943
|
+
referenceSize?: bigint;
|
|
4944
|
+
/** PanopticQuery address — gates OTM on true intrinsic. See SDK param. */
|
|
4945
|
+
queryAddress?: Address$1;
|
|
4946
|
+
}): QueryObserverResult<TData, TError>;
|
|
4410
4947
|
declare function useMaxPositionSize(poolAddress: Address$1, tokenId: bigint, queryAddress: Address$1, account?: Address$1, options?: QueryOptions & {
|
|
4411
4948
|
existingPositionIds?: bigint[];
|
|
4412
4949
|
swapAtMint?: boolean;
|
|
4413
4950
|
precisionPct?: number;
|
|
4951
|
+
usePremiaAsCollateral?: boolean;
|
|
4414
4952
|
}): QueryObserverResult<TData, TError>;
|
|
4415
4953
|
declare function useOptimizeRiskPartners(poolAddress: Address$1, tokenId: bigint, queryAddress: Address$1, atTick?: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
4416
4954
|
declare function useMaxWithdrawable(collateralTrackerAddress: Address$1, positionIdList: bigint[], totalAssets: bigint, account?: Address$1, options?: QueryOptions & {
|
|
@@ -5495,7 +6033,7 @@ interface PanopticProviderProps extends PanopticContextValue {
|
|
|
5495
6033
|
declare function PanopticProvider({
|
|
5496
6034
|
children,
|
|
5497
6035
|
...value
|
|
5498
|
-
}: PanopticProviderProps):
|
|
6036
|
+
}: PanopticProviderProps): react_jsx_runtime21.JSX.Element;
|
|
5499
6037
|
/**
|
|
5500
6038
|
* Access the Panoptic SDK context.
|
|
5501
6039
|
*
|
|
@@ -5693,6 +6231,11 @@ declare const queryKeys: {
|
|
|
5693
6231
|
* Key for required credit for ITM position.
|
|
5694
6232
|
*/
|
|
5695
6233
|
readonly requiredCreditForITM: (chainId: bigint, poolAddress: Address, account: Address, tokenId: bigint) => readonly ["panoptic-v2", "requiredCreditForITM", string, Address, Address, string];
|
|
6234
|
+
/**
|
|
6235
|
+
* Key for flow-neutral tokenId (ITM-neutralizing legs). Account-independent —
|
|
6236
|
+
* itmAmounts is a pure projection of the tokenId + size.
|
|
6237
|
+
*/
|
|
6238
|
+
readonly flowNeutralTokenId: (chainId: bigint, poolAddress: Address, tokenId: bigint) => readonly ["panoptic-v2", "flowNeutralTokenId", string, Address, string];
|
|
5696
6239
|
/**
|
|
5697
6240
|
* Key for interest state (per-user borrows).
|
|
5698
6241
|
*/
|
|
@@ -6403,6 +6946,14 @@ interface GetOpenPositionIdsParams {
|
|
|
6403
6946
|
* scanning from block 0. Use the checkpoint's lastBlock for incremental syncs.
|
|
6404
6947
|
*/
|
|
6405
6948
|
fromBlock?: bigint;
|
|
6949
|
+
/** Upper bound for fallback event recovery. */
|
|
6950
|
+
toBlock?: bigint;
|
|
6951
|
+
/** Expected Zodiac Roles wrapper for a bot-relayed Safe dispatch. */
|
|
6952
|
+
rolesContext?: {
|
|
6953
|
+
modifier: Address$1;
|
|
6954
|
+
member: Address$1;
|
|
6955
|
+
roleKey: Hash;
|
|
6956
|
+
};
|
|
6406
6957
|
}
|
|
6407
6958
|
/**
|
|
6408
6959
|
* Get the authoritative list of open position IDs from the chain.
|
|
@@ -7133,6 +7684,12 @@ interface RecoverSnapshotFromTxParams {
|
|
|
7133
7684
|
account?: Address$1;
|
|
7134
7685
|
/** Pool address to validate against. When set, rejects transactions not sent to this pool. */
|
|
7135
7686
|
pool?: Address$1;
|
|
7687
|
+
/** Expected Zodiac Roles wrapper for bot-originated Safe dispatches. */
|
|
7688
|
+
rolesContext?: {
|
|
7689
|
+
modifier: Address$1;
|
|
7690
|
+
member: Address$1;
|
|
7691
|
+
roleKey: Hash;
|
|
7692
|
+
};
|
|
7136
7693
|
}
|
|
7137
7694
|
/**
|
|
7138
7695
|
* Recover position snapshot from a specific dispatch transaction hash.
|
|
@@ -9619,5 +10176,5 @@ declare function isNonceError(error: unknown): boolean;
|
|
|
9619
10176
|
declare function isGasError(error: unknown): boolean;
|
|
9620
10177
|
|
|
9621
10178
|
//#endregion
|
|
9622
|
-
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, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, 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, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, 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, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, 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, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getLegDelta, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
10179
|
+
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, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, 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, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleRateLimitedError, OracleState, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, 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, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildUniqueLoan, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, estimateBlockNumbers, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition, fetchPoolId, 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, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getOpenPositionIds, getOpenPositionPreview, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithdraw, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
9623
10180
|
//# sourceMappingURL=index.d.ts.map
|