@panoptic-eng/sdk 1.0.36 → 1.0.38
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 -5
- package/dist/cow/index.js +3 -3
- package/dist/cow/types.d.ts +3 -2
- package/dist/{cow-aX6of9TS.js → cow-DB8siv6M.js} +2 -2
- package/dist/{cow-aX6of9TS.js.map → cow-DB8siv6M.js.map} +1 -1
- package/dist/deployments.d.ts +3 -2
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +4 -0
- package/dist/deployments.js.map +1 -1
- package/dist/{position-C8rkkKhi.js → getTrackedPositionIds-zYPIs5dt.js} +1086 -34
- package/dist/getTrackedPositionIds-zYPIs5dt.js.map +1 -0
- package/dist/hypoVault/vaultDisplayNames.d.ts +2 -0
- package/dist/hypoVault/vaultDisplayNames.js +4 -0
- package/dist/{index-CURXeKNy.d.ts → index-BhEBx83X.d.ts} +405 -351
- package/dist/index-BhEBx83X.d.ts.map +1 -0
- package/dist/index-Bo9tHtD7.d.ts +1901 -0
- package/dist/index-Bo9tHtD7.d.ts.map +1 -0
- package/dist/{index-Cp-nCeV2.d.ts → index-CttjEZ-S.d.ts} +3 -4
- package/dist/index-CttjEZ-S.d.ts.map +1 -0
- package/dist/{index-Zvu-rJpV.d.ts → index-DktZq9Kb.d.ts} +2 -2
- package/dist/{index-Zvu-rJpV.d.ts.map → index-DktZq9Kb.d.ts.map} +1 -1
- package/dist/index.d.ts +159 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +323 -70
- package/dist/index.js.map +1 -1
- package/dist/{irm-DnM96-X4.js → irm-ChkvYphK.js} +3 -318
- package/dist/irm-ChkvYphK.js.map +1 -0
- package/dist/{irm-CmgC1Mqi.d.ts → irm-D2WTHtuo.d.ts} +3 -30
- package/dist/{irm-CmgC1Mqi.d.ts.map → irm-D2WTHtuo.d.ts.map} +1 -1
- package/dist/irm-D5plRhpB.d.ts +32 -0
- package/dist/irm-D5plRhpB.d.ts.map +1 -0
- package/dist/panoptic/v2/greeks/index.d.ts +3 -2
- package/dist/panoptic/v2/index.d.ts +7 -8
- package/dist/panoptic/v2/index.js +7 -6
- package/dist/panoptic/v2/react-public.d.ts +29 -13
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +48 -8
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/panoptic/v2/types/index.d.ts +3 -0
- package/dist/panoptic/v2/types/index.js +0 -0
- package/dist/quote-DeHNUR0Z.d.ts +52 -0
- package/dist/quote-DeHNUR0Z.d.ts.map +1 -0
- package/dist/{router-CS86ptMu.js → router-BCUJkY8j.js} +3 -3
- package/dist/{router-CS86ptMu.js.map → router-BCUJkY8j.js.map} +1 -1
- package/dist/{router-DcoU2KmV.js → router-tCRa0ekE.js} +2 -2
- package/dist/{router-DcoU2KmV.js.map → router-tCRa0ekE.js.map} +1 -1
- package/dist/src-CRAtPwWk.js +321 -0
- package/dist/src-CRAtPwWk.js.map +1 -0
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.d.ts.map +1 -1
- package/dist/transactionFees-CVi2TrJh.js +175 -0
- package/dist/transactionFees-CVi2TrJh.js.map +1 -0
- package/dist/transactionFees-DzDyt50k.d.ts +63 -0
- package/dist/transactionFees-DzDyt50k.d.ts.map +1 -0
- package/dist/{types-D_jcYss-.d.ts → types-Cad5m4Td.d.ts} +3 -5
- package/dist/types-Cad5m4Td.d.ts.map +1 -0
- package/dist/{types-BHdnurYr.d.ts → types-DM0nxlZr.d.ts} +2 -2
- package/dist/{types-BHdnurYr.d.ts.map → types-DM0nxlZr.d.ts.map} +1 -1
- package/dist/uniswap/index.d.ts +4 -5
- package/dist/uniswap/index.d.ts.map +1 -1
- package/dist/uniswap/index.js +4 -4
- package/dist/{v2-D0dEatKb.js → v2-BxtzpUnV.js} +3267 -2675
- package/dist/v2-BxtzpUnV.js.map +1 -0
- package/dist/vault-transaction-fees.d.ts +2 -0
- package/dist/vault-transaction-fees.js +3 -0
- package/dist/vaultDisplayNames-CKpz51Hu.js +0 -0
- package/dist/vaultDisplayNames-Q6htUcch.d.ts +2 -0
- package/dist/{writes-AupZCK4M.js → writes-D3bj1wth.js} +326 -1292
- package/dist/writes-D3bj1wth.js.map +1 -0
- package/package.json +5 -1
- package/dist/index-CURXeKNy.d.ts.map +0 -1
- package/dist/index-Cp-nCeV2.d.ts.map +0 -1
- package/dist/irm-DnM96-X4.js.map +0 -1
- package/dist/position-BqIgubs5.d.ts +0 -199
- package/dist/position-BqIgubs5.d.ts.map +0 -1
- package/dist/position-C8rkkKhi.js.map +0 -1
- package/dist/quote-BxQkPBRg.d.ts +0 -718
- package/dist/quote-BxQkPBRg.d.ts.map +0 -1
- package/dist/simulation-zM6-YUaw.d.ts +0 -258
- package/dist/simulation-zM6-YUaw.d.ts.map +0 -1
- package/dist/tx-CbDQ58Io.d.ts +0 -367
- package/dist/tx-CbDQ58Io.d.ts.map +0 -1
- package/dist/types-D_jcYss-.d.ts.map +0 -1
- package/dist/v2-D0dEatKb.js.map +0 -1
- package/dist/writes-AupZCK4M.js.map +0 -1
|
@@ -1,157 +1,13 @@
|
|
|
1
|
-
import { BlockMeta, ClosedPosition, Position, PositionGreeks, RealizedPnL, StoredPositionData, TokenIdLeg } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { EventSubscription, NonceManager, PanopticEvent, PanopticEventType, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult } from "./tx-CbDQ58Io.js";
|
|
4
|
-
import { ClosePositionSimulation, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, SettleSimulation, SimulationResult, TokenFlow, WithdrawSimulation } from "./simulation-zM6-YUaw.js";
|
|
5
|
-
import { PositionGreeksResult } from "./index-Zvu-rJpV.js";
|
|
1
|
+
import { AccountCollateral, AccountSummaryBasic, AccountSummaryRisk, BlockMeta, ClosePositionSimulation, ClosedPosition, CollateralTracker, CurrentRates, DepositSimulation, DispatchSimulation, EventSubscription, ForceExerciseSimulation, LiquidateSimulation, LiquidationPrices, MintBufferRatio, NetLiquidationValue, NetLiquidationValues, NonceManager, OpenPositionSimulation, PanopticError, PanopticEvent, PanopticEventType, Pool, PoolHealthStatus, PoolKey, PoolMetadata, PoolVersionConfig, Position, PositionGreeks, RealizedPnL, ReorgDetection, SafeMode, SafeModeState, SettleSimulation, SimulationResult, StoredPositionData, SyncCheckpoint, SyncEvent, TokenFlow, TokenIdLeg, TxBroadcaster, TxOverrides, TxReceipt, TxResult, WithdrawSimulation } from "./index-Bo9tHtD7.js";
|
|
2
|
+
import { PositionGreeksResult } from "./index-DktZq9Kb.js";
|
|
6
3
|
import { Abi, Address, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, StateOverride, WalletClient } from "viem";
|
|
7
4
|
|
|
8
|
-
//#region src/panoptic/v2/
|
|
5
|
+
//#region src/panoptic/v2/errors/contract.d.ts
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
7
|
+
* The account is not solvent enough to perform the desired action.
|
|
8
|
+
* @see Errors.sol:9
|
|
11
9
|
*/
|
|
12
|
-
|
|
13
|
-
* Collateral data for a single token.
|
|
14
|
-
*/
|
|
15
|
-
interface TokenCollateral {
|
|
16
|
-
/** Total assets deposited (in underlying token) */
|
|
17
|
-
assets: bigint;
|
|
18
|
-
/** Collateral shares owned */
|
|
19
|
-
shares: bigint;
|
|
20
|
-
/** Available (unlocked) assets */
|
|
21
|
-
availableAssets: bigint;
|
|
22
|
-
/** Locked assets (used as collateral for positions) */
|
|
23
|
-
lockedAssets: bigint;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Account collateral data for both tokens.
|
|
27
|
-
*/
|
|
28
|
-
interface AccountCollateral {
|
|
29
|
-
/** Account address */
|
|
30
|
-
account: Address;
|
|
31
|
-
/** Pool address */
|
|
32
|
-
poolAddress: Address;
|
|
33
|
-
/** Token 0 collateral */
|
|
34
|
-
token0: TokenCollateral;
|
|
35
|
-
/** Token 1 collateral */
|
|
36
|
-
token1: TokenCollateral;
|
|
37
|
-
/** Number of open position legs */
|
|
38
|
-
legCount: bigint;
|
|
39
|
-
/** Block metadata */
|
|
40
|
-
_meta: BlockMeta;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Base account summary for UI dashboards.
|
|
44
|
-
*
|
|
45
|
-
* This shape contains non-helper-dependent data only.
|
|
46
|
-
*/
|
|
47
|
-
interface AccountSummaryBasic {
|
|
48
|
-
/** Account address */
|
|
49
|
-
account: Address;
|
|
50
|
-
/** Pool data */
|
|
51
|
-
pool: Pool;
|
|
52
|
-
/** Collateral data */
|
|
53
|
-
collateral: AccountCollateral;
|
|
54
|
-
/** Open positions */
|
|
55
|
-
positions: Position[];
|
|
56
|
-
/** Health status of the pool */
|
|
57
|
-
healthStatus: PoolHealthStatus;
|
|
58
|
-
/** Whether wallet is on wrong network */
|
|
59
|
-
networkMismatch: boolean;
|
|
60
|
-
/** Block metadata */
|
|
61
|
-
_meta: BlockMeta;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Risk-focused account summary for UI dashboards and bots.
|
|
65
|
-
*
|
|
66
|
-
* Includes everything in AccountSummaryBasic plus helper-dependent risk fields.
|
|
67
|
-
*/
|
|
68
|
-
interface AccountSummaryRisk extends AccountSummaryBasic {
|
|
69
|
-
/** Total position greeks */
|
|
70
|
-
totalGreeks: PositionGreeks;
|
|
71
|
-
/** Net liquidation value for token 0 */
|
|
72
|
-
netLiquidationValue0: bigint;
|
|
73
|
-
/** Net liquidation value for token 1 */
|
|
74
|
-
netLiquidationValue1: bigint;
|
|
75
|
-
/** Maintenance margin required for token 0 */
|
|
76
|
-
maintenanceMargin0: bigint;
|
|
77
|
-
/** Maintenance margin required for token 1 */
|
|
78
|
-
maintenanceMargin1: bigint;
|
|
79
|
-
/** Margin excess (positive) or deficit (negative) for token 0 */
|
|
80
|
-
marginExcess0: bigint;
|
|
81
|
-
/** Margin excess (positive) or deficit (negative) for token 1 */
|
|
82
|
-
marginExcess1: bigint;
|
|
83
|
-
/** Margin shortfall for token 0 (positive shortfall, negative excess) */
|
|
84
|
-
marginShortfall0: bigint;
|
|
85
|
-
/** Margin shortfall for token 1 (positive shortfall, negative excess) */
|
|
86
|
-
marginShortfall1: bigint;
|
|
87
|
-
/** Current margin (collateral balance) for token 0 */
|
|
88
|
-
currentMargin0: bigint;
|
|
89
|
-
/** Current margin (collateral balance) for token 1 */
|
|
90
|
-
currentMargin1: bigint;
|
|
91
|
-
/** Whether the account is liquidatable */
|
|
92
|
-
isLiquidatable: boolean;
|
|
93
|
-
/** Liquidation price bounds */
|
|
94
|
-
liquidationPrices: LiquidationPrices;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Net liquidation value result.
|
|
98
|
-
*/
|
|
99
|
-
interface NetLiquidationValue {
|
|
100
|
-
/** Net liquidation value for token 0 */
|
|
101
|
-
value0: bigint;
|
|
102
|
-
/** Net liquidation value for token 1 */
|
|
103
|
-
value1: bigint;
|
|
104
|
-
/** Tick used for calculation */
|
|
105
|
-
atTick: bigint;
|
|
106
|
-
/** Whether pending premium was included */
|
|
107
|
-
includedPendingPremium: boolean;
|
|
108
|
-
/** Block metadata */
|
|
109
|
-
_meta: BlockMeta;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Net liquidation values at multiple ticks.
|
|
113
|
-
*/
|
|
114
|
-
interface NetLiquidationValues {
|
|
115
|
-
/** Net liquidation values for token 0 at each tick */
|
|
116
|
-
values0: bigint[];
|
|
117
|
-
/** Net liquidation values for token 1 at each tick */
|
|
118
|
-
values1: bigint[];
|
|
119
|
-
/** Ticks used for calculation */
|
|
120
|
-
atTicks: bigint[];
|
|
121
|
-
/** Block metadata */
|
|
122
|
-
_meta: BlockMeta;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Liquidation prices result.
|
|
126
|
-
*/
|
|
127
|
-
interface LiquidationPrices {
|
|
128
|
-
/** Lower liquidation tick (null if position is safe at MIN_TICK) */
|
|
129
|
-
lowerTick: bigint | null;
|
|
130
|
-
/** Upper liquidation tick (null if position is safe at MAX_TICK) */
|
|
131
|
-
upperTick: bigint | null;
|
|
132
|
-
/** Whether the account is currently liquidatable */
|
|
133
|
-
isLiquidatable: boolean;
|
|
134
|
-
/** Block metadata */
|
|
135
|
-
_meta: BlockMeta;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Collateral estimate for a potential position.
|
|
139
|
-
*/
|
|
140
|
-
interface CollateralEstimate$1 {
|
|
141
|
-
/** Required collateral for token 0 */
|
|
142
|
-
required0: bigint;
|
|
143
|
-
/** Required collateral for token 1 */
|
|
144
|
-
required1: bigint;
|
|
145
|
-
/** Post-position margin excess for token 0 */
|
|
146
|
-
postMarginExcess0: bigint;
|
|
147
|
-
/** Post-position margin excess for token 1 */
|
|
148
|
-
postMarginExcess1: bigint;
|
|
149
|
-
/** Whether the position would be openable */
|
|
150
|
-
canOpen: boolean;
|
|
151
|
-
/** Block metadata */
|
|
152
|
-
_meta: BlockMeta;
|
|
153
|
-
} //#endregion
|
|
154
|
-
//#region src/panoptic/v2/errors/contract.d.ts
|
|
10
|
+
|
|
155
11
|
/**
|
|
156
12
|
* The account is not solvent enough to perform the desired action.
|
|
157
13
|
* @see Errors.sol:9
|
|
@@ -1250,195 +1106,6 @@ declare function parsePanopticError(error: unknown): ParsedError | null;
|
|
|
1250
1106
|
*/
|
|
1251
1107
|
declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: new (...args: unknown[]) => T): error is T;
|
|
1252
1108
|
|
|
1253
|
-
//#endregion
|
|
1254
|
-
//#region src/panoptic/v2/types/chunks.d.ts
|
|
1255
|
-
/**
|
|
1256
|
-
* Chunk spread represents a range of ticks being tracked.
|
|
1257
|
-
* Used to organize position data for efficient storage and retrieval.
|
|
1258
|
-
*/
|
|
1259
|
-
interface ChunkSpread {
|
|
1260
|
-
/** Lower tick bound (inclusive) */
|
|
1261
|
-
tickLower: bigint;
|
|
1262
|
-
/** Upper tick bound (exclusive) */
|
|
1263
|
-
tickUpper: bigint;
|
|
1264
|
-
/** Pool address */
|
|
1265
|
-
poolAddress: Address;
|
|
1266
|
-
/** Chain ID */
|
|
1267
|
-
chainId: bigint;
|
|
1268
|
-
}
|
|
1269
|
-
/**
|
|
1270
|
-
* Chunk key for storage lookup.
|
|
1271
|
-
* Format: chain{chainId}:pool{poolAddress}:chunk{tickLower}:{tickUpper}
|
|
1272
|
-
*/
|
|
1273
|
-
interface ChunkKey {
|
|
1274
|
-
/** Chain ID */
|
|
1275
|
-
chainId: bigint;
|
|
1276
|
-
/** Pool address */
|
|
1277
|
-
poolAddress: Address;
|
|
1278
|
-
/** Lower tick bound */
|
|
1279
|
-
tickLower: bigint;
|
|
1280
|
-
/** Upper tick bound */
|
|
1281
|
-
tickUpper: bigint;
|
|
1282
|
-
}
|
|
1283
|
-
/**
|
|
1284
|
-
* Chunk data stored in persistent storage.
|
|
1285
|
-
*/
|
|
1286
|
-
interface ChunkData {
|
|
1287
|
-
/** The chunk key */
|
|
1288
|
-
key: ChunkKey;
|
|
1289
|
-
/** Token IDs in this chunk */
|
|
1290
|
-
tokenIds: bigint[];
|
|
1291
|
-
/** Last update block number */
|
|
1292
|
-
lastBlock: bigint;
|
|
1293
|
-
/** Last update block hash */
|
|
1294
|
-
lastBlockHash: Hash;
|
|
1295
|
-
/** Creation timestamp */
|
|
1296
|
-
createdAt: bigint;
|
|
1297
|
-
/** Last update timestamp */
|
|
1298
|
-
updatedAt: bigint;
|
|
1299
|
-
}
|
|
1300
|
-
/**
|
|
1301
|
-
* Chunk metadata for LRU eviction.
|
|
1302
|
-
*/
|
|
1303
|
-
interface ChunkMetadata {
|
|
1304
|
-
/** The chunk key */
|
|
1305
|
-
key: ChunkKey;
|
|
1306
|
-
/** Access count for frequency-based eviction */
|
|
1307
|
-
accessCount: bigint;
|
|
1308
|
-
/** Last access timestamp */
|
|
1309
|
-
lastAccessedAt: bigint;
|
|
1310
|
-
/** Size in bytes (approximate) */
|
|
1311
|
-
sizeBytes: bigint;
|
|
1312
|
-
}
|
|
1313
|
-
/**
|
|
1314
|
-
* Chunk statistics for monitoring.
|
|
1315
|
-
*/
|
|
1316
|
-
interface ChunkStats {
|
|
1317
|
-
/** Total number of chunks */
|
|
1318
|
-
totalChunks: bigint;
|
|
1319
|
-
/** Total token IDs across all chunks */
|
|
1320
|
-
totalTokenIds: bigint;
|
|
1321
|
-
/** Oldest chunk timestamp */
|
|
1322
|
-
oldestChunk: bigint;
|
|
1323
|
-
/** Newest chunk timestamp */
|
|
1324
|
-
newestChunk: bigint;
|
|
1325
|
-
/** Average chunk size */
|
|
1326
|
-
avgChunkSize: bigint;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
//#endregion
|
|
1330
|
-
//#region src/panoptic/v2/types/poolConfig.d.ts
|
|
1331
|
-
/** V3 pool configuration. */
|
|
1332
|
-
interface V3PoolConfig {
|
|
1333
|
-
version: 'v3';
|
|
1334
|
-
/** Uniswap V3 pool contract address */
|
|
1335
|
-
poolAddress: Address;
|
|
1336
|
-
}
|
|
1337
|
-
/** V4 pool configuration. */
|
|
1338
|
-
interface V4PoolConfig {
|
|
1339
|
-
version: 'v4';
|
|
1340
|
-
/** StateView contract address */
|
|
1341
|
-
stateViewAddress: Address;
|
|
1342
|
-
/** V4 pool ID (bytes32) */
|
|
1343
|
-
poolId: `0x${string}`;
|
|
1344
|
-
}
|
|
1345
|
-
/** Discriminated union of V3 and V4 pool configurations. */
|
|
1346
|
-
type PoolVersionConfig = V3PoolConfig | V4PoolConfig;
|
|
1347
|
-
|
|
1348
|
-
//#endregion
|
|
1349
|
-
//#region src/panoptic/v2/types/sync.d.ts
|
|
1350
|
-
/**
|
|
1351
|
-
* Sync status enum.
|
|
1352
|
-
*/
|
|
1353
|
-
type SyncStatus = 'idle' | 'syncing' | 'error' | 'complete';
|
|
1354
|
-
/**
|
|
1355
|
-
* Sync state for tracking synchronization progress.
|
|
1356
|
-
*/
|
|
1357
|
-
interface SyncState {
|
|
1358
|
-
/** Current sync status */
|
|
1359
|
-
status: SyncStatus;
|
|
1360
|
-
/** Last synced block number */
|
|
1361
|
-
lastSyncedBlock: bigint;
|
|
1362
|
-
/** Last synced block hash */
|
|
1363
|
-
lastSyncedBlockHash: Hash;
|
|
1364
|
-
/** Target block to sync to */
|
|
1365
|
-
targetBlock: bigint;
|
|
1366
|
-
/** Number of positions found during sync */
|
|
1367
|
-
positionsFound: bigint;
|
|
1368
|
-
/** Progress percentage (0-100) */
|
|
1369
|
-
progress: bigint;
|
|
1370
|
-
/** Error message if status is 'error' */
|
|
1371
|
-
errorMessage?: string;
|
|
1372
|
-
/** Timestamp when sync started */
|
|
1373
|
-
startedAt: bigint;
|
|
1374
|
-
/** Timestamp when sync completed (or errored) */
|
|
1375
|
-
completedAt?: bigint;
|
|
1376
|
-
}
|
|
1377
|
-
/**
|
|
1378
|
-
* Sync checkpoint for resumable syncs.
|
|
1379
|
-
*/
|
|
1380
|
-
interface SyncCheckpoint {
|
|
1381
|
-
/** Chain ID */
|
|
1382
|
-
chainId: bigint;
|
|
1383
|
-
/** Pool address being synced */
|
|
1384
|
-
poolAddress: Address;
|
|
1385
|
-
/** Account address being synced */
|
|
1386
|
-
account: Address;
|
|
1387
|
-
/** Last processed block */
|
|
1388
|
-
lastBlock: bigint;
|
|
1389
|
-
/** Last processed block hash */
|
|
1390
|
-
lastBlockHash: Hash;
|
|
1391
|
-
/** Positions discovered so far */
|
|
1392
|
-
positionIds: bigint[];
|
|
1393
|
-
/** Checkpoint creation timestamp */
|
|
1394
|
-
createdAt: bigint;
|
|
1395
|
-
}
|
|
1396
|
-
/**
|
|
1397
|
-
* Sync options for customizing sync behavior.
|
|
1398
|
-
*/
|
|
1399
|
-
interface SyncOptions {
|
|
1400
|
-
/** Starting block for sync (defaults to pool deployment block) */
|
|
1401
|
-
fromBlock?: bigint;
|
|
1402
|
-
/** Ending block for sync (defaults to latest) */
|
|
1403
|
-
toBlock?: bigint;
|
|
1404
|
-
/** Batch size for event fetching */
|
|
1405
|
-
batchSize?: bigint;
|
|
1406
|
-
/** Whether to use checkpoints for resumable syncs */
|
|
1407
|
-
useCheckpoints?: boolean;
|
|
1408
|
-
/** Progress callback */
|
|
1409
|
-
onProgress?: (state: SyncState) => void;
|
|
1410
|
-
}
|
|
1411
|
-
/**
|
|
1412
|
-
* Sync result after completion.
|
|
1413
|
-
*/
|
|
1414
|
-
interface SyncResult {
|
|
1415
|
-
/** Whether sync completed successfully */
|
|
1416
|
-
success: boolean;
|
|
1417
|
-
/** Final sync state */
|
|
1418
|
-
state: SyncState;
|
|
1419
|
-
/** Position IDs discovered */
|
|
1420
|
-
positionIds: bigint[];
|
|
1421
|
-
/** Number of blocks processed */
|
|
1422
|
-
blocksProcessed: bigint;
|
|
1423
|
-
/** Duration in milliseconds */
|
|
1424
|
-
durationMs: bigint;
|
|
1425
|
-
}
|
|
1426
|
-
/**
|
|
1427
|
-
* Reorg detection result.
|
|
1428
|
-
*/
|
|
1429
|
-
interface ReorgDetection {
|
|
1430
|
-
/** Whether a reorg was detected */
|
|
1431
|
-
detected: boolean;
|
|
1432
|
-
/** Block number where reorg started (if detected) */
|
|
1433
|
-
reorgBlock?: bigint;
|
|
1434
|
-
/** Expected block hash */
|
|
1435
|
-
expectedHash?: Hash;
|
|
1436
|
-
/** Actual block hash */
|
|
1437
|
-
actualHash?: Hash;
|
|
1438
|
-
/** Number of blocks to resync */
|
|
1439
|
-
blocksToResync?: bigint;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
1109
|
//#endregion
|
|
1443
1110
|
//#region src/panoptic/v2/utils/constants.d.ts
|
|
1444
1111
|
/**
|
|
@@ -1570,6 +1237,40 @@ declare function decodePanopticTokenURI(tokenURI: string): PanopticNFTMetadata |
|
|
|
1570
1237
|
*/
|
|
1571
1238
|
declare function interpolateBlocks(startBlock: bigint, endBlock: bigint, points: number): bigint[];
|
|
1572
1239
|
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region src/panoptic/v2/utils/oraclePack.d.ts
|
|
1242
|
+
/** Timing decoded from an OraclePack and resolved against a specific block. */
|
|
1243
|
+
interface OracleTiming {
|
|
1244
|
+
/** Modulo-2^24 oracle epoch stored on-chain. */
|
|
1245
|
+
epoch: bigint;
|
|
1246
|
+
/** Absolute epoch-boundary timestamp reconstructed at or before the supplied block. */
|
|
1247
|
+
timestamp: bigint;
|
|
1248
|
+
}
|
|
1249
|
+
/** Fixed-width oracle state decoded from an OraclePack. */
|
|
1250
|
+
interface DecodedOraclePack {
|
|
1251
|
+
referenceTick: bigint;
|
|
1252
|
+
lockMode: bigint;
|
|
1253
|
+
spotEMA: bigint;
|
|
1254
|
+
fastEMA: bigint;
|
|
1255
|
+
slowEMA: bigint;
|
|
1256
|
+
eonsEMA: bigint;
|
|
1257
|
+
epoch: bigint;
|
|
1258
|
+
timestamp: bigint;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Decode the 24-bit epoch stored at bits 232..255 of OraclePack.
|
|
1262
|
+
*
|
|
1263
|
+
* The packed timestamp is modulo 2^30 seconds and only identifies an absolute
|
|
1264
|
+
* Unix timestamp within the wrap window containing `blockTimestamp`. Supplying
|
|
1265
|
+
* the relevant block timestamp resolves it to the latest matching epoch at or
|
|
1266
|
+
* before that block, including across the epoch counter wraparound.
|
|
1267
|
+
*/
|
|
1268
|
+
declare function decodeOracleTiming(oraclePack: bigint, blockTimestamp: bigint): OracleTiming;
|
|
1269
|
+
/** Decode the fixed-width ticks and guardian state stored in OraclePack. */
|
|
1270
|
+
declare function decodeOraclePack(oraclePack: bigint, blockTimestamp: bigint): DecodedOraclePack;
|
|
1271
|
+
/** Return the contract's modulo-2^24 64-second epoch for a block timestamp. */
|
|
1272
|
+
declare function oracleEpochAt(timestamp: bigint): bigint;
|
|
1273
|
+
|
|
1573
1274
|
//#endregion
|
|
1574
1275
|
//#region src/panoptic/v2/writes/utils.d.ts
|
|
1575
1276
|
/**
|
|
@@ -3270,11 +2971,103 @@ interface TokenFlow$1 {
|
|
|
3270
2971
|
/** Pool tick after the operation */
|
|
3271
2972
|
tickAfter: bigint | null;
|
|
3272
2973
|
}
|
|
2974
|
+
/**
|
|
2975
|
+
* Parameters for simulateWithTokenFlow.
|
|
2976
|
+
*/
|
|
2977
|
+
interface SimulateWithTokenFlowParams {
|
|
2978
|
+
/** viem public client */
|
|
2979
|
+
client: PublicClient;
|
|
2980
|
+
/** PanopticPool address */
|
|
2981
|
+
poolAddress: Address;
|
|
2982
|
+
/** User address whose collateral changes we're measuring */
|
|
2983
|
+
user: Address;
|
|
2984
|
+
/** Encoded call data (typically dispatch) */
|
|
2985
|
+
callData: Hex;
|
|
2986
|
+
/** Optional block number for simulation */
|
|
2987
|
+
blockNumber?: bigint;
|
|
2988
|
+
/**
|
|
2989
|
+
* Optional additional encoded calls to append after the 5-call pattern.
|
|
2990
|
+
* These execute post-dispatch within the same multicall (same state).
|
|
2991
|
+
* Raw encoded bytes are returned in `postCallResults`.
|
|
2992
|
+
*/
|
|
2993
|
+
postCallData?: Hex[];
|
|
2994
|
+
/**
|
|
2995
|
+
* Optional additional encoded calls to insert between the pre-dispatch
|
|
2996
|
+
* `getAssetsOf` / `getCurrentTick` and the target call. These execute
|
|
2997
|
+
* pre-dispatch within the same multicall — useful for reading per-position
|
|
2998
|
+
* data (e.g. `getFullPositionsData`) against the original `positionIdList`
|
|
2999
|
+
* before state mutates. Raw encoded bytes are returned in `preCallResults`.
|
|
3000
|
+
*/
|
|
3001
|
+
preCallData?: Hex[];
|
|
3002
|
+
}
|
|
3003
|
+
/**
|
|
3004
|
+
* Result of simulateWithTokenFlow.
|
|
3005
|
+
*/
|
|
3006
|
+
interface SimulateWithTokenFlowResult {
|
|
3007
|
+
/** Whether the simulation succeeded */
|
|
3008
|
+
success: boolean;
|
|
3009
|
+
/** Token flow data (only if success) */
|
|
3010
|
+
tokenFlow?: TokenFlow$1;
|
|
3011
|
+
/** Error message (only if failed) */
|
|
3012
|
+
error?: string;
|
|
3013
|
+
/** Raw error object preserving viem cause chain and revert data */
|
|
3014
|
+
rawError?: Error;
|
|
3015
|
+
/** Gas estimate for the inner call */
|
|
3016
|
+
gasEstimate: bigint;
|
|
3017
|
+
/** Raw results from postCallData entries (only if success and postCallData was provided) */
|
|
3018
|
+
postCallResults?: Hex[];
|
|
3019
|
+
/** Raw results from preCallData entries (only if success and preCallData was provided) */
|
|
3020
|
+
preCallResults?: Hex[];
|
|
3021
|
+
}
|
|
3022
|
+
/**
|
|
3023
|
+
* Simulate a contract call and measure token flow using PanopticPool.multicall.
|
|
3024
|
+
*
|
|
3025
|
+
* This function uses PanopticPool's inherited multicall (delegatecall-based) to chain:
|
|
3026
|
+
* 1. getAssetsOf(user) - read collateral assets before
|
|
3027
|
+
* 2. getCurrentTick() - read pool tick before
|
|
3028
|
+
* 3. Execute the target call (e.g., dispatch)
|
|
3029
|
+
* 4. getCurrentTick() - read pool tick after
|
|
3030
|
+
* 5. getAssetsOf(user) - read collateral assets after
|
|
3031
|
+
*
|
|
3032
|
+
* ## Why PanopticPool.multicall instead of Multicall3?
|
|
3033
|
+
* - Measures **collateral assets** (shares → underlying), not raw wallet balances
|
|
3034
|
+
* - Uses **delegatecall**, preserving msg.sender throughout the chain
|
|
3035
|
+
* - Single contract interaction with PanopticPool
|
|
3036
|
+
* - Correctly reflects what happens during position operations
|
|
3037
|
+
*
|
|
3038
|
+
* ## Same-Block Guarantee
|
|
3039
|
+
* All operations execute within a single eth_call, ensuring atomic consistency.
|
|
3040
|
+
*
|
|
3041
|
+
* @param params - Simulation parameters
|
|
3042
|
+
* @returns Token flow result
|
|
3043
|
+
*
|
|
3044
|
+
* @example
|
|
3045
|
+
* ```typescript
|
|
3046
|
+
* const callData = encodeFunctionData({
|
|
3047
|
+
* abi: panopticPoolV2Abi,
|
|
3048
|
+
* functionName: 'dispatch',
|
|
3049
|
+
* args: [positionIdList, finalPositionIdList, positionSizes, tickAndSpreadLimits, false, 0n],
|
|
3050
|
+
* })
|
|
3051
|
+
*
|
|
3052
|
+
* const result = await simulateWithTokenFlow({
|
|
3053
|
+
* client,
|
|
3054
|
+
* poolAddress,
|
|
3055
|
+
* user: userAddress,
|
|
3056
|
+
* callData,
|
|
3057
|
+
* })
|
|
3058
|
+
*
|
|
3059
|
+
* if (result.success) {
|
|
3060
|
+
* console.log('Token 0 change:', result.tokenFlow.delta0)
|
|
3061
|
+
* console.log('Token 1 change:', result.tokenFlow.delta1)
|
|
3062
|
+
* }
|
|
3063
|
+
* ```
|
|
3064
|
+
*/
|
|
3065
|
+
declare function simulateWithTokenFlow(params: SimulateWithTokenFlowParams): Promise<SimulateWithTokenFlowResult>;
|
|
3273
3066
|
|
|
3274
3067
|
//#endregion
|
|
3275
3068
|
//#region src/panoptic/v2/reads/collateralEstimate.d.ts
|
|
3276
3069
|
/**
|
|
3277
|
-
* Parameters for
|
|
3070
|
+
* Parameters for getting pool tokens.
|
|
3278
3071
|
*/
|
|
3279
3072
|
/**
|
|
3280
3073
|
* Collateral estimate result.
|
|
@@ -3593,13 +3386,13 @@ interface FlowNeutralTokenId {
|
|
|
3593
3386
|
*/
|
|
3594
3387
|
neutralLegs: NeutralLeg[];
|
|
3595
3388
|
/** The BASE position's net-flow measurement (what the legs offset). */
|
|
3596
|
-
originalCredit
|
|
3389
|
+
originalCredit?: RequiredCreditForITM;
|
|
3597
3390
|
/**
|
|
3598
3391
|
* The COMBINED (neutralized) position's actual token flow under the mint's swap,
|
|
3599
3392
|
* from a verify re-measurement. Use this for the Account-Balances display and to
|
|
3600
3393
|
* gate the mint — its `delta0/delta1` are the residual net transfer (≈ dust).
|
|
3601
3394
|
*/
|
|
3602
|
-
neutralizedTokenFlow
|
|
3395
|
+
neutralizedTokenFlow?: TokenFlow$1;
|
|
3603
3396
|
/** Block metadata */
|
|
3604
3397
|
_meta: BlockMeta;
|
|
3605
3398
|
}
|
|
@@ -3707,6 +3500,177 @@ declare function getMaxRedeem(params: GetMaxRedeemParams): Promise<{
|
|
|
3707
3500
|
_meta: BlockMeta;
|
|
3708
3501
|
}>;
|
|
3709
3502
|
|
|
3503
|
+
//#endregion
|
|
3504
|
+
//#region src/panoptic/v2/reads/collateralBreakdown.d.ts
|
|
3505
|
+
/**
|
|
3506
|
+
* How the RiskEngine treats a group of one or two legs for collateral purposes.
|
|
3507
|
+
*
|
|
3508
|
+
* Every value maps to a real branch of the contract. Two caveats, both
|
|
3509
|
+
* deliberate:
|
|
3510
|
+
*
|
|
3511
|
+
* - `straddle` and `strangle` are ONE branch on-chain (`_computeStrangle`). They
|
|
3512
|
+
* are split here only because traders name them differently; they must share a
|
|
3513
|
+
* collateral-rule explanation, because they share a formula.
|
|
3514
|
+
* - `shortCall`/`shortPut` and `longCall`/`longPut` are presentation splits of
|
|
3515
|
+
* the single `_getRequiredCollateralSingleLegNoPartner` path.
|
|
3516
|
+
*/
|
|
3517
|
+
type CollateralStrategyKind = /** Unpartnered short call — sold, collateralized at the seller ratio. */
|
|
3518
|
+
'shortCall'
|
|
3519
|
+
/** Unpartnered short put. */ | 'shortPut'
|
|
3520
|
+
/** Unpartnered long call — bought, collateralized at the buyer ratio. */ | 'longCall'
|
|
3521
|
+
/** Unpartnered long put. */ | 'longPut'
|
|
3522
|
+
/** width=0 short leg: borrows the notional. Requires 100% + maintenance margin. */ | 'loan'
|
|
3523
|
+
/** width=0 long leg: lends the notional. Requires 0 on its own. */ | 'credit'
|
|
3524
|
+
/** Two short options, different tokenTypes, different strikes. */ | 'strangle'
|
|
3525
|
+
/** Two short options, different tokenTypes, the same strike. */ | 'straddle'
|
|
3526
|
+
/** Long + short, different tokenTypes, the SAME strike — the short leg only. */ | 'synthetic'
|
|
3527
|
+
/** Long + short, same tokenType — defined risk, charged at max loss. */ | 'spread'
|
|
3528
|
+
/** Long option funded by a credit — `max(long - credit, 1)`. */ | 'prepaidLongOption'
|
|
3529
|
+
/** Short option funded by a credit — `max(short - credit, 1)`. */ | 'cashSecuredOption'
|
|
3530
|
+
/** Long option paired with a loan — `max(loan, option)`. */ | 'optionProtectedLoan'
|
|
3531
|
+
/** Short option paired with a loan — `max(loan, option)`. */ | 'upfrontShortOption'
|
|
3532
|
+
/**
|
|
3533
|
+
* A leg naming a partner the contract does not recognize as a strategy —
|
|
3534
|
+
* mismatched asset or optionRatio, or a pairing outside the allowed list.
|
|
3535
|
+
* The contract silently falls back to charging each leg standalone, so this is
|
|
3536
|
+
* the one kind a trader most needs told: the intended netting did NOT apply.
|
|
3537
|
+
*/ | 'unrecognizedPair';
|
|
3538
|
+
/**
|
|
3539
|
+
* Collapse presentation-only distinctions to the kind that owns the collateral
|
|
3540
|
+
* rule. Use this to look up a formula/explanation; use the raw kind to label.
|
|
3541
|
+
*
|
|
3542
|
+
* @param kind - The classified kind
|
|
3543
|
+
* @returns The kind whose rule governs it (itself, unless it is an alias)
|
|
3544
|
+
*/
|
|
3545
|
+
declare function collateralRuleKindFor(kind: CollateralStrategyKind): CollateralStrategyKind;
|
|
3546
|
+
/** One classified group of legs: either a recognized pair, or a single leg. */
|
|
3547
|
+
interface StrategyGroup {
|
|
3548
|
+
/** How the RiskEngine treats this group. */
|
|
3549
|
+
kind: CollateralStrategyKind;
|
|
3550
|
+
/** Leg indices in the group, ascending. One entry, or two for a paired kind. */
|
|
3551
|
+
legIndices: bigint[];
|
|
3552
|
+
/**
|
|
3553
|
+
* The leg the contract actually charges, when only one of a pair carries the
|
|
3554
|
+
* requirement (spread charges the long leg, synthetic the short leg, the
|
|
3555
|
+
* composites the option leg). `null` when every leg in the group is charged —
|
|
3556
|
+
* standalone legs, and strangles/straddles, where each leg pays a reduced half.
|
|
3557
|
+
*/
|
|
3558
|
+
chargedLegIndex: bigint | null;
|
|
3559
|
+
}
|
|
3560
|
+
/**
|
|
3561
|
+
* Classify a tokenId's legs into the groups the RiskEngine charges.
|
|
3562
|
+
*
|
|
3563
|
+
* Mirrors `RiskEngine._getRequiredCollateralSingleLegPartner`: a leg is paired
|
|
3564
|
+
* only if its partner is a different leg, the partnership is mutual, the two
|
|
3565
|
+
* share an `asset` and `optionRatio`, AND the (width, isLong, tokenType, strike)
|
|
3566
|
+
* combination is one the contract recognizes. Anything else degrades to
|
|
3567
|
+
* standalone treatment — reported as `unrecognizedPair` so it is visible rather
|
|
3568
|
+
* than silent.
|
|
3569
|
+
*
|
|
3570
|
+
* @param tokenId - The position to classify
|
|
3571
|
+
* @returns One group per charged unit, in ascending leg order
|
|
3572
|
+
*/
|
|
3573
|
+
declare function classifyStrategyGroups(tokenId: bigint): StrategyGroup[];
|
|
3574
|
+
/**
|
|
3575
|
+
* Rebuild a group as a standalone tokenId on the same pool, so it can be priced
|
|
3576
|
+
* on its own.
|
|
3577
|
+
*
|
|
3578
|
+
* Legs are re-indexed to `0..n-1` and `riskPartner` is remapped to stay
|
|
3579
|
+
* self-consistent — otherwise an isolated leg would point at an index that no
|
|
3580
|
+
* longer exists and the contract would reject the tokenId.
|
|
3581
|
+
*
|
|
3582
|
+
* @param tokenId - The full position (supplies the poolId and leg data)
|
|
3583
|
+
* @param legIndices - Indices of the legs to isolate
|
|
3584
|
+
* @returns A valid tokenId containing only those legs
|
|
3585
|
+
*/
|
|
3586
|
+
declare function isolateGroupTokenId(tokenId: bigint, legIndices: bigint[]): bigint;
|
|
3587
|
+
/** A classified group plus its share of the requirement. */
|
|
3588
|
+
interface StrategyAllocation extends StrategyGroup {
|
|
3589
|
+
/**
|
|
3590
|
+
* The group priced in isolation, in token0 units, scaled to `positionSize`.
|
|
3591
|
+
* `null` when that pricing failed (reverted or returned the sentinel).
|
|
3592
|
+
*/
|
|
3593
|
+
isolatedRequired0: bigint | null;
|
|
3594
|
+
/**
|
|
3595
|
+
* This group's share of the AUTHORITATIVE total, apportioned by
|
|
3596
|
+
* `isolatedRequired0`. `null` when this group could not be priced, or when no
|
|
3597
|
+
* group could — in which case the total is reported without a split rather
|
|
3598
|
+
* than with a fabricated one.
|
|
3599
|
+
*/
|
|
3600
|
+
allocated: bigint | null;
|
|
3601
|
+
}
|
|
3602
|
+
/** Parameters for {@link estimateCollateralBreakdown}. */
|
|
3603
|
+
interface EstimateCollateralBreakdownParams {
|
|
3604
|
+
/** Minimal viem client surface used by this read. */
|
|
3605
|
+
client: Pick<PublicClient, 'getBlock' | 'getBlockNumber' | 'multicall'>;
|
|
3606
|
+
/** PanopticPool address */
|
|
3607
|
+
poolAddress: Address;
|
|
3608
|
+
/** PanopticQuery address (holds `getRequiredBase`) */
|
|
3609
|
+
queryAddress: Address;
|
|
3610
|
+
/** The position being explained */
|
|
3611
|
+
tokenId: bigint;
|
|
3612
|
+
/** Position size (number of contracts) */
|
|
3613
|
+
positionSize: bigint;
|
|
3614
|
+
/**
|
|
3615
|
+
* The authoritative requirement to apportion, in token0 units — the figure the
|
|
3616
|
+
* UI already displays, from the simulation or from `getRequiredBase` on the
|
|
3617
|
+
* whole position. Omit to report classification and isolated prices only.
|
|
3618
|
+
*/
|
|
3619
|
+
authoritativeRequired0?: bigint;
|
|
3620
|
+
/** Tick to price at. Defaults to the pool's current tick. */
|
|
3621
|
+
atTick?: bigint;
|
|
3622
|
+
/** Optional block number, pinning every group to one block */
|
|
3623
|
+
blockNumber?: bigint;
|
|
3624
|
+
/** Optional pre-fetched block metadata */
|
|
3625
|
+
_meta?: BlockMeta;
|
|
3626
|
+
}
|
|
3627
|
+
/** Result of {@link estimateCollateralBreakdown}. */
|
|
3628
|
+
interface CollateralBreakdown {
|
|
3629
|
+
/** One entry per charged group, in ascending leg order. */
|
|
3630
|
+
allocations: StrategyAllocation[];
|
|
3631
|
+
/** The total that was apportioned, echoed back. `null` if none was supplied. */
|
|
3632
|
+
authoritativeRequired0: bigint | null;
|
|
3633
|
+
/**
|
|
3634
|
+
* True when at least one group could not be priced, so the split covers less
|
|
3635
|
+
* than the whole position. The total remains authoritative either way — the
|
|
3636
|
+
* UI must say the breakdown is partial rather than imply the rest is free.
|
|
3637
|
+
*/
|
|
3638
|
+
partial: boolean;
|
|
3639
|
+
/** Block metadata */
|
|
3640
|
+
_meta: BlockMeta;
|
|
3641
|
+
}
|
|
3642
|
+
/**
|
|
3643
|
+
* Classify a position and estimate how its collateral requirement splits across
|
|
3644
|
+
* the strategies the RiskEngine recognizes.
|
|
3645
|
+
*
|
|
3646
|
+
* Every group is priced in ONE multicall, at one tick and one block, so the
|
|
3647
|
+
* weights are mutually consistent. A group that reverts or returns the
|
|
3648
|
+
* `getRequiredBase` error sentinel is dropped from the apportionment (and flips
|
|
3649
|
+
* `partial`) rather than being scaled from a garbage value.
|
|
3650
|
+
*
|
|
3651
|
+
* The apportionment preserves the total exactly: shares are floor-divided and
|
|
3652
|
+
* the rounding residue is given to the last priced group, so the allocations sum
|
|
3653
|
+
* to `authoritativeRequired0` with no bigint dust.
|
|
3654
|
+
*
|
|
3655
|
+
* @param params - The parameters
|
|
3656
|
+
* @returns The classified groups with their estimated allocations
|
|
3657
|
+
*/
|
|
3658
|
+
declare function estimateCollateralBreakdown(params: EstimateCollateralBreakdownParams): Promise<CollateralBreakdown>;
|
|
3659
|
+
/**
|
|
3660
|
+
* Split `total` across the priced groups in proportion to their isolated
|
|
3661
|
+
* requirements, giving the rounding residue to the last priced group so the
|
|
3662
|
+
* parts sum to the whole exactly.
|
|
3663
|
+
*
|
|
3664
|
+
* Exported for testing; the allocation is pure and worth pinning independently
|
|
3665
|
+
* of the RPC layer.
|
|
3666
|
+
*
|
|
3667
|
+
* @param groups - The classified groups
|
|
3668
|
+
* @param isolated - Per-group isolated price, `null` where pricing failed
|
|
3669
|
+
* @param total - The authoritative total to apportion, or `null` for none
|
|
3670
|
+
* @returns Allocations aligned 1:1 with `groups`
|
|
3671
|
+
*/
|
|
3672
|
+
declare function apportion(groups: StrategyGroup[], isolated: (bigint | null)[], total: bigint | null): StrategyAllocation[];
|
|
3673
|
+
|
|
3710
3674
|
//#endregion
|
|
3711
3675
|
//#region src/panoptic/v2/reads/checks.d.ts
|
|
3712
3676
|
/**
|
|
@@ -4311,6 +4275,56 @@ interface AccountGreeksCurveResult {
|
|
|
4311
4275
|
*/
|
|
4312
4276
|
declare function calculateAccountGreeksPure(params: CalculateAccountGreeksPureParams): AccountGreeksCurveResult;
|
|
4313
4277
|
|
|
4278
|
+
//#endregion
|
|
4279
|
+
//#region src/panoptic/v2/reads/mintBuffer.d.ts
|
|
4280
|
+
/**
|
|
4281
|
+
* `RiskEngine.BP_DECREASE_BUFFER` — the numerator of the mint-time buffer.
|
|
4282
|
+
*
|
|
4283
|
+
* Exported so callers can display the constant; prefer {@link applyMintBuffer}
|
|
4284
|
+
* over multiplying by it directly, which is how the rounding bug reappears.
|
|
4285
|
+
*/
|
|
4286
|
+
declare const MINT_BUFFER = 10666667n;
|
|
4287
|
+
/** `RiskEngine.DECIMALS` — the denominator {@link MINT_BUFFER} is taken over. */
|
|
4288
|
+
declare const MINT_BUFFER_DENOMINATOR = 10000000n;
|
|
4289
|
+
/** The compiled-in default, matching the deployed RiskEngine. */
|
|
4290
|
+
declare const DEFAULT_MINT_BUFFER: MintBufferRatio;
|
|
4291
|
+
/**
|
|
4292
|
+
* Apply the mint buffer to ONE token's NATIVE requirement, rounding up exactly
|
|
4293
|
+
* as `Math.mulDivRoundingUp` does on-chain.
|
|
4294
|
+
*
|
|
4295
|
+
* Call this on the native token0/token1 requirement, never on a quote-converted
|
|
4296
|
+
* total — see the module docstring for why the order matters.
|
|
4297
|
+
*
|
|
4298
|
+
* @param required - Maintenance requirement in that token's own units
|
|
4299
|
+
* @param buffer - Optional live on-chain ratio; defaults to {@link DEFAULT_MINT_BUFFER}
|
|
4300
|
+
* @returns The mint-time requirement the solvency check enforces
|
|
4301
|
+
*/
|
|
4302
|
+
declare function applyMintBuffer(required: bigint, buffer?: MintBufferRatio): bigint;
|
|
4303
|
+
/**
|
|
4304
|
+
* Apply the mint buffer to both tokens' NATIVE requirements, independently.
|
|
4305
|
+
*
|
|
4306
|
+
* This is the shape the solvency check itself uses: two separate per-side
|
|
4307
|
+
* comparisons, never a pooled total.
|
|
4308
|
+
*
|
|
4309
|
+
* @param required0 - Maintenance requirement in token0 units
|
|
4310
|
+
* @param required1 - Maintenance requirement in token1 units
|
|
4311
|
+
* @param buffer - Optional live on-chain ratio
|
|
4312
|
+
* @returns `[buffered0, buffered1]`
|
|
4313
|
+
*/
|
|
4314
|
+
declare function applyMintBufferPerToken(required0: bigint, required1: bigint, buffer?: MintBufferRatio): [bigint, bigint];
|
|
4315
|
+
/**
|
|
4316
|
+
* Collateral still deployable on one side before the mint solvency check fails:
|
|
4317
|
+
* `balance - bufferedRequired`, floored at zero.
|
|
4318
|
+
*
|
|
4319
|
+
* Both arguments must be in the SAME token's units.
|
|
4320
|
+
*
|
|
4321
|
+
* @param balance - That side's collateral balance
|
|
4322
|
+
* @param required - That side's maintenance requirement (unbuffered)
|
|
4323
|
+
* @param buffer - Optional live on-chain ratio
|
|
4324
|
+
* @returns Mintable headroom, never negative
|
|
4325
|
+
*/
|
|
4326
|
+
declare function mintableAfterBuffer(balance: bigint, required: bigint, buffer?: MintBufferRatio): bigint;
|
|
4327
|
+
|
|
4314
4328
|
//#endregion
|
|
4315
4329
|
//#region src/panoptic/v2/reads/margin.d.ts
|
|
4316
4330
|
/**
|
|
@@ -4339,6 +4353,8 @@ interface GetMarginBufferParams {
|
|
|
4339
4353
|
blockNumber?: bigint;
|
|
4340
4354
|
/** Optional pre-fetched block metadata (skips getBlockMeta RPC call) */
|
|
4341
4355
|
_meta?: BlockMeta;
|
|
4356
|
+
/** Optional live mint buffer returned by getRiskParameters. */
|
|
4357
|
+
mintBuffer?: MintBufferRatio;
|
|
4342
4358
|
}
|
|
4343
4359
|
/**
|
|
4344
4360
|
* Margin buffer result with distance-to-liquidation.
|
|
@@ -6218,12 +6234,13 @@ declare function cleanupStalePendingPositions(params: GetPendingPositionsParams,
|
|
|
6218
6234
|
|
|
6219
6235
|
//#endregion
|
|
6220
6236
|
//#region src/panoptic/v2/sync/eventReconstruction.d.ts
|
|
6237
|
+
type EventReconstructionClient = Pick<PublicClient, 'getBlock' | 'getLogs'>;
|
|
6221
6238
|
/**
|
|
6222
6239
|
* Parameters for event reconstruction.
|
|
6223
6240
|
*/
|
|
6224
6241
|
interface EventReconstructionParams {
|
|
6225
6242
|
/** viem public client */
|
|
6226
|
-
client:
|
|
6243
|
+
client: EventReconstructionClient;
|
|
6227
6244
|
/** Pool address */
|
|
6228
6245
|
poolAddress: Address;
|
|
6229
6246
|
/** Account to reconstruct positions for */
|
|
@@ -7268,6 +7285,38 @@ declare function cancelTransaction(params: CancelParams): Promise<TxResult>;
|
|
|
7268
7285
|
|
|
7269
7286
|
//#endregion
|
|
7270
7287
|
//#region src/panoptic/v2/writes/swap.d.ts
|
|
7288
|
+
/**
|
|
7289
|
+
* Parameters for building an atomic credit swap call.
|
|
7290
|
+
*
|
|
7291
|
+
* `tokenIndex` is tokenOut for exact-out swaps and tokenIn for exact-in swaps.
|
|
7292
|
+
* Passing the counter-token reverses the intended swap direction.
|
|
7293
|
+
*/
|
|
7294
|
+
type CreditSwapCallParams = {
|
|
7295
|
+
poolAddress: Address;
|
|
7296
|
+
poolId: bigint;
|
|
7297
|
+
currentTick: bigint;
|
|
7298
|
+
tickSpacing: bigint;
|
|
7299
|
+
existingPositionIds: bigint[];
|
|
7300
|
+
tokenIndex: bigint;
|
|
7301
|
+
slippageBps: bigint;
|
|
7302
|
+
builderCode?: bigint;
|
|
7303
|
+
} & ({
|
|
7304
|
+
kind: 'exactIn';
|
|
7305
|
+
amountIn: bigint;
|
|
7306
|
+
} | {
|
|
7307
|
+
kind: 'exactOut';
|
|
7308
|
+
amountOut: bigint;
|
|
7309
|
+
});
|
|
7310
|
+
/** Encoded atomic credit mint/burn dispatch and its derived credit position. */
|
|
7311
|
+
interface CreditSwapCall {
|
|
7312
|
+
to: Address;
|
|
7313
|
+
data: Hex;
|
|
7314
|
+
creditTokenId: bigint;
|
|
7315
|
+
adjustedSize: bigint;
|
|
7316
|
+
args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly (readonly [number, number, number])[], boolean, bigint];
|
|
7317
|
+
}
|
|
7318
|
+
/** Build an atomic credit mint/burn swap without fetching or sending anything. */
|
|
7319
|
+
declare function buildCreditSwapCall(params: CreditSwapCallParams): CreditSwapCall;
|
|
7271
7320
|
/**
|
|
7272
7321
|
* Parameters for swapExactOut.
|
|
7273
7322
|
*/
|
|
@@ -8488,10 +8537,12 @@ type CreditWrapDirection = 'exact-in' | 'exact-out';
|
|
|
8488
8537
|
*
|
|
8489
8538
|
* - `straddle`: mint first, user ops, burn last. Required for `exact-out`, where
|
|
8490
8539
|
* the sourced token must be available while the user's ops run.
|
|
8491
|
-
* - `
|
|
8492
|
-
*
|
|
8540
|
+
* - `prepend`: both legs before the user's ops. Used by bootstrap recovery when
|
|
8541
|
+
* the account can sell one collateral token but holds none of the token it needs.
|
|
8542
|
+
* - `append`: both legs after the user's ops, for flows where the token being
|
|
8543
|
+
* sold does not exist until those operations run.
|
|
8493
8544
|
*/
|
|
8494
|
-
type CreditWrapPlacement = 'append' | 'straddle';
|
|
8545
|
+
type CreditWrapPlacement = 'append' | 'prepend' | 'straddle';
|
|
8495
8546
|
interface BuildCreditWrappedDispatchParams {
|
|
8496
8547
|
dispatch: DispatchIntent;
|
|
8497
8548
|
/** The temporary width=0 credit leg. */
|
|
@@ -8639,9 +8690,8 @@ interface TokenShortfallRecoveryQuoteParams {
|
|
|
8639
8690
|
*/
|
|
8640
8691
|
slippageBps: bigint;
|
|
8641
8692
|
/**
|
|
8642
|
-
* Price bound for the temporary credit legs. Defaults to
|
|
8643
|
-
*
|
|
8644
|
-
* price band, and the user's own operations keep their own limits.
|
|
8693
|
+
* Price bound for the temporary credit legs. Defaults to a slippage-bounded
|
|
8694
|
+
* range around the pool's current tick.
|
|
8645
8695
|
*/
|
|
8646
8696
|
tickLimitLow?: bigint;
|
|
8647
8697
|
/** See {@link TokenShortfallRecoveryQuoteParams.tickLimitLow}. */
|
|
@@ -8651,6 +8701,8 @@ interface TokenShortfallRecoveryQuoteParams {
|
|
|
8651
8701
|
interface TokenShortfallRecoveryQuote {
|
|
8652
8702
|
tokenIn: Address;
|
|
8653
8703
|
tokenOut: Address;
|
|
8704
|
+
/** Swap construction used by the temporary credit wrapper. */
|
|
8705
|
+
direction: CreditWrapDirection;
|
|
8654
8706
|
/**
|
|
8655
8707
|
* Exact amount of `tokenOut` the temporary credit sources. Covers the whole
|
|
8656
8708
|
* dispatch, not just the first charge that reverted — a batch charges
|
|
@@ -8658,6 +8710,8 @@ interface TokenShortfallRecoveryQuote {
|
|
|
8658
8710
|
* than the `assetsRequested - assetBalance` of the first failure.
|
|
8659
8711
|
*/
|
|
8660
8712
|
amountOut: bigint;
|
|
8713
|
+
/** Output measured for the temporary swap alone. May exceed `amountOut` for exact-in. */
|
|
8714
|
+
estimatedAmountOut: bigint;
|
|
8661
8715
|
estimatedAmountIn: bigint;
|
|
8662
8716
|
maximumAmountIn: bigint;
|
|
8663
8717
|
slippageBps: bigint;
|
|
@@ -9702,5 +9756,5 @@ declare function isNonceError(error: unknown): boolean;
|
|
|
9702
9756
|
declare function isGasError(error: unknown): boolean;
|
|
9703
9757
|
|
|
9704
9758
|
//#endregion
|
|
9705
|
-
export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BPS_DENOMINATOR as BPS_DENOMINATOR$1, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildCreditWrappedDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate$1 as CollateralEstimate, CollateralSharePriceData, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_MIN_SWAP_RATIO_BPS as DEFAULT_MIN_SWAP_RATIO_BPS$1, DEFAULT_RECONNECT_CONFIG as DEFAULT_RECONNECT_CONFIG$1, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositParams, DepositTooLargeError, DetectReorgParams, DispatchCalldata, DispatchIntent, DispatchParams, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LengthMismatchError, LiquidateParams, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MAX_TICK as MAX_TICK$1, MAX_TRACKED_CHUNKS as MAX_TRACKED_CHUNKS$1, MIN_TICK as MIN_TICK$1, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS as ORACLE_EPOCH_SECONDS$1, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OptimizeTokenIdRiskPartnersParams, OracleRateLimitedError, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, PoolFormatterConfig, PoolFormatters, PoolLiquidities, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QuoteSfpmSwapParams, REORG_DEPTH as REORG_DEPTH$1, REQUIRED_BASE_ERROR_SENTINEL as REQUIRED_BASE_ERROR_SENTINEL$1, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION as SCHEMA_VERSION$1, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX as STORAGE_PREFIX$1, SafeModeError, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, Timescale, TokenCollateral, TokenIdBuilder, TokenIdHasZeroLegsError, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, UTILIZATION_DENOMINATOR as UTILIZATION_DENOMINATOR$1, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD as WAD$1, WatchEventsParams, WithdrawParams, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL as ZERO_COLLATERAL$1, ZERO_VALUATION as ZERO_VALUATION$1, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition as addPendingPosition$1, addTrackedChunks as addTrackedChunks$1, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditWrappedDispatch as buildCreditWrappedDispatch$1, buildOpenPositionCalldata, buildSfpmSwapCalldata as buildSfpmSwapCalldata$1, buildSfpmSwapPlan as buildSfpmSwapPlan$1, buildTokenShortfallRecoveryDispatch as buildTokenShortfallRecoveryDispatch$1, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure as calculateAccountGreeksPure$1, calculateResyncBlock, calculateSpreadWad as calculateSpreadWad$1, cancelTransaction, checkApproval, checkCollateralAcrossTicks as checkCollateralAcrossTicks$1, cleanupStalePendingPositions as cleanupStalePendingPositions$1, clearCheckpoint, clearPendingPositions as clearPendingPositions$1, clearTrackedChunks as clearTrackedChunks$1, clearTrackedPositions, clearTradeHistory as clearTradeHistory$1, closePosition, closePositionAndWait, computeV4PoolId as computeV4PoolId$1, confirmPendingPosition as confirmPendingPosition$1, convertToAssets as convertToAssets$1, convertToShares as convertToShares$1, countLegs, createEventPoller as createEventPoller$1, createEventSubscription as createEventSubscription$1, createFileStorage, createFlowNeutralTokenId as createFlowNeutralTokenId$1, createMemoryStorage, createNonceManager, createPoolFormatters as createPoolFormatters$1, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI as decodePanopticTokenURI$1, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes as encodePoolKeyBytes$1, encodeV3PoolKeyBytes as encodeV3PoolKeyBytes$1, encodeV4PoolId, ensureSfpmV3PoolInitialized as ensureSfpmV3PoolInitialized$1, estimateBlockNumbers as estimateBlockNumbers$1, estimateCollateralRequired as estimateCollateralRequired$1, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition as failPendingPosition$1, feesFromFeeGrowthDelta as feesFromFeeGrowthDelta$1, fetchSfpmV3PoolId as fetchSfpmV3PoolId$1, forceExercise, forceExerciseAndWait, formatBlockNumber as formatBlockNumber$1, formatBps as formatBps$1, formatCompact as formatCompact$1, formatDatetime as formatDatetime$1, formatDuration as formatDuration$1, formatDurationSeconds as formatDurationSeconds$1, formatFeeTier as formatFeeTier$1, formatGas as formatGas$1, formatGwei as formatGwei$1, formatPoolIdHex as formatPoolIdHex$1, formatRateWad, formatRatioPercent as formatRatioPercent$1, formatTimestamp as formatTimestamp$1, formatTimestampLocale as formatTimestampLocale$1, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex as formatTokenIdHex$1, formatTokenIdShort as formatTokenIdShort$1, formatTxHash as formatTxHash$1, formatUtilization as formatUtilization$1, formatWad, formatWadPercent, formatWadSigned, formatWei as formatWei$1, getAccountBuyingPower as getAccountBuyingPower$1, getAccountCollateral, getAccountGreeks as getAccountGreeks$1, getAccountHistory as getAccountHistory$1, getAccountPremia as getAccountPremia$1, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities as getChunkLiquidities$1, getChunkSpreads as getChunkSpreads$1, getClosedPositions as getClosedPositions$1, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices as getCollateralSharePrices$1, getCollateralTotalAssetsBatch as getCollateralTotalAssetsBatch$1, getCurrentRates, getDeltaHedgeParams as getDeltaHedgeParams$1, getEnforcedTickLimits as getEnforcedTickLimits$1, getFactoryConstructMetadata as getFactoryConstructMetadata$1, getFactoryOwnerOf as getFactoryOwnerOf$1, getFactoryTokenURI as getFactoryTokenURI$1, getGuardianUnlockState as getGuardianUnlockState$1, getInterestState, getItmAmounts as getItmAmounts$1, getLiquidationPrices, getMarginBuffer as getMarginBuffer$1, getMaxPositionSize as getMaxPositionSize$1, getMaxRedeem as getMaxRedeem$1, getMaxWithdrawable as getMaxWithdrawable$1, getNativeTokenPrice as getNativeTokenPrice$1, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError as getNotEnoughTokensError$1, getOpenPositionIds, getOpenPositionPreview as getOpenPositionPreview$1, getPanopticPoolAddress as getPanopticPoolAddress$1, getPanopticPoolFromPoolId as getPanopticPoolFromPoolId$1, getPendingPositions as getPendingPositions$1, getPendingPositionsKey, getPoolDeploymentBlock as getPoolDeploymentBlock$1, getPoolDisplayId as getPoolDisplayId$1, getPoolLiquidities as getPoolLiquidities$1, getPoolMetaKey, getPoolPrefix, getPortfolioValue as getPortfolioValue$1, getPosition, getPositionChunkData as getPositionChunkData$1, getPositionEnrichmentData as getPositionEnrichmentData$1, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia as getPositionsWithPremia$1, getPriceHistory as getPriceHistory$1, getRealizedPnL as getRealizedPnL$1, getRequiredCreditForITM as getRequiredCreditForITM$1, getSafeMode as getSafeMode$1, getSchemaVersionKey, getStreamiaHistory as getStreamiaHistory$1, getSyncCheckpointKey, getSyncStatus as getSyncStatus$1, getTokenListId as getTokenListId$1, getTrackedChunks as getTrackedChunks$1, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory as getTradeHistory$1, getUniswapFeeHistory as getUniswapFeeHistory$1, getUniswapV3LpPositionState as getUniswapV3LpPositionState$1, getUniswapV3PoolFromId as getUniswapV3PoolFromId$1, getUniswapV3PoolInfo as getUniswapV3PoolInfo$1, getUniswapV3PoolLiquidities as getUniswapV3PoolLiquidities$1, getUniswapV4LpPositionState as getUniswapV4LpPositionState$1, getUniswapV4PoolBasicState as getUniswapV4PoolBasicState$1, getUniswapV4PoolInfo as getUniswapV4PoolInfo$1, getUniswapV4PoolKeyFromId as getUniswapV4PoolKeyFromId$1, getUniswapV4PoolLiquidities as getUniswapV4PoolLiquidities$1, hasLoanOrCredit, hasLongLeg, interpolateBlocks as interpolateBlocks$1, isCredit, isCreditLeg, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress as minePoolAddress$1, mint, mintAndWait, multicallRead as multicallRead$1, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners as optimizeTokenIdRiskPartners$1, parseBps as parseBps$1, parseCollateralLog as parseCollateralLog$1, parsePanopticError, parsePoolLog as parsePoolLog$1, parseTokenAmount, parseTokenListId as parseTokenListId$1, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit as previewDeposit$1, previewMint as previewMint$1, previewRedeem as previewRedeem$1, previewUnwrap, previewWithdraw as previewWithdraw$1, previewWrap, publicBroadcaster, quoteOneTokenFlow as quoteOneTokenFlow$1, quoteSfpmSwap as quoteSfpmSwap$1, quoteTokenShortfallRecovery as quoteTokenShortfallRecovery$1, reconstructFromEvents as reconstructFromEvents$1, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks as removeTrackedChunks$1, repay, repayAndWait, resolveBlockNumbers as resolveBlockNumbers$1, resolvePanopticPoolFromPoolId as resolvePanopticPoolFromPoolId$1, resolveTokenIndex, resolveUniswapV4PoolKey as resolveUniswapV4PoolKey$1, rollPosition, rollPositionAndWait, saveCheckpoint, saveClosedPosition as saveClosedPosition$1, scanChunks as scanChunks$1, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch as simulateBatchDispatch$1, simulateClosePosition as simulateClosePosition$1, simulateDeployNewPool as simulateDeployNewPool$1, simulateDeposit as simulateDeposit$1, simulateDispatch as simulateDispatch$1, simulateForceExercise as simulateForceExercise$1, simulateLiquidate as simulateLiquidate$1, simulateOpenPosition, simulateSFPMBurn as simulateSFPMBurn$1, simulateSFPMMint as simulateSFPMMint$1, simulateSettle as simulateSettle$1, simulateSwapExactIn as simulateSwapExactIn$1, simulateSwapExactOut as simulateSwapExactOut$1, simulateWithdraw as simulateWithdraw$1, slippageBpsToTickDistance as slippageBpsToTickDistance$1, smartRepay, smartRepayAndWait, speedUpTransaction, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress as truncateAddress$1, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, watchEvents as watchEvents$1, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
9706
|
-
//# sourceMappingURL=index-
|
|
9759
|
+
export { AccountBuyingPower, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountPremia, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BPS_DENOMINATOR as BPS_DENOMINATOR$1, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildCreditWrappedDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkHasZeroLiquidityError, ChunkInput, ChunkLimitError, ChunkLiquidityResult, ClosePositionParams, CollateralAcrossTicks, CollateralBreakdown, CollateralDataPoint, CollateralSharePriceData, CollateralStrategyKind, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditSwapCall, CreditSwapCallParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS as DEFAULT_MIN_SWAP_RATIO_BPS$1, DEFAULT_RECONNECT_CONFIG as DEFAULT_RECONNECT_CONFIG$1, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedOraclePack, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositParams, DepositTooLargeError, DetectReorgParams, DispatchCalldata, DispatchIntent, DispatchParams, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralBreakdownParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LengthMismatchError, LiquidateParams, LiquidationCheck, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MAX_TICK as MAX_TICK$1, MAX_TRACKED_CHUNKS as MAX_TRACKED_CHUNKS$1, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK as MIN_TICK$1, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS as ORACLE_EPOCH_SECONDS$1, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OptimizeTokenIdRiskPartnersParams, OracleRateLimitedError, OracleTiming, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, PoolFormatterConfig, PoolFormatters, PoolLiquidities, PoolNotInitializedError, PortfolioValue, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QuoteSfpmSwapParams, REORG_DEPTH as REORG_DEPTH$1, REQUIRED_BASE_ERROR_SENTINEL as REQUIRED_BASE_ERROR_SENTINEL$1, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION as SCHEMA_VERSION$1, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX as STORAGE_PREFIX$1, SafeModeError, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, Timescale, TokenIdBuilder, TokenIdHasZeroLegsError, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, UTILIZATION_DENOMINATOR as UTILIZATION_DENOMINATOR$1, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, ValidateBatchParams, WAD as WAD$1, WatchEventsParams, WithdrawParams, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL as ZERO_COLLATERAL$1, ZERO_VALUATION as ZERO_VALUATION$1, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition as addPendingPosition$1, addTrackedChunks as addTrackedChunks$1, applyMintBuffer, applyMintBufferPerToken, apportion as apportion$1, approve, approveAndWait, approvePool, assertCanBurn as assertCanBurn$1, assertCanForceExercise as assertCanForceExercise$1, assertCanLiquidate as assertCanLiquidate$1, assertCanMint as assertCanMint$1, assertFresh as assertFresh$1, assertHealthy as assertHealthy$1, assertTradeable as assertTradeable$1, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildCreditWrappedDispatch as buildCreditWrappedDispatch$1, buildOpenPositionCalldata, buildSfpmSwapCalldata as buildSfpmSwapCalldata$1, buildSfpmSwapPlan as buildSfpmSwapPlan$1, buildTokenShortfallRecoveryDispatch as buildTokenShortfallRecoveryDispatch$1, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure as calculateAccountGreeksPure$1, calculateResyncBlock, calculateSpreadWad as calculateSpreadWad$1, cancelTransaction, checkApproval, checkCollateralAcrossTicks as checkCollateralAcrossTicks$1, classifyStrategyGroups as classifyStrategyGroups$1, cleanupStalePendingPositions as cleanupStalePendingPositions$1, clearCheckpoint, clearPendingPositions as clearPendingPositions$1, clearTrackedChunks as clearTrackedChunks$1, clearTrackedPositions, clearTradeHistory as clearTradeHistory$1, closePosition, closePositionAndWait, collateralRuleKindFor as collateralRuleKindFor$1, computeV4PoolId as computeV4PoolId$1, confirmPendingPosition as confirmPendingPosition$1, convertToAssets as convertToAssets$1, convertToShares as convertToShares$1, countLegs, createEventPoller as createEventPoller$1, createEventSubscription as createEventSubscription$1, createFileStorage, createFlowNeutralTokenId as createFlowNeutralTokenId$1, createMemoryStorage, createNonceManager, createPoolFormatters as createPoolFormatters$1, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleTiming, decodePanopticTokenURI as decodePanopticTokenURI$1, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes as encodePoolKeyBytes$1, encodeV3PoolKeyBytes as encodeV3PoolKeyBytes$1, encodeV4PoolId, ensureSfpmV3PoolInitialized as ensureSfpmV3PoolInitialized$1, estimateBlockNumbers as estimateBlockNumbers$1, estimateCollateralBreakdown as estimateCollateralBreakdown$1, estimateCollateralRequired as estimateCollateralRequired$1, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition as failPendingPosition$1, feesFromFeeGrowthDelta as feesFromFeeGrowthDelta$1, fetchSfpmV3PoolId as fetchSfpmV3PoolId$1, forceExercise, forceExerciseAndWait, formatBlockNumber as formatBlockNumber$1, formatBps as formatBps$1, formatCompact as formatCompact$1, formatDatetime as formatDatetime$1, formatDuration as formatDuration$1, formatDurationSeconds as formatDurationSeconds$1, formatFeeTier as formatFeeTier$1, formatGas as formatGas$1, formatGwei as formatGwei$1, formatPoolIdHex as formatPoolIdHex$1, formatRateWad, formatRatioPercent as formatRatioPercent$1, formatTimestamp as formatTimestamp$1, formatTimestampLocale as formatTimestampLocale$1, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex as formatTokenIdHex$1, formatTokenIdShort as formatTokenIdShort$1, formatTxHash as formatTxHash$1, formatUtilization as formatUtilization$1, formatWad, formatWadPercent, formatWadSigned, formatWei as formatWei$1, getAccountBuyingPower as getAccountBuyingPower$1, getAccountCollateral, getAccountGreeks as getAccountGreeks$1, getAccountHistory as getAccountHistory$1, getAccountPremia as getAccountPremia$1, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities as getChunkLiquidities$1, getChunkSpreads as getChunkSpreads$1, getClosedPositions as getClosedPositions$1, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices as getCollateralSharePrices$1, getCollateralTotalAssetsBatch as getCollateralTotalAssetsBatch$1, getCurrentRates, getDeltaHedgeParams as getDeltaHedgeParams$1, getEnforcedTickLimits as getEnforcedTickLimits$1, getFactoryConstructMetadata as getFactoryConstructMetadata$1, getFactoryOwnerOf as getFactoryOwnerOf$1, getFactoryTokenURI as getFactoryTokenURI$1, getGuardianUnlockState as getGuardianUnlockState$1, getInterestState, getItmAmounts as getItmAmounts$1, getLiquidationPrices, getMarginBuffer as getMarginBuffer$1, getMaxPositionSize as getMaxPositionSize$1, getMaxRedeem as getMaxRedeem$1, getMaxWithdrawable as getMaxWithdrawable$1, getNativeTokenPrice as getNativeTokenPrice$1, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError as getNotEnoughTokensError$1, getOpenPositionIds, getOpenPositionPreview as getOpenPositionPreview$1, getPanopticPoolAddress as getPanopticPoolAddress$1, getPanopticPoolFromPoolId as getPanopticPoolFromPoolId$1, getPendingPositions as getPendingPositions$1, getPendingPositionsKey, getPoolDeploymentBlock, getPoolDisplayId as getPoolDisplayId$1, getPoolLiquidities as getPoolLiquidities$1, getPoolMetaKey, getPoolPrefix, getPortfolioValue as getPortfolioValue$1, getPosition, getPositionChunkData as getPositionChunkData$1, getPositionEnrichmentData as getPositionEnrichmentData$1, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia as getPositionsWithPremia$1, getPriceHistory as getPriceHistory$1, getRealizedPnL as getRealizedPnL$1, getRequiredCreditForITM as getRequiredCreditForITM$1, getSafeMode as getSafeMode$1, getSchemaVersionKey, getStreamiaHistory as getStreamiaHistory$1, getSyncCheckpointKey, getSyncStatus as getSyncStatus$1, getTokenListId as getTokenListId$1, getTrackedChunks as getTrackedChunks$1, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory as getTradeHistory$1, getUniswapFeeHistory as getUniswapFeeHistory$1, getUniswapV3LpPositionState as getUniswapV3LpPositionState$1, getUniswapV3PoolFromId as getUniswapV3PoolFromId$1, getUniswapV3PoolInfo as getUniswapV3PoolInfo$1, getUniswapV3PoolLiquidities as getUniswapV3PoolLiquidities$1, getUniswapV4LpPositionState as getUniswapV4LpPositionState$1, getUniswapV4PoolBasicState as getUniswapV4PoolBasicState$1, getUniswapV4PoolInfo as getUniswapV4PoolInfo$1, getUniswapV4PoolKeyFromId as getUniswapV4PoolKeyFromId$1, getUniswapV4PoolLiquidities as getUniswapV4PoolLiquidities$1, hasLoanOrCredit, hasLongLeg, interpolateBlocks as interpolateBlocks$1, isCredit, isCreditLeg, isGasError as isGasError$1, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError as isNonceError$1, isPanopticErrorType, isPositionTracked, isRetryableRpcError as isRetryableRpcError$1, isShortOnly, isSpread, isolateGroupTokenId as isolateGroupTokenId$1, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress as minePoolAddress$1, mint, mintAndWait, mintableAfterBuffer, multicallRead as multicallRead$1, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners as optimizeTokenIdRiskPartners$1, oracleEpochAt, parseBps as parseBps$1, parseCollateralLog as parseCollateralLog$1, parsePanopticError, parsePoolLog as parsePoolLog$1, parseTokenAmount, parseTokenListId as parseTokenListId$1, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit as previewDeposit$1, previewMint as previewMint$1, previewRedeem as previewRedeem$1, previewUnwrap, previewWithdraw as previewWithdraw$1, previewWrap, publicBroadcaster, quoteOneTokenFlow as quoteOneTokenFlow$1, quoteSfpmSwap as quoteSfpmSwap$1, quoteTokenShortfallRecovery as quoteTokenShortfallRecovery$1, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks as removeTrackedChunks$1, repay, repayAndWait, resolveBlockNumbers as resolveBlockNumbers$1, resolvePanopticPoolFromPoolId as resolvePanopticPoolFromPoolId$1, resolveTokenIndex, resolveUniswapV4PoolKey as resolveUniswapV4PoolKey$1, rollPosition, rollPositionAndWait, saveCheckpoint, saveClosedPosition as saveClosedPosition$1, scanChunks as scanChunks$1, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch as simulateBatchDispatch$1, simulateClosePosition as simulateClosePosition$1, simulateDeployNewPool as simulateDeployNewPool$1, simulateDeposit as simulateDeposit$1, simulateDispatch as simulateDispatch$1, simulateForceExercise as simulateForceExercise$1, simulateLiquidate as simulateLiquidate$1, simulateOpenPosition, simulateSFPMBurn as simulateSFPMBurn$1, simulateSFPMMint as simulateSFPMMint$1, simulateSettle as simulateSettle$1, simulateSwapExactIn as simulateSwapExactIn$1, simulateSwapExactOut as simulateSwapExactOut$1, simulateWithTokenFlow, simulateWithdraw as simulateWithdraw$1, slippageBpsToTickDistance as slippageBpsToTickDistance$1, smartRepay, smartRepayAndWait, speedUpTransaction, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress as truncateAddress$1, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, watchEvents as watchEvents$1, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
9760
|
+
//# sourceMappingURL=index-BhEBx83X.d.ts.map
|