@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,15 +1,114 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Abi as Abi$1, Address, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, StateOverride, WalletClient } from "viem";
|
|
3
|
+
import Decimal from "decimal.js";
|
|
2
4
|
import { ChainDeployment, getChainDeployment, isSupportedChain, requireChainDeployment } from "../../deployments";
|
|
3
5
|
|
|
6
|
+
//#region src/panoptic/v2/reads/lpFunding.d.ts
|
|
7
|
+
interface LpFundingPolicy {
|
|
8
|
+
queryAddress: Address;
|
|
9
|
+
quoteTokenIndex: 0 | 1;
|
|
10
|
+
stateViewAddress?: Address;
|
|
11
|
+
}
|
|
12
|
+
/** Recheck full LP backing against fresh pool and account state before signing. */
|
|
13
|
+
declare function readLpFundingSnapshot(params: LpFundingPolicy & {
|
|
14
|
+
client: PublicClient;
|
|
15
|
+
poolAddress: Address;
|
|
16
|
+
account: Address;
|
|
17
|
+
existingPositionIds: bigint[];
|
|
18
|
+
tokenId: bigint;
|
|
19
|
+
positionSize: bigint;
|
|
20
|
+
blockNumber?: bigint;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
funding: {
|
|
23
|
+
principalInQuote: bigint;
|
|
24
|
+
bufferInQuote: bigint;
|
|
25
|
+
totalInQuote: bigint;
|
|
26
|
+
principal: {
|
|
27
|
+
amount0: bigint;
|
|
28
|
+
amount1: bigint;
|
|
29
|
+
};
|
|
30
|
+
buffer: {
|
|
31
|
+
amount0: bigint;
|
|
32
|
+
amount1: bigint;
|
|
33
|
+
};
|
|
34
|
+
total: {
|
|
35
|
+
amount0: bigint;
|
|
36
|
+
amount1: bigint;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
fundingParams: {
|
|
40
|
+
tokenId: bigint;
|
|
41
|
+
positionSize: bigint;
|
|
42
|
+
tickSpacing: bigint;
|
|
43
|
+
sqrtPriceX96: bigint;
|
|
44
|
+
valuationSqrtPriceX96: bigint;
|
|
45
|
+
quoteTokenIndex: 0 | 1;
|
|
46
|
+
};
|
|
47
|
+
availableInQuote: bigint;
|
|
48
|
+
blockNumber: bigint;
|
|
49
|
+
currentTick: bigint;
|
|
50
|
+
_meta: BlockMeta;
|
|
51
|
+
}>;
|
|
52
|
+
/** Recheck the same funding policy used by executable LP sizing before signing. */
|
|
53
|
+
declare function assertLpPositionFunded(params: Parameters<typeof readLpFundingSnapshot>[0]): Promise<{
|
|
54
|
+
principalInQuote: bigint;
|
|
55
|
+
bufferInQuote: bigint;
|
|
56
|
+
totalInQuote: bigint;
|
|
57
|
+
principal: {
|
|
58
|
+
amount0: bigint;
|
|
59
|
+
amount1: bigint;
|
|
60
|
+
};
|
|
61
|
+
buffer: {
|
|
62
|
+
amount0: bigint;
|
|
63
|
+
amount1: bigint;
|
|
64
|
+
};
|
|
65
|
+
total: {
|
|
66
|
+
amount0: bigint;
|
|
67
|
+
amount1: bigint;
|
|
68
|
+
};
|
|
69
|
+
}>; //#endregion
|
|
70
|
+
//#region src/panoptic/v2/reads/lpMaxSize.d.ts
|
|
71
|
+
/** Largest verified LP mint within 0.1% of the funding bound, at one block.
|
|
72
|
+
* Never returns an untested size. Transport errors abort instead of shrinking MAX.
|
|
73
|
+
*/
|
|
74
|
+
declare function getExecutableLpMaxSize(params: Omit<Parameters<typeof readLpFundingSnapshot>[0], 'positionSize'> & {
|
|
75
|
+
chainId: bigint;
|
|
76
|
+
slippageBps: bigint;
|
|
77
|
+
}): Promise<{
|
|
78
|
+
funding: {
|
|
79
|
+
principalInQuote: bigint;
|
|
80
|
+
bufferInQuote: bigint;
|
|
81
|
+
totalInQuote: bigint;
|
|
82
|
+
principal: {
|
|
83
|
+
amount0: bigint;
|
|
84
|
+
amount1: bigint;
|
|
85
|
+
};
|
|
86
|
+
buffer: {
|
|
87
|
+
amount0: bigint;
|
|
88
|
+
amount1: bigint;
|
|
89
|
+
};
|
|
90
|
+
total: {
|
|
91
|
+
amount0: bigint;
|
|
92
|
+
amount1: bigint;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
fundingParams: {
|
|
96
|
+
tokenId: bigint;
|
|
97
|
+
positionSize: bigint;
|
|
98
|
+
tickSpacing: bigint;
|
|
99
|
+
sqrtPriceX96: bigint;
|
|
100
|
+
valuationSqrtPriceX96: bigint;
|
|
101
|
+
quoteTokenIndex: 0 | 1;
|
|
102
|
+
};
|
|
103
|
+
availableInQuote: bigint;
|
|
104
|
+
blockNumber: bigint;
|
|
105
|
+
currentTick: bigint;
|
|
106
|
+
_meta: BlockMeta;
|
|
107
|
+
maxSize: bigint;
|
|
108
|
+
}>;
|
|
109
|
+
|
|
110
|
+
//#endregion
|
|
4
111
|
//#region src/panoptic/v2/utils/constants.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Constants for the Panoptic v2 SDK.
|
|
7
|
-
* @module v2/utils/constants
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* WAD constant (10^18) used for fixed-point arithmetic.
|
|
11
|
-
* Commonly used for spread calculations and other WAD-scaled values.
|
|
12
|
-
*/
|
|
13
112
|
/**
|
|
14
113
|
* Constants for the Panoptic v2 SDK.
|
|
15
114
|
* @module v2/utils/constants
|
|
@@ -97,7 +196,9 @@ declare const BPS_DENOMINATOR = 10000n;
|
|
|
97
196
|
/**
|
|
98
197
|
* Utilization denominator (100% = 10000).
|
|
99
198
|
*/
|
|
100
|
-
declare const UTILIZATION_DENOMINATOR = 10000n;
|
|
199
|
+
declare const UTILIZATION_DENOMINATOR = 10000n;
|
|
200
|
+
|
|
201
|
+
//#endregion
|
|
101
202
|
//#region src/panoptic/v2/utils/factory.d.ts
|
|
102
203
|
/**
|
|
103
204
|
* Factory utility functions for the Panoptic v2 SDK.
|
|
@@ -569,6 +670,16 @@ interface GetUtilizationParams {
|
|
|
569
670
|
* @returns Utilization data with block metadata
|
|
570
671
|
*/
|
|
571
672
|
declare function getUtilization(params: GetUtilizationParams): Promise<Utilization>;
|
|
673
|
+
/**
|
|
674
|
+
* Assets available to borrow from a collateral tracker.
|
|
675
|
+
*
|
|
676
|
+
* Mirrors `CollateralTracker._maxWithdrawWithPositions`: deposited assets less
|
|
677
|
+
* one wei, less the assets backing credited shares.
|
|
678
|
+
*
|
|
679
|
+
* @param poolData - `getPoolData()` tuple: [depositedAssets, insideAMM, creditedShares, utilization]
|
|
680
|
+
* @param totalSupply - Collateral tracker share supply, for the share→asset conversion
|
|
681
|
+
*/
|
|
682
|
+
|
|
572
683
|
/**
|
|
573
684
|
* Parameters for getOracleState.
|
|
574
685
|
*/
|
|
@@ -672,6 +783,16 @@ interface FetchPoolIdResult {
|
|
|
672
783
|
* @returns The pool ID and block metadata
|
|
673
784
|
*/
|
|
674
785
|
declare function fetchPoolId(params: FetchPoolIdParams): Promise<FetchPoolIdResult>;
|
|
786
|
+
/** Read the pool's spot tick without fetching collateral or risk configuration. */
|
|
787
|
+
declare function getPoolCurrentTick({
|
|
788
|
+
client,
|
|
789
|
+
poolAddress,
|
|
790
|
+
blockNumber
|
|
791
|
+
}: {
|
|
792
|
+
client: PublicClient;
|
|
793
|
+
poolAddress: Address;
|
|
794
|
+
blockNumber?: bigint;
|
|
795
|
+
}): Promise<any>;
|
|
675
796
|
|
|
676
797
|
//#endregion
|
|
677
798
|
//#region src/panoptic/v2/types/pool.d.ts
|
|
@@ -2758,7 +2879,7 @@ declare function parsePanopticError(error: unknown): ParsedError | null;
|
|
|
2758
2879
|
* }
|
|
2759
2880
|
* ```
|
|
2760
2881
|
*/
|
|
2761
|
-
declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: new (...args:
|
|
2882
|
+
declare function isPanopticErrorType<T extends PanopticError>(error: PanopticError, errorClass: abstract new (...args: never[]) => T): error is T;
|
|
2762
2883
|
|
|
2763
2884
|
//#endregion
|
|
2764
2885
|
//#region src/panoptic/v2/types/simulation.d.ts
|
|
@@ -3369,7 +3490,7 @@ declare function estimateBlockNumbers(params: EstimateBlockNumbersParams): Promi
|
|
|
3369
3490
|
/**
|
|
3370
3491
|
* A contract call to include in a multicall batch.
|
|
3371
3492
|
*/
|
|
3372
|
-
interface MulticallContract<TAbi extends Abi = Abi, TFunctionName extends ContractFunctionName<TAbi, 'pure' | 'view'> = ContractFunctionName<TAbi, 'pure' | 'view'>> {
|
|
3493
|
+
interface MulticallContract<TAbi extends Abi$1 = Abi$1, TFunctionName extends ContractFunctionName<TAbi, 'pure' | 'view'> = ContractFunctionName<TAbi, 'pure' | 'view'>> {
|
|
3373
3494
|
/** Contract address */
|
|
3374
3495
|
address: Address;
|
|
3375
3496
|
/** Contract ABI */
|
|
@@ -4233,7 +4354,6 @@ interface QuoteV3ExactInParams {
|
|
|
4233
4354
|
tokenOut: Address;
|
|
4234
4355
|
fee: bigint;
|
|
4235
4356
|
amountIn: bigint;
|
|
4236
|
-
/** Slippage tolerance in bps, used to compute `amountOutMinimum`. */
|
|
4237
4357
|
slippageBps: bigint;
|
|
4238
4358
|
blockNumber?: bigint;
|
|
4239
4359
|
addresses?: Partial<UniswapV3Addresses>;
|
|
@@ -5152,6 +5272,8 @@ interface TokenFlow$1 {
|
|
|
5152
5272
|
* Parameters for simulateWithTokenFlow.
|
|
5153
5273
|
*/
|
|
5154
5274
|
interface SimulateWithTokenFlowParams {
|
|
5275
|
+
/** Defaults to true. False returns the existing 0n (unavailable) gas sentinel. */
|
|
5276
|
+
estimateGas?: boolean;
|
|
5155
5277
|
/** viem public client */
|
|
5156
5278
|
client: PublicClient;
|
|
5157
5279
|
/** PanopticPool address */
|
|
@@ -5300,6 +5422,14 @@ declare const REQUIRED_BASE_ERROR_SENTINEL: bigint;
|
|
|
5300
5422
|
* @returns Estimated collateral requirements with block metadata
|
|
5301
5423
|
*/
|
|
5302
5424
|
declare function estimateCollateralRequired(params: EstimateCollateralRequiredParams): Promise<CollateralEstimate$1>;
|
|
5425
|
+
/** Account- and size-independent requirement, with its valuation tick and block. */
|
|
5426
|
+
declare function getCollateralRequiredBase(params: Omit<EstimateCollateralRequiredParams, 'account' | 'positionSize'>): Promise<{
|
|
5427
|
+
requiredBase: any;
|
|
5428
|
+
effectiveTick: bigint;
|
|
5429
|
+
_meta: BlockMeta;
|
|
5430
|
+
}>;
|
|
5431
|
+
/** Preserve the contract sentinel and integer rounding when scaling a cached base. */
|
|
5432
|
+
declare function scaleCollateralRequired(base: Awaited<ReturnType<typeof getCollateralRequiredBase>>, positionSize: bigint): CollateralEstimate$1;
|
|
5303
5433
|
/**
|
|
5304
5434
|
* Max position size result.
|
|
5305
5435
|
*/
|
|
@@ -5317,6 +5447,10 @@ interface MaxPositionSize {
|
|
|
5317
5447
|
* Parameters for getMaxPositionSize.
|
|
5318
5448
|
*/
|
|
5319
5449
|
interface GetMaxPositionSizeParams {
|
|
5450
|
+
/** Abort superseded searches between RPC rounds. */
|
|
5451
|
+
signal?: AbortSignal;
|
|
5452
|
+
/** Bounds fetched for this account, candidate and block (shared across modes). */
|
|
5453
|
+
bounds?: MaxPositionSize;
|
|
5320
5454
|
/** viem PublicClient */
|
|
5321
5455
|
client: PublicClient;
|
|
5322
5456
|
/** PanopticPool address */
|
|
@@ -6420,6 +6554,10 @@ interface PositionGreeksInput {
|
|
|
6420
6554
|
* Calculate total value across all legs.
|
|
6421
6555
|
*/
|
|
6422
6556
|
declare function calculatePositionValue(input: PositionGreeksInput): bigint;
|
|
6557
|
+
/** Prepare mint-time invariants once for an arbitrary series of valuation ticks. */
|
|
6558
|
+
declare function preparePositionValue(input: Omit<PositionGreeksInput, 'currentTick'>): (currentTick: bigint) => bigint;
|
|
6559
|
+
/** Value a tick series without repeating position preparation. */
|
|
6560
|
+
declare function calculatePositionValues(input: Omit<PositionGreeksInput, 'currentTick'>, ticks: readonly bigint[]): bigint[];
|
|
6423
6561
|
/**
|
|
6424
6562
|
* Calculate total delta across all legs.
|
|
6425
6563
|
*/
|
|
@@ -6438,6 +6576,13 @@ declare function calculatePositionDelta(input: PositionGreeksInput): bigint;
|
|
|
6438
6576
|
declare function calculatePositionDeltaDebtOnly(input: Omit<PositionGreeksInput, 'assetIndex' | 'swapAtMint'> & {
|
|
6439
6577
|
assetIndex: 0n | 1n;
|
|
6440
6578
|
}): bigint;
|
|
6579
|
+
/** Delta and one strategy contract's notional, both in the requested asset frame. */
|
|
6580
|
+
declare function getPositionDeltaMetrics(input: Omit<PositionGreeksInput, 'assetIndex' | 'swapAtMint'> & {
|
|
6581
|
+
assetIndex: 0n | 1n;
|
|
6582
|
+
}): {
|
|
6583
|
+
delta: bigint;
|
|
6584
|
+
contractSize: bigint;
|
|
6585
|
+
};
|
|
6441
6586
|
/**
|
|
6442
6587
|
* Calculate total gamma across all legs.
|
|
6443
6588
|
*/
|
|
@@ -7113,6 +7258,10 @@ declare function getAccountBuyingPower(params: GetAccountBuyingPowerParams): Pro
|
|
|
7113
7258
|
* Parameters for getOpenPositionPreview.
|
|
7114
7259
|
*/
|
|
7115
7260
|
interface GetOpenPositionPreviewParams {
|
|
7261
|
+
/** Snapshot for the same client, account, pool, position list and explicit blockNumber. */
|
|
7262
|
+
buyingPower?: AccountBuyingPower | Promise<AccountBuyingPower>;
|
|
7263
|
+
/** Skip gas estimation for interactive previews; defaults to true. */
|
|
7264
|
+
estimateGas?: boolean;
|
|
7116
7265
|
/** viem PublicClient */
|
|
7117
7266
|
client: PublicClient;
|
|
7118
7267
|
/** PanopticPool address */
|
|
@@ -7923,6 +8072,41 @@ interface GetPositionEnrichmentDataResult {
|
|
|
7923
8072
|
*/
|
|
7924
8073
|
declare function getPositionEnrichmentData(params: GetPositionEnrichmentDataParams): Promise<GetPositionEnrichmentDataResult>;
|
|
7925
8074
|
|
|
8075
|
+
//#endregion
|
|
8076
|
+
//#region src/panoptic/v2/reads/hedgeLimits.d.ts
|
|
8077
|
+
interface HedgeLimitEstimate {
|
|
8078
|
+
current: {
|
|
8079
|
+
tick: number;
|
|
8080
|
+
affordable: boolean;
|
|
8081
|
+
reason: 'available' | 'margin' | 'insolvent' | 'capacity' | 'leg-limit';
|
|
8082
|
+
delta: bigint;
|
|
8083
|
+
/** Minimum surplus across both cross-collateral constraints, in quote-token units. */
|
|
8084
|
+
headroom: bigint | null;
|
|
8085
|
+
};
|
|
8086
|
+
/** First detected unaffordable tick on either side; null means none in the sampled range. */
|
|
8087
|
+
lowerTick: number | null;
|
|
8088
|
+
upperTick: number | null;
|
|
8089
|
+
minTick: number;
|
|
8090
|
+
maxTick: number;
|
|
8091
|
+
blockNumber: bigint;
|
|
8092
|
+
}
|
|
8093
|
+
/** Snapshot estimate; prices, balances and requirements share one block, with spot swaps excluding price impact. */
|
|
8094
|
+
declare function getHedgeLimits({
|
|
8095
|
+
client,
|
|
8096
|
+
poolAddress,
|
|
8097
|
+
account,
|
|
8098
|
+
positionIds,
|
|
8099
|
+
assetIndex,
|
|
8100
|
+
blockNumber: requestedBlock
|
|
8101
|
+
}: {
|
|
8102
|
+
client: PublicClient;
|
|
8103
|
+
poolAddress: Address;
|
|
8104
|
+
account: Address;
|
|
8105
|
+
positionIds: readonly bigint[];
|
|
8106
|
+
assetIndex: 0n | 1n;
|
|
8107
|
+
blockNumber?: bigint;
|
|
8108
|
+
}): Promise<HedgeLimitEstimate>;
|
|
8109
|
+
|
|
7926
8110
|
//#endregion
|
|
7927
8111
|
//#region src/panoptic/v2/sync/getSyncStatus.d.ts
|
|
7928
8112
|
/**
|
|
@@ -8935,6 +9119,131 @@ declare function decodeAllDispatchCalldata(input: `0x${string}`): DispatchCallda
|
|
|
8935
9119
|
*/
|
|
8936
9120
|
declare function selectDispatchForAccount(candidates: DispatchCalldata[], account: Address, txFrom: Address): DispatchCalldata | null;
|
|
8937
9121
|
|
|
9122
|
+
//#endregion
|
|
9123
|
+
//#region src/panoptic/v2/liquidator/index.d.ts
|
|
9124
|
+
/**
|
|
9125
|
+
* `PanopticLiquidator.LiquidateParams`, mirrored with viem-native types.
|
|
9126
|
+
* Field order and encoding match the on-chain struct exactly.
|
|
9127
|
+
*/
|
|
9128
|
+
interface HelperLiquidateParams {
|
|
9129
|
+
pool: Address;
|
|
9130
|
+
account: Address;
|
|
9131
|
+
positionIdListTo: readonly bigint[];
|
|
9132
|
+
usePremiaAsCollateral: bigint;
|
|
9133
|
+
flashToken: Address;
|
|
9134
|
+
flashAmount: bigint;
|
|
9135
|
+
nativeFundingAmount: bigint;
|
|
9136
|
+
preSwapTarget: Address;
|
|
9137
|
+
preSwapCallData: `0x${string}`;
|
|
9138
|
+
preSwapTokenIn: Address;
|
|
9139
|
+
preSwapAmountIn: bigint;
|
|
9140
|
+
swapTarget: Address;
|
|
9141
|
+
swapCallData: `0x${string}`;
|
|
9142
|
+
swapTokenIn: Address;
|
|
9143
|
+
swapAmountIn: bigint;
|
|
9144
|
+
minDelta0: bigint;
|
|
9145
|
+
minDelta1: bigint;
|
|
9146
|
+
}
|
|
9147
|
+
/**
|
|
9148
|
+
* A LiquidateParams skeleton with every optional route zeroed: no flash loan,
|
|
9149
|
+
* no swaps, no native funding, zero floors. Spread and override.
|
|
9150
|
+
*/
|
|
9151
|
+
declare function emptyLiquidateParams(pool: Address, account: Address, positionIdListTo: readonly bigint[]): HelperLiquidateParams;
|
|
9152
|
+
/** The four oracle ticks `dispatchFrom` gates liquidation on. */
|
|
9153
|
+
interface LiquidationGateTicks {
|
|
9154
|
+
spotTick: bigint;
|
|
9155
|
+
twapTick: bigint;
|
|
9156
|
+
latestTick: bigint;
|
|
9157
|
+
currentTick: bigint;
|
|
9158
|
+
}
|
|
9159
|
+
/** Result of an exact, single-block reproduction of the pool's liquidation gate. */
|
|
9160
|
+
interface ScreenAccountExactResult {
|
|
9161
|
+
/**
|
|
9162
|
+
* True only when the account is insolvent at ALL four gate ticks — the
|
|
9163
|
+
* exact precondition for `dispatchFrom`'s liquidation branch. Partial
|
|
9164
|
+
* insolvency (1-3 ticks) reverts `NotMarginCalled` on-chain.
|
|
9165
|
+
*/
|
|
9166
|
+
isLiquidatable: boolean;
|
|
9167
|
+
/** Per-tick solvency, same order as `ticks`. */
|
|
9168
|
+
solventAt: [boolean, boolean, boolean, boolean];
|
|
9169
|
+
ticks: LiquidationGateTicks;
|
|
9170
|
+
/** Block every read in this screen was pinned to. */
|
|
9171
|
+
_meta: BlockMeta;
|
|
9172
|
+
}
|
|
9173
|
+
/** Inputs required to screen one account against the pool's four liquidation ticks. */
|
|
9174
|
+
interface ScreenAccountExactParams {
|
|
9175
|
+
client: PublicClient;
|
|
9176
|
+
poolAddress: Address;
|
|
9177
|
+
queryAddress: Address;
|
|
9178
|
+
account: Address;
|
|
9179
|
+
/** The account's full position list (pool hash-validates it on-chain). */
|
|
9180
|
+
tokenIds: readonly bigint[];
|
|
9181
|
+
/** Pin to a specific block (defaults to latest, then pins the whole screen to it). */
|
|
9182
|
+
blockNumber?: bigint;
|
|
9183
|
+
}
|
|
9184
|
+
/**
|
|
9185
|
+
* Reproduce the pool's liquidation gate exactly, pinned to one block.
|
|
9186
|
+
*
|
|
9187
|
+
* `dispatchFrom` checks solvency at `[spotTick, twapTick, latestTick,
|
|
9188
|
+
* currentTick]` — note `twapTick` (riskEngine EMA via `getTWAP()`)
|
|
9189
|
+
* deliberately REPLACES the `medianTick` that `getOracleTicks()` returns.
|
|
9190
|
+
* Never gate liquidatability on the 3-arg `checkCollateral` overload: it
|
|
9191
|
+
* iterates `getOracleTicks()` (which includes medianTick and omits twapTick)
|
|
9192
|
+
* and disagrees with the pool at the margin.
|
|
9193
|
+
*
|
|
9194
|
+
* Two phases, both pinned to the same block: (1) read the oracle ticks and
|
|
9195
|
+
* TWAP, (2) `isAccountSolvent` at each of the four gate ticks.
|
|
9196
|
+
*/
|
|
9197
|
+
declare function screenAccountExact(params: ScreenAccountExactParams): Promise<ScreenAccountExactResult>;
|
|
9198
|
+
/** Signed liquidation bonuses, required shortfalls, and realized protocol losses. */
|
|
9199
|
+
interface LiquidationQuote {
|
|
9200
|
+
/** Signed token0 bonus in assets (negative ⇒ token0 must be paid in). */
|
|
9201
|
+
bonus0: bigint;
|
|
9202
|
+
bonus1: bigint;
|
|
9203
|
+
/** Token the liquidator must supply: max(-bonus, 0). */
|
|
9204
|
+
shortfall0: bigint;
|
|
9205
|
+
shortfall1: bigint;
|
|
9206
|
+
/** Socialized loss realized in each CollateralTracker (assets). */
|
|
9207
|
+
protocolLoss0: bigint;
|
|
9208
|
+
protocolLoss1: bigint;
|
|
9209
|
+
}
|
|
9210
|
+
/** Inputs for simulating `PanopticLiquidator.quoteLiquidation` with `eth_call`. */
|
|
9211
|
+
interface QuoteLiquidationParams {
|
|
9212
|
+
client: PublicClient;
|
|
9213
|
+
/** PanopticLiquidator helper address. */
|
|
9214
|
+
liquidatorAddress: Address;
|
|
9215
|
+
/** The helper's owner — quoteLiquidation is onlyOwner, so eth_call `from` must be it. */
|
|
9216
|
+
owner: Address;
|
|
9217
|
+
/**
|
|
9218
|
+
* Quote inputs. Only `pool`, `account`, `positionIdListTo`,
|
|
9219
|
+
* `usePremiaAsCollateral` matter: quoteLiquidation calls `_runLiquidation`
|
|
9220
|
+
* directly, ignoring flash-loan, swap, and minDelta fields. It does NOT
|
|
9221
|
+
* validate routes — only a full simulation of `liquidate` does.
|
|
9222
|
+
*/
|
|
9223
|
+
params: HelperLiquidateParams;
|
|
9224
|
+
/**
|
|
9225
|
+
* State overrides funding the helper for the negative-bonus pull. The quote
|
|
9226
|
+
* self-approves, so only BALANCE overrides are needed: a native balance on
|
|
9227
|
+
* the helper (native pools), and/or ERC20 balance-slot overrides discovered
|
|
9228
|
+
* by the caller. Merged verbatim into the eth_call.
|
|
9229
|
+
*/
|
|
9230
|
+
stateOverride?: StateOverride;
|
|
9231
|
+
/**
|
|
9232
|
+
* ETH attached to the quote call (native pools). NOTE the baseline
|
|
9233
|
+
* difference vs `liquidate`: the quote does NOT subtract attached value
|
|
9234
|
+
* from its snapshot, so value that gets spent reads as `bonus0 = -spent`
|
|
9235
|
+
* here but as `delta0 = 0` in `liquidate`. Prefer funding via a balance
|
|
9236
|
+
* override + `params.nativeFundingAmount`, which both paths treat alike.
|
|
9237
|
+
*/
|
|
9238
|
+
value?: bigint;
|
|
9239
|
+
blockNumber?: bigint;
|
|
9240
|
+
}
|
|
9241
|
+
/**
|
|
9242
|
+
* Run `PanopticLiquidator.quoteLiquidation` via `eth_call` (it is
|
|
9243
|
+
* state-mutating by design and must never be mined).
|
|
9244
|
+
*/
|
|
9245
|
+
declare function quoteLiquidation(params: QuoteLiquidationParams): Promise<LiquidationQuote>;
|
|
9246
|
+
|
|
8938
9247
|
//#endregion
|
|
8939
9248
|
//#region src/panoptic/v2/writes/broadcaster.d.ts
|
|
8940
9249
|
/**
|
|
@@ -10845,6 +11154,8 @@ declare function simulateClosePosition(params: SimulateClosePositionParams): Pro
|
|
|
10845
11154
|
* Parameters for simulating dispatch.
|
|
10846
11155
|
*/
|
|
10847
11156
|
interface SimulateDispatchParams {
|
|
11157
|
+
/** Buyer settlements executed atomically before the dispatch. */
|
|
11158
|
+
settleSequence?: Pick<SettleSequenceCallsParams, 'positionIdListFrom' | 'targets'>;
|
|
10848
11159
|
/** Public client */
|
|
10849
11160
|
client: PublicClient;
|
|
10850
11161
|
/** PanopticPool address */
|
|
@@ -10958,6 +11269,8 @@ declare function simulateLiquidate(params: SimulateLiquidateParams): Promise<Sim
|
|
|
10958
11269
|
* Parameters for simulating position opening.
|
|
10959
11270
|
*/
|
|
10960
11271
|
interface SimulateOpenPositionParams {
|
|
11272
|
+
/** Skip gas estimation for interactive previews; defaults to true. */
|
|
11273
|
+
estimateGas?: boolean;
|
|
10961
11274
|
/** Public client */
|
|
10962
11275
|
client: PublicClient;
|
|
10963
11276
|
/** PanopticPool address */
|
|
@@ -11370,6 +11683,8 @@ declare function simulateSwapExactIn(params: SimulateSwapExactInParams): Promise
|
|
|
11370
11683
|
*/
|
|
11371
11684
|
declare const DEFAULT_MIN_SWAP_RATIO_BPS = 50n;
|
|
11372
11685
|
interface OneTokenFlowQuoteParams {
|
|
11686
|
+
/** Buyer settlements included in the quoted transaction. */
|
|
11687
|
+
settleSequence?: SimulateDispatchParams['settleSequence'];
|
|
11373
11688
|
client: PublicClient;
|
|
11374
11689
|
poolAddress: Address;
|
|
11375
11690
|
account: Address;
|
|
@@ -11586,6 +11901,8 @@ declare function quoteTemporaryLoanRecovery(params: TemporaryLoanRecoveryQuotePa
|
|
|
11586
11901
|
//#endregion
|
|
11587
11902
|
//#region src/panoptic/v2/simulations/tokenShortfallRecovery.d.ts
|
|
11588
11903
|
interface TokenShortfallRecoveryQuoteParams {
|
|
11904
|
+
/** Buyer settlements included in the quoted transaction. */
|
|
11905
|
+
settleSequence?: SimulateDispatchParams['settleSequence'];
|
|
11589
11906
|
client: PublicClient;
|
|
11590
11907
|
poolAddress: Address;
|
|
11591
11908
|
account: Address;
|
|
@@ -12796,6 +13113,57 @@ declare function isNonceError(error: unknown): boolean;
|
|
|
12796
13113
|
*/
|
|
12797
13114
|
declare function isGasError(error: unknown): boolean;
|
|
12798
13115
|
|
|
13116
|
+
//#endregion
|
|
13117
|
+
//#region src/analytics/market-indicators.d.ts
|
|
13118
|
+
type MarketIndicator = 'atr' | 'efficiency' | 'moments' | 'rsi' | 'variance-ratio';
|
|
13119
|
+
interface IndicatorCandle {
|
|
13120
|
+
time: bigint;
|
|
13121
|
+
openTick: bigint;
|
|
13122
|
+
highTick: bigint;
|
|
13123
|
+
lowTick: bigint;
|
|
13124
|
+
closeTick: bigint;
|
|
13125
|
+
}
|
|
13126
|
+
interface IndicatorPoint {
|
|
13127
|
+
time: bigint;
|
|
13128
|
+
value: Decimal | null;
|
|
13129
|
+
secondaryValue?: Decimal | null;
|
|
13130
|
+
}
|
|
13131
|
+
declare const MARKET_INDICATOR_PERIODS: {
|
|
13132
|
+
readonly atr: 14;
|
|
13133
|
+
readonly efficiency: 10;
|
|
13134
|
+
readonly moments: 96;
|
|
13135
|
+
readonly rsi: 14;
|
|
13136
|
+
readonly 'variance-ratio': 96;
|
|
13137
|
+
};
|
|
13138
|
+
declare const VARIANCE_RATIO_LAG = 4;
|
|
13139
|
+
/** Sorts and fills only internal no-swap gaps; never invents leading/trailing history. */
|
|
13140
|
+
declare function prepareIndicatorCandles(candles: readonly IndicatorCandle[], interval: bigint): IndicatorCandle[];
|
|
13141
|
+
/** Prices use quote units per asset; return statistics use equally spaced log closes. */
|
|
13142
|
+
declare function calculateMarketIndicator(indicator: MarketIndicator, candles: readonly IndicatorCandle[], {
|
|
13143
|
+
intervalSeconds,
|
|
13144
|
+
token0Decimals,
|
|
13145
|
+
token1Decimals,
|
|
13146
|
+
isAssetToken0
|
|
13147
|
+
}: {
|
|
13148
|
+
intervalSeconds: bigint;
|
|
13149
|
+
token0Decimals: bigint;
|
|
13150
|
+
token1Decimals: bigint;
|
|
13151
|
+
isAssetToken0: boolean;
|
|
13152
|
+
}): IndicatorPoint[];
|
|
13153
|
+
/** Sample variance of equal-interval log returns, grouped by UTC candle-start hour/day. */
|
|
13154
|
+
declare function calculateVarianceProfile(candles: readonly IndicatorCandle[], isAssetToken0: boolean, intervalSeconds?: bigint): {
|
|
13155
|
+
hours: {
|
|
13156
|
+
bucket: number;
|
|
13157
|
+
count: number;
|
|
13158
|
+
variance: Decimal | null;
|
|
13159
|
+
}[];
|
|
13160
|
+
weekdays: {
|
|
13161
|
+
bucket: number;
|
|
13162
|
+
count: number;
|
|
13163
|
+
variance: Decimal | null;
|
|
13164
|
+
}[];
|
|
13165
|
+
};
|
|
13166
|
+
|
|
12799
13167
|
//#endregion
|
|
12800
13168
|
//#region src/generated.d.ts
|
|
12801
13169
|
declare const collateralTrackerV2Abi: readonly [{
|
|
@@ -13849,121 +14217,498 @@ declare const collateralTrackerV2Abi: readonly [{
|
|
|
13849
14217
|
readonly inputs: readonly [];
|
|
13850
14218
|
readonly name: "UnauthorizedUniswapCallback";
|
|
13851
14219
|
}];
|
|
13852
|
-
declare const
|
|
14220
|
+
declare const panopticLiquidatorAbi: readonly [{
|
|
13853
14221
|
readonly type: "constructor";
|
|
13854
14222
|
readonly inputs: readonly [{
|
|
13855
|
-
readonly name: "
|
|
13856
|
-
readonly internalType: "contract
|
|
14223
|
+
readonly name: "morpho";
|
|
14224
|
+
readonly internalType: "contract IMorpho";
|
|
14225
|
+
readonly type: "address";
|
|
14226
|
+
}, {
|
|
14227
|
+
readonly name: "owner_";
|
|
14228
|
+
readonly internalType: "address";
|
|
13857
14229
|
readonly type: "address";
|
|
13858
14230
|
}];
|
|
13859
14231
|
readonly stateMutability: "nonpayable";
|
|
14232
|
+
}, {
|
|
14233
|
+
readonly type: "receive";
|
|
14234
|
+
readonly stateMutability: "payable";
|
|
13860
14235
|
}, {
|
|
13861
14236
|
readonly type: "function";
|
|
13862
14237
|
readonly inputs: readonly [];
|
|
13863
|
-
readonly name: "
|
|
14238
|
+
readonly name: "MORPHO";
|
|
13864
14239
|
readonly outputs: readonly [{
|
|
13865
14240
|
readonly name: "";
|
|
13866
|
-
readonly internalType: "contract
|
|
14241
|
+
readonly internalType: "contract IMorpho";
|
|
13867
14242
|
readonly type: "address";
|
|
13868
14243
|
}];
|
|
13869
14244
|
readonly stateMutability: "view";
|
|
13870
14245
|
}, {
|
|
13871
14246
|
readonly type: "function";
|
|
13872
14247
|
readonly inputs: readonly [{
|
|
13873
|
-
readonly name: "
|
|
13874
|
-
readonly internalType: "
|
|
13875
|
-
readonly type: "
|
|
14248
|
+
readonly name: "target";
|
|
14249
|
+
readonly internalType: "address";
|
|
14250
|
+
readonly type: "address";
|
|
13876
14251
|
}, {
|
|
13877
|
-
readonly name: "
|
|
14252
|
+
readonly name: "value";
|
|
13878
14253
|
readonly internalType: "uint256";
|
|
13879
14254
|
readonly type: "uint256";
|
|
14255
|
+
}, {
|
|
14256
|
+
readonly name: "data";
|
|
14257
|
+
readonly internalType: "bytes";
|
|
14258
|
+
readonly type: "bytes";
|
|
13880
14259
|
}];
|
|
13881
|
-
readonly name: "
|
|
14260
|
+
readonly name: "execute";
|
|
14261
|
+
readonly outputs: readonly [{
|
|
14262
|
+
readonly name: "ret";
|
|
14263
|
+
readonly internalType: "bytes";
|
|
14264
|
+
readonly type: "bytes";
|
|
14265
|
+
}];
|
|
14266
|
+
readonly stateMutability: "payable";
|
|
14267
|
+
}, {
|
|
14268
|
+
readonly type: "function";
|
|
14269
|
+
readonly inputs: readonly [{
|
|
14270
|
+
readonly name: "pool";
|
|
14271
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14272
|
+
readonly type: "address";
|
|
14273
|
+
}];
|
|
14274
|
+
readonly name: "initializePool";
|
|
13882
14275
|
readonly outputs: readonly [];
|
|
13883
|
-
readonly stateMutability: "
|
|
14276
|
+
readonly stateMutability: "nonpayable";
|
|
13884
14277
|
}, {
|
|
13885
14278
|
readonly type: "function";
|
|
13886
|
-
readonly inputs: readonly [
|
|
13887
|
-
|
|
14279
|
+
readonly inputs: readonly [{
|
|
14280
|
+
readonly name: "params";
|
|
14281
|
+
readonly internalType: "struct PanopticLiquidator.LiquidateParams";
|
|
14282
|
+
readonly type: "tuple";
|
|
14283
|
+
readonly components: readonly [{
|
|
14284
|
+
readonly name: "pool";
|
|
14285
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14286
|
+
readonly type: "address";
|
|
14287
|
+
}, {
|
|
14288
|
+
readonly name: "account";
|
|
14289
|
+
readonly internalType: "address";
|
|
14290
|
+
readonly type: "address";
|
|
14291
|
+
}, {
|
|
14292
|
+
readonly name: "positionIdListTo";
|
|
14293
|
+
readonly internalType: "TokenId[]";
|
|
14294
|
+
readonly type: "uint256[]";
|
|
14295
|
+
}, {
|
|
14296
|
+
readonly name: "usePremiaAsCollateral";
|
|
14297
|
+
readonly internalType: "LeftRightUnsigned";
|
|
14298
|
+
readonly type: "uint256";
|
|
14299
|
+
}, {
|
|
14300
|
+
readonly name: "flashToken";
|
|
14301
|
+
readonly internalType: "address";
|
|
14302
|
+
readonly type: "address";
|
|
14303
|
+
}, {
|
|
14304
|
+
readonly name: "flashAmount";
|
|
14305
|
+
readonly internalType: "uint256";
|
|
14306
|
+
readonly type: "uint256";
|
|
14307
|
+
}, {
|
|
14308
|
+
readonly name: "nativeFundingAmount";
|
|
14309
|
+
readonly internalType: "uint256";
|
|
14310
|
+
readonly type: "uint256";
|
|
14311
|
+
}, {
|
|
14312
|
+
readonly name: "preSwapTarget";
|
|
14313
|
+
readonly internalType: "address";
|
|
14314
|
+
readonly type: "address";
|
|
14315
|
+
}, {
|
|
14316
|
+
readonly name: "preSwapCallData";
|
|
14317
|
+
readonly internalType: "bytes";
|
|
14318
|
+
readonly type: "bytes";
|
|
14319
|
+
}, {
|
|
14320
|
+
readonly name: "preSwapTokenIn";
|
|
14321
|
+
readonly internalType: "address";
|
|
14322
|
+
readonly type: "address";
|
|
14323
|
+
}, {
|
|
14324
|
+
readonly name: "preSwapAmountIn";
|
|
14325
|
+
readonly internalType: "uint256";
|
|
14326
|
+
readonly type: "uint256";
|
|
14327
|
+
}, {
|
|
14328
|
+
readonly name: "swapTarget";
|
|
14329
|
+
readonly internalType: "address";
|
|
14330
|
+
readonly type: "address";
|
|
14331
|
+
}, {
|
|
14332
|
+
readonly name: "swapCallData";
|
|
14333
|
+
readonly internalType: "bytes";
|
|
14334
|
+
readonly type: "bytes";
|
|
14335
|
+
}, {
|
|
14336
|
+
readonly name: "swapTokenIn";
|
|
14337
|
+
readonly internalType: "address";
|
|
14338
|
+
readonly type: "address";
|
|
14339
|
+
}, {
|
|
14340
|
+
readonly name: "swapAmountIn";
|
|
14341
|
+
readonly internalType: "uint256";
|
|
14342
|
+
readonly type: "uint256";
|
|
14343
|
+
}, {
|
|
14344
|
+
readonly name: "minDelta0";
|
|
14345
|
+
readonly internalType: "int256";
|
|
14346
|
+
readonly type: "int256";
|
|
14347
|
+
}, {
|
|
14348
|
+
readonly name: "minDelta1";
|
|
14349
|
+
readonly internalType: "int256";
|
|
14350
|
+
readonly type: "int256";
|
|
14351
|
+
}];
|
|
14352
|
+
}];
|
|
14353
|
+
readonly name: "liquidate";
|
|
13888
14354
|
readonly outputs: readonly [{
|
|
13889
|
-
readonly name: "";
|
|
13890
|
-
readonly internalType: "
|
|
13891
|
-
readonly type: "
|
|
14355
|
+
readonly name: "delta0";
|
|
14356
|
+
readonly internalType: "int256";
|
|
14357
|
+
readonly type: "int256";
|
|
14358
|
+
}, {
|
|
14359
|
+
readonly name: "delta1";
|
|
14360
|
+
readonly internalType: "int256";
|
|
14361
|
+
readonly type: "int256";
|
|
13892
14362
|
}];
|
|
13893
|
-
readonly stateMutability: "
|
|
14363
|
+
readonly stateMutability: "payable";
|
|
14364
|
+
}, {
|
|
14365
|
+
readonly type: "function";
|
|
14366
|
+
readonly inputs: readonly [{
|
|
14367
|
+
readonly name: "data";
|
|
14368
|
+
readonly internalType: "bytes[]";
|
|
14369
|
+
readonly type: "bytes[]";
|
|
14370
|
+
}];
|
|
14371
|
+
readonly name: "multicall";
|
|
14372
|
+
readonly outputs: readonly [{
|
|
14373
|
+
readonly name: "results";
|
|
14374
|
+
readonly internalType: "bytes[]";
|
|
14375
|
+
readonly type: "bytes[]";
|
|
14376
|
+
}];
|
|
14377
|
+
readonly stateMutability: "payable";
|
|
14378
|
+
}, {
|
|
14379
|
+
readonly type: "function";
|
|
14380
|
+
readonly inputs: readonly [{
|
|
14381
|
+
readonly name: "assets";
|
|
14382
|
+
readonly internalType: "uint256";
|
|
14383
|
+
readonly type: "uint256";
|
|
14384
|
+
}, {
|
|
14385
|
+
readonly name: "data";
|
|
14386
|
+
readonly internalType: "bytes";
|
|
14387
|
+
readonly type: "bytes";
|
|
14388
|
+
}];
|
|
14389
|
+
readonly name: "onMorphoFlashLoan";
|
|
14390
|
+
readonly outputs: readonly [];
|
|
14391
|
+
readonly stateMutability: "nonpayable";
|
|
13894
14392
|
}, {
|
|
13895
14393
|
readonly type: "function";
|
|
13896
14394
|
readonly inputs: readonly [];
|
|
13897
|
-
readonly name: "
|
|
14395
|
+
readonly name: "owner";
|
|
13898
14396
|
readonly outputs: readonly [{
|
|
13899
14397
|
readonly name: "";
|
|
13900
|
-
readonly internalType: "
|
|
14398
|
+
readonly internalType: "address";
|
|
13901
14399
|
readonly type: "address";
|
|
13902
14400
|
}];
|
|
13903
|
-
readonly stateMutability: "
|
|
14401
|
+
readonly stateMutability: "view";
|
|
13904
14402
|
}, {
|
|
13905
14403
|
readonly type: "function";
|
|
13906
14404
|
readonly inputs: readonly [{
|
|
13907
|
-
readonly name: "
|
|
13908
|
-
readonly internalType: "
|
|
13909
|
-
readonly type: "
|
|
14405
|
+
readonly name: "params";
|
|
14406
|
+
readonly internalType: "struct PanopticLiquidator.LiquidateParams";
|
|
14407
|
+
readonly type: "tuple";
|
|
14408
|
+
readonly components: readonly [{
|
|
14409
|
+
readonly name: "pool";
|
|
14410
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
14411
|
+
readonly type: "address";
|
|
14412
|
+
}, {
|
|
14413
|
+
readonly name: "account";
|
|
14414
|
+
readonly internalType: "address";
|
|
14415
|
+
readonly type: "address";
|
|
14416
|
+
}, {
|
|
14417
|
+
readonly name: "positionIdListTo";
|
|
14418
|
+
readonly internalType: "TokenId[]";
|
|
14419
|
+
readonly type: "uint256[]";
|
|
14420
|
+
}, {
|
|
14421
|
+
readonly name: "usePremiaAsCollateral";
|
|
14422
|
+
readonly internalType: "LeftRightUnsigned";
|
|
14423
|
+
readonly type: "uint256";
|
|
14424
|
+
}, {
|
|
14425
|
+
readonly name: "flashToken";
|
|
14426
|
+
readonly internalType: "address";
|
|
14427
|
+
readonly type: "address";
|
|
14428
|
+
}, {
|
|
14429
|
+
readonly name: "flashAmount";
|
|
14430
|
+
readonly internalType: "uint256";
|
|
14431
|
+
readonly type: "uint256";
|
|
14432
|
+
}, {
|
|
14433
|
+
readonly name: "nativeFundingAmount";
|
|
14434
|
+
readonly internalType: "uint256";
|
|
14435
|
+
readonly type: "uint256";
|
|
14436
|
+
}, {
|
|
14437
|
+
readonly name: "preSwapTarget";
|
|
14438
|
+
readonly internalType: "address";
|
|
14439
|
+
readonly type: "address";
|
|
14440
|
+
}, {
|
|
14441
|
+
readonly name: "preSwapCallData";
|
|
14442
|
+
readonly internalType: "bytes";
|
|
14443
|
+
readonly type: "bytes";
|
|
14444
|
+
}, {
|
|
14445
|
+
readonly name: "preSwapTokenIn";
|
|
14446
|
+
readonly internalType: "address";
|
|
14447
|
+
readonly type: "address";
|
|
14448
|
+
}, {
|
|
14449
|
+
readonly name: "preSwapAmountIn";
|
|
14450
|
+
readonly internalType: "uint256";
|
|
14451
|
+
readonly type: "uint256";
|
|
14452
|
+
}, {
|
|
14453
|
+
readonly name: "swapTarget";
|
|
14454
|
+
readonly internalType: "address";
|
|
14455
|
+
readonly type: "address";
|
|
14456
|
+
}, {
|
|
14457
|
+
readonly name: "swapCallData";
|
|
14458
|
+
readonly internalType: "bytes";
|
|
14459
|
+
readonly type: "bytes";
|
|
14460
|
+
}, {
|
|
14461
|
+
readonly name: "swapTokenIn";
|
|
14462
|
+
readonly internalType: "address";
|
|
14463
|
+
readonly type: "address";
|
|
14464
|
+
}, {
|
|
14465
|
+
readonly name: "swapAmountIn";
|
|
14466
|
+
readonly internalType: "uint256";
|
|
14467
|
+
readonly type: "uint256";
|
|
14468
|
+
}, {
|
|
14469
|
+
readonly name: "minDelta0";
|
|
14470
|
+
readonly internalType: "int256";
|
|
14471
|
+
readonly type: "int256";
|
|
14472
|
+
}, {
|
|
14473
|
+
readonly name: "minDelta1";
|
|
14474
|
+
readonly internalType: "int256";
|
|
14475
|
+
readonly type: "int256";
|
|
14476
|
+
}];
|
|
14477
|
+
}];
|
|
14478
|
+
readonly name: "quoteLiquidation";
|
|
14479
|
+
readonly outputs: readonly [{
|
|
14480
|
+
readonly name: "bonus0";
|
|
14481
|
+
readonly internalType: "int256";
|
|
14482
|
+
readonly type: "int256";
|
|
13910
14483
|
}, {
|
|
13911
|
-
readonly name: "
|
|
13912
|
-
readonly internalType: "
|
|
13913
|
-
readonly type: "
|
|
14484
|
+
readonly name: "bonus1";
|
|
14485
|
+
readonly internalType: "int256";
|
|
14486
|
+
readonly type: "int256";
|
|
13914
14487
|
}, {
|
|
13915
|
-
readonly name: "
|
|
13916
|
-
readonly internalType: "
|
|
13917
|
-
readonly type: "
|
|
14488
|
+
readonly name: "shortfall0";
|
|
14489
|
+
readonly internalType: "uint256";
|
|
14490
|
+
readonly type: "uint256";
|
|
13918
14491
|
}, {
|
|
13919
|
-
readonly name: "
|
|
13920
|
-
readonly internalType: "
|
|
13921
|
-
readonly type: "
|
|
14492
|
+
readonly name: "shortfall1";
|
|
14493
|
+
readonly internalType: "uint256";
|
|
14494
|
+
readonly type: "uint256";
|
|
13922
14495
|
}, {
|
|
13923
|
-
readonly name: "
|
|
13924
|
-
readonly internalType: "
|
|
13925
|
-
readonly type: "
|
|
14496
|
+
readonly name: "protocolLoss0";
|
|
14497
|
+
readonly internalType: "uint256";
|
|
14498
|
+
readonly type: "uint256";
|
|
13926
14499
|
}, {
|
|
13927
|
-
readonly name: "
|
|
14500
|
+
readonly name: "protocolLoss1";
|
|
13928
14501
|
readonly internalType: "uint256";
|
|
13929
14502
|
readonly type: "uint256";
|
|
13930
14503
|
}];
|
|
13931
|
-
readonly
|
|
13932
|
-
readonly outputs: readonly [];
|
|
13933
|
-
readonly stateMutability: "nonpayable";
|
|
14504
|
+
readonly stateMutability: "payable";
|
|
13934
14505
|
}, {
|
|
13935
14506
|
readonly type: "function";
|
|
13936
14507
|
readonly inputs: readonly [{
|
|
13937
|
-
readonly name: "
|
|
13938
|
-
readonly internalType: "TokenId[]";
|
|
13939
|
-
readonly type: "uint256[]";
|
|
13940
|
-
}, {
|
|
13941
|
-
readonly name: "account";
|
|
14508
|
+
readonly name: "newOwner";
|
|
13942
14509
|
readonly internalType: "address";
|
|
13943
14510
|
readonly type: "address";
|
|
13944
|
-
}, {
|
|
13945
|
-
readonly name: "positionIdListTo";
|
|
13946
|
-
readonly internalType: "TokenId[]";
|
|
13947
|
-
readonly type: "uint256[]";
|
|
13948
|
-
}, {
|
|
13949
|
-
readonly name: "positionIdListToFinal";
|
|
13950
|
-
readonly internalType: "TokenId[]";
|
|
13951
|
-
readonly type: "uint256[]";
|
|
13952
|
-
}, {
|
|
13953
|
-
readonly name: "usePremiaAsCollateral";
|
|
13954
|
-
readonly internalType: "LeftRightUnsigned";
|
|
13955
|
-
readonly type: "uint256";
|
|
13956
14511
|
}];
|
|
13957
|
-
readonly name: "
|
|
14512
|
+
readonly name: "setOwner";
|
|
13958
14513
|
readonly outputs: readonly [];
|
|
13959
|
-
readonly stateMutability: "
|
|
14514
|
+
readonly stateMutability: "nonpayable";
|
|
13960
14515
|
}, {
|
|
13961
14516
|
readonly type: "function";
|
|
13962
14517
|
readonly inputs: readonly [{
|
|
13963
|
-
readonly name: "
|
|
14518
|
+
readonly name: "token";
|
|
13964
14519
|
readonly internalType: "address";
|
|
13965
14520
|
readonly type: "address";
|
|
13966
|
-
}
|
|
14521
|
+
}, {
|
|
14522
|
+
readonly name: "to";
|
|
14523
|
+
readonly internalType: "address";
|
|
14524
|
+
readonly type: "address";
|
|
14525
|
+
}, {
|
|
14526
|
+
readonly name: "amount";
|
|
14527
|
+
readonly internalType: "uint256";
|
|
14528
|
+
readonly type: "uint256";
|
|
14529
|
+
}];
|
|
14530
|
+
readonly name: "sweep";
|
|
14531
|
+
readonly outputs: readonly [];
|
|
14532
|
+
readonly stateMutability: "nonpayable";
|
|
14533
|
+
}, {
|
|
14534
|
+
readonly type: "event";
|
|
14535
|
+
readonly anonymous: false;
|
|
14536
|
+
readonly inputs: readonly [{
|
|
14537
|
+
readonly name: "user";
|
|
14538
|
+
readonly internalType: "address";
|
|
14539
|
+
readonly type: "address";
|
|
14540
|
+
readonly indexed: true;
|
|
14541
|
+
}, {
|
|
14542
|
+
readonly name: "newOwner";
|
|
14543
|
+
readonly internalType: "address";
|
|
14544
|
+
readonly type: "address";
|
|
14545
|
+
readonly indexed: true;
|
|
14546
|
+
}];
|
|
14547
|
+
readonly name: "OwnerUpdated";
|
|
14548
|
+
}, {
|
|
14549
|
+
readonly type: "error";
|
|
14550
|
+
readonly inputs: readonly [];
|
|
14551
|
+
readonly name: "ApproveFailed";
|
|
14552
|
+
}, {
|
|
14553
|
+
readonly type: "error";
|
|
14554
|
+
readonly inputs: readonly [];
|
|
14555
|
+
readonly name: "CallFailed";
|
|
14556
|
+
}, {
|
|
14557
|
+
readonly type: "error";
|
|
14558
|
+
readonly inputs: readonly [{
|
|
14559
|
+
readonly name: "delta0";
|
|
14560
|
+
readonly internalType: "int256";
|
|
14561
|
+
readonly type: "int256";
|
|
14562
|
+
}, {
|
|
14563
|
+
readonly name: "delta1";
|
|
14564
|
+
readonly internalType: "int256";
|
|
14565
|
+
readonly type: "int256";
|
|
14566
|
+
}];
|
|
14567
|
+
readonly name: "InsufficientDelta";
|
|
14568
|
+
}, {
|
|
14569
|
+
readonly type: "error";
|
|
14570
|
+
readonly inputs: readonly [];
|
|
14571
|
+
readonly name: "SwapFailed";
|
|
14572
|
+
}, {
|
|
14573
|
+
readonly type: "error";
|
|
14574
|
+
readonly inputs: readonly [{
|
|
14575
|
+
readonly name: "token";
|
|
14576
|
+
readonly internalType: "address";
|
|
14577
|
+
readonly type: "address";
|
|
14578
|
+
}, {
|
|
14579
|
+
readonly name: "from";
|
|
14580
|
+
readonly internalType: "address";
|
|
14581
|
+
readonly type: "address";
|
|
14582
|
+
}, {
|
|
14583
|
+
readonly name: "amount";
|
|
14584
|
+
readonly internalType: "uint256";
|
|
14585
|
+
readonly type: "uint256";
|
|
14586
|
+
}, {
|
|
14587
|
+
readonly name: "balance";
|
|
14588
|
+
readonly internalType: "uint256";
|
|
14589
|
+
readonly type: "uint256";
|
|
14590
|
+
}];
|
|
14591
|
+
readonly name: "TransferFailed";
|
|
14592
|
+
}, {
|
|
14593
|
+
readonly type: "error";
|
|
14594
|
+
readonly inputs: readonly [];
|
|
14595
|
+
readonly name: "UntrustedFlashLoanInitiator";
|
|
14596
|
+
}];
|
|
14597
|
+
declare const panopticPoolV2Abi: readonly [{
|
|
14598
|
+
readonly type: "constructor";
|
|
14599
|
+
readonly inputs: readonly [{
|
|
14600
|
+
readonly name: "_sfpm";
|
|
14601
|
+
readonly internalType: "contract ISemiFungiblePositionManager";
|
|
14602
|
+
readonly type: "address";
|
|
14603
|
+
}];
|
|
14604
|
+
readonly stateMutability: "nonpayable";
|
|
14605
|
+
}, {
|
|
14606
|
+
readonly type: "function";
|
|
14607
|
+
readonly inputs: readonly [];
|
|
14608
|
+
readonly name: "SFPM";
|
|
14609
|
+
readonly outputs: readonly [{
|
|
14610
|
+
readonly name: "";
|
|
14611
|
+
readonly internalType: "contract ISemiFungiblePositionManager";
|
|
14612
|
+
readonly type: "address";
|
|
14613
|
+
}];
|
|
14614
|
+
readonly stateMutability: "view";
|
|
14615
|
+
}, {
|
|
14616
|
+
readonly type: "function";
|
|
14617
|
+
readonly inputs: readonly [{
|
|
14618
|
+
readonly name: "minValue0";
|
|
14619
|
+
readonly internalType: "uint256";
|
|
14620
|
+
readonly type: "uint256";
|
|
14621
|
+
}, {
|
|
14622
|
+
readonly name: "minValue1";
|
|
14623
|
+
readonly internalType: "uint256";
|
|
14624
|
+
readonly type: "uint256";
|
|
14625
|
+
}];
|
|
14626
|
+
readonly name: "assertMinCollateralValues";
|
|
14627
|
+
readonly outputs: readonly [];
|
|
14628
|
+
readonly stateMutability: "view";
|
|
14629
|
+
}, {
|
|
14630
|
+
readonly type: "function";
|
|
14631
|
+
readonly inputs: readonly [];
|
|
14632
|
+
readonly name: "collateralToken0";
|
|
14633
|
+
readonly outputs: readonly [{
|
|
14634
|
+
readonly name: "";
|
|
14635
|
+
readonly internalType: "contract CollateralTrackerV2";
|
|
14636
|
+
readonly type: "address";
|
|
14637
|
+
}];
|
|
14638
|
+
readonly stateMutability: "pure";
|
|
14639
|
+
}, {
|
|
14640
|
+
readonly type: "function";
|
|
14641
|
+
readonly inputs: readonly [];
|
|
14642
|
+
readonly name: "collateralToken1";
|
|
14643
|
+
readonly outputs: readonly [{
|
|
14644
|
+
readonly name: "";
|
|
14645
|
+
readonly internalType: "contract CollateralTrackerV2";
|
|
14646
|
+
readonly type: "address";
|
|
14647
|
+
}];
|
|
14648
|
+
readonly stateMutability: "pure";
|
|
14649
|
+
}, {
|
|
14650
|
+
readonly type: "function";
|
|
14651
|
+
readonly inputs: readonly [{
|
|
14652
|
+
readonly name: "positionIdList";
|
|
14653
|
+
readonly internalType: "TokenId[]";
|
|
14654
|
+
readonly type: "uint256[]";
|
|
14655
|
+
}, {
|
|
14656
|
+
readonly name: "finalPositionIdList";
|
|
14657
|
+
readonly internalType: "TokenId[]";
|
|
14658
|
+
readonly type: "uint256[]";
|
|
14659
|
+
}, {
|
|
14660
|
+
readonly name: "positionSizes";
|
|
14661
|
+
readonly internalType: "uint128[]";
|
|
14662
|
+
readonly type: "uint128[]";
|
|
14663
|
+
}, {
|
|
14664
|
+
readonly name: "tickAndSpreadLimits";
|
|
14665
|
+
readonly internalType: "int24[3][]";
|
|
14666
|
+
readonly type: "int24[3][]";
|
|
14667
|
+
}, {
|
|
14668
|
+
readonly name: "usePremiaAsCollateral";
|
|
14669
|
+
readonly internalType: "bool";
|
|
14670
|
+
readonly type: "bool";
|
|
14671
|
+
}, {
|
|
14672
|
+
readonly name: "builderCode";
|
|
14673
|
+
readonly internalType: "uint256";
|
|
14674
|
+
readonly type: "uint256";
|
|
14675
|
+
}];
|
|
14676
|
+
readonly name: "dispatch";
|
|
14677
|
+
readonly outputs: readonly [];
|
|
14678
|
+
readonly stateMutability: "nonpayable";
|
|
14679
|
+
}, {
|
|
14680
|
+
readonly type: "function";
|
|
14681
|
+
readonly inputs: readonly [{
|
|
14682
|
+
readonly name: "positionIdListFrom";
|
|
14683
|
+
readonly internalType: "TokenId[]";
|
|
14684
|
+
readonly type: "uint256[]";
|
|
14685
|
+
}, {
|
|
14686
|
+
readonly name: "account";
|
|
14687
|
+
readonly internalType: "address";
|
|
14688
|
+
readonly type: "address";
|
|
14689
|
+
}, {
|
|
14690
|
+
readonly name: "positionIdListTo";
|
|
14691
|
+
readonly internalType: "TokenId[]";
|
|
14692
|
+
readonly type: "uint256[]";
|
|
14693
|
+
}, {
|
|
14694
|
+
readonly name: "positionIdListToFinal";
|
|
14695
|
+
readonly internalType: "TokenId[]";
|
|
14696
|
+
readonly type: "uint256[]";
|
|
14697
|
+
}, {
|
|
14698
|
+
readonly name: "usePremiaAsCollateral";
|
|
14699
|
+
readonly internalType: "LeftRightUnsigned";
|
|
14700
|
+
readonly type: "uint256";
|
|
14701
|
+
}];
|
|
14702
|
+
readonly name: "dispatchFrom";
|
|
14703
|
+
readonly outputs: readonly [];
|
|
14704
|
+
readonly stateMutability: "payable";
|
|
14705
|
+
}, {
|
|
14706
|
+
readonly type: "function";
|
|
14707
|
+
readonly inputs: readonly [{
|
|
14708
|
+
readonly name: "account";
|
|
14709
|
+
readonly internalType: "address";
|
|
14710
|
+
readonly type: "address";
|
|
14711
|
+
}];
|
|
13967
14712
|
readonly name: "getAssetsOf";
|
|
13968
14713
|
readonly outputs: readonly [{
|
|
13969
14714
|
readonly name: "assets0";
|
|
@@ -14485,6 +15230,523 @@ declare const panopticPoolV2Abi: readonly [{
|
|
|
14485
15230
|
readonly inputs: readonly [];
|
|
14486
15231
|
readonly name: "WrongPoolId";
|
|
14487
15232
|
}];
|
|
15233
|
+
declare const panopticQueryAbi: readonly [{
|
|
15234
|
+
readonly type: "function";
|
|
15235
|
+
readonly inputs: readonly [{
|
|
15236
|
+
readonly name: "pool";
|
|
15237
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15238
|
+
readonly type: "address";
|
|
15239
|
+
}, {
|
|
15240
|
+
readonly name: "account";
|
|
15241
|
+
readonly internalType: "address";
|
|
15242
|
+
readonly type: "address";
|
|
15243
|
+
}, {
|
|
15244
|
+
readonly name: "positionIdList";
|
|
15245
|
+
readonly internalType: "TokenId[]";
|
|
15246
|
+
readonly type: "uint256[]";
|
|
15247
|
+
}];
|
|
15248
|
+
readonly name: "checkCollateral";
|
|
15249
|
+
readonly outputs: readonly [{
|
|
15250
|
+
readonly name: "collateralBalances0";
|
|
15251
|
+
readonly internalType: "uint256[4]";
|
|
15252
|
+
readonly type: "uint256[4]";
|
|
15253
|
+
}, {
|
|
15254
|
+
readonly name: "requiredCollaterals0";
|
|
15255
|
+
readonly internalType: "uint256[4]";
|
|
15256
|
+
readonly type: "uint256[4]";
|
|
15257
|
+
}, {
|
|
15258
|
+
readonly name: "collateralBalances1";
|
|
15259
|
+
readonly internalType: "uint256[4]";
|
|
15260
|
+
readonly type: "uint256[4]";
|
|
15261
|
+
}, {
|
|
15262
|
+
readonly name: "requiredCollaterals1";
|
|
15263
|
+
readonly internalType: "uint256[4]";
|
|
15264
|
+
readonly type: "uint256[4]";
|
|
15265
|
+
}];
|
|
15266
|
+
readonly stateMutability: "view";
|
|
15267
|
+
}, {
|
|
15268
|
+
readonly type: "function";
|
|
15269
|
+
readonly inputs: readonly [{
|
|
15270
|
+
readonly name: "pool";
|
|
15271
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15272
|
+
readonly type: "address";
|
|
15273
|
+
}, {
|
|
15274
|
+
readonly name: "account";
|
|
15275
|
+
readonly internalType: "address";
|
|
15276
|
+
readonly type: "address";
|
|
15277
|
+
}, {
|
|
15278
|
+
readonly name: "positionIdList";
|
|
15279
|
+
readonly internalType: "TokenId[]";
|
|
15280
|
+
readonly type: "uint256[]";
|
|
15281
|
+
}, {
|
|
15282
|
+
readonly name: "atTick";
|
|
15283
|
+
readonly internalType: "int24";
|
|
15284
|
+
readonly type: "int24";
|
|
15285
|
+
}];
|
|
15286
|
+
readonly name: "checkCollateral";
|
|
15287
|
+
readonly outputs: readonly [{
|
|
15288
|
+
readonly name: "balancesAndRequired";
|
|
15289
|
+
readonly internalType: "uint256[4]";
|
|
15290
|
+
readonly type: "uint256[4]";
|
|
15291
|
+
}];
|
|
15292
|
+
readonly stateMutability: "view";
|
|
15293
|
+
}, {
|
|
15294
|
+
readonly type: "function";
|
|
15295
|
+
readonly inputs: readonly [{
|
|
15296
|
+
readonly name: "pool";
|
|
15297
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15298
|
+
readonly type: "address";
|
|
15299
|
+
}, {
|
|
15300
|
+
readonly name: "account";
|
|
15301
|
+
readonly internalType: "address";
|
|
15302
|
+
readonly type: "address";
|
|
15303
|
+
}, {
|
|
15304
|
+
readonly name: "positionIdList";
|
|
15305
|
+
readonly internalType: "TokenId[]";
|
|
15306
|
+
readonly type: "uint256[]";
|
|
15307
|
+
}];
|
|
15308
|
+
readonly name: "checkCollateralListOutput";
|
|
15309
|
+
readonly outputs: readonly [{
|
|
15310
|
+
readonly name: "";
|
|
15311
|
+
readonly internalType: "uint256[4][]";
|
|
15312
|
+
readonly type: "uint256[4][]";
|
|
15313
|
+
}, {
|
|
15314
|
+
readonly name: "";
|
|
15315
|
+
readonly internalType: "int256[]";
|
|
15316
|
+
readonly type: "int256[]";
|
|
15317
|
+
}, {
|
|
15318
|
+
readonly name: "";
|
|
15319
|
+
readonly internalType: "int24[]";
|
|
15320
|
+
readonly type: "int24[]";
|
|
15321
|
+
}];
|
|
15322
|
+
readonly stateMutability: "view";
|
|
15323
|
+
}, {
|
|
15324
|
+
readonly type: "function";
|
|
15325
|
+
readonly inputs: readonly [{
|
|
15326
|
+
readonly name: "positionIdList";
|
|
15327
|
+
readonly internalType: "TokenId[]";
|
|
15328
|
+
readonly type: "uint256[]";
|
|
15329
|
+
}, {
|
|
15330
|
+
readonly name: "shortPremium";
|
|
15331
|
+
readonly internalType: "LeftRightUnsigned";
|
|
15332
|
+
readonly type: "uint256";
|
|
15333
|
+
}, {
|
|
15334
|
+
readonly name: "longPremium";
|
|
15335
|
+
readonly internalType: "LeftRightUnsigned";
|
|
15336
|
+
readonly type: "uint256";
|
|
15337
|
+
}, {
|
|
15338
|
+
readonly name: "positionBalanceArray";
|
|
15339
|
+
readonly internalType: "PositionBalance[]";
|
|
15340
|
+
readonly type: "uint256[]";
|
|
15341
|
+
}, {
|
|
15342
|
+
readonly name: "atTicks";
|
|
15343
|
+
readonly internalType: "int24[]";
|
|
15344
|
+
readonly type: "int24[]";
|
|
15345
|
+
}];
|
|
15346
|
+
readonly name: "computeNetLiquidationValue";
|
|
15347
|
+
readonly outputs: readonly [{
|
|
15348
|
+
readonly name: "value0";
|
|
15349
|
+
readonly internalType: "int256[]";
|
|
15350
|
+
readonly type: "int256[]";
|
|
15351
|
+
}, {
|
|
15352
|
+
readonly name: "value1";
|
|
15353
|
+
readonly internalType: "int256[]";
|
|
15354
|
+
readonly type: "int256[]";
|
|
15355
|
+
}];
|
|
15356
|
+
readonly stateMutability: "pure";
|
|
15357
|
+
}, {
|
|
15358
|
+
readonly type: "function";
|
|
15359
|
+
readonly inputs: readonly [{
|
|
15360
|
+
readonly name: "pool";
|
|
15361
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15362
|
+
readonly type: "address";
|
|
15363
|
+
}, {
|
|
15364
|
+
readonly name: "positionIdList";
|
|
15365
|
+
readonly internalType: "TokenId[]";
|
|
15366
|
+
readonly type: "uint256[]";
|
|
15367
|
+
}];
|
|
15368
|
+
readonly name: "getChunkData";
|
|
15369
|
+
readonly outputs: readonly [{
|
|
15370
|
+
readonly name: "";
|
|
15371
|
+
readonly internalType: "uint256[2][4][]";
|
|
15372
|
+
readonly type: "uint256[2][4][]";
|
|
15373
|
+
}];
|
|
15374
|
+
readonly stateMutability: "view";
|
|
15375
|
+
}, {
|
|
15376
|
+
readonly type: "function";
|
|
15377
|
+
readonly inputs: readonly [{
|
|
15378
|
+
readonly name: "pool";
|
|
15379
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15380
|
+
readonly type: "address";
|
|
15381
|
+
}, {
|
|
15382
|
+
readonly name: "tokenId";
|
|
15383
|
+
readonly internalType: "TokenId";
|
|
15384
|
+
readonly type: "uint256";
|
|
15385
|
+
}, {
|
|
15386
|
+
readonly name: "positionSize";
|
|
15387
|
+
readonly internalType: "uint128";
|
|
15388
|
+
readonly type: "uint128";
|
|
15389
|
+
}];
|
|
15390
|
+
readonly name: "getItmAmounts";
|
|
15391
|
+
readonly outputs: readonly [{
|
|
15392
|
+
readonly name: "itm0";
|
|
15393
|
+
readonly internalType: "int256";
|
|
15394
|
+
readonly type: "int256";
|
|
15395
|
+
}, {
|
|
15396
|
+
readonly name: "itm1";
|
|
15397
|
+
readonly internalType: "int256";
|
|
15398
|
+
readonly type: "int256";
|
|
15399
|
+
}];
|
|
15400
|
+
readonly stateMutability: "view";
|
|
15401
|
+
}, {
|
|
15402
|
+
readonly type: "function";
|
|
15403
|
+
readonly inputs: readonly [{
|
|
15404
|
+
readonly name: "pool";
|
|
15405
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15406
|
+
readonly type: "address";
|
|
15407
|
+
}, {
|
|
15408
|
+
readonly name: "account";
|
|
15409
|
+
readonly internalType: "address";
|
|
15410
|
+
readonly type: "address";
|
|
15411
|
+
}, {
|
|
15412
|
+
readonly name: "positionIdList";
|
|
15413
|
+
readonly internalType: "TokenId[]";
|
|
15414
|
+
readonly type: "uint256[]";
|
|
15415
|
+
}];
|
|
15416
|
+
readonly name: "getLiquidationPrices";
|
|
15417
|
+
readonly outputs: readonly [{
|
|
15418
|
+
readonly name: "liquidationPriceDown";
|
|
15419
|
+
readonly internalType: "int24";
|
|
15420
|
+
readonly type: "int24";
|
|
15421
|
+
}, {
|
|
15422
|
+
readonly name: "liquidationPriceUp";
|
|
15423
|
+
readonly internalType: "int24";
|
|
15424
|
+
readonly type: "int24";
|
|
15425
|
+
}];
|
|
15426
|
+
readonly stateMutability: "view";
|
|
15427
|
+
}, {
|
|
15428
|
+
readonly type: "function";
|
|
15429
|
+
readonly inputs: readonly [{
|
|
15430
|
+
readonly name: "pool";
|
|
15431
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15432
|
+
readonly type: "address";
|
|
15433
|
+
}, {
|
|
15434
|
+
readonly name: "existingPositionIds";
|
|
15435
|
+
readonly internalType: "TokenId[]";
|
|
15436
|
+
readonly type: "uint256[]";
|
|
15437
|
+
}, {
|
|
15438
|
+
readonly name: "account";
|
|
15439
|
+
readonly internalType: "address";
|
|
15440
|
+
readonly type: "address";
|
|
15441
|
+
}, {
|
|
15442
|
+
readonly name: "tokenId";
|
|
15443
|
+
readonly internalType: "TokenId";
|
|
15444
|
+
readonly type: "uint256";
|
|
15445
|
+
}];
|
|
15446
|
+
readonly name: "getMaxPositionSizeBounds";
|
|
15447
|
+
readonly outputs: readonly [{
|
|
15448
|
+
readonly name: "maxSizeAtMinUtil";
|
|
15449
|
+
readonly internalType: "uint128";
|
|
15450
|
+
readonly type: "uint128";
|
|
15451
|
+
}, {
|
|
15452
|
+
readonly name: "maxSizeAtMaxUtil";
|
|
15453
|
+
readonly internalType: "uint128";
|
|
15454
|
+
readonly type: "uint128";
|
|
15455
|
+
}];
|
|
15456
|
+
readonly stateMutability: "view";
|
|
15457
|
+
}, {
|
|
15458
|
+
readonly type: "function";
|
|
15459
|
+
readonly inputs: readonly [{
|
|
15460
|
+
readonly name: "pool";
|
|
15461
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15462
|
+
readonly type: "address";
|
|
15463
|
+
}, {
|
|
15464
|
+
readonly name: "account";
|
|
15465
|
+
readonly internalType: "address";
|
|
15466
|
+
readonly type: "address";
|
|
15467
|
+
}, {
|
|
15468
|
+
readonly name: "includePendingPremium";
|
|
15469
|
+
readonly internalType: "bool";
|
|
15470
|
+
readonly type: "bool";
|
|
15471
|
+
}, {
|
|
15472
|
+
readonly name: "positionIdList";
|
|
15473
|
+
readonly internalType: "TokenId[]";
|
|
15474
|
+
readonly type: "uint256[]";
|
|
15475
|
+
}, {
|
|
15476
|
+
readonly name: "atTicks";
|
|
15477
|
+
readonly internalType: "int24[]";
|
|
15478
|
+
readonly type: "int24[]";
|
|
15479
|
+
}];
|
|
15480
|
+
readonly name: "getNetLiquidationValue";
|
|
15481
|
+
readonly outputs: readonly [{
|
|
15482
|
+
readonly name: "value0";
|
|
15483
|
+
readonly internalType: "int256[]";
|
|
15484
|
+
readonly type: "int256[]";
|
|
15485
|
+
}, {
|
|
15486
|
+
readonly name: "value1";
|
|
15487
|
+
readonly internalType: "int256[]";
|
|
15488
|
+
readonly type: "int256[]";
|
|
15489
|
+
}];
|
|
15490
|
+
readonly stateMutability: "view";
|
|
15491
|
+
}, {
|
|
15492
|
+
readonly type: "function";
|
|
15493
|
+
readonly inputs: readonly [{
|
|
15494
|
+
readonly name: "pool";
|
|
15495
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15496
|
+
readonly type: "address";
|
|
15497
|
+
}, {
|
|
15498
|
+
readonly name: "account";
|
|
15499
|
+
readonly internalType: "address";
|
|
15500
|
+
readonly type: "address";
|
|
15501
|
+
}, {
|
|
15502
|
+
readonly name: "atTick";
|
|
15503
|
+
readonly internalType: "int24";
|
|
15504
|
+
readonly type: "int24";
|
|
15505
|
+
}, {
|
|
15506
|
+
readonly name: "positionIdList";
|
|
15507
|
+
readonly internalType: "TokenId[]";
|
|
15508
|
+
readonly type: "uint256[]";
|
|
15509
|
+
}];
|
|
15510
|
+
readonly name: "getPortfolioValue";
|
|
15511
|
+
readonly outputs: readonly [{
|
|
15512
|
+
readonly name: "value0";
|
|
15513
|
+
readonly internalType: "int256";
|
|
15514
|
+
readonly type: "int256";
|
|
15515
|
+
}, {
|
|
15516
|
+
readonly name: "value1";
|
|
15517
|
+
readonly internalType: "int256";
|
|
15518
|
+
readonly type: "int256";
|
|
15519
|
+
}];
|
|
15520
|
+
readonly stateMutability: "view";
|
|
15521
|
+
}, {
|
|
15522
|
+
readonly type: "function";
|
|
15523
|
+
readonly inputs: readonly [{
|
|
15524
|
+
readonly name: "pool";
|
|
15525
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15526
|
+
readonly type: "address";
|
|
15527
|
+
}, {
|
|
15528
|
+
readonly name: "tokenId";
|
|
15529
|
+
readonly internalType: "TokenId";
|
|
15530
|
+
readonly type: "uint256";
|
|
15531
|
+
}, {
|
|
15532
|
+
readonly name: "atTick";
|
|
15533
|
+
readonly internalType: "int24";
|
|
15534
|
+
readonly type: "int24";
|
|
15535
|
+
}];
|
|
15536
|
+
readonly name: "getRequiredBase";
|
|
15537
|
+
readonly outputs: readonly [{
|
|
15538
|
+
readonly name: "";
|
|
15539
|
+
readonly internalType: "uint256";
|
|
15540
|
+
readonly type: "uint256";
|
|
15541
|
+
}];
|
|
15542
|
+
readonly stateMutability: "view";
|
|
15543
|
+
}, {
|
|
15544
|
+
readonly type: "function";
|
|
15545
|
+
readonly inputs: readonly [{
|
|
15546
|
+
readonly name: "pool";
|
|
15547
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15548
|
+
readonly type: "address";
|
|
15549
|
+
}, {
|
|
15550
|
+
readonly name: "startTick";
|
|
15551
|
+
readonly internalType: "int24";
|
|
15552
|
+
readonly type: "int24";
|
|
15553
|
+
}, {
|
|
15554
|
+
readonly name: "nTicks";
|
|
15555
|
+
readonly internalType: "uint256";
|
|
15556
|
+
readonly type: "uint256";
|
|
15557
|
+
}];
|
|
15558
|
+
readonly name: "getTickNets";
|
|
15559
|
+
readonly outputs: readonly [{
|
|
15560
|
+
readonly name: "tickData";
|
|
15561
|
+
readonly internalType: "int256[]";
|
|
15562
|
+
readonly type: "int256[]";
|
|
15563
|
+
}, {
|
|
15564
|
+
readonly name: "liquidityNets";
|
|
15565
|
+
readonly internalType: "int256[]";
|
|
15566
|
+
readonly type: "int256[]";
|
|
15567
|
+
}];
|
|
15568
|
+
readonly stateMutability: "view";
|
|
15569
|
+
}, {
|
|
15570
|
+
readonly type: "function";
|
|
15571
|
+
readonly inputs: readonly [{
|
|
15572
|
+
readonly name: "univ3pool";
|
|
15573
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
15574
|
+
readonly type: "address";
|
|
15575
|
+
}, {
|
|
15576
|
+
readonly name: "startTick";
|
|
15577
|
+
readonly internalType: "int24";
|
|
15578
|
+
readonly type: "int24";
|
|
15579
|
+
}, {
|
|
15580
|
+
readonly name: "nTicks";
|
|
15581
|
+
readonly internalType: "uint256";
|
|
15582
|
+
readonly type: "uint256";
|
|
15583
|
+
}];
|
|
15584
|
+
readonly name: "getTickNetsV3";
|
|
15585
|
+
readonly outputs: readonly [{
|
|
15586
|
+
readonly name: "tickData";
|
|
15587
|
+
readonly internalType: "int256[]";
|
|
15588
|
+
readonly type: "int256[]";
|
|
15589
|
+
}, {
|
|
15590
|
+
readonly name: "liquidityNets";
|
|
15591
|
+
readonly internalType: "int256[]";
|
|
15592
|
+
readonly type: "int256[]";
|
|
15593
|
+
}];
|
|
15594
|
+
readonly stateMutability: "view";
|
|
15595
|
+
}, {
|
|
15596
|
+
readonly type: "function";
|
|
15597
|
+
readonly inputs: readonly [{
|
|
15598
|
+
readonly name: "manager";
|
|
15599
|
+
readonly internalType: "contract IPoolManager";
|
|
15600
|
+
readonly type: "address";
|
|
15601
|
+
}, {
|
|
15602
|
+
readonly name: "poolId";
|
|
15603
|
+
readonly internalType: "PoolId";
|
|
15604
|
+
readonly type: "bytes32";
|
|
15605
|
+
}, {
|
|
15606
|
+
readonly name: "tickSpacing";
|
|
15607
|
+
readonly internalType: "int24";
|
|
15608
|
+
readonly type: "int24";
|
|
15609
|
+
}, {
|
|
15610
|
+
readonly name: "startTick";
|
|
15611
|
+
readonly internalType: "int24";
|
|
15612
|
+
readonly type: "int24";
|
|
15613
|
+
}, {
|
|
15614
|
+
readonly name: "nTicks";
|
|
15615
|
+
readonly internalType: "uint256";
|
|
15616
|
+
readonly type: "uint256";
|
|
15617
|
+
}];
|
|
15618
|
+
readonly name: "getTickNetsV4";
|
|
15619
|
+
readonly outputs: readonly [{
|
|
15620
|
+
readonly name: "tickData";
|
|
15621
|
+
readonly internalType: "int256[]";
|
|
15622
|
+
readonly type: "int256[]";
|
|
15623
|
+
}, {
|
|
15624
|
+
readonly name: "liquidityNets";
|
|
15625
|
+
readonly internalType: "int256[]";
|
|
15626
|
+
readonly type: "int256[]";
|
|
15627
|
+
}];
|
|
15628
|
+
readonly stateMutability: "view";
|
|
15629
|
+
}, {
|
|
15630
|
+
readonly type: "function";
|
|
15631
|
+
readonly inputs: readonly [{
|
|
15632
|
+
readonly name: "pool";
|
|
15633
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15634
|
+
readonly type: "address";
|
|
15635
|
+
}, {
|
|
15636
|
+
readonly name: "account";
|
|
15637
|
+
readonly internalType: "address";
|
|
15638
|
+
readonly type: "address";
|
|
15639
|
+
}, {
|
|
15640
|
+
readonly name: "positionIdList";
|
|
15641
|
+
readonly internalType: "TokenId[]";
|
|
15642
|
+
readonly type: "uint256[]";
|
|
15643
|
+
}, {
|
|
15644
|
+
readonly name: "atTick";
|
|
15645
|
+
readonly internalType: "int24";
|
|
15646
|
+
readonly type: "int24";
|
|
15647
|
+
}];
|
|
15648
|
+
readonly name: "isAccountSolvent";
|
|
15649
|
+
readonly outputs: readonly [{
|
|
15650
|
+
readonly name: "";
|
|
15651
|
+
readonly internalType: "bool";
|
|
15652
|
+
readonly type: "bool";
|
|
15653
|
+
}];
|
|
15654
|
+
readonly stateMutability: "view";
|
|
15655
|
+
}, {
|
|
15656
|
+
readonly type: "function";
|
|
15657
|
+
readonly inputs: readonly [{
|
|
15658
|
+
readonly name: "pool";
|
|
15659
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15660
|
+
readonly type: "address";
|
|
15661
|
+
}, {
|
|
15662
|
+
readonly name: "atTick";
|
|
15663
|
+
readonly internalType: "int24";
|
|
15664
|
+
readonly type: "int24";
|
|
15665
|
+
}, {
|
|
15666
|
+
readonly name: "tokenId";
|
|
15667
|
+
readonly internalType: "TokenId";
|
|
15668
|
+
readonly type: "uint256";
|
|
15669
|
+
}];
|
|
15670
|
+
readonly name: "optimizeRiskPartners";
|
|
15671
|
+
readonly outputs: readonly [{
|
|
15672
|
+
readonly name: "";
|
|
15673
|
+
readonly internalType: "TokenId";
|
|
15674
|
+
readonly type: "uint256";
|
|
15675
|
+
}];
|
|
15676
|
+
readonly stateMutability: "view";
|
|
15677
|
+
}, {
|
|
15678
|
+
readonly type: "function";
|
|
15679
|
+
readonly inputs: readonly [{
|
|
15680
|
+
readonly name: "pool";
|
|
15681
|
+
readonly internalType: "contract PanopticPoolV2";
|
|
15682
|
+
readonly type: "address";
|
|
15683
|
+
}, {
|
|
15684
|
+
readonly name: "tickLower";
|
|
15685
|
+
readonly internalType: "int24";
|
|
15686
|
+
readonly type: "int24";
|
|
15687
|
+
}, {
|
|
15688
|
+
readonly name: "tickUpper";
|
|
15689
|
+
readonly internalType: "int24";
|
|
15690
|
+
readonly type: "int24";
|
|
15691
|
+
}, {
|
|
15692
|
+
readonly name: "width";
|
|
15693
|
+
readonly internalType: "int24";
|
|
15694
|
+
readonly type: "int24";
|
|
15695
|
+
}];
|
|
15696
|
+
readonly name: "scanChunks";
|
|
15697
|
+
readonly outputs: readonly [{
|
|
15698
|
+
readonly name: "";
|
|
15699
|
+
readonly internalType: "int24[]";
|
|
15700
|
+
readonly type: "int24[]";
|
|
15701
|
+
}, {
|
|
15702
|
+
readonly name: "";
|
|
15703
|
+
readonly internalType: "uint128[2][]";
|
|
15704
|
+
readonly type: "uint128[2][]";
|
|
15705
|
+
}, {
|
|
15706
|
+
readonly name: "";
|
|
15707
|
+
readonly internalType: "uint128[2][]";
|
|
15708
|
+
readonly type: "uint128[2][]";
|
|
15709
|
+
}, {
|
|
15710
|
+
readonly name: "";
|
|
15711
|
+
readonly internalType: "LeftRightUnsigned[2][]";
|
|
15712
|
+
readonly type: "uint256[2][]";
|
|
15713
|
+
}];
|
|
15714
|
+
readonly stateMutability: "view";
|
|
15715
|
+
}, {
|
|
15716
|
+
readonly type: "function";
|
|
15717
|
+
readonly inputs: readonly [{
|
|
15718
|
+
readonly name: "self";
|
|
15719
|
+
readonly internalType: "TokenId";
|
|
15720
|
+
readonly type: "uint256";
|
|
15721
|
+
}];
|
|
15722
|
+
readonly name: "validateTokenId";
|
|
15723
|
+
readonly outputs: readonly [];
|
|
15724
|
+
readonly stateMutability: "pure";
|
|
15725
|
+
}, {
|
|
15726
|
+
readonly type: "error";
|
|
15727
|
+
readonly inputs: readonly [];
|
|
15728
|
+
readonly name: "CastingError";
|
|
15729
|
+
}, {
|
|
15730
|
+
readonly type: "error";
|
|
15731
|
+
readonly inputs: readonly [];
|
|
15732
|
+
readonly name: "InvalidTick";
|
|
15733
|
+
}, {
|
|
15734
|
+
readonly type: "error";
|
|
15735
|
+
readonly inputs: readonly [{
|
|
15736
|
+
readonly name: "parameterType";
|
|
15737
|
+
readonly internalType: "uint256";
|
|
15738
|
+
readonly type: "uint256";
|
|
15739
|
+
}];
|
|
15740
|
+
readonly name: "InvalidTokenIdParameter";
|
|
15741
|
+
}, {
|
|
15742
|
+
readonly type: "error";
|
|
15743
|
+
readonly inputs: readonly [];
|
|
15744
|
+
readonly name: "LiquidityTooHigh";
|
|
15745
|
+
}, {
|
|
15746
|
+
readonly type: "error";
|
|
15747
|
+
readonly inputs: readonly [];
|
|
15748
|
+
readonly name: "UnderOverFlow";
|
|
15749
|
+
}];
|
|
14488
15750
|
declare const riskEngineAbi: readonly [{
|
|
14489
15751
|
readonly type: "constructor";
|
|
14490
15752
|
readonly inputs: readonly [{
|
|
@@ -15432,5 +16694,5 @@ declare const riskEngineAbi: readonly [{
|
|
|
15432
16694
|
}];
|
|
15433
16695
|
|
|
15434
16696
|
//#endregion
|
|
15435
|
-
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, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProtectedSettlePlan, ProviderLagError, 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, 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, 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, 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, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
16697
|
+
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, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProtectedSettlePlan, ProviderLagError, QuoteLiquidationParams, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, ScreenAccountExactParams, ScreenAccountExactResult, SettleParams, SettlePremiumBatchResult, SettlePremiumBatchTargetResult, SettlePremiumFromParams, SettlePremiumFromSimulation, SettleSequenceCallsParams, SettleSequenceClose, SettleSequenceSimulation, SettleSequenceTarget, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, 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, 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, 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, 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, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
15436
16698
|
//# sourceMappingURL=index.d.ts.map
|