@panoptic-eng/sdk 1.0.49 → 1.0.51
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.js.map +1 -1
- package/dist/{cow-DMX9ebPk.js → cow-CSSKPknb.js} +1 -1
- package/dist/deployments.d.ts +12 -4
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +78 -10
- package/dist/deployments.js.map +1 -1
- package/dist/{greeks-9aTE-DwO.js → greeks-CNi1-cnp.js} +39 -16
- package/dist/index.d.ts +518 -71
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +724 -91
- package/dist/index.js.map +1 -1
- package/dist/{irm-mySi_YMF.js → irm-BJaJSUjF.js} +80 -12
- package/dist/panoptic/v2/greeks/index.d.ts +12 -1
- package/dist/panoptic/v2/greeks/index.d.ts.map +1 -1
- package/dist/panoptic/v2/greeks/index.js +39 -16
- package/dist/panoptic/v2/greeks/index.js.map +1 -1
- package/dist/panoptic/v2/index.d.ts +1336 -74
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +20322 -18660
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +1518 -240
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +11518 -9319
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{rates-CDLIUGDz.js → rates-COAJpKRd.js} +612 -73
- package/dist/{router-45ulPnWe.js → router-B-I1eACz.js} +5 -43
- package/dist/router-BSS7HKd2.js +837 -0
- package/dist/{transactionFees-DUm6ilXB.js → transactionFees-DE-Whxab.js} +24 -8
- package/dist/uniswap/index.d.ts +465 -215
- package/dist/uniswap/index.d.ts.map +1 -1
- package/dist/uniswap/index.js +1799 -1076
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-DshssxX4.js → v2-zF6b01PI.js} +2488 -1596
- package/dist/vault-transaction-fees.d.ts +9 -4
- package/dist/vault-transaction-fees.d.ts.map +1 -1
- package/dist/vault-transaction-fees.js +24 -8
- package/dist/vault-transaction-fees.js.map +1 -1
- package/dist/{writes-2reV_omF.js → writes-D1zN0v9x.js} +4 -3
- package/dist/zodiac/index.d.ts +51 -7
- package/dist/zodiac/index.d.ts.map +1 -1
- package/dist/zodiac/index.js +154 -2
- package/dist/zodiac/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/router-B2jY9Nyb.js +0 -312
|
@@ -1,17 +1,116 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Abi as Abi$1, Address as Address$1, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, StateOverride, WalletClient } from "viem";
|
|
3
|
+
import Decimal from "decimal.js";
|
|
2
4
|
import { ReactNode } from "react";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
import { ChainDeployment, getChainDeployment, isSupportedChain, requireChainDeployment } from "../../deployments";
|
|
5
7
|
|
|
8
|
+
//#region src/panoptic/v2/reads/lpFunding.d.ts
|
|
9
|
+
interface LpFundingPolicy {
|
|
10
|
+
queryAddress: Address$1;
|
|
11
|
+
quoteTokenIndex: 0 | 1;
|
|
12
|
+
stateViewAddress?: Address$1;
|
|
13
|
+
}
|
|
14
|
+
/** Recheck full LP backing against fresh pool and account state before signing. */
|
|
15
|
+
declare function readLpFundingSnapshot(params: LpFundingPolicy & {
|
|
16
|
+
client: PublicClient;
|
|
17
|
+
poolAddress: Address$1;
|
|
18
|
+
account: Address$1;
|
|
19
|
+
existingPositionIds: bigint[];
|
|
20
|
+
tokenId: bigint;
|
|
21
|
+
positionSize: bigint;
|
|
22
|
+
blockNumber?: bigint;
|
|
23
|
+
}): Promise<{
|
|
24
|
+
funding: {
|
|
25
|
+
principalInQuote: bigint;
|
|
26
|
+
bufferInQuote: bigint;
|
|
27
|
+
totalInQuote: bigint;
|
|
28
|
+
principal: {
|
|
29
|
+
amount0: bigint;
|
|
30
|
+
amount1: bigint;
|
|
31
|
+
};
|
|
32
|
+
buffer: {
|
|
33
|
+
amount0: bigint;
|
|
34
|
+
amount1: bigint;
|
|
35
|
+
};
|
|
36
|
+
total: {
|
|
37
|
+
amount0: bigint;
|
|
38
|
+
amount1: bigint;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
fundingParams: {
|
|
42
|
+
tokenId: bigint;
|
|
43
|
+
positionSize: bigint;
|
|
44
|
+
tickSpacing: bigint;
|
|
45
|
+
sqrtPriceX96: bigint;
|
|
46
|
+
valuationSqrtPriceX96: bigint;
|
|
47
|
+
quoteTokenIndex: 0 | 1;
|
|
48
|
+
};
|
|
49
|
+
availableInQuote: bigint;
|
|
50
|
+
blockNumber: bigint;
|
|
51
|
+
currentTick: bigint;
|
|
52
|
+
_meta: BlockMeta;
|
|
53
|
+
}>;
|
|
54
|
+
/** Recheck the same funding policy used by executable LP sizing before signing. */
|
|
55
|
+
declare function assertLpPositionFunded(params: Parameters<typeof readLpFundingSnapshot>[0]): Promise<{
|
|
56
|
+
principalInQuote: bigint;
|
|
57
|
+
bufferInQuote: bigint;
|
|
58
|
+
totalInQuote: bigint;
|
|
59
|
+
principal: {
|
|
60
|
+
amount0: bigint;
|
|
61
|
+
amount1: bigint;
|
|
62
|
+
};
|
|
63
|
+
buffer: {
|
|
64
|
+
amount0: bigint;
|
|
65
|
+
amount1: bigint;
|
|
66
|
+
};
|
|
67
|
+
total: {
|
|
68
|
+
amount0: bigint;
|
|
69
|
+
amount1: bigint;
|
|
70
|
+
};
|
|
71
|
+
}>; //#endregion
|
|
72
|
+
//#region src/panoptic/v2/reads/lpMaxSize.d.ts
|
|
73
|
+
/** Largest verified LP mint within 0.1% of the funding bound, at one block.
|
|
74
|
+
* Never returns an untested size. Transport errors abort instead of shrinking MAX.
|
|
75
|
+
*/
|
|
76
|
+
declare function getExecutableLpMaxSize(params: Omit<Parameters<typeof readLpFundingSnapshot>[0], 'positionSize'> & {
|
|
77
|
+
chainId: bigint;
|
|
78
|
+
slippageBps: bigint;
|
|
79
|
+
}): Promise<{
|
|
80
|
+
funding: {
|
|
81
|
+
principalInQuote: bigint;
|
|
82
|
+
bufferInQuote: bigint;
|
|
83
|
+
totalInQuote: bigint;
|
|
84
|
+
principal: {
|
|
85
|
+
amount0: bigint;
|
|
86
|
+
amount1: bigint;
|
|
87
|
+
};
|
|
88
|
+
buffer: {
|
|
89
|
+
amount0: bigint;
|
|
90
|
+
amount1: bigint;
|
|
91
|
+
};
|
|
92
|
+
total: {
|
|
93
|
+
amount0: bigint;
|
|
94
|
+
amount1: bigint;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
fundingParams: {
|
|
98
|
+
tokenId: bigint;
|
|
99
|
+
positionSize: bigint;
|
|
100
|
+
tickSpacing: bigint;
|
|
101
|
+
sqrtPriceX96: bigint;
|
|
102
|
+
valuationSqrtPriceX96: bigint;
|
|
103
|
+
quoteTokenIndex: 0 | 1;
|
|
104
|
+
};
|
|
105
|
+
availableInQuote: bigint;
|
|
106
|
+
blockNumber: bigint;
|
|
107
|
+
currentTick: bigint;
|
|
108
|
+
_meta: BlockMeta;
|
|
109
|
+
maxSize: bigint;
|
|
110
|
+
}>;
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
6
113
|
//#region src/panoptic/v2/utils/constants.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Constants for the Panoptic v2 SDK.
|
|
9
|
-
* @module v2/utils/constants
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* WAD constant (10^18) used for fixed-point arithmetic.
|
|
13
|
-
* Commonly used for spread calculations and other WAD-scaled values.
|
|
14
|
-
*/
|
|
15
114
|
/**
|
|
16
115
|
* Constants for the Panoptic v2 SDK.
|
|
17
116
|
* @module v2/utils/constants
|
|
@@ -99,7 +198,9 @@ declare const BPS_DENOMINATOR = 10000n;
|
|
|
99
198
|
/**
|
|
100
199
|
* Utilization denominator (100% = 10000).
|
|
101
200
|
*/
|
|
102
|
-
declare const UTILIZATION_DENOMINATOR = 10000n;
|
|
201
|
+
declare const UTILIZATION_DENOMINATOR = 10000n;
|
|
202
|
+
|
|
203
|
+
//#endregion
|
|
103
204
|
//#region src/panoptic/v2/utils/factory.d.ts
|
|
104
205
|
/**
|
|
105
206
|
* Factory utility functions for the Panoptic v2 SDK.
|
|
@@ -571,6 +672,16 @@ interface GetUtilizationParams {
|
|
|
571
672
|
* @returns Utilization data with block metadata
|
|
572
673
|
*/
|
|
573
674
|
declare function getUtilization(params: GetUtilizationParams): Promise<Utilization>;
|
|
675
|
+
/**
|
|
676
|
+
* Assets available to borrow from a collateral tracker.
|
|
677
|
+
*
|
|
678
|
+
* Mirrors `CollateralTracker._maxWithdrawWithPositions`: deposited assets less
|
|
679
|
+
* one wei, less the assets backing credited shares.
|
|
680
|
+
*
|
|
681
|
+
* @param poolData - `getPoolData()` tuple: [depositedAssets, insideAMM, creditedShares, utilization]
|
|
682
|
+
* @param totalSupply - Collateral tracker share supply, for the share→asset conversion
|
|
683
|
+
*/
|
|
684
|
+
|
|
574
685
|
/**
|
|
575
686
|
* Parameters for getOracleState.
|
|
576
687
|
*/
|
|
@@ -674,6 +785,16 @@ interface FetchPoolIdResult {
|
|
|
674
785
|
* @returns The pool ID and block metadata
|
|
675
786
|
*/
|
|
676
787
|
declare function fetchPoolId(params: FetchPoolIdParams): Promise<FetchPoolIdResult>;
|
|
788
|
+
/** Read the pool's spot tick without fetching collateral or risk configuration. */
|
|
789
|
+
declare function getPoolCurrentTick({
|
|
790
|
+
client,
|
|
791
|
+
poolAddress,
|
|
792
|
+
blockNumber
|
|
793
|
+
}: {
|
|
794
|
+
client: PublicClient;
|
|
795
|
+
poolAddress: Address$1;
|
|
796
|
+
blockNumber?: bigint;
|
|
797
|
+
}): Promise<any>;
|
|
677
798
|
|
|
678
799
|
//#endregion
|
|
679
800
|
//#region src/panoptic/v2/types/pool.d.ts
|
|
@@ -2760,7 +2881,7 @@ declare function parsePanopticError(error: unknown): ParsedError | null;
|
|
|
2760
2881
|
* }
|
|
2761
2882
|
* ```
|
|
2762
2883
|
*/
|
|
2763
|
-
declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: new (...args:
|
|
2884
|
+
declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: abstract new (...args: never[]) => T): error is T;
|
|
2764
2885
|
|
|
2765
2886
|
//#endregion
|
|
2766
2887
|
//#region src/panoptic/v2/types/simulation.d.ts
|
|
@@ -3371,7 +3492,7 @@ declare function estimateBlockNumbers(params: EstimateBlockNumbersParams): Promi
|
|
|
3371
3492
|
/**
|
|
3372
3493
|
* A contract call to include in a multicall batch.
|
|
3373
3494
|
*/
|
|
3374
|
-
interface MulticallContract<TAbi extends Abi = Abi, TFunctionName extends ContractFunctionName<TAbi, 'pure' | 'view'> = ContractFunctionName<TAbi, 'pure' | 'view'>> {
|
|
3495
|
+
interface MulticallContract<TAbi extends Abi$1 = Abi$1, TFunctionName extends ContractFunctionName<TAbi, 'pure' | 'view'> = ContractFunctionName<TAbi, 'pure' | 'view'>> {
|
|
3375
3496
|
/** Contract address */
|
|
3376
3497
|
address: Address$1;
|
|
3377
3498
|
/** Contract ABI */
|
|
@@ -4235,7 +4356,6 @@ interface QuoteV3ExactInParams {
|
|
|
4235
4356
|
tokenOut: Address$1;
|
|
4236
4357
|
fee: bigint;
|
|
4237
4358
|
amountIn: bigint;
|
|
4238
|
-
/** Slippage tolerance in bps, used to compute `amountOutMinimum`. */
|
|
4239
4359
|
slippageBps: bigint;
|
|
4240
4360
|
blockNumber?: bigint;
|
|
4241
4361
|
addresses?: Partial<UniswapV3Addresses>;
|
|
@@ -4252,8 +4372,103 @@ interface V3ExactInQuote {
|
|
|
4252
4372
|
*/
|
|
4253
4373
|
declare function quoteV3ExactIn(params: QuoteV3ExactInParams): Promise<V3ExactInQuote | null>;
|
|
4254
4374
|
|
|
4375
|
+
//#endregion
|
|
4376
|
+
//#region src/uniswap/v4/addresses.d.ts
|
|
4377
|
+
/**
|
|
4378
|
+
* Uniswap v4 contract addresses required for a Universal Router spot swap.
|
|
4379
|
+
*/
|
|
4380
|
+
interface UniswapV4Addresses {
|
|
4381
|
+
/** Universal Router (v4-capable build) — entrypoint for `execute(...)`. */
|
|
4382
|
+
universalRouter: Address$1;
|
|
4383
|
+
/** V4Quoter — `quoteExactInputSingle` (revert/staticcall-based). */
|
|
4384
|
+
v4Quoter: Address$1;
|
|
4385
|
+
/** Uniswap v4 PoolManager (singleton). */
|
|
4386
|
+
poolManager: Address$1;
|
|
4387
|
+
/** Uniswap v4 PositionManager (posm) — ERC721 LP position NFTs. */
|
|
4388
|
+
positionManager: Address$1;
|
|
4389
|
+
/** Canonical Permit2 (same address on every chain). */
|
|
4390
|
+
permit2: Address$1;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
//#endregion
|
|
4394
|
+
//#region src/uniswap/v4/router/types.d.ts
|
|
4395
|
+
/**
|
|
4396
|
+
* Canonical Permit2, identical across all chains.
|
|
4397
|
+
*/
|
|
4398
|
+
|
|
4399
|
+
/**
|
|
4400
|
+
* Parameters for {@link quoteSwapExactInViaRouter}.
|
|
4401
|
+
*/
|
|
4402
|
+
interface QuoteSwapExactInViaRouterParams {
|
|
4403
|
+
/** Public client. */
|
|
4404
|
+
client: PublicClient;
|
|
4405
|
+
/** PanopticPool address — used to resolve the underlying v4 PoolKey. */
|
|
4406
|
+
poolAddress: Address$1;
|
|
4407
|
+
/** Chain ID. */
|
|
4408
|
+
chainId: bigint;
|
|
4409
|
+
/** Token to sell. `address(0)` for native ETH. */
|
|
4410
|
+
tokenIn: Address$1;
|
|
4411
|
+
/** Exact amount of `tokenIn` to spend (must fit uint128). */
|
|
4412
|
+
amountIn: bigint;
|
|
4413
|
+
/** Slippage tolerance in bps (used to compute `amountOutMinimum`). */
|
|
4414
|
+
slippageBps: bigint;
|
|
4415
|
+
/** Optional block number for the quote. */
|
|
4416
|
+
blockNumber?: bigint;
|
|
4417
|
+
/** Override per-chain Uniswap v4 addresses (e.g. fork tests). */
|
|
4418
|
+
addresses?: Partial<UniswapV4Addresses>;
|
|
4419
|
+
}
|
|
4420
|
+
/**
|
|
4421
|
+
* Quote result data (carried inside a `SimulationResult`).
|
|
4422
|
+
*/
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* Parameters for {@link quoteSwapExactOutViaRouter}.
|
|
4426
|
+
*/
|
|
4427
|
+
interface QuoteSwapExactOutViaRouterParams {
|
|
4428
|
+
/** Public client. */
|
|
4429
|
+
client: PublicClient;
|
|
4430
|
+
/** PanopticPool address — used to resolve the underlying v4 PoolKey. */
|
|
4431
|
+
poolAddress: Address$1;
|
|
4432
|
+
/** Chain ID. */
|
|
4433
|
+
chainId: bigint;
|
|
4434
|
+
/** Token to sell (the pay token). `address(0)` for native ETH. */
|
|
4435
|
+
tokenIn: Address$1;
|
|
4436
|
+
/** Exact amount of the output token to receive (must fit uint128). */
|
|
4437
|
+
amountOut: bigint;
|
|
4438
|
+
/** Slippage tolerance in bps (used to compute `amountInMaximum`). */
|
|
4439
|
+
slippageBps: bigint;
|
|
4440
|
+
/** Optional block number for the quote. */
|
|
4441
|
+
blockNumber?: bigint;
|
|
4442
|
+
/** Override per-chain Uniswap v4 addresses (e.g. fork tests). */
|
|
4443
|
+
addresses?: Partial<UniswapV4Addresses>;
|
|
4444
|
+
}
|
|
4445
|
+
/**
|
|
4446
|
+
* Quote result data for an exact-out swap (carried inside a `SimulationResult`).
|
|
4447
|
+
*/
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* Parameters for {@link checkRouterApproval}.
|
|
4451
|
+
*/
|
|
4452
|
+
interface CheckRouterApprovalParams {
|
|
4453
|
+
/** Public client. */
|
|
4454
|
+
client: PublicClient;
|
|
4455
|
+
/** Chain ID. */
|
|
4456
|
+
chainId: bigint;
|
|
4457
|
+
/** ERC20 token being spent (must not be native ETH). */
|
|
4458
|
+
tokenIn: Address$1;
|
|
4459
|
+
/** Token owner. */
|
|
4460
|
+
owner: Address$1;
|
|
4461
|
+
/** Amount that must be spendable. */
|
|
4462
|
+
amount: bigint;
|
|
4463
|
+
/** Override per-chain Uniswap v4 addresses (e.g. fork tests). */
|
|
4464
|
+
addresses?: Partial<UniswapV4Addresses>;
|
|
4465
|
+
}
|
|
4466
|
+
|
|
4255
4467
|
//#endregion
|
|
4256
4468
|
//#region src/panoptic/v2/reads/factory.d.ts
|
|
4469
|
+
/**
|
|
4470
|
+
* Result of {@link checkRouterApproval}.
|
|
4471
|
+
*/
|
|
4257
4472
|
/**
|
|
4258
4473
|
* Parameters for getFactoryTokenURI.
|
|
4259
4474
|
*/
|
|
@@ -5154,6 +5369,8 @@ interface TokenFlow$1 {
|
|
|
5154
5369
|
* Parameters for simulateWithTokenFlow.
|
|
5155
5370
|
*/
|
|
5156
5371
|
interface SimulateWithTokenFlowParams {
|
|
5372
|
+
/** Defaults to true. False returns the existing 0n (unavailable) gas sentinel. */
|
|
5373
|
+
estimateGas?: boolean;
|
|
5157
5374
|
/** viem public client */
|
|
5158
5375
|
client: PublicClient;
|
|
5159
5376
|
/** PanopticPool address */
|
|
@@ -5302,6 +5519,14 @@ declare const REQUIRED_BASE_ERROR_SENTINEL: bigint;
|
|
|
5302
5519
|
* @returns Estimated collateral requirements with block metadata
|
|
5303
5520
|
*/
|
|
5304
5521
|
declare function estimateCollateralRequired(params: EstimateCollateralRequiredParams): Promise<CollateralEstimate$1>;
|
|
5522
|
+
/** Account- and size-independent requirement, with its valuation tick and block. */
|
|
5523
|
+
declare function getCollateralRequiredBase(params: Omit<EstimateCollateralRequiredParams, 'account' | 'positionSize'>): Promise<{
|
|
5524
|
+
requiredBase: any;
|
|
5525
|
+
effectiveTick: bigint;
|
|
5526
|
+
_meta: BlockMeta;
|
|
5527
|
+
}>;
|
|
5528
|
+
/** Preserve the contract sentinel and integer rounding when scaling a cached base. */
|
|
5529
|
+
declare function scaleCollateralRequired(base: Awaited<ReturnType<typeof getCollateralRequiredBase>>, positionSize: bigint): CollateralEstimate$1;
|
|
5305
5530
|
/**
|
|
5306
5531
|
* Max position size result.
|
|
5307
5532
|
*/
|
|
@@ -5319,6 +5544,10 @@ interface MaxPositionSize {
|
|
|
5319
5544
|
* Parameters for getMaxPositionSize.
|
|
5320
5545
|
*/
|
|
5321
5546
|
interface GetMaxPositionSizeParams {
|
|
5547
|
+
/** Abort superseded searches between RPC rounds. */
|
|
5548
|
+
signal?: AbortSignal;
|
|
5549
|
+
/** Bounds fetched for this account, candidate and block (shared across modes). */
|
|
5550
|
+
bounds?: MaxPositionSize;
|
|
5322
5551
|
/** viem PublicClient */
|
|
5323
5552
|
client: PublicClient;
|
|
5324
5553
|
/** PanopticPool address */
|
|
@@ -6422,6 +6651,10 @@ interface PositionGreeksInput {
|
|
|
6422
6651
|
* Calculate total value across all legs.
|
|
6423
6652
|
*/
|
|
6424
6653
|
declare function calculatePositionValue(input: PositionGreeksInput): bigint;
|
|
6654
|
+
/** Prepare mint-time invariants once for an arbitrary series of valuation ticks. */
|
|
6655
|
+
declare function preparePositionValue(input: Omit<PositionGreeksInput, 'currentTick'>): (currentTick: bigint) => bigint;
|
|
6656
|
+
/** Value a tick series without repeating position preparation. */
|
|
6657
|
+
declare function calculatePositionValues(input: Omit<PositionGreeksInput, 'currentTick'>, ticks: readonly bigint[]): bigint[];
|
|
6425
6658
|
/**
|
|
6426
6659
|
* Calculate total delta across all legs.
|
|
6427
6660
|
*/
|
|
@@ -6440,6 +6673,13 @@ declare function calculatePositionDelta(input: PositionGreeksInput): bigint;
|
|
|
6440
6673
|
declare function calculatePositionDeltaDebtOnly(input: Omit<PositionGreeksInput, 'assetIndex' | 'swapAtMint'> & {
|
|
6441
6674
|
assetIndex: 0n | 1n;
|
|
6442
6675
|
}): bigint;
|
|
6676
|
+
/** Delta and one strategy contract's notional, both in the requested asset frame. */
|
|
6677
|
+
declare function getPositionDeltaMetrics(input: Omit<PositionGreeksInput, 'assetIndex' | 'swapAtMint'> & {
|
|
6678
|
+
assetIndex: 0n | 1n;
|
|
6679
|
+
}): {
|
|
6680
|
+
delta: bigint;
|
|
6681
|
+
contractSize: bigint;
|
|
6682
|
+
};
|
|
6443
6683
|
/**
|
|
6444
6684
|
* Calculate total gamma across all legs.
|
|
6445
6685
|
*/
|
|
@@ -7115,6 +7355,10 @@ declare function getAccountBuyingPower(params: GetAccountBuyingPowerParams): Pro
|
|
|
7115
7355
|
* Parameters for getOpenPositionPreview.
|
|
7116
7356
|
*/
|
|
7117
7357
|
interface GetOpenPositionPreviewParams {
|
|
7358
|
+
/** Snapshot for the same client, account, pool, position list and explicit blockNumber. */
|
|
7359
|
+
buyingPower?: AccountBuyingPower | Promise<AccountBuyingPower>;
|
|
7360
|
+
/** Skip gas estimation for interactive previews; defaults to true. */
|
|
7361
|
+
estimateGas?: boolean;
|
|
7118
7362
|
/** viem PublicClient */
|
|
7119
7363
|
client: PublicClient;
|
|
7120
7364
|
/** PanopticPool address */
|
|
@@ -7925,6 +8169,41 @@ interface GetPositionEnrichmentDataResult {
|
|
|
7925
8169
|
*/
|
|
7926
8170
|
declare function getPositionEnrichmentData(params: GetPositionEnrichmentDataParams): Promise<GetPositionEnrichmentDataResult>;
|
|
7927
8171
|
|
|
8172
|
+
//#endregion
|
|
8173
|
+
//#region src/panoptic/v2/reads/hedgeLimits.d.ts
|
|
8174
|
+
interface HedgeLimitEstimate {
|
|
8175
|
+
current: {
|
|
8176
|
+
tick: number;
|
|
8177
|
+
affordable: boolean;
|
|
8178
|
+
reason: 'available' | 'margin' | 'insolvent' | 'capacity' | 'leg-limit';
|
|
8179
|
+
delta: bigint;
|
|
8180
|
+
/** Minimum surplus across both cross-collateral constraints, in quote-token units. */
|
|
8181
|
+
headroom: bigint | null;
|
|
8182
|
+
};
|
|
8183
|
+
/** First detected unaffordable tick on either side; null means none in the sampled range. */
|
|
8184
|
+
lowerTick: number | null;
|
|
8185
|
+
upperTick: number | null;
|
|
8186
|
+
minTick: number;
|
|
8187
|
+
maxTick: number;
|
|
8188
|
+
blockNumber: bigint;
|
|
8189
|
+
}
|
|
8190
|
+
/** Snapshot estimate; prices, balances and requirements share one block, with spot swaps excluding price impact. */
|
|
8191
|
+
declare function getHedgeLimits({
|
|
8192
|
+
client,
|
|
8193
|
+
poolAddress,
|
|
8194
|
+
account,
|
|
8195
|
+
positionIds,
|
|
8196
|
+
assetIndex,
|
|
8197
|
+
blockNumber: requestedBlock
|
|
8198
|
+
}: {
|
|
8199
|
+
client: PublicClient;
|
|
8200
|
+
poolAddress: Address$1;
|
|
8201
|
+
account: Address$1;
|
|
8202
|
+
positionIds: readonly bigint[];
|
|
8203
|
+
assetIndex: 0n | 1n;
|
|
8204
|
+
blockNumber?: bigint;
|
|
8205
|
+
}): Promise<HedgeLimitEstimate>;
|
|
8206
|
+
|
|
7928
8207
|
//#endregion
|
|
7929
8208
|
//#region src/panoptic/v2/sync/getSyncStatus.d.ts
|
|
7930
8209
|
/**
|
|
@@ -8937,6 +9216,131 @@ declare function decodeAllDispatchCalldata(input: `0x${string}`): DispatchCallda
|
|
|
8937
9216
|
*/
|
|
8938
9217
|
declare function selectDispatchForAccount(candidates: DispatchCalldata[], account: Address$1, txFrom: Address$1): DispatchCalldata | null;
|
|
8939
9218
|
|
|
9219
|
+
//#endregion
|
|
9220
|
+
//#region src/panoptic/v2/liquidator/index.d.ts
|
|
9221
|
+
/**
|
|
9222
|
+
* `PanopticLiquidator.LiquidateParams`, mirrored with viem-native types.
|
|
9223
|
+
* Field order and encoding match the on-chain struct exactly.
|
|
9224
|
+
*/
|
|
9225
|
+
interface HelperLiquidateParams {
|
|
9226
|
+
pool: Address$1;
|
|
9227
|
+
account: Address$1;
|
|
9228
|
+
positionIdListTo: readonly bigint[];
|
|
9229
|
+
usePremiaAsCollateral: bigint;
|
|
9230
|
+
flashToken: Address$1;
|
|
9231
|
+
flashAmount: bigint;
|
|
9232
|
+
nativeFundingAmount: bigint;
|
|
9233
|
+
preSwapTarget: Address$1;
|
|
9234
|
+
preSwapCallData: `0x${string}`;
|
|
9235
|
+
preSwapTokenIn: Address$1;
|
|
9236
|
+
preSwapAmountIn: bigint;
|
|
9237
|
+
swapTarget: Address$1;
|
|
9238
|
+
swapCallData: `0x${string}`;
|
|
9239
|
+
swapTokenIn: Address$1;
|
|
9240
|
+
swapAmountIn: bigint;
|
|
9241
|
+
minDelta0: bigint;
|
|
9242
|
+
minDelta1: bigint;
|
|
9243
|
+
}
|
|
9244
|
+
/**
|
|
9245
|
+
* A LiquidateParams skeleton with every optional route zeroed: no flash loan,
|
|
9246
|
+
* no swaps, no native funding, zero floors. Spread and override.
|
|
9247
|
+
*/
|
|
9248
|
+
declare function emptyLiquidateParams(pool: Address$1, account: Address$1, positionIdListTo: readonly bigint[]): HelperLiquidateParams;
|
|
9249
|
+
/** The four oracle ticks `dispatchFrom` gates liquidation on. */
|
|
9250
|
+
interface LiquidationGateTicks {
|
|
9251
|
+
spotTick: bigint;
|
|
9252
|
+
twapTick: bigint;
|
|
9253
|
+
latestTick: bigint;
|
|
9254
|
+
currentTick: bigint;
|
|
9255
|
+
}
|
|
9256
|
+
/** Result of an exact, single-block reproduction of the pool's liquidation gate. */
|
|
9257
|
+
interface ScreenAccountExactResult {
|
|
9258
|
+
/**
|
|
9259
|
+
* True only when the account is insolvent at ALL four gate ticks — the
|
|
9260
|
+
* exact precondition for `dispatchFrom`'s liquidation branch. Partial
|
|
9261
|
+
* insolvency (1-3 ticks) reverts `NotMarginCalled` on-chain.
|
|
9262
|
+
*/
|
|
9263
|
+
isLiquidatable: boolean;
|
|
9264
|
+
/** Per-tick solvency, same order as `ticks`. */
|
|
9265
|
+
solventAt: [boolean, boolean, boolean, boolean];
|
|
9266
|
+
ticks: LiquidationGateTicks;
|
|
9267
|
+
/** Block every read in this screen was pinned to. */
|
|
9268
|
+
_meta: BlockMeta;
|
|
9269
|
+
}
|
|
9270
|
+
/** Inputs required to screen one account against the pool's four liquidation ticks. */
|
|
9271
|
+
interface ScreenAccountExactParams {
|
|
9272
|
+
client: PublicClient;
|
|
9273
|
+
poolAddress: Address$1;
|
|
9274
|
+
queryAddress: Address$1;
|
|
9275
|
+
account: Address$1;
|
|
9276
|
+
/** The account's full position list (pool hash-validates it on-chain). */
|
|
9277
|
+
tokenIds: readonly bigint[];
|
|
9278
|
+
/** Pin to a specific block (defaults to latest, then pins the whole screen to it). */
|
|
9279
|
+
blockNumber?: bigint;
|
|
9280
|
+
}
|
|
9281
|
+
/**
|
|
9282
|
+
* Reproduce the pool's liquidation gate exactly, pinned to one block.
|
|
9283
|
+
*
|
|
9284
|
+
* `dispatchFrom` checks solvency at `[spotTick, twapTick, latestTick,
|
|
9285
|
+
* currentTick]` — note `twapTick` (riskEngine EMA via `getTWAP()`)
|
|
9286
|
+
* deliberately REPLACES the `medianTick` that `getOracleTicks()` returns.
|
|
9287
|
+
* Never gate liquidatability on the 3-arg `checkCollateral` overload: it
|
|
9288
|
+
* iterates `getOracleTicks()` (which includes medianTick and omits twapTick)
|
|
9289
|
+
* and disagrees with the pool at the margin.
|
|
9290
|
+
*
|
|
9291
|
+
* Two phases, both pinned to the same block: (1) read the oracle ticks and
|
|
9292
|
+
* TWAP, (2) `isAccountSolvent` at each of the four gate ticks.
|
|
9293
|
+
*/
|
|
9294
|
+
declare function screenAccountExact(params: ScreenAccountExactParams): Promise<ScreenAccountExactResult>;
|
|
9295
|
+
/** Signed liquidation bonuses, required shortfalls, and realized protocol losses. */
|
|
9296
|
+
interface LiquidationQuote {
|
|
9297
|
+
/** Signed token0 bonus in assets (negative ⇒ token0 must be paid in). */
|
|
9298
|
+
bonus0: bigint;
|
|
9299
|
+
bonus1: bigint;
|
|
9300
|
+
/** Token the liquidator must supply: max(-bonus, 0). */
|
|
9301
|
+
shortfall0: bigint;
|
|
9302
|
+
shortfall1: bigint;
|
|
9303
|
+
/** Socialized loss realized in each CollateralTracker (assets). */
|
|
9304
|
+
protocolLoss0: bigint;
|
|
9305
|
+
protocolLoss1: bigint;
|
|
9306
|
+
}
|
|
9307
|
+
/** Inputs for simulating `PanopticLiquidator.quoteLiquidation` with `eth_call`. */
|
|
9308
|
+
interface QuoteLiquidationParams {
|
|
9309
|
+
client: PublicClient;
|
|
9310
|
+
/** PanopticLiquidator helper address. */
|
|
9311
|
+
liquidatorAddress: Address$1;
|
|
9312
|
+
/** The helper's owner — quoteLiquidation is onlyOwner, so eth_call `from` must be it. */
|
|
9313
|
+
owner: Address$1;
|
|
9314
|
+
/**
|
|
9315
|
+
* Quote inputs. Only `pool`, `account`, `positionIdListTo`,
|
|
9316
|
+
* `usePremiaAsCollateral` matter: quoteLiquidation calls `_runLiquidation`
|
|
9317
|
+
* directly, ignoring flash-loan, swap, and minDelta fields. It does NOT
|
|
9318
|
+
* validate routes — only a full simulation of `liquidate` does.
|
|
9319
|
+
*/
|
|
9320
|
+
params: HelperLiquidateParams;
|
|
9321
|
+
/**
|
|
9322
|
+
* State overrides funding the helper for the negative-bonus pull. The quote
|
|
9323
|
+
* self-approves, so only BALANCE overrides are needed: a native balance on
|
|
9324
|
+
* the helper (native pools), and/or ERC20 balance-slot overrides discovered
|
|
9325
|
+
* by the caller. Merged verbatim into the eth_call.
|
|
9326
|
+
*/
|
|
9327
|
+
stateOverride?: StateOverride;
|
|
9328
|
+
/**
|
|
9329
|
+
* ETH attached to the quote call (native pools). NOTE the baseline
|
|
9330
|
+
* difference vs `liquidate`: the quote does NOT subtract attached value
|
|
9331
|
+
* from its snapshot, so value that gets spent reads as `bonus0 = -spent`
|
|
9332
|
+
* here but as `delta0 = 0` in `liquidate`. Prefer funding via a balance
|
|
9333
|
+
* override + `params.nativeFundingAmount`, which both paths treat alike.
|
|
9334
|
+
*/
|
|
9335
|
+
value?: bigint;
|
|
9336
|
+
blockNumber?: bigint;
|
|
9337
|
+
}
|
|
9338
|
+
/**
|
|
9339
|
+
* Run `PanopticLiquidator.quoteLiquidation` via `eth_call` (it is
|
|
9340
|
+
* state-mutating by design and must never be mined).
|
|
9341
|
+
*/
|
|
9342
|
+
declare function quoteLiquidation(params: QuoteLiquidationParams): Promise<LiquidationQuote>;
|
|
9343
|
+
|
|
8940
9344
|
//#endregion
|
|
8941
9345
|
//#region src/panoptic/v2/writes/broadcaster.d.ts
|
|
8942
9346
|
/**
|
|
@@ -10847,6 +11251,8 @@ declare function simulateClosePosition(params: SimulateClosePositionParams): Pro
|
|
|
10847
11251
|
* Parameters for simulating dispatch.
|
|
10848
11252
|
*/
|
|
10849
11253
|
interface SimulateDispatchParams {
|
|
11254
|
+
/** Buyer settlements executed atomically before the dispatch. */
|
|
11255
|
+
settleSequence?: Pick<SettleSequenceCallsParams, 'positionIdListFrom' | 'targets'>;
|
|
10850
11256
|
/** Public client */
|
|
10851
11257
|
client: PublicClient;
|
|
10852
11258
|
/** PanopticPool address */
|
|
@@ -10960,6 +11366,8 @@ declare function simulateLiquidate(params: SimulateLiquidateParams): Promise<Sim
|
|
|
10960
11366
|
* Parameters for simulating position opening.
|
|
10961
11367
|
*/
|
|
10962
11368
|
interface SimulateOpenPositionParams {
|
|
11369
|
+
/** Skip gas estimation for interactive previews; defaults to true. */
|
|
11370
|
+
estimateGas?: boolean;
|
|
10963
11371
|
/** Public client */
|
|
10964
11372
|
client: PublicClient;
|
|
10965
11373
|
/** PanopticPool address */
|
|
@@ -11372,6 +11780,8 @@ declare function simulateSwapExactIn(params: SimulateSwapExactInParams): Promise
|
|
|
11372
11780
|
*/
|
|
11373
11781
|
declare const DEFAULT_MIN_SWAP_RATIO_BPS = 50n;
|
|
11374
11782
|
interface OneTokenFlowQuoteParams {
|
|
11783
|
+
/** Buyer settlements included in the quoted transaction. */
|
|
11784
|
+
settleSequence?: SimulateDispatchParams['settleSequence'];
|
|
11375
11785
|
client: PublicClient;
|
|
11376
11786
|
poolAddress: Address$1;
|
|
11377
11787
|
account: Address$1;
|
|
@@ -11588,6 +11998,8 @@ declare function quoteTemporaryLoanRecovery(params: TemporaryLoanRecoveryQuotePa
|
|
|
11588
11998
|
//#endregion
|
|
11589
11999
|
//#region src/panoptic/v2/simulations/tokenShortfallRecovery.d.ts
|
|
11590
12000
|
interface TokenShortfallRecoveryQuoteParams {
|
|
12001
|
+
/** Buyer settlements included in the quoted transaction. */
|
|
12002
|
+
settleSequence?: SimulateDispatchParams['settleSequence'];
|
|
11591
12003
|
client: PublicClient;
|
|
11592
12004
|
poolAddress: Address$1;
|
|
11593
12005
|
account: Address$1;
|
|
@@ -12798,6 +13210,57 @@ declare function isNonceError(error: unknown): boolean;
|
|
|
12798
13210
|
*/
|
|
12799
13211
|
declare function isGasError(error: unknown): boolean;
|
|
12800
13212
|
|
|
13213
|
+
//#endregion
|
|
13214
|
+
//#region src/analytics/market-indicators.d.ts
|
|
13215
|
+
type MarketIndicator = 'atr' | 'efficiency' | 'moments' | 'rsi' | 'variance-ratio';
|
|
13216
|
+
interface IndicatorCandle {
|
|
13217
|
+
time: bigint;
|
|
13218
|
+
openTick: bigint;
|
|
13219
|
+
highTick: bigint;
|
|
13220
|
+
lowTick: bigint;
|
|
13221
|
+
closeTick: bigint;
|
|
13222
|
+
}
|
|
13223
|
+
interface IndicatorPoint {
|
|
13224
|
+
time: bigint;
|
|
13225
|
+
value: Decimal | null;
|
|
13226
|
+
secondaryValue?: Decimal | null;
|
|
13227
|
+
}
|
|
13228
|
+
declare const MARKET_INDICATOR_PERIODS: {
|
|
13229
|
+
readonly atr: 14;
|
|
13230
|
+
readonly efficiency: 10;
|
|
13231
|
+
readonly moments: 96;
|
|
13232
|
+
readonly rsi: 14;
|
|
13233
|
+
readonly 'variance-ratio': 96;
|
|
13234
|
+
};
|
|
13235
|
+
declare const VARIANCE_RATIO_LAG = 4;
|
|
13236
|
+
/** Sorts and fills only internal no-swap gaps; never invents leading/trailing history. */
|
|
13237
|
+
declare function prepareIndicatorCandles(candles: readonly IndicatorCandle[], interval: bigint): IndicatorCandle[];
|
|
13238
|
+
/** Prices use quote units per asset; return statistics use equally spaced log closes. */
|
|
13239
|
+
declare function calculateMarketIndicator(indicator: MarketIndicator, candles: readonly IndicatorCandle[], {
|
|
13240
|
+
intervalSeconds,
|
|
13241
|
+
token0Decimals,
|
|
13242
|
+
token1Decimals,
|
|
13243
|
+
isAssetToken0
|
|
13244
|
+
}: {
|
|
13245
|
+
intervalSeconds: bigint;
|
|
13246
|
+
token0Decimals: bigint;
|
|
13247
|
+
token1Decimals: bigint;
|
|
13248
|
+
isAssetToken0: boolean;
|
|
13249
|
+
}): IndicatorPoint[];
|
|
13250
|
+
/** Sample variance of equal-interval log returns, grouped by UTC candle-start hour/day. */
|
|
13251
|
+
declare function calculateVarianceProfile(candles: readonly IndicatorCandle[], isAssetToken0: boolean, intervalSeconds?: bigint): {
|
|
13252
|
+
hours: {
|
|
13253
|
+
bucket: number;
|
|
13254
|
+
count: number;
|
|
13255
|
+
variance: Decimal | null;
|
|
13256
|
+
}[];
|
|
13257
|
+
weekdays: {
|
|
13258
|
+
bucket: number;
|
|
13259
|
+
count: number;
|
|
13260
|
+
variance: Decimal | null;
|
|
13261
|
+
}[];
|
|
13262
|
+
};
|
|
13263
|
+
|
|
12801
13264
|
//#endregion
|
|
12802
13265
|
//#region src/generated.d.ts
|
|
12803
13266
|
declare const collateralTrackerV2Abi: readonly [{
|
|
@@ -13851,52 +14314,429 @@ declare const collateralTrackerV2Abi: readonly [{
|
|
|
13851
14314
|
readonly inputs: readonly [];
|
|
13852
14315
|
readonly name: "UnauthorizedUniswapCallback";
|
|
13853
14316
|
}];
|
|
13854
|
-
declare const
|
|
14317
|
+
declare const panopticLiquidatorAbi: readonly [{
|
|
13855
14318
|
readonly type: "constructor";
|
|
13856
14319
|
readonly inputs: readonly [{
|
|
13857
|
-
readonly name: "
|
|
13858
|
-
readonly internalType: "contract
|
|
14320
|
+
readonly name: "morpho";
|
|
14321
|
+
readonly internalType: "contract IMorpho";
|
|
14322
|
+
readonly type: "address";
|
|
14323
|
+
}, {
|
|
14324
|
+
readonly name: "owner_";
|
|
14325
|
+
readonly internalType: "address";
|
|
13859
14326
|
readonly type: "address";
|
|
13860
14327
|
}];
|
|
13861
14328
|
readonly stateMutability: "nonpayable";
|
|
14329
|
+
}, {
|
|
14330
|
+
readonly type: "receive";
|
|
14331
|
+
readonly stateMutability: "payable";
|
|
13862
14332
|
}, {
|
|
13863
14333
|
readonly type: "function";
|
|
13864
14334
|
readonly inputs: readonly [];
|
|
13865
|
-
readonly name: "
|
|
14335
|
+
readonly name: "MORPHO";
|
|
13866
14336
|
readonly outputs: readonly [{
|
|
13867
14337
|
readonly name: "";
|
|
13868
|
-
readonly internalType: "contract
|
|
14338
|
+
readonly internalType: "contract IMorpho";
|
|
13869
14339
|
readonly type: "address";
|
|
13870
14340
|
}];
|
|
13871
14341
|
readonly stateMutability: "view";
|
|
13872
14342
|
}, {
|
|
13873
14343
|
readonly type: "function";
|
|
13874
14344
|
readonly inputs: readonly [{
|
|
13875
|
-
readonly name: "
|
|
13876
|
-
readonly internalType: "
|
|
13877
|
-
readonly type: "
|
|
14345
|
+
readonly name: "target";
|
|
14346
|
+
readonly internalType: "address";
|
|
14347
|
+
readonly type: "address";
|
|
13878
14348
|
}, {
|
|
13879
|
-
readonly name: "
|
|
14349
|
+
readonly name: "value";
|
|
13880
14350
|
readonly internalType: "uint256";
|
|
13881
14351
|
readonly type: "uint256";
|
|
14352
|
+
}, {
|
|
14353
|
+
readonly name: "data";
|
|
14354
|
+
readonly internalType: "bytes";
|
|
14355
|
+
readonly type: "bytes";
|
|
13882
14356
|
}];
|
|
13883
|
-
readonly name: "
|
|
13884
|
-
readonly outputs: readonly [];
|
|
13885
|
-
readonly stateMutability: "view";
|
|
13886
|
-
}, {
|
|
13887
|
-
readonly type: "function";
|
|
13888
|
-
readonly inputs: readonly [];
|
|
13889
|
-
readonly name: "collateralToken0";
|
|
14357
|
+
readonly name: "execute";
|
|
13890
14358
|
readonly outputs: readonly [{
|
|
13891
|
-
readonly name: "";
|
|
13892
|
-
readonly internalType: "
|
|
13893
|
-
readonly type: "
|
|
14359
|
+
readonly name: "ret";
|
|
14360
|
+
readonly internalType: "bytes";
|
|
14361
|
+
readonly type: "bytes";
|
|
13894
14362
|
}];
|
|
13895
|
-
readonly stateMutability: "
|
|
14363
|
+
readonly stateMutability: "payable";
|
|
13896
14364
|
}, {
|
|
13897
14365
|
readonly type: "function";
|
|
13898
|
-
readonly inputs: readonly [
|
|
13899
|
-
|
|
14366
|
+
readonly inputs: readonly [{
|
|
14367
|
+
readonly name: "pool";
|
|
14368
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14369
|
+
readonly type: "address";
|
|
14370
|
+
}];
|
|
14371
|
+
readonly name: "initializePool";
|
|
14372
|
+
readonly outputs: readonly [];
|
|
14373
|
+
readonly stateMutability: "nonpayable";
|
|
14374
|
+
}, {
|
|
14375
|
+
readonly type: "function";
|
|
14376
|
+
readonly inputs: readonly [{
|
|
14377
|
+
readonly name: "params";
|
|
14378
|
+
readonly internalType: "struct PanopticLiquidator.LiquidateParams";
|
|
14379
|
+
readonly type: "tuple";
|
|
14380
|
+
readonly components: readonly [{
|
|
14381
|
+
readonly name: "pool";
|
|
14382
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14383
|
+
readonly type: "address";
|
|
14384
|
+
}, {
|
|
14385
|
+
readonly name: "account";
|
|
14386
|
+
readonly internalType: "address";
|
|
14387
|
+
readonly type: "address";
|
|
14388
|
+
}, {
|
|
14389
|
+
readonly name: "positionIdListTo";
|
|
14390
|
+
readonly internalType: "TokenId[]";
|
|
14391
|
+
readonly type: "uint256[]";
|
|
14392
|
+
}, {
|
|
14393
|
+
readonly name: "usePremiaAsCollateral";
|
|
14394
|
+
readonly internalType: "LeftRightUnsigned";
|
|
14395
|
+
readonly type: "uint256";
|
|
14396
|
+
}, {
|
|
14397
|
+
readonly name: "flashToken";
|
|
14398
|
+
readonly internalType: "address";
|
|
14399
|
+
readonly type: "address";
|
|
14400
|
+
}, {
|
|
14401
|
+
readonly name: "flashAmount";
|
|
14402
|
+
readonly internalType: "uint256";
|
|
14403
|
+
readonly type: "uint256";
|
|
14404
|
+
}, {
|
|
14405
|
+
readonly name: "nativeFundingAmount";
|
|
14406
|
+
readonly internalType: "uint256";
|
|
14407
|
+
readonly type: "uint256";
|
|
14408
|
+
}, {
|
|
14409
|
+
readonly name: "preSwapTarget";
|
|
14410
|
+
readonly internalType: "address";
|
|
14411
|
+
readonly type: "address";
|
|
14412
|
+
}, {
|
|
14413
|
+
readonly name: "preSwapCallData";
|
|
14414
|
+
readonly internalType: "bytes";
|
|
14415
|
+
readonly type: "bytes";
|
|
14416
|
+
}, {
|
|
14417
|
+
readonly name: "preSwapTokenIn";
|
|
14418
|
+
readonly internalType: "address";
|
|
14419
|
+
readonly type: "address";
|
|
14420
|
+
}, {
|
|
14421
|
+
readonly name: "preSwapAmountIn";
|
|
14422
|
+
readonly internalType: "uint256";
|
|
14423
|
+
readonly type: "uint256";
|
|
14424
|
+
}, {
|
|
14425
|
+
readonly name: "swapTarget";
|
|
14426
|
+
readonly internalType: "address";
|
|
14427
|
+
readonly type: "address";
|
|
14428
|
+
}, {
|
|
14429
|
+
readonly name: "swapCallData";
|
|
14430
|
+
readonly internalType: "bytes";
|
|
14431
|
+
readonly type: "bytes";
|
|
14432
|
+
}, {
|
|
14433
|
+
readonly name: "swapTokenIn";
|
|
14434
|
+
readonly internalType: "address";
|
|
14435
|
+
readonly type: "address";
|
|
14436
|
+
}, {
|
|
14437
|
+
readonly name: "swapAmountIn";
|
|
14438
|
+
readonly internalType: "uint256";
|
|
14439
|
+
readonly type: "uint256";
|
|
14440
|
+
}, {
|
|
14441
|
+
readonly name: "minDelta0";
|
|
14442
|
+
readonly internalType: "int256";
|
|
14443
|
+
readonly type: "int256";
|
|
14444
|
+
}, {
|
|
14445
|
+
readonly name: "minDelta1";
|
|
14446
|
+
readonly internalType: "int256";
|
|
14447
|
+
readonly type: "int256";
|
|
14448
|
+
}];
|
|
14449
|
+
}];
|
|
14450
|
+
readonly name: "liquidate";
|
|
14451
|
+
readonly outputs: readonly [{
|
|
14452
|
+
readonly name: "delta0";
|
|
14453
|
+
readonly internalType: "int256";
|
|
14454
|
+
readonly type: "int256";
|
|
14455
|
+
}, {
|
|
14456
|
+
readonly name: "delta1";
|
|
14457
|
+
readonly internalType: "int256";
|
|
14458
|
+
readonly type: "int256";
|
|
14459
|
+
}];
|
|
14460
|
+
readonly stateMutability: "payable";
|
|
14461
|
+
}, {
|
|
14462
|
+
readonly type: "function";
|
|
14463
|
+
readonly inputs: readonly [{
|
|
14464
|
+
readonly name: "data";
|
|
14465
|
+
readonly internalType: "bytes[]";
|
|
14466
|
+
readonly type: "bytes[]";
|
|
14467
|
+
}];
|
|
14468
|
+
readonly name: "multicall";
|
|
14469
|
+
readonly outputs: readonly [{
|
|
14470
|
+
readonly name: "results";
|
|
14471
|
+
readonly internalType: "bytes[]";
|
|
14472
|
+
readonly type: "bytes[]";
|
|
14473
|
+
}];
|
|
14474
|
+
readonly stateMutability: "payable";
|
|
14475
|
+
}, {
|
|
14476
|
+
readonly type: "function";
|
|
14477
|
+
readonly inputs: readonly [{
|
|
14478
|
+
readonly name: "assets";
|
|
14479
|
+
readonly internalType: "uint256";
|
|
14480
|
+
readonly type: "uint256";
|
|
14481
|
+
}, {
|
|
14482
|
+
readonly name: "data";
|
|
14483
|
+
readonly internalType: "bytes";
|
|
14484
|
+
readonly type: "bytes";
|
|
14485
|
+
}];
|
|
14486
|
+
readonly name: "onMorphoFlashLoan";
|
|
14487
|
+
readonly outputs: readonly [];
|
|
14488
|
+
readonly stateMutability: "nonpayable";
|
|
14489
|
+
}, {
|
|
14490
|
+
readonly type: "function";
|
|
14491
|
+
readonly inputs: readonly [];
|
|
14492
|
+
readonly name: "owner";
|
|
14493
|
+
readonly outputs: readonly [{
|
|
14494
|
+
readonly name: "";
|
|
14495
|
+
readonly internalType: "address";
|
|
14496
|
+
readonly type: "address";
|
|
14497
|
+
}];
|
|
14498
|
+
readonly stateMutability: "view";
|
|
14499
|
+
}, {
|
|
14500
|
+
readonly type: "function";
|
|
14501
|
+
readonly inputs: readonly [{
|
|
14502
|
+
readonly name: "params";
|
|
14503
|
+
readonly internalType: "struct PanopticLiquidator.LiquidateParams";
|
|
14504
|
+
readonly type: "tuple";
|
|
14505
|
+
readonly components: readonly [{
|
|
14506
|
+
readonly name: "pool";
|
|
14507
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14508
|
+
readonly type: "address";
|
|
14509
|
+
}, {
|
|
14510
|
+
readonly name: "account";
|
|
14511
|
+
readonly internalType: "address";
|
|
14512
|
+
readonly type: "address";
|
|
14513
|
+
}, {
|
|
14514
|
+
readonly name: "positionIdListTo";
|
|
14515
|
+
readonly internalType: "TokenId[]";
|
|
14516
|
+
readonly type: "uint256[]";
|
|
14517
|
+
}, {
|
|
14518
|
+
readonly name: "usePremiaAsCollateral";
|
|
14519
|
+
readonly internalType: "LeftRightUnsigned";
|
|
14520
|
+
readonly type: "uint256";
|
|
14521
|
+
}, {
|
|
14522
|
+
readonly name: "flashToken";
|
|
14523
|
+
readonly internalType: "address";
|
|
14524
|
+
readonly type: "address";
|
|
14525
|
+
}, {
|
|
14526
|
+
readonly name: "flashAmount";
|
|
14527
|
+
readonly internalType: "uint256";
|
|
14528
|
+
readonly type: "uint256";
|
|
14529
|
+
}, {
|
|
14530
|
+
readonly name: "nativeFundingAmount";
|
|
14531
|
+
readonly internalType: "uint256";
|
|
14532
|
+
readonly type: "uint256";
|
|
14533
|
+
}, {
|
|
14534
|
+
readonly name: "preSwapTarget";
|
|
14535
|
+
readonly internalType: "address";
|
|
14536
|
+
readonly type: "address";
|
|
14537
|
+
}, {
|
|
14538
|
+
readonly name: "preSwapCallData";
|
|
14539
|
+
readonly internalType: "bytes";
|
|
14540
|
+
readonly type: "bytes";
|
|
14541
|
+
}, {
|
|
14542
|
+
readonly name: "preSwapTokenIn";
|
|
14543
|
+
readonly internalType: "address";
|
|
14544
|
+
readonly type: "address";
|
|
14545
|
+
}, {
|
|
14546
|
+
readonly name: "preSwapAmountIn";
|
|
14547
|
+
readonly internalType: "uint256";
|
|
14548
|
+
readonly type: "uint256";
|
|
14549
|
+
}, {
|
|
14550
|
+
readonly name: "swapTarget";
|
|
14551
|
+
readonly internalType: "address";
|
|
14552
|
+
readonly type: "address";
|
|
14553
|
+
}, {
|
|
14554
|
+
readonly name: "swapCallData";
|
|
14555
|
+
readonly internalType: "bytes";
|
|
14556
|
+
readonly type: "bytes";
|
|
14557
|
+
}, {
|
|
14558
|
+
readonly name: "swapTokenIn";
|
|
14559
|
+
readonly internalType: "address";
|
|
14560
|
+
readonly type: "address";
|
|
14561
|
+
}, {
|
|
14562
|
+
readonly name: "swapAmountIn";
|
|
14563
|
+
readonly internalType: "uint256";
|
|
14564
|
+
readonly type: "uint256";
|
|
14565
|
+
}, {
|
|
14566
|
+
readonly name: "minDelta0";
|
|
14567
|
+
readonly internalType: "int256";
|
|
14568
|
+
readonly type: "int256";
|
|
14569
|
+
}, {
|
|
14570
|
+
readonly name: "minDelta1";
|
|
14571
|
+
readonly internalType: "int256";
|
|
14572
|
+
readonly type: "int256";
|
|
14573
|
+
}];
|
|
14574
|
+
}];
|
|
14575
|
+
readonly name: "quoteLiquidation";
|
|
14576
|
+
readonly outputs: readonly [{
|
|
14577
|
+
readonly name: "bonus0";
|
|
14578
|
+
readonly internalType: "int256";
|
|
14579
|
+
readonly type: "int256";
|
|
14580
|
+
}, {
|
|
14581
|
+
readonly name: "bonus1";
|
|
14582
|
+
readonly internalType: "int256";
|
|
14583
|
+
readonly type: "int256";
|
|
14584
|
+
}, {
|
|
14585
|
+
readonly name: "shortfall0";
|
|
14586
|
+
readonly internalType: "uint256";
|
|
14587
|
+
readonly type: "uint256";
|
|
14588
|
+
}, {
|
|
14589
|
+
readonly name: "shortfall1";
|
|
14590
|
+
readonly internalType: "uint256";
|
|
14591
|
+
readonly type: "uint256";
|
|
14592
|
+
}, {
|
|
14593
|
+
readonly name: "protocolLoss0";
|
|
14594
|
+
readonly internalType: "uint256";
|
|
14595
|
+
readonly type: "uint256";
|
|
14596
|
+
}, {
|
|
14597
|
+
readonly name: "protocolLoss1";
|
|
14598
|
+
readonly internalType: "uint256";
|
|
14599
|
+
readonly type: "uint256";
|
|
14600
|
+
}];
|
|
14601
|
+
readonly stateMutability: "payable";
|
|
14602
|
+
}, {
|
|
14603
|
+
readonly type: "function";
|
|
14604
|
+
readonly inputs: readonly [{
|
|
14605
|
+
readonly name: "newOwner";
|
|
14606
|
+
readonly internalType: "address";
|
|
14607
|
+
readonly type: "address";
|
|
14608
|
+
}];
|
|
14609
|
+
readonly name: "setOwner";
|
|
14610
|
+
readonly outputs: readonly [];
|
|
14611
|
+
readonly stateMutability: "nonpayable";
|
|
14612
|
+
}, {
|
|
14613
|
+
readonly type: "function";
|
|
14614
|
+
readonly inputs: readonly [{
|
|
14615
|
+
readonly name: "token";
|
|
14616
|
+
readonly internalType: "address";
|
|
14617
|
+
readonly type: "address";
|
|
14618
|
+
}, {
|
|
14619
|
+
readonly name: "to";
|
|
14620
|
+
readonly internalType: "address";
|
|
14621
|
+
readonly type: "address";
|
|
14622
|
+
}, {
|
|
14623
|
+
readonly name: "amount";
|
|
14624
|
+
readonly internalType: "uint256";
|
|
14625
|
+
readonly type: "uint256";
|
|
14626
|
+
}];
|
|
14627
|
+
readonly name: "sweep";
|
|
14628
|
+
readonly outputs: readonly [];
|
|
14629
|
+
readonly stateMutability: "nonpayable";
|
|
14630
|
+
}, {
|
|
14631
|
+
readonly type: "event";
|
|
14632
|
+
readonly anonymous: false;
|
|
14633
|
+
readonly inputs: readonly [{
|
|
14634
|
+
readonly name: "user";
|
|
14635
|
+
readonly internalType: "address";
|
|
14636
|
+
readonly type: "address";
|
|
14637
|
+
readonly indexed: true;
|
|
14638
|
+
}, {
|
|
14639
|
+
readonly name: "newOwner";
|
|
14640
|
+
readonly internalType: "address";
|
|
14641
|
+
readonly type: "address";
|
|
14642
|
+
readonly indexed: true;
|
|
14643
|
+
}];
|
|
14644
|
+
readonly name: "OwnerUpdated";
|
|
14645
|
+
}, {
|
|
14646
|
+
readonly type: "error";
|
|
14647
|
+
readonly inputs: readonly [];
|
|
14648
|
+
readonly name: "ApproveFailed";
|
|
14649
|
+
}, {
|
|
14650
|
+
readonly type: "error";
|
|
14651
|
+
readonly inputs: readonly [];
|
|
14652
|
+
readonly name: "CallFailed";
|
|
14653
|
+
}, {
|
|
14654
|
+
readonly type: "error";
|
|
14655
|
+
readonly inputs: readonly [{
|
|
14656
|
+
readonly name: "delta0";
|
|
14657
|
+
readonly internalType: "int256";
|
|
14658
|
+
readonly type: "int256";
|
|
14659
|
+
}, {
|
|
14660
|
+
readonly name: "delta1";
|
|
14661
|
+
readonly internalType: "int256";
|
|
14662
|
+
readonly type: "int256";
|
|
14663
|
+
}];
|
|
14664
|
+
readonly name: "InsufficientDelta";
|
|
14665
|
+
}, {
|
|
14666
|
+
readonly type: "error";
|
|
14667
|
+
readonly inputs: readonly [];
|
|
14668
|
+
readonly name: "SwapFailed";
|
|
14669
|
+
}, {
|
|
14670
|
+
readonly type: "error";
|
|
14671
|
+
readonly inputs: readonly [{
|
|
14672
|
+
readonly name: "token";
|
|
14673
|
+
readonly internalType: "address";
|
|
14674
|
+
readonly type: "address";
|
|
14675
|
+
}, {
|
|
14676
|
+
readonly name: "from";
|
|
14677
|
+
readonly internalType: "address";
|
|
14678
|
+
readonly type: "address";
|
|
14679
|
+
}, {
|
|
14680
|
+
readonly name: "amount";
|
|
14681
|
+
readonly internalType: "uint256";
|
|
14682
|
+
readonly type: "uint256";
|
|
14683
|
+
}, {
|
|
14684
|
+
readonly name: "balance";
|
|
14685
|
+
readonly internalType: "uint256";
|
|
14686
|
+
readonly type: "uint256";
|
|
14687
|
+
}];
|
|
14688
|
+
readonly name: "TransferFailed";
|
|
14689
|
+
}, {
|
|
14690
|
+
readonly type: "error";
|
|
14691
|
+
readonly inputs: readonly [];
|
|
14692
|
+
readonly name: "UntrustedFlashLoanInitiator";
|
|
14693
|
+
}];
|
|
14694
|
+
declare const panopticPoolV2Abi: readonly [{
|
|
14695
|
+
readonly type: "constructor";
|
|
14696
|
+
readonly inputs: readonly [{
|
|
14697
|
+
readonly name: "_sfpm";
|
|
14698
|
+
readonly internalType: "contract ISemiFungiblePositionManager";
|
|
14699
|
+
readonly type: "address";
|
|
14700
|
+
}];
|
|
14701
|
+
readonly stateMutability: "nonpayable";
|
|
14702
|
+
}, {
|
|
14703
|
+
readonly type: "function";
|
|
14704
|
+
readonly inputs: readonly [];
|
|
14705
|
+
readonly name: "SFPM";
|
|
14706
|
+
readonly outputs: readonly [{
|
|
14707
|
+
readonly name: "";
|
|
14708
|
+
readonly internalType: "contract ISemiFungiblePositionManager";
|
|
14709
|
+
readonly type: "address";
|
|
14710
|
+
}];
|
|
14711
|
+
readonly stateMutability: "view";
|
|
14712
|
+
}, {
|
|
14713
|
+
readonly type: "function";
|
|
14714
|
+
readonly inputs: readonly [{
|
|
14715
|
+
readonly name: "minValue0";
|
|
14716
|
+
readonly internalType: "uint256";
|
|
14717
|
+
readonly type: "uint256";
|
|
14718
|
+
}, {
|
|
14719
|
+
readonly name: "minValue1";
|
|
14720
|
+
readonly internalType: "uint256";
|
|
14721
|
+
readonly type: "uint256";
|
|
14722
|
+
}];
|
|
14723
|
+
readonly name: "assertMinCollateralValues";
|
|
14724
|
+
readonly outputs: readonly [];
|
|
14725
|
+
readonly stateMutability: "view";
|
|
14726
|
+
}, {
|
|
14727
|
+
readonly type: "function";
|
|
14728
|
+
readonly inputs: readonly [];
|
|
14729
|
+
readonly name: "collateralToken0";
|
|
14730
|
+
readonly outputs: readonly [{
|
|
14731
|
+
readonly name: "";
|
|
14732
|
+
readonly internalType: "contract CollateralTrackerV2";
|
|
14733
|
+
readonly type: "address";
|
|
14734
|
+
}];
|
|
14735
|
+
readonly stateMutability: "pure";
|
|
14736
|
+
}, {
|
|
14737
|
+
readonly type: "function";
|
|
14738
|
+
readonly inputs: readonly [];
|
|
14739
|
+
readonly name: "collateralToken1";
|
|
13900
14740
|
readonly outputs: readonly [{
|
|
13901
14741
|
readonly name: "";
|
|
13902
14742
|
readonly internalType: "contract CollateralTrackerV2";
|
|
@@ -14343,149 +15183,666 @@ declare const panopticPoolV2Abi: readonly [{
|
|
|
14343
15183
|
readonly type: "uint256";
|
|
14344
15184
|
readonly indexed: true;
|
|
14345
15185
|
}, {
|
|
14346
|
-
readonly name: "premiaByLeg";
|
|
14347
|
-
readonly internalType: "LeftRightSigned[4]";
|
|
14348
|
-
readonly type: "int256[4]";
|
|
14349
|
-
readonly indexed: false;
|
|
15186
|
+
readonly name: "premiaByLeg";
|
|
15187
|
+
readonly internalType: "LeftRightSigned[4]";
|
|
15188
|
+
readonly type: "int256[4]";
|
|
15189
|
+
readonly indexed: false;
|
|
15190
|
+
}];
|
|
15191
|
+
readonly name: "OptionBurnt";
|
|
15192
|
+
}, {
|
|
15193
|
+
readonly type: "event";
|
|
15194
|
+
readonly anonymous: false;
|
|
15195
|
+
readonly inputs: readonly [{
|
|
15196
|
+
readonly name: "recipient";
|
|
15197
|
+
readonly internalType: "address";
|
|
15198
|
+
readonly type: "address";
|
|
15199
|
+
readonly indexed: true;
|
|
15200
|
+
}, {
|
|
15201
|
+
readonly name: "tokenId";
|
|
15202
|
+
readonly internalType: "TokenId";
|
|
15203
|
+
readonly type: "uint256";
|
|
15204
|
+
readonly indexed: true;
|
|
15205
|
+
}, {
|
|
15206
|
+
readonly name: "balanceData";
|
|
15207
|
+
readonly internalType: "PositionBalance";
|
|
15208
|
+
readonly type: "uint256";
|
|
15209
|
+
readonly indexed: false;
|
|
15210
|
+
}];
|
|
15211
|
+
readonly name: "OptionMinted";
|
|
15212
|
+
}, {
|
|
15213
|
+
readonly type: "event";
|
|
15214
|
+
readonly anonymous: false;
|
|
15215
|
+
readonly inputs: readonly [{
|
|
15216
|
+
readonly name: "user";
|
|
15217
|
+
readonly internalType: "address";
|
|
15218
|
+
readonly type: "address";
|
|
15219
|
+
readonly indexed: true;
|
|
15220
|
+
}, {
|
|
15221
|
+
readonly name: "tokenId";
|
|
15222
|
+
readonly internalType: "TokenId";
|
|
15223
|
+
readonly type: "uint256";
|
|
15224
|
+
readonly indexed: true;
|
|
15225
|
+
}, {
|
|
15226
|
+
readonly name: "legIndex";
|
|
15227
|
+
readonly internalType: "uint256";
|
|
15228
|
+
readonly type: "uint256";
|
|
15229
|
+
readonly indexed: false;
|
|
15230
|
+
}, {
|
|
15231
|
+
readonly name: "settledAmounts";
|
|
15232
|
+
readonly internalType: "LeftRightSigned";
|
|
15233
|
+
readonly type: "int256";
|
|
15234
|
+
readonly indexed: false;
|
|
15235
|
+
}];
|
|
15236
|
+
readonly name: "PremiumSettled";
|
|
15237
|
+
}, {
|
|
15238
|
+
readonly type: "error";
|
|
15239
|
+
readonly inputs: readonly [{
|
|
15240
|
+
readonly name: "solvent";
|
|
15241
|
+
readonly internalType: "uint256";
|
|
15242
|
+
readonly type: "uint256";
|
|
15243
|
+
}, {
|
|
15244
|
+
readonly name: "numberOfTicks";
|
|
15245
|
+
readonly internalType: "uint256";
|
|
15246
|
+
readonly type: "uint256";
|
|
15247
|
+
}];
|
|
15248
|
+
readonly name: "AccountInsolvent";
|
|
15249
|
+
}, {
|
|
15250
|
+
readonly type: "error";
|
|
15251
|
+
readonly inputs: readonly [];
|
|
15252
|
+
readonly name: "AlreadyInitialized";
|
|
15253
|
+
}, {
|
|
15254
|
+
readonly type: "error";
|
|
15255
|
+
readonly inputs: readonly [];
|
|
15256
|
+
readonly name: "CastingError";
|
|
15257
|
+
}, {
|
|
15258
|
+
readonly type: "error";
|
|
15259
|
+
readonly inputs: readonly [];
|
|
15260
|
+
readonly name: "DuplicateTokenId";
|
|
15261
|
+
}, {
|
|
15262
|
+
readonly type: "error";
|
|
15263
|
+
readonly inputs: readonly [];
|
|
15264
|
+
readonly name: "EffectiveLiquidityAboveThreshold";
|
|
15265
|
+
}, {
|
|
15266
|
+
readonly type: "error";
|
|
15267
|
+
readonly inputs: readonly [];
|
|
15268
|
+
readonly name: "InputListFail";
|
|
15269
|
+
}, {
|
|
15270
|
+
readonly type: "error";
|
|
15271
|
+
readonly inputs: readonly [];
|
|
15272
|
+
readonly name: "InvalidTick";
|
|
15273
|
+
}, {
|
|
15274
|
+
readonly type: "error";
|
|
15275
|
+
readonly inputs: readonly [];
|
|
15276
|
+
readonly name: "InvalidTickBound";
|
|
15277
|
+
}, {
|
|
15278
|
+
readonly type: "error";
|
|
15279
|
+
readonly inputs: readonly [];
|
|
15280
|
+
readonly name: "LiquidityTooHigh";
|
|
15281
|
+
}, {
|
|
15282
|
+
readonly type: "error";
|
|
15283
|
+
readonly inputs: readonly [];
|
|
15284
|
+
readonly name: "NetLiquidityZero";
|
|
15285
|
+
}, {
|
|
15286
|
+
readonly type: "error";
|
|
15287
|
+
readonly inputs: readonly [];
|
|
15288
|
+
readonly name: "NoLegsExercisable";
|
|
15289
|
+
}, {
|
|
15290
|
+
readonly type: "error";
|
|
15291
|
+
readonly inputs: readonly [];
|
|
15292
|
+
readonly name: "NotGuardian";
|
|
15293
|
+
}, {
|
|
15294
|
+
readonly type: "error";
|
|
15295
|
+
readonly inputs: readonly [];
|
|
15296
|
+
readonly name: "NotMarginCalled";
|
|
15297
|
+
}, {
|
|
15298
|
+
readonly type: "error";
|
|
15299
|
+
readonly inputs: readonly [];
|
|
15300
|
+
readonly name: "PositionNotOwned";
|
|
15301
|
+
}, {
|
|
15302
|
+
readonly type: "error";
|
|
15303
|
+
readonly inputs: readonly [];
|
|
15304
|
+
readonly name: "PriceImpactTooLarge";
|
|
15305
|
+
}, {
|
|
15306
|
+
readonly type: "error";
|
|
15307
|
+
readonly inputs: readonly [];
|
|
15308
|
+
readonly name: "Reentrancy";
|
|
15309
|
+
}, {
|
|
15310
|
+
readonly type: "error";
|
|
15311
|
+
readonly inputs: readonly [];
|
|
15312
|
+
readonly name: "StaleOracle";
|
|
15313
|
+
}, {
|
|
15314
|
+
readonly type: "error";
|
|
15315
|
+
readonly inputs: readonly [];
|
|
15316
|
+
readonly name: "TokenIdHasZeroLegs";
|
|
15317
|
+
}, {
|
|
15318
|
+
readonly type: "error";
|
|
15319
|
+
readonly inputs: readonly [];
|
|
15320
|
+
readonly name: "TooManyLegsOpen";
|
|
15321
|
+
}, {
|
|
15322
|
+
readonly type: "error";
|
|
15323
|
+
readonly inputs: readonly [];
|
|
15324
|
+
readonly name: "UnderOverFlow";
|
|
15325
|
+
}, {
|
|
15326
|
+
readonly type: "error";
|
|
15327
|
+
readonly inputs: readonly [];
|
|
15328
|
+
readonly name: "WrongPoolId";
|
|
15329
|
+
}];
|
|
15330
|
+
declare const panopticQueryAbi: readonly [{
|
|
15331
|
+
readonly type: "function";
|
|
15332
|
+
readonly inputs: readonly [{
|
|
15333
|
+
readonly name: "pool";
|
|
15334
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15335
|
+
readonly type: "address";
|
|
15336
|
+
}, {
|
|
15337
|
+
readonly name: "account";
|
|
15338
|
+
readonly internalType: "address";
|
|
15339
|
+
readonly type: "address";
|
|
15340
|
+
}, {
|
|
15341
|
+
readonly name: "positionIdList";
|
|
15342
|
+
readonly internalType: "TokenId[]";
|
|
15343
|
+
readonly type: "uint256[]";
|
|
15344
|
+
}];
|
|
15345
|
+
readonly name: "checkCollateral";
|
|
15346
|
+
readonly outputs: readonly [{
|
|
15347
|
+
readonly name: "collateralBalances0";
|
|
15348
|
+
readonly internalType: "uint256[4]";
|
|
15349
|
+
readonly type: "uint256[4]";
|
|
15350
|
+
}, {
|
|
15351
|
+
readonly name: "requiredCollaterals0";
|
|
15352
|
+
readonly internalType: "uint256[4]";
|
|
15353
|
+
readonly type: "uint256[4]";
|
|
15354
|
+
}, {
|
|
15355
|
+
readonly name: "collateralBalances1";
|
|
15356
|
+
readonly internalType: "uint256[4]";
|
|
15357
|
+
readonly type: "uint256[4]";
|
|
15358
|
+
}, {
|
|
15359
|
+
readonly name: "requiredCollaterals1";
|
|
15360
|
+
readonly internalType: "uint256[4]";
|
|
15361
|
+
readonly type: "uint256[4]";
|
|
15362
|
+
}];
|
|
15363
|
+
readonly stateMutability: "view";
|
|
15364
|
+
}, {
|
|
15365
|
+
readonly type: "function";
|
|
15366
|
+
readonly inputs: readonly [{
|
|
15367
|
+
readonly name: "pool";
|
|
15368
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15369
|
+
readonly type: "address";
|
|
15370
|
+
}, {
|
|
15371
|
+
readonly name: "account";
|
|
15372
|
+
readonly internalType: "address";
|
|
15373
|
+
readonly type: "address";
|
|
15374
|
+
}, {
|
|
15375
|
+
readonly name: "positionIdList";
|
|
15376
|
+
readonly internalType: "TokenId[]";
|
|
15377
|
+
readonly type: "uint256[]";
|
|
15378
|
+
}, {
|
|
15379
|
+
readonly name: "atTick";
|
|
15380
|
+
readonly internalType: "int24";
|
|
15381
|
+
readonly type: "int24";
|
|
15382
|
+
}];
|
|
15383
|
+
readonly name: "checkCollateral";
|
|
15384
|
+
readonly outputs: readonly [{
|
|
15385
|
+
readonly name: "balancesAndRequired";
|
|
15386
|
+
readonly internalType: "uint256[4]";
|
|
15387
|
+
readonly type: "uint256[4]";
|
|
15388
|
+
}];
|
|
15389
|
+
readonly stateMutability: "view";
|
|
15390
|
+
}, {
|
|
15391
|
+
readonly type: "function";
|
|
15392
|
+
readonly inputs: readonly [{
|
|
15393
|
+
readonly name: "pool";
|
|
15394
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15395
|
+
readonly type: "address";
|
|
15396
|
+
}, {
|
|
15397
|
+
readonly name: "account";
|
|
15398
|
+
readonly internalType: "address";
|
|
15399
|
+
readonly type: "address";
|
|
15400
|
+
}, {
|
|
15401
|
+
readonly name: "positionIdList";
|
|
15402
|
+
readonly internalType: "TokenId[]";
|
|
15403
|
+
readonly type: "uint256[]";
|
|
15404
|
+
}];
|
|
15405
|
+
readonly name: "checkCollateralListOutput";
|
|
15406
|
+
readonly outputs: readonly [{
|
|
15407
|
+
readonly name: "";
|
|
15408
|
+
readonly internalType: "uint256[4][]";
|
|
15409
|
+
readonly type: "uint256[4][]";
|
|
15410
|
+
}, {
|
|
15411
|
+
readonly name: "";
|
|
15412
|
+
readonly internalType: "int256[]";
|
|
15413
|
+
readonly type: "int256[]";
|
|
15414
|
+
}, {
|
|
15415
|
+
readonly name: "";
|
|
15416
|
+
readonly internalType: "int24[]";
|
|
15417
|
+
readonly type: "int24[]";
|
|
15418
|
+
}];
|
|
15419
|
+
readonly stateMutability: "view";
|
|
15420
|
+
}, {
|
|
15421
|
+
readonly type: "function";
|
|
15422
|
+
readonly inputs: readonly [{
|
|
15423
|
+
readonly name: "positionIdList";
|
|
15424
|
+
readonly internalType: "TokenId[]";
|
|
15425
|
+
readonly type: "uint256[]";
|
|
15426
|
+
}, {
|
|
15427
|
+
readonly name: "shortPremium";
|
|
15428
|
+
readonly internalType: "LeftRightUnsigned";
|
|
15429
|
+
readonly type: "uint256";
|
|
15430
|
+
}, {
|
|
15431
|
+
readonly name: "longPremium";
|
|
15432
|
+
readonly internalType: "LeftRightUnsigned";
|
|
15433
|
+
readonly type: "uint256";
|
|
15434
|
+
}, {
|
|
15435
|
+
readonly name: "positionBalanceArray";
|
|
15436
|
+
readonly internalType: "PositionBalance[]";
|
|
15437
|
+
readonly type: "uint256[]";
|
|
15438
|
+
}, {
|
|
15439
|
+
readonly name: "atTicks";
|
|
15440
|
+
readonly internalType: "int24[]";
|
|
15441
|
+
readonly type: "int24[]";
|
|
15442
|
+
}];
|
|
15443
|
+
readonly name: "computeNetLiquidationValue";
|
|
15444
|
+
readonly outputs: readonly [{
|
|
15445
|
+
readonly name: "value0";
|
|
15446
|
+
readonly internalType: "int256[]";
|
|
15447
|
+
readonly type: "int256[]";
|
|
15448
|
+
}, {
|
|
15449
|
+
readonly name: "value1";
|
|
15450
|
+
readonly internalType: "int256[]";
|
|
15451
|
+
readonly type: "int256[]";
|
|
15452
|
+
}];
|
|
15453
|
+
readonly stateMutability: "pure";
|
|
15454
|
+
}, {
|
|
15455
|
+
readonly type: "function";
|
|
15456
|
+
readonly inputs: readonly [{
|
|
15457
|
+
readonly name: "pool";
|
|
15458
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15459
|
+
readonly type: "address";
|
|
15460
|
+
}, {
|
|
15461
|
+
readonly name: "positionIdList";
|
|
15462
|
+
readonly internalType: "TokenId[]";
|
|
15463
|
+
readonly type: "uint256[]";
|
|
15464
|
+
}];
|
|
15465
|
+
readonly name: "getChunkData";
|
|
15466
|
+
readonly outputs: readonly [{
|
|
15467
|
+
readonly name: "";
|
|
15468
|
+
readonly internalType: "uint256[2][4][]";
|
|
15469
|
+
readonly type: "uint256[2][4][]";
|
|
15470
|
+
}];
|
|
15471
|
+
readonly stateMutability: "view";
|
|
15472
|
+
}, {
|
|
15473
|
+
readonly type: "function";
|
|
15474
|
+
readonly inputs: readonly [{
|
|
15475
|
+
readonly name: "pool";
|
|
15476
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15477
|
+
readonly type: "address";
|
|
15478
|
+
}, {
|
|
15479
|
+
readonly name: "tokenId";
|
|
15480
|
+
readonly internalType: "TokenId";
|
|
15481
|
+
readonly type: "uint256";
|
|
15482
|
+
}, {
|
|
15483
|
+
readonly name: "positionSize";
|
|
15484
|
+
readonly internalType: "uint128";
|
|
15485
|
+
readonly type: "uint128";
|
|
15486
|
+
}];
|
|
15487
|
+
readonly name: "getItmAmounts";
|
|
15488
|
+
readonly outputs: readonly [{
|
|
15489
|
+
readonly name: "itm0";
|
|
15490
|
+
readonly internalType: "int256";
|
|
15491
|
+
readonly type: "int256";
|
|
15492
|
+
}, {
|
|
15493
|
+
readonly name: "itm1";
|
|
15494
|
+
readonly internalType: "int256";
|
|
15495
|
+
readonly type: "int256";
|
|
15496
|
+
}];
|
|
15497
|
+
readonly stateMutability: "view";
|
|
15498
|
+
}, {
|
|
15499
|
+
readonly type: "function";
|
|
15500
|
+
readonly inputs: readonly [{
|
|
15501
|
+
readonly name: "pool";
|
|
15502
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15503
|
+
readonly type: "address";
|
|
15504
|
+
}, {
|
|
15505
|
+
readonly name: "account";
|
|
15506
|
+
readonly internalType: "address";
|
|
15507
|
+
readonly type: "address";
|
|
15508
|
+
}, {
|
|
15509
|
+
readonly name: "positionIdList";
|
|
15510
|
+
readonly internalType: "TokenId[]";
|
|
15511
|
+
readonly type: "uint256[]";
|
|
15512
|
+
}];
|
|
15513
|
+
readonly name: "getLiquidationPrices";
|
|
15514
|
+
readonly outputs: readonly [{
|
|
15515
|
+
readonly name: "liquidationPriceDown";
|
|
15516
|
+
readonly internalType: "int24";
|
|
15517
|
+
readonly type: "int24";
|
|
15518
|
+
}, {
|
|
15519
|
+
readonly name: "liquidationPriceUp";
|
|
15520
|
+
readonly internalType: "int24";
|
|
15521
|
+
readonly type: "int24";
|
|
15522
|
+
}];
|
|
15523
|
+
readonly stateMutability: "view";
|
|
15524
|
+
}, {
|
|
15525
|
+
readonly type: "function";
|
|
15526
|
+
readonly inputs: readonly [{
|
|
15527
|
+
readonly name: "pool";
|
|
15528
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15529
|
+
readonly type: "address";
|
|
15530
|
+
}, {
|
|
15531
|
+
readonly name: "existingPositionIds";
|
|
15532
|
+
readonly internalType: "TokenId[]";
|
|
15533
|
+
readonly type: "uint256[]";
|
|
15534
|
+
}, {
|
|
15535
|
+
readonly name: "account";
|
|
15536
|
+
readonly internalType: "address";
|
|
15537
|
+
readonly type: "address";
|
|
15538
|
+
}, {
|
|
15539
|
+
readonly name: "tokenId";
|
|
15540
|
+
readonly internalType: "TokenId";
|
|
15541
|
+
readonly type: "uint256";
|
|
15542
|
+
}];
|
|
15543
|
+
readonly name: "getMaxPositionSizeBounds";
|
|
15544
|
+
readonly outputs: readonly [{
|
|
15545
|
+
readonly name: "maxSizeAtMinUtil";
|
|
15546
|
+
readonly internalType: "uint128";
|
|
15547
|
+
readonly type: "uint128";
|
|
15548
|
+
}, {
|
|
15549
|
+
readonly name: "maxSizeAtMaxUtil";
|
|
15550
|
+
readonly internalType: "uint128";
|
|
15551
|
+
readonly type: "uint128";
|
|
15552
|
+
}];
|
|
15553
|
+
readonly stateMutability: "view";
|
|
15554
|
+
}, {
|
|
15555
|
+
readonly type: "function";
|
|
15556
|
+
readonly inputs: readonly [{
|
|
15557
|
+
readonly name: "pool";
|
|
15558
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15559
|
+
readonly type: "address";
|
|
15560
|
+
}, {
|
|
15561
|
+
readonly name: "account";
|
|
15562
|
+
readonly internalType: "address";
|
|
15563
|
+
readonly type: "address";
|
|
15564
|
+
}, {
|
|
15565
|
+
readonly name: "includePendingPremium";
|
|
15566
|
+
readonly internalType: "bool";
|
|
15567
|
+
readonly type: "bool";
|
|
15568
|
+
}, {
|
|
15569
|
+
readonly name: "positionIdList";
|
|
15570
|
+
readonly internalType: "TokenId[]";
|
|
15571
|
+
readonly type: "uint256[]";
|
|
15572
|
+
}, {
|
|
15573
|
+
readonly name: "atTicks";
|
|
15574
|
+
readonly internalType: "int24[]";
|
|
15575
|
+
readonly type: "int24[]";
|
|
15576
|
+
}];
|
|
15577
|
+
readonly name: "getNetLiquidationValue";
|
|
15578
|
+
readonly outputs: readonly [{
|
|
15579
|
+
readonly name: "value0";
|
|
15580
|
+
readonly internalType: "int256[]";
|
|
15581
|
+
readonly type: "int256[]";
|
|
15582
|
+
}, {
|
|
15583
|
+
readonly name: "value1";
|
|
15584
|
+
readonly internalType: "int256[]";
|
|
15585
|
+
readonly type: "int256[]";
|
|
15586
|
+
}];
|
|
15587
|
+
readonly stateMutability: "view";
|
|
15588
|
+
}, {
|
|
15589
|
+
readonly type: "function";
|
|
15590
|
+
readonly inputs: readonly [{
|
|
15591
|
+
readonly name: "pool";
|
|
15592
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15593
|
+
readonly type: "address";
|
|
15594
|
+
}, {
|
|
15595
|
+
readonly name: "account";
|
|
15596
|
+
readonly internalType: "address";
|
|
15597
|
+
readonly type: "address";
|
|
15598
|
+
}, {
|
|
15599
|
+
readonly name: "atTick";
|
|
15600
|
+
readonly internalType: "int24";
|
|
15601
|
+
readonly type: "int24";
|
|
15602
|
+
}, {
|
|
15603
|
+
readonly name: "positionIdList";
|
|
15604
|
+
readonly internalType: "TokenId[]";
|
|
15605
|
+
readonly type: "uint256[]";
|
|
15606
|
+
}];
|
|
15607
|
+
readonly name: "getPortfolioValue";
|
|
15608
|
+
readonly outputs: readonly [{
|
|
15609
|
+
readonly name: "value0";
|
|
15610
|
+
readonly internalType: "int256";
|
|
15611
|
+
readonly type: "int256";
|
|
15612
|
+
}, {
|
|
15613
|
+
readonly name: "value1";
|
|
15614
|
+
readonly internalType: "int256";
|
|
15615
|
+
readonly type: "int256";
|
|
15616
|
+
}];
|
|
15617
|
+
readonly stateMutability: "view";
|
|
15618
|
+
}, {
|
|
15619
|
+
readonly type: "function";
|
|
15620
|
+
readonly inputs: readonly [{
|
|
15621
|
+
readonly name: "pool";
|
|
15622
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15623
|
+
readonly type: "address";
|
|
15624
|
+
}, {
|
|
15625
|
+
readonly name: "tokenId";
|
|
15626
|
+
readonly internalType: "TokenId";
|
|
15627
|
+
readonly type: "uint256";
|
|
15628
|
+
}, {
|
|
15629
|
+
readonly name: "atTick";
|
|
15630
|
+
readonly internalType: "int24";
|
|
15631
|
+
readonly type: "int24";
|
|
15632
|
+
}];
|
|
15633
|
+
readonly name: "getRequiredBase";
|
|
15634
|
+
readonly outputs: readonly [{
|
|
15635
|
+
readonly name: "";
|
|
15636
|
+
readonly internalType: "uint256";
|
|
15637
|
+
readonly type: "uint256";
|
|
15638
|
+
}];
|
|
15639
|
+
readonly stateMutability: "view";
|
|
15640
|
+
}, {
|
|
15641
|
+
readonly type: "function";
|
|
15642
|
+
readonly inputs: readonly [{
|
|
15643
|
+
readonly name: "pool";
|
|
15644
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15645
|
+
readonly type: "address";
|
|
15646
|
+
}, {
|
|
15647
|
+
readonly name: "startTick";
|
|
15648
|
+
readonly internalType: "int24";
|
|
15649
|
+
readonly type: "int24";
|
|
15650
|
+
}, {
|
|
15651
|
+
readonly name: "nTicks";
|
|
15652
|
+
readonly internalType: "uint256";
|
|
15653
|
+
readonly type: "uint256";
|
|
15654
|
+
}];
|
|
15655
|
+
readonly name: "getTickNets";
|
|
15656
|
+
readonly outputs: readonly [{
|
|
15657
|
+
readonly name: "tickData";
|
|
15658
|
+
readonly internalType: "int256[]";
|
|
15659
|
+
readonly type: "int256[]";
|
|
15660
|
+
}, {
|
|
15661
|
+
readonly name: "liquidityNets";
|
|
15662
|
+
readonly internalType: "int256[]";
|
|
15663
|
+
readonly type: "int256[]";
|
|
15664
|
+
}];
|
|
15665
|
+
readonly stateMutability: "view";
|
|
15666
|
+
}, {
|
|
15667
|
+
readonly type: "function";
|
|
15668
|
+
readonly inputs: readonly [{
|
|
15669
|
+
readonly name: "univ3pool";
|
|
15670
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
15671
|
+
readonly type: "address";
|
|
15672
|
+
}, {
|
|
15673
|
+
readonly name: "startTick";
|
|
15674
|
+
readonly internalType: "int24";
|
|
15675
|
+
readonly type: "int24";
|
|
15676
|
+
}, {
|
|
15677
|
+
readonly name: "nTicks";
|
|
15678
|
+
readonly internalType: "uint256";
|
|
15679
|
+
readonly type: "uint256";
|
|
15680
|
+
}];
|
|
15681
|
+
readonly name: "getTickNetsV3";
|
|
15682
|
+
readonly outputs: readonly [{
|
|
15683
|
+
readonly name: "tickData";
|
|
15684
|
+
readonly internalType: "int256[]";
|
|
15685
|
+
readonly type: "int256[]";
|
|
15686
|
+
}, {
|
|
15687
|
+
readonly name: "liquidityNets";
|
|
15688
|
+
readonly internalType: "int256[]";
|
|
15689
|
+
readonly type: "int256[]";
|
|
15690
|
+
}];
|
|
15691
|
+
readonly stateMutability: "view";
|
|
15692
|
+
}, {
|
|
15693
|
+
readonly type: "function";
|
|
15694
|
+
readonly inputs: readonly [{
|
|
15695
|
+
readonly name: "manager";
|
|
15696
|
+
readonly internalType: "contract IPoolManager";
|
|
15697
|
+
readonly type: "address";
|
|
15698
|
+
}, {
|
|
15699
|
+
readonly name: "poolId";
|
|
15700
|
+
readonly internalType: "PoolId";
|
|
15701
|
+
readonly type: "bytes32";
|
|
15702
|
+
}, {
|
|
15703
|
+
readonly name: "tickSpacing";
|
|
15704
|
+
readonly internalType: "int24";
|
|
15705
|
+
readonly type: "int24";
|
|
15706
|
+
}, {
|
|
15707
|
+
readonly name: "startTick";
|
|
15708
|
+
readonly internalType: "int24";
|
|
15709
|
+
readonly type: "int24";
|
|
15710
|
+
}, {
|
|
15711
|
+
readonly name: "nTicks";
|
|
15712
|
+
readonly internalType: "uint256";
|
|
15713
|
+
readonly type: "uint256";
|
|
15714
|
+
}];
|
|
15715
|
+
readonly name: "getTickNetsV4";
|
|
15716
|
+
readonly outputs: readonly [{
|
|
15717
|
+
readonly name: "tickData";
|
|
15718
|
+
readonly internalType: "int256[]";
|
|
15719
|
+
readonly type: "int256[]";
|
|
15720
|
+
}, {
|
|
15721
|
+
readonly name: "liquidityNets";
|
|
15722
|
+
readonly internalType: "int256[]";
|
|
15723
|
+
readonly type: "int256[]";
|
|
15724
|
+
}];
|
|
15725
|
+
readonly stateMutability: "view";
|
|
15726
|
+
}, {
|
|
15727
|
+
readonly type: "function";
|
|
15728
|
+
readonly inputs: readonly [{
|
|
15729
|
+
readonly name: "pool";
|
|
15730
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15731
|
+
readonly type: "address";
|
|
15732
|
+
}, {
|
|
15733
|
+
readonly name: "account";
|
|
15734
|
+
readonly internalType: "address";
|
|
15735
|
+
readonly type: "address";
|
|
15736
|
+
}, {
|
|
15737
|
+
readonly name: "positionIdList";
|
|
15738
|
+
readonly internalType: "TokenId[]";
|
|
15739
|
+
readonly type: "uint256[]";
|
|
15740
|
+
}, {
|
|
15741
|
+
readonly name: "atTick";
|
|
15742
|
+
readonly internalType: "int24";
|
|
15743
|
+
readonly type: "int24";
|
|
14350
15744
|
}];
|
|
14351
|
-
readonly name: "
|
|
15745
|
+
readonly name: "isAccountSolvent";
|
|
15746
|
+
readonly outputs: readonly [{
|
|
15747
|
+
readonly name: "";
|
|
15748
|
+
readonly internalType: "bool";
|
|
15749
|
+
readonly type: "bool";
|
|
15750
|
+
}];
|
|
15751
|
+
readonly stateMutability: "view";
|
|
14352
15752
|
}, {
|
|
14353
|
-
readonly type: "
|
|
14354
|
-
readonly anonymous: false;
|
|
15753
|
+
readonly type: "function";
|
|
14355
15754
|
readonly inputs: readonly [{
|
|
14356
|
-
readonly name: "
|
|
14357
|
-
readonly internalType: "
|
|
15755
|
+
readonly name: "pool";
|
|
15756
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14358
15757
|
readonly type: "address";
|
|
14359
|
-
|
|
15758
|
+
}, {
|
|
15759
|
+
readonly name: "atTick";
|
|
15760
|
+
readonly internalType: "int24";
|
|
15761
|
+
readonly type: "int24";
|
|
14360
15762
|
}, {
|
|
14361
15763
|
readonly name: "tokenId";
|
|
14362
15764
|
readonly internalType: "TokenId";
|
|
14363
15765
|
readonly type: "uint256";
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
readonly
|
|
15766
|
+
}];
|
|
15767
|
+
readonly name: "optimizeRiskPartners";
|
|
15768
|
+
readonly outputs: readonly [{
|
|
15769
|
+
readonly name: "";
|
|
15770
|
+
readonly internalType: "TokenId";
|
|
14368
15771
|
readonly type: "uint256";
|
|
14369
|
-
readonly indexed: false;
|
|
14370
15772
|
}];
|
|
14371
|
-
readonly
|
|
15773
|
+
readonly stateMutability: "view";
|
|
14372
15774
|
}, {
|
|
14373
|
-
readonly type: "
|
|
14374
|
-
readonly anonymous: false;
|
|
15775
|
+
readonly type: "function";
|
|
14375
15776
|
readonly inputs: readonly [{
|
|
14376
|
-
readonly name: "
|
|
14377
|
-
readonly internalType: "
|
|
15777
|
+
readonly name: "pool";
|
|
15778
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14378
15779
|
readonly type: "address";
|
|
14379
|
-
readonly indexed: true;
|
|
14380
15780
|
}, {
|
|
14381
|
-
readonly name: "
|
|
14382
|
-
readonly internalType: "
|
|
14383
|
-
readonly type: "
|
|
14384
|
-
readonly indexed: true;
|
|
15781
|
+
readonly name: "tickLower";
|
|
15782
|
+
readonly internalType: "int24";
|
|
15783
|
+
readonly type: "int24";
|
|
14385
15784
|
}, {
|
|
14386
|
-
readonly name: "
|
|
14387
|
-
readonly internalType: "
|
|
14388
|
-
readonly type: "
|
|
14389
|
-
readonly indexed: false;
|
|
15785
|
+
readonly name: "tickUpper";
|
|
15786
|
+
readonly internalType: "int24";
|
|
15787
|
+
readonly type: "int24";
|
|
14390
15788
|
}, {
|
|
14391
|
-
readonly name: "
|
|
14392
|
-
readonly internalType: "
|
|
14393
|
-
readonly type: "
|
|
14394
|
-
readonly indexed: false;
|
|
15789
|
+
readonly name: "width";
|
|
15790
|
+
readonly internalType: "int24";
|
|
15791
|
+
readonly type: "int24";
|
|
14395
15792
|
}];
|
|
14396
|
-
readonly name: "
|
|
15793
|
+
readonly name: "scanChunks";
|
|
15794
|
+
readonly outputs: readonly [{
|
|
15795
|
+
readonly name: "";
|
|
15796
|
+
readonly internalType: "int24[]";
|
|
15797
|
+
readonly type: "int24[]";
|
|
15798
|
+
}, {
|
|
15799
|
+
readonly name: "";
|
|
15800
|
+
readonly internalType: "uint128[2][]";
|
|
15801
|
+
readonly type: "uint128[2][]";
|
|
15802
|
+
}, {
|
|
15803
|
+
readonly name: "";
|
|
15804
|
+
readonly internalType: "uint128[2][]";
|
|
15805
|
+
readonly type: "uint128[2][]";
|
|
15806
|
+
}, {
|
|
15807
|
+
readonly name: "";
|
|
15808
|
+
readonly internalType: "LeftRightUnsigned[2][]";
|
|
15809
|
+
readonly type: "uint256[2][]";
|
|
15810
|
+
}];
|
|
15811
|
+
readonly stateMutability: "view";
|
|
14397
15812
|
}, {
|
|
14398
|
-
readonly type: "
|
|
15813
|
+
readonly type: "function";
|
|
14399
15814
|
readonly inputs: readonly [{
|
|
14400
|
-
readonly name: "
|
|
14401
|
-
readonly internalType: "
|
|
14402
|
-
readonly type: "uint256";
|
|
14403
|
-
}, {
|
|
14404
|
-
readonly name: "numberOfTicks";
|
|
14405
|
-
readonly internalType: "uint256";
|
|
15815
|
+
readonly name: "self";
|
|
15816
|
+
readonly internalType: "TokenId";
|
|
14406
15817
|
readonly type: "uint256";
|
|
14407
15818
|
}];
|
|
14408
|
-
readonly name: "
|
|
14409
|
-
|
|
14410
|
-
readonly
|
|
14411
|
-
readonly inputs: readonly [];
|
|
14412
|
-
readonly name: "AlreadyInitialized";
|
|
15819
|
+
readonly name: "validateTokenId";
|
|
15820
|
+
readonly outputs: readonly [];
|
|
15821
|
+
readonly stateMutability: "pure";
|
|
14413
15822
|
}, {
|
|
14414
15823
|
readonly type: "error";
|
|
14415
15824
|
readonly inputs: readonly [];
|
|
14416
15825
|
readonly name: "CastingError";
|
|
14417
|
-
}, {
|
|
14418
|
-
readonly type: "error";
|
|
14419
|
-
readonly inputs: readonly [];
|
|
14420
|
-
readonly name: "DuplicateTokenId";
|
|
14421
|
-
}, {
|
|
14422
|
-
readonly type: "error";
|
|
14423
|
-
readonly inputs: readonly [];
|
|
14424
|
-
readonly name: "EffectiveLiquidityAboveThreshold";
|
|
14425
|
-
}, {
|
|
14426
|
-
readonly type: "error";
|
|
14427
|
-
readonly inputs: readonly [];
|
|
14428
|
-
readonly name: "InputListFail";
|
|
14429
15826
|
}, {
|
|
14430
15827
|
readonly type: "error";
|
|
14431
15828
|
readonly inputs: readonly [];
|
|
14432
15829
|
readonly name: "InvalidTick";
|
|
14433
15830
|
}, {
|
|
14434
15831
|
readonly type: "error";
|
|
14435
|
-
readonly inputs: readonly [
|
|
14436
|
-
|
|
15832
|
+
readonly inputs: readonly [{
|
|
15833
|
+
readonly name: "parameterType";
|
|
15834
|
+
readonly internalType: "uint256";
|
|
15835
|
+
readonly type: "uint256";
|
|
15836
|
+
}];
|
|
15837
|
+
readonly name: "InvalidTokenIdParameter";
|
|
14437
15838
|
}, {
|
|
14438
15839
|
readonly type: "error";
|
|
14439
15840
|
readonly inputs: readonly [];
|
|
14440
15841
|
readonly name: "LiquidityTooHigh";
|
|
14441
|
-
}, {
|
|
14442
|
-
readonly type: "error";
|
|
14443
|
-
readonly inputs: readonly [];
|
|
14444
|
-
readonly name: "NetLiquidityZero";
|
|
14445
|
-
}, {
|
|
14446
|
-
readonly type: "error";
|
|
14447
|
-
readonly inputs: readonly [];
|
|
14448
|
-
readonly name: "NoLegsExercisable";
|
|
14449
|
-
}, {
|
|
14450
|
-
readonly type: "error";
|
|
14451
|
-
readonly inputs: readonly [];
|
|
14452
|
-
readonly name: "NotGuardian";
|
|
14453
|
-
}, {
|
|
14454
|
-
readonly type: "error";
|
|
14455
|
-
readonly inputs: readonly [];
|
|
14456
|
-
readonly name: "NotMarginCalled";
|
|
14457
|
-
}, {
|
|
14458
|
-
readonly type: "error";
|
|
14459
|
-
readonly inputs: readonly [];
|
|
14460
|
-
readonly name: "PositionNotOwned";
|
|
14461
|
-
}, {
|
|
14462
|
-
readonly type: "error";
|
|
14463
|
-
readonly inputs: readonly [];
|
|
14464
|
-
readonly name: "PriceImpactTooLarge";
|
|
14465
|
-
}, {
|
|
14466
|
-
readonly type: "error";
|
|
14467
|
-
readonly inputs: readonly [];
|
|
14468
|
-
readonly name: "Reentrancy";
|
|
14469
|
-
}, {
|
|
14470
|
-
readonly type: "error";
|
|
14471
|
-
readonly inputs: readonly [];
|
|
14472
|
-
readonly name: "StaleOracle";
|
|
14473
|
-
}, {
|
|
14474
|
-
readonly type: "error";
|
|
14475
|
-
readonly inputs: readonly [];
|
|
14476
|
-
readonly name: "TokenIdHasZeroLegs";
|
|
14477
|
-
}, {
|
|
14478
|
-
readonly type: "error";
|
|
14479
|
-
readonly inputs: readonly [];
|
|
14480
|
-
readonly name: "TooManyLegsOpen";
|
|
14481
15842
|
}, {
|
|
14482
15843
|
readonly type: "error";
|
|
14483
15844
|
readonly inputs: readonly [];
|
|
14484
15845
|
readonly name: "UnderOverFlow";
|
|
14485
|
-
}, {
|
|
14486
|
-
readonly type: "error";
|
|
14487
|
-
readonly inputs: readonly [];
|
|
14488
|
-
readonly name: "WrongPoolId";
|
|
14489
15846
|
}];
|
|
14490
15847
|
declare const riskEngineAbi: readonly [{
|
|
14491
15848
|
readonly type: "constructor";
|
|
@@ -15504,8 +16861,9 @@ declare function usePreviewDeposit(poolAddress: Address$1, tokenIndex: 0 | 1, am
|
|
|
15504
16861
|
declare function usePreviewWithdraw(poolAddress: Address$1, tokenIndex: 0 | 1, amount: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
15505
16862
|
declare function usePreviewMint(poolAddress: Address$1, tokenIndex: 0 | 1, amount: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
15506
16863
|
declare function usePreviewRedeem(poolAddress: Address$1, tokenIndex: 0 | 1, amount: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
15507
|
-
declare function useEstimateCollateralRequired(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, queryAddress: Address$1,
|
|
16864
|
+
declare function useEstimateCollateralRequired(poolAddress: Address$1, tokenId: bigint, positionSize: bigint, queryAddress: Address$1, _account?: Address$1, options?: QueryOptions & {
|
|
15508
16865
|
atTick?: bigint;
|
|
16866
|
+
blockNumber?: bigint;
|
|
15509
16867
|
}): QueryObserverResult<TData, TError>;
|
|
15510
16868
|
/**
|
|
15511
16869
|
* Classify a position into the strategies the RiskEngine recognizes, and split
|
|
@@ -15550,6 +16908,7 @@ declare function useMaxRedeem(collateralTrackerAddress: Address$1, account?: Add
|
|
|
15550
16908
|
client?: PublicClient;
|
|
15551
16909
|
}): QueryObserverResult<TData, TError>;
|
|
15552
16910
|
declare function useOpenPositionPreview(poolAddress: Address$1, account: Address$1 | undefined, existingPositionIds: bigint[], tokenId: bigint, positionSize: bigint, queryAddress: Address$1, tickLimitLow: bigint, tickLimitHigh: bigint, options?: QueryOptions & {
|
|
16911
|
+
estimateGas?: boolean;
|
|
15553
16912
|
spreadLimit?: bigint;
|
|
15554
16913
|
swapAtMint?: boolean;
|
|
15555
16914
|
usePremiaAsCollateral?: boolean;
|
|
@@ -15811,113 +17170,30 @@ declare function useSimulateSFPMBurn(params?: OmitClient<SimulateSFPMParams>): Q
|
|
|
15811
17170
|
declare function useSimulateSwapExactOut(poolAddress: Address$1, params?: OmitClientAndPool<SimulateSwapExactOutParams>): QueryObserverResult<TData, TError>;
|
|
15812
17171
|
declare function useSimulateSwapExactIn(poolAddress: Address$1, params?: OmitClientAndPool<SimulateSwapExactInParams>): QueryObserverResult<TData, TError>;
|
|
15813
17172
|
|
|
15814
|
-
//#endregion
|
|
15815
|
-
//#region src/uniswap/v4/addresses.d.ts
|
|
15816
|
-
/**
|
|
15817
|
-
* Uniswap v4 contract addresses required for a Universal Router spot swap.
|
|
15818
|
-
*/
|
|
15819
|
-
interface UniswapV4Addresses {
|
|
15820
|
-
/** Universal Router (v4-capable build) — entrypoint for `execute(...)`. */
|
|
15821
|
-
universalRouter: Address$1;
|
|
15822
|
-
/** V4Quoter — `quoteExactInputSingle` (revert/staticcall-based). */
|
|
15823
|
-
v4Quoter: Address$1;
|
|
15824
|
-
/** Uniswap v4 PoolManager (singleton). */
|
|
15825
|
-
poolManager: Address$1;
|
|
15826
|
-
/** Uniswap v4 PositionManager (posm) — ERC721 LP position NFTs. */
|
|
15827
|
-
positionManager: Address$1;
|
|
15828
|
-
/** Canonical Permit2 (same address on every chain). */
|
|
15829
|
-
permit2: Address$1;
|
|
15830
|
-
}
|
|
15831
|
-
|
|
15832
|
-
//#endregion
|
|
15833
|
-
//#region src/uniswap/v4/router/types.d.ts
|
|
15834
|
-
/**
|
|
15835
|
-
* Canonical Permit2, identical across all chains.
|
|
15836
|
-
*/
|
|
15837
|
-
|
|
15838
|
-
/**
|
|
15839
|
-
* Parameters for {@link quoteSwapExactInViaRouter}.
|
|
15840
|
-
*/
|
|
15841
|
-
interface QuoteSwapExactInViaRouterParams {
|
|
15842
|
-
/** Public client. */
|
|
15843
|
-
client: PublicClient;
|
|
15844
|
-
/** PanopticPool address — used to resolve the underlying v4 PoolKey. */
|
|
15845
|
-
poolAddress: Address$1;
|
|
15846
|
-
/** Chain ID. */
|
|
15847
|
-
chainId: bigint;
|
|
15848
|
-
/** Token to sell. `address(0)` for native ETH. */
|
|
15849
|
-
tokenIn: Address$1;
|
|
15850
|
-
/** Exact amount of `tokenIn` to spend (must fit uint128). */
|
|
15851
|
-
amountIn: bigint;
|
|
15852
|
-
/** Slippage tolerance in bps (used to compute `amountOutMinimum`). */
|
|
15853
|
-
slippageBps: bigint;
|
|
15854
|
-
/** Optional block number for the quote. */
|
|
15855
|
-
blockNumber?: bigint;
|
|
15856
|
-
/** Override per-chain Uniswap v4 addresses (e.g. fork tests). */
|
|
15857
|
-
addresses?: Partial<UniswapV4Addresses>;
|
|
15858
|
-
}
|
|
15859
|
-
/**
|
|
15860
|
-
* Quote result data (carried inside a `SimulationResult`).
|
|
15861
|
-
*/
|
|
15862
|
-
|
|
15863
|
-
/**
|
|
15864
|
-
* Parameters for {@link quoteSwapExactOutViaRouter}.
|
|
15865
|
-
*/
|
|
15866
|
-
interface QuoteSwapExactOutViaRouterParams {
|
|
15867
|
-
/** Public client. */
|
|
15868
|
-
client: PublicClient;
|
|
15869
|
-
/** PanopticPool address — used to resolve the underlying v4 PoolKey. */
|
|
15870
|
-
poolAddress: Address$1;
|
|
15871
|
-
/** Chain ID. */
|
|
15872
|
-
chainId: bigint;
|
|
15873
|
-
/** Token to sell (the pay token). `address(0)` for native ETH. */
|
|
15874
|
-
tokenIn: Address$1;
|
|
15875
|
-
/** Exact amount of the output token to receive (must fit uint128). */
|
|
15876
|
-
amountOut: bigint;
|
|
15877
|
-
/** Slippage tolerance in bps (used to compute `amountInMaximum`). */
|
|
15878
|
-
slippageBps: bigint;
|
|
15879
|
-
/** Optional block number for the quote. */
|
|
15880
|
-
blockNumber?: bigint;
|
|
15881
|
-
/** Override per-chain Uniswap v4 addresses (e.g. fork tests). */
|
|
15882
|
-
addresses?: Partial<UniswapV4Addresses>;
|
|
15883
|
-
}
|
|
15884
|
-
/**
|
|
15885
|
-
* Quote result data for an exact-out swap (carried inside a `SimulationResult`).
|
|
15886
|
-
*/
|
|
15887
|
-
|
|
15888
|
-
/**
|
|
15889
|
-
* Parameters for {@link checkRouterApproval}.
|
|
15890
|
-
*/
|
|
15891
|
-
interface CheckRouterApprovalParams {
|
|
15892
|
-
/** Public client. */
|
|
15893
|
-
client: PublicClient;
|
|
15894
|
-
/** Chain ID. */
|
|
15895
|
-
chainId: bigint;
|
|
15896
|
-
/** ERC20 token being spent (must not be native ETH). */
|
|
15897
|
-
tokenIn: Address$1;
|
|
15898
|
-
/** Token owner. */
|
|
15899
|
-
owner: Address$1;
|
|
15900
|
-
/** Amount that must be spendable. */
|
|
15901
|
-
amount: bigint;
|
|
15902
|
-
/** Override per-chain Uniswap v4 addresses (e.g. fork tests). */
|
|
15903
|
-
addresses?: Partial<UniswapV4Addresses>;
|
|
15904
|
-
}
|
|
15905
|
-
|
|
15906
17173
|
//#endregion
|
|
15907
17174
|
//#region src/panoptic/v2/react/hooks/uniswapRouter.d.ts
|
|
17175
|
+
type RouterAddresses = Partial<UniswapV3Addresses & UniswapV4Addresses>;
|
|
17176
|
+
type OmitInjectedWithChain<T> = Omit<T, 'client' | 'walletClient' | 'account' | 'chainId'>;
|
|
17177
|
+
type OmitClientPoolAndChain<T> = Omit<T, 'client' | 'poolAddress' | 'chainId' | 'addresses'> & {
|
|
17178
|
+
addresses?: RouterAddresses;
|
|
17179
|
+
};
|
|
15908
17180
|
/**
|
|
15909
|
-
*
|
|
17181
|
+
* Fetch the immutable `isV4` flag for a pool. Cached indefinitely (metadata
|
|
17182
|
+
* never changes for a given pool address).
|
|
15910
17183
|
*/
|
|
15911
|
-
|
|
15912
|
-
|
|
17184
|
+
declare function usePoolVersion(poolAddress: Address$1): {
|
|
17185
|
+
isV4: QueryObserverResult<TData, TError>;
|
|
17186
|
+
isLoading: any;
|
|
17187
|
+
isError: QueryObserverResult<TData, TError>;
|
|
17188
|
+
};
|
|
15913
17189
|
/**
|
|
15914
|
-
* Quote an exact-in spot swap via the Universal Router
|
|
15915
|
-
*
|
|
17190
|
+
* Quote an exact-in spot swap via the Universal Router.
|
|
17191
|
+
* Dispatches to v3 or v4 quoter based on pool version.
|
|
15916
17192
|
*/
|
|
15917
17193
|
declare function useQuoteSwapExactInViaRouter(poolAddress: Address$1, params?: OmitClientPoolAndChain<QuoteSwapExactInViaRouterParams>): QueryObserverResult<TData, TError>;
|
|
15918
17194
|
/**
|
|
15919
|
-
* Quote an exact-out spot swap via the Universal Router
|
|
15920
|
-
*
|
|
17195
|
+
* Quote an exact-out spot swap via the Universal Router.
|
|
17196
|
+
* Dispatches to v3 or v4 quoter based on pool version.
|
|
15921
17197
|
*/
|
|
15922
17198
|
declare function useQuoteSwapExactOutViaRouter(poolAddress: Address$1, params?: OmitClientPoolAndChain<QuoteSwapExactOutViaRouterParams>): QueryObserverResult<TData, TError>;
|
|
15923
17199
|
/**
|
|
@@ -15926,10 +17202,12 @@ declare function useQuoteSwapExactOutViaRouter(poolAddress: Address$1, params?:
|
|
|
15926
17202
|
declare function useCheckRouterApproval(params?: OmitInjectedWithChain<CheckRouterApprovalParams>): QueryObserverResult<TData, TError>;
|
|
15927
17203
|
/**
|
|
15928
17204
|
* Execute an exact-in spot swap via the Universal Router.
|
|
17205
|
+
* Dispatches to v3 or v4 swap path based on pool version.
|
|
15929
17206
|
*/
|
|
15930
17207
|
declare function useSwapExactInViaRouter(poolAddress: Address$1): any;
|
|
15931
17208
|
/**
|
|
15932
17209
|
* Execute an exact-out spot swap via the Universal Router.
|
|
17210
|
+
* Dispatches to v3 or v4 swap path based on pool version.
|
|
15933
17211
|
*/
|
|
15934
17212
|
declare function useSwapExactOutViaRouter(poolAddress: Address$1): any;
|
|
15935
17213
|
/**
|
|
@@ -16512,5 +17790,5 @@ declare const queryKeys: {
|
|
|
16512
17790
|
};
|
|
16513
17791
|
|
|
16514
17792
|
//#endregion
|
|
16515
|
-
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, BuildCreditWrappedDispatchParams, BuildProtectedSettleDispatchParams, BuildTemporaryLoanRecoveryDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralBreakdown, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralStrategyKind, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditSwapCall, CreditSwapCallParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedOraclePack, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DeriveStrategy, DeriveUniqueTokenIdParams, DeriveUniqueTokenIdResult, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchIntent, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralBreakdownParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, ExecuteSettleSequenceParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, ForfeitablePremium, GenerateOverlappingTokenIdsParams, GenerateOverlappingTokenIdsResult, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetForfeitablePremiumParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleRiskParametersParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LadderStrike, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, 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, ProtectedSettlePlan, ProviderLagError, QueryOptions, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettlePremiumBatchResult, SettlePremiumBatchTargetResult, SettlePremiumFromParams, SettlePremiumFromSimulation, SettleSequenceCallsParams, SettleSequenceClose, SettleSequenceSimulation, SettleSequenceTarget, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSettlePremiumBatchParams, SimulateSettlePremiumFromParams, SimulateSettleSequenceParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, SplitTokenIdByTimescaleResult, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, StrikeClassification, StrikeOrientation, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TemporaryLoanRecoveryQuote, TemporaryLoanRecoveryQuoteParams, TemporaryLoanRecoveryResult, TemporaryLoanRecoveryUnavailableReason, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsafePremiumSettlementError, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3ExactInQuote, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, applyMintBuffer, applyMintBufferPerToken, apportion, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildCreditWrappedDispatch, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildSfpmSwapCalldata, buildSfpmSwapPlan, buildTemporaryLoanRecoveryDispatch, buildTokenShortfallRecoveryDispatch, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralRuleKindFor, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleRiskParameters, decodeOracleTiming, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, deriveUniqueTokenId, detectReorg, diagnoseOracleSafeMode, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, ensureSfpmV3PoolInitialized, estimateBlockNumbers, estimateCollateralBreakdown, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, failPendingPosition, feesFromFeeGrowthDelta, fetchPoolId, fetchSfpmV3PoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, generateOverlappingTokenIds, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getForfeitablePremium, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, 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, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, 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, isolateGroupTokenId, jsonSerializer, ladderStrikeSequence, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolveLadderStrike, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, 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, useCollateralBreakdown, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useExecuteSettleSequence, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useForfeitablePremium, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxRedeem, 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, useSettlePremiumFrom as useSettlePremiumFromHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSettlePremiumBatch, useSimulateSettlePremiumFrom, useSimulateSettleSequence, 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 };
|
|
17793
|
+
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, BuildCreditWrappedDispatchParams, BuildProtectedSettleDispatchParams, BuildTemporaryLoanRecoveryDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralBreakdown, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralStrategyKind, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditSwapCall, CreditSwapCallParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedOraclePack, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DeriveStrategy, DeriveUniqueTokenIdParams, DeriveUniqueTokenIdResult, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchIntent, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralBreakdownParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, ExecuteSettleSequenceParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, ForfeitablePremium, GenerateOverlappingTokenIdsParams, GenerateOverlappingTokenIdsResult, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetForfeitablePremiumParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleRiskParametersParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, HedgeLimitEstimate, HelperLiquidateParams, IndicatorCandle, IndicatorPoint, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LadderStrike, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationGateTicks, LiquidationPrices, LiquidationQuote, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, LpFundingPolicy, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MARKET_INDICATOR_PERIODS, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MarketIndicator, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, 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, ProtectedSettlePlan, ProviderLagError, QueryOptions, QuoteLiquidationParams, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, ScreenAccountExactParams, ScreenAccountExactResult, SettleParams, SettlePremiumBatchResult, SettlePremiumBatchTargetResult, SettlePremiumFromParams, SettlePremiumFromSimulation, SettleSequenceCallsParams, SettleSequenceClose, SettleSequenceSimulation, SettleSequenceTarget, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSettlePremiumBatchParams, SimulateSettlePremiumFromParams, SimulateSettleSequenceParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, SplitTokenIdByTimescaleResult, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, StrikeClassification, StrikeOrientation, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TemporaryLoanRecoveryQuote, TemporaryLoanRecoveryQuoteParams, TemporaryLoanRecoveryResult, TemporaryLoanRecoveryUnavailableReason, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsafePremiumSettlementError, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3ExactInQuote, V3PoolConfig, V4PoolConfig, VARIANCE_RATIO_LAG, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, applyMintBuffer, applyMintBufferPerToken, apportion, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertLpPositionFunded, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildCreditWrappedDispatch, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildSfpmSwapCalldata, buildSfpmSwapPlan, buildTemporaryLoanRecoveryDispatch, buildTokenShortfallRecoveryDispatch, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure, calculateMarketIndicator, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculatePositionValues, calculateResyncBlock, calculateSpreadWad, calculateVarianceProfile, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralRuleKindFor, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleRiskParameters, decodeOracleTiming, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, deriveUniqueTokenId, detectReorg, diagnoseOracleSafeMode, dispatch, dispatchAndWait, emptyLiquidateParams, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, ensureSfpmV3PoolInitialized, estimateBlockNumbers, estimateCollateralBreakdown, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, failPendingPosition, feesFromFeeGrowthDelta, fetchPoolId, fetchSfpmV3PoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, generateOverlappingTokenIds, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralRequiredBase, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getExecutableLpMaxSize, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getForfeitablePremium, getGuardianUnlockState, getHedgeLimits, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolCurrentTick, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionDeltaMetrics, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, 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, isolateGroupTokenId, jsonSerializer, ladderStrikeSequence, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticLiquidatorAbi, panopticPoolV2Abi, panopticQueryAbi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, prepareIndicatorCandles, preparePositionValue, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, quoteLiquidation, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolveLadderStrike, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scaleCollateralRequired, scanChunks, screenAccountExact, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, 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, useCollateralBreakdown, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useExecuteSettleSequence, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useForfeitablePremium, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxRedeem, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePoolVersion, 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, useSettlePremiumFrom as useSettlePremiumFromHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSettlePremiumBatch, useSimulateSettlePremiumFrom, useSimulateSettleSequence, 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 };
|
|
16516
17794
|
//# sourceMappingURL=react-public.d.ts.map
|