@panoptic-eng/sdk 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cow/index.d.ts.map +1 -1
- package/dist/{cow-DIYBU1j9.js → cow-64lD-1vF.js} +1 -1
- package/dist/{getTrackedPositionIds-CwBHzOO2.js → getTrackedPositionIds-BwBtLpz-.js} +1 -1
- package/dist/index.d.ts +1599 -197
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4190 -4057
- package/dist/index.js.map +1 -1
- package/dist/{irm-CvLqxTAo.js → irm-Cg08pWot.js} +2 -2
- package/dist/panoptic/v2/index.d.ts +480 -51
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +8862 -7970
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +513 -51
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +9553 -8477
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{router-OcmdMkXx.js → router-DR1NpQhi.js} +2 -2
- package/dist/{router-CUlQfzoc.js → router-Di45CFq9.js} +1 -1
- package/dist/uniswap/index.d.ts.map +1 -1
- package/dist/{v2-D5oeb9YD.js → v2-BYlZLfDi.js} +3882 -3181
- package/dist/{writes-CG9mYns0.js → writes-CmRf1Mok.js} +193 -2
- package/package.json +1 -1
|
@@ -2868,6 +2868,23 @@ interface ForceExerciseSimulation {
|
|
|
2868
2868
|
/** Reason if cannot exercise */
|
|
2869
2869
|
reason?: string;
|
|
2870
2870
|
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Settle-premium-on-another-account simulation result data.
|
|
2873
|
+
*/
|
|
2874
|
+
interface SettlePremiumFromSimulation {
|
|
2875
|
+
/** Short premium the settle makes available to the caller (token 0) */
|
|
2876
|
+
premium0: bigint;
|
|
2877
|
+
/** Short premium the settle makes available to the caller (token 1) */
|
|
2878
|
+
premium1: bigint;
|
|
2879
|
+
/** Total premium the buyer pays into the chunk (token 0) */
|
|
2880
|
+
settled0: bigint;
|
|
2881
|
+
/** Total premium the buyer pays into the chunk (token 1) */
|
|
2882
|
+
settled1: bigint;
|
|
2883
|
+
/** Whether the settlement would succeed */
|
|
2884
|
+
canSettle: boolean;
|
|
2885
|
+
/** Reason if cannot settle */
|
|
2886
|
+
reason?: string;
|
|
2887
|
+
}
|
|
2871
2888
|
/**
|
|
2872
2889
|
* Liquidation simulation result data.
|
|
2873
2890
|
*/
|
|
@@ -2936,6 +2953,10 @@ interface DispatchSimulation {
|
|
|
2936
2953
|
netAmount0: bigint;
|
|
2937
2954
|
/** Token 1 net change */
|
|
2938
2955
|
netAmount1: bigint;
|
|
2956
|
+
/** Premia settled for token 0 (null when atomic pre/post position reads are unavailable). */
|
|
2957
|
+
premiaReceived0: bigint | null;
|
|
2958
|
+
/** Premia settled for token 1 (null when atomic pre/post position reads are unavailable). */
|
|
2959
|
+
premiaReceived1: bigint | null;
|
|
2939
2960
|
/** Positions created */
|
|
2940
2961
|
positionsCreated: bigint[];
|
|
2941
2962
|
/** Positions closed */
|
|
@@ -3938,6 +3959,66 @@ declare function deriveUniqueTokenId(params: DeriveUniqueTokenIdParams): DeriveU
|
|
|
3938
3959
|
*/
|
|
3939
3960
|
declare function planDeriveStrategy(baseTokenId: bigint): DeriveStrategy;
|
|
3940
3961
|
|
|
3962
|
+
//#endregion
|
|
3963
|
+
//#region src/panoptic/v2/tokenId/generateOverlapping.d.ts
|
|
3964
|
+
type OverlappingOptionType = 'call' | 'put';
|
|
3965
|
+
/** One option leg repeated at every generated strike. */
|
|
3966
|
+
interface OverlappingOptionLegConfig {
|
|
3967
|
+
optionType: OverlappingOptionType;
|
|
3968
|
+
optionRatio: bigint;
|
|
3969
|
+
isLong: boolean;
|
|
3970
|
+
/** Defaults to this leg's index. */
|
|
3971
|
+
riskPartner?: bigint;
|
|
3972
|
+
}
|
|
3973
|
+
/** Parameters for {@link generateOverlappingTokenIds}. */
|
|
3974
|
+
interface GenerateOverlappingTokenIdsParams {
|
|
3975
|
+
/** Encoded 64-bit Panoptic pool ID, including tick spacing. */
|
|
3976
|
+
poolId: bigint;
|
|
3977
|
+
/** Current Uniswap pool tick. */
|
|
3978
|
+
currentTick: bigint;
|
|
3979
|
+
/** Standard option timescale used to derive every leg's width. */
|
|
3980
|
+
timescale: Timescale;
|
|
3981
|
+
/** Positive quote-token price interval, such as "25" or "50". */
|
|
3982
|
+
strikePriceSpacing: string;
|
|
3983
|
+
/** Asset token index in the pool (0 or 1). */
|
|
3984
|
+
asset: bigint;
|
|
3985
|
+
assetDecimals: bigint;
|
|
3986
|
+
quoteDecimals: bigint;
|
|
3987
|
+
/** One to four call/put legs sharing each generated strike. */
|
|
3988
|
+
legs: readonly OverlappingOptionLegConfig[];
|
|
3989
|
+
/** Total size divided across all generated TokenIds. */
|
|
3990
|
+
positionSize: bigint;
|
|
3991
|
+
}
|
|
3992
|
+
/** TokenIds and sizes aligned with the corresponding `dispatch()` arguments. */
|
|
3993
|
+
interface GenerateOverlappingTokenIdsResult {
|
|
3994
|
+
positionIdList: bigint[];
|
|
3995
|
+
positionSizes: bigint[];
|
|
3996
|
+
}
|
|
3997
|
+
/**
|
|
3998
|
+
* Generate a fixed quote-price lattice of co-strike TokenIds whose liquidity
|
|
3999
|
+
* ranges strictly contain the current tick. Returned arrays are ordered by
|
|
4000
|
+
* ascending quote strike price and are ready for `dispatch()`.
|
|
4001
|
+
*/
|
|
4002
|
+
declare function generateOverlappingTokenIds(params: GenerateOverlappingTokenIdsParams): GenerateOverlappingTokenIdsResult;
|
|
4003
|
+
|
|
4004
|
+
//#endregion
|
|
4005
|
+
//#region src/panoptic/v2/tokenId/split.d.ts
|
|
4006
|
+
/** TokenIds and sizes aligned with the corresponding `dispatch()` arguments. */
|
|
4007
|
+
interface SplitTokenIdByTimescaleResult {
|
|
4008
|
+
positionIdList: bigint[];
|
|
4009
|
+
positionSizes: bigint[];
|
|
4010
|
+
}
|
|
4011
|
+
/**
|
|
4012
|
+
* Split every standalone option, economic straddle, or mutual risk pair in a
|
|
4013
|
+
* TokenId into a shorter standard timescale. Width-zero credit/loan legs are
|
|
4014
|
+
* emitted together as one final position. Returned arrays are parallel and
|
|
4015
|
+
* ready for `dispatch()`.
|
|
4016
|
+
*
|
|
4017
|
+
* Each option group divides `positionSize` independently across its children.
|
|
4018
|
+
* Integer remainder units are assigned to the lower children first.
|
|
4019
|
+
*/
|
|
4020
|
+
declare function splitTokenIdByTimescale(tokenId: bigint, positionSize: bigint, targetTimescale: Timescale): SplitTokenIdByTimescaleResult;
|
|
4021
|
+
|
|
3941
4022
|
//#endregion
|
|
3942
4023
|
//#region src/panoptic/v2/sfpmSwap/types.d.ts
|
|
3943
4024
|
/** Exact-input or exact-output swap. */
|
|
@@ -4619,6 +4700,54 @@ interface GetPositionsWithPremiaParams {
|
|
|
4619
4700
|
* ```
|
|
4620
4701
|
*/
|
|
4621
4702
|
declare function getPositionsWithPremia(params: GetPositionsWithPremiaParams): Promise<PositionsWithPremiaResult>;
|
|
4703
|
+
/**
|
|
4704
|
+
* Forfeitable (unsettled) short premium on a position.
|
|
4705
|
+
*/
|
|
4706
|
+
interface ForfeitablePremium {
|
|
4707
|
+
/** Short premium owed to the account, including unsettled pending premium (token 0) */
|
|
4708
|
+
owed0: bigint;
|
|
4709
|
+
/** Short premium owed to the account, including unsettled pending premium (token 1) */
|
|
4710
|
+
owed1: bigint;
|
|
4711
|
+
/** Short premium currently available to collect (token 0) */
|
|
4712
|
+
available0: bigint;
|
|
4713
|
+
/** Short premium currently available to collect (token 1) */
|
|
4714
|
+
available1: bigint;
|
|
4715
|
+
/** Premium that would be forfeited if the position were closed now (owed - available, token 0) */
|
|
4716
|
+
forfeit0: bigint;
|
|
4717
|
+
/** Premium that would be forfeited if the position were closed now (owed - available, token 1) */
|
|
4718
|
+
forfeit1: bigint;
|
|
4719
|
+
/** Block metadata */
|
|
4720
|
+
_meta: BlockMeta;
|
|
4721
|
+
}
|
|
4722
|
+
/**
|
|
4723
|
+
* Parameters for getForfeitablePremium.
|
|
4724
|
+
*/
|
|
4725
|
+
interface GetForfeitablePremiumParams {
|
|
4726
|
+
/** viem PublicClient */
|
|
4727
|
+
client: PublicClient;
|
|
4728
|
+
/** PanopticPool address */
|
|
4729
|
+
poolAddress: Address$1;
|
|
4730
|
+
/** Account address (the seller) */
|
|
4731
|
+
account: Address$1;
|
|
4732
|
+
/** TokenIds to measure (typically the position(s) being closed) */
|
|
4733
|
+
tokenIds: bigint[];
|
|
4734
|
+
/** Optional block number for historical queries */
|
|
4735
|
+
blockNumber?: bigint;
|
|
4736
|
+
}
|
|
4737
|
+
/**
|
|
4738
|
+
* Get the unsettled short premium an account would forfeit by closing now.
|
|
4739
|
+
*
|
|
4740
|
+
* Calls `getFullPositionsData` twice in one multicall — once with
|
|
4741
|
+
* `includePendingPremium = true` (everything owed to the short legs) and once
|
|
4742
|
+
* with `false` (only what is available to collect). The difference is the
|
|
4743
|
+
* premium still owed by buyers that has not been settled; closing before it
|
|
4744
|
+
* settles forfeits it. Settling buyers first (see `settlePremiumFrom`) moves
|
|
4745
|
+
* that premium into the available bucket.
|
|
4746
|
+
*
|
|
4747
|
+
* @param params - The parameters
|
|
4748
|
+
* @returns Owed, available, and forfeitable premium with block metadata
|
|
4749
|
+
*/
|
|
4750
|
+
declare function getForfeitablePremium(params: GetForfeitablePremiumParams): Promise<ForfeitablePremium>;
|
|
4622
4751
|
|
|
4623
4752
|
//#endregion
|
|
4624
4753
|
//#region src/panoptic/v2/reads/account.d.ts
|
|
@@ -9332,6 +9461,231 @@ declare function forceExercise(params: ForceExerciseParams): Promise<TxResult>;
|
|
|
9332
9461
|
*/
|
|
9333
9462
|
declare function forceExerciseAndWait(params: ForceExerciseParams): Promise<TxReceipt>;
|
|
9334
9463
|
|
|
9464
|
+
//#endregion
|
|
9465
|
+
//#region src/panoptic/v2/writes/settlePremiumFrom.d.ts
|
|
9466
|
+
/**
|
|
9467
|
+
* Reorder a position ID list so `tokenId` is the last element.
|
|
9468
|
+
*
|
|
9469
|
+
* The position list fingerprint is an XOR hash, so ordering is free to change.
|
|
9470
|
+
* The contract settles premium on the last element of `positionIdListTo`.
|
|
9471
|
+
*
|
|
9472
|
+
* @throws PanopticError if `tokenId` is not in the list
|
|
9473
|
+
*/
|
|
9474
|
+
declare function orderListForSettle(positionIdList: bigint[], tokenId: bigint): bigint[];
|
|
9475
|
+
/**
|
|
9476
|
+
* Parameters for settling another account's long premium.
|
|
9477
|
+
*/
|
|
9478
|
+
interface SettlePremiumFromParams {
|
|
9479
|
+
/** Public client */
|
|
9480
|
+
client: PublicClient;
|
|
9481
|
+
/** Wallet client */
|
|
9482
|
+
walletClient: WalletClient;
|
|
9483
|
+
/** Caller (settler) account address */
|
|
9484
|
+
account: Address$1;
|
|
9485
|
+
/** PanopticPool address */
|
|
9486
|
+
poolAddress: Address$1;
|
|
9487
|
+
/** Account whose long premium is being settled */
|
|
9488
|
+
user: Address$1;
|
|
9489
|
+
/** Position IDs from the caller's account (full held list) */
|
|
9490
|
+
positionIdListFrom: bigint[];
|
|
9491
|
+
/** The target user's full held position ID list (passed as both To and ToFinal) */
|
|
9492
|
+
positionIdList: bigint[];
|
|
9493
|
+
/**
|
|
9494
|
+
* The target position to settle premium on. The contract settles the LAST
|
|
9495
|
+
* element of the list; when provided, the list is reordered to end with
|
|
9496
|
+
* this tokenId. When omitted, the last element of `positionIdList` is settled.
|
|
9497
|
+
*/
|
|
9498
|
+
tokenId?: bigint;
|
|
9499
|
+
/** Packed value for using premia as collateral */
|
|
9500
|
+
usePremiaAsCollateral?: bigint;
|
|
9501
|
+
/** Gas and transaction overrides */
|
|
9502
|
+
txOverrides?: TxOverrides;
|
|
9503
|
+
/** Storage adapter for auto-syncing positions after confirmation */
|
|
9504
|
+
storage?: StorageAdapter;
|
|
9505
|
+
/** Chain ID (required when storage is provided) */
|
|
9506
|
+
chainId?: bigint;
|
|
9507
|
+
}
|
|
9508
|
+
/**
|
|
9509
|
+
* Settle another account's accumulated long premium.
|
|
9510
|
+
*
|
|
9511
|
+
* Calls `dispatchFrom` with the target's position list passed as both
|
|
9512
|
+
* `positionIdListTo` and `positionIdListToFinal` (equal lengths select the
|
|
9513
|
+
* settle-premium mode and cannot force-exercise or liquidate). Requires the
|
|
9514
|
+
* target account to be solvent; the settled premium is credited to the
|
|
9515
|
+
* sellers of the corresponding chunks.
|
|
9516
|
+
*
|
|
9517
|
+
* @param params - Settle premium parameters
|
|
9518
|
+
* @returns TxResult
|
|
9519
|
+
*
|
|
9520
|
+
* @example
|
|
9521
|
+
* ```typescript
|
|
9522
|
+
* const result = await settlePremiumFrom({
|
|
9523
|
+
* client,
|
|
9524
|
+
* walletClient,
|
|
9525
|
+
* account: sellerAddress,
|
|
9526
|
+
* poolAddress,
|
|
9527
|
+
* user: buyerAccount,
|
|
9528
|
+
* positionIdListFrom: sellerPositions,
|
|
9529
|
+
* positionIdList: buyerPositions,
|
|
9530
|
+
* })
|
|
9531
|
+
* const receipt = await result.wait()
|
|
9532
|
+
* ```
|
|
9533
|
+
*/
|
|
9534
|
+
declare function settlePremiumFrom(params: SettlePremiumFromParams): Promise<TxResult>;
|
|
9535
|
+
/**
|
|
9536
|
+
* Settle another account's premium and wait for confirmation.
|
|
9537
|
+
*
|
|
9538
|
+
* When `storage` and `chainId` are provided, automatically syncs the
|
|
9539
|
+
* caller's positions after the transaction confirms.
|
|
9540
|
+
*/
|
|
9541
|
+
declare function settlePremiumFromAndWait(params: SettlePremiumFromParams): Promise<TxReceipt>;
|
|
9542
|
+
|
|
9543
|
+
//#endregion
|
|
9544
|
+
//#region src/panoptic/v2/simulations/creditWrap.d.ts
|
|
9545
|
+
/**
|
|
9546
|
+
* Pre-encoded `dispatch()` arguments a credit wrap is applied to.
|
|
9547
|
+
*
|
|
9548
|
+
* Alias of {@link BatchDispatchArgs} — the two are the same concept.
|
|
9549
|
+
*/
|
|
9550
|
+
type DispatchIntent = BatchDispatchArgs;
|
|
9551
|
+
/**
|
|
9552
|
+
* Which side of the swap is exact.
|
|
9553
|
+
*
|
|
9554
|
+
* - `exact-out`: the credit **sources** a known amount of its token, paying a
|
|
9555
|
+
* swapped amount of the counter-token. Mint carries `swapAtMint=true`.
|
|
9556
|
+
* - `exact-in`: the credit **sells** a known amount of its token, receiving a
|
|
9557
|
+
* swapped amount of the counter-token. Burn carries `swapAtMint=true`.
|
|
9558
|
+
*/
|
|
9559
|
+
type CreditWrapDirection = 'exact-in' | 'exact-out';
|
|
9560
|
+
/**
|
|
9561
|
+
* Where the two credit legs sit relative to the user's own operations.
|
|
9562
|
+
*
|
|
9563
|
+
* - `straddle`: mint first, user ops, burn last. Required for `exact-out`, where
|
|
9564
|
+
* the sourced token must be available while the user's ops run.
|
|
9565
|
+
* - `prepend`: both legs before the user's ops. Used by bootstrap recovery when
|
|
9566
|
+
* the account can sell one collateral token but holds none of the token it needs.
|
|
9567
|
+
* - `append`: both legs after the user's ops, for flows where the token being
|
|
9568
|
+
* sold does not exist until those operations run.
|
|
9569
|
+
*/
|
|
9570
|
+
type CreditWrapPlacement = 'append' | 'prepend' | 'straddle';
|
|
9571
|
+
interface BuildCreditWrappedDispatchParams {
|
|
9572
|
+
dispatch: DispatchIntent;
|
|
9573
|
+
/** The temporary width=0 credit leg. */
|
|
9574
|
+
creditTokenId: bigint;
|
|
9575
|
+
/** Size of the mint leg. The burn leg always passes `0n` (= burn all). */
|
|
9576
|
+
creditPositionSize: bigint;
|
|
9577
|
+
tickLimitLow: bigint;
|
|
9578
|
+
tickLimitHigh: bigint;
|
|
9579
|
+
direction: CreditWrapDirection;
|
|
9580
|
+
placement: CreditWrapPlacement;
|
|
9581
|
+
}
|
|
9582
|
+
/**
|
|
9583
|
+
* Wrap a dispatch with a temporary credit leg that is opened and closed in the
|
|
9584
|
+
* same transaction, netting to a swap.
|
|
9585
|
+
*
|
|
9586
|
+
* `swapAtMint` is not a calldata flag — it is the ORDER of the tick-limit pair:
|
|
9587
|
+
* descending `[high, low]` turns the swap on, ascending `[low, high]` leaves it
|
|
9588
|
+
* off. Exactly one of the two legs carries it, and which one is what makes the
|
|
9589
|
+
* swap exact-in vs exact-out.
|
|
9590
|
+
*/
|
|
9591
|
+
declare function buildCreditWrappedDispatch(params: BuildCreditWrappedDispatchParams): DispatchIntent;
|
|
9592
|
+
|
|
9593
|
+
//#endregion
|
|
9594
|
+
//#region src/panoptic/v2/writes/settleSequence.d.ts
|
|
9595
|
+
/**
|
|
9596
|
+
* One buyer whose long premium is settled by the sequence.
|
|
9597
|
+
*/
|
|
9598
|
+
interface SettleSequenceTarget {
|
|
9599
|
+
/** Account whose long premium is being settled */
|
|
9600
|
+
user: Address$1;
|
|
9601
|
+
/** The target user's full held position ID list */
|
|
9602
|
+
positionIdList: bigint[];
|
|
9603
|
+
/** The position to settle premium on (reordered to the end of the list) */
|
|
9604
|
+
tokenId: bigint;
|
|
9605
|
+
}
|
|
9606
|
+
/**
|
|
9607
|
+
* Optional close of the caller's own position appended to the sequence.
|
|
9608
|
+
*/
|
|
9609
|
+
interface SettleSequenceClose {
|
|
9610
|
+
/** The caller's position to close */
|
|
9611
|
+
tokenId: bigint;
|
|
9612
|
+
/** The caller's position list after the close (excludes `tokenId`) */
|
|
9613
|
+
finalPositionIdList: bigint[];
|
|
9614
|
+
/** Lower tick limit */
|
|
9615
|
+
tickLimitLow: bigint;
|
|
9616
|
+
/** Upper tick limit */
|
|
9617
|
+
tickLimitHigh: bigint;
|
|
9618
|
+
/** Spread limit (default 0) */
|
|
9619
|
+
spreadLimit?: bigint;
|
|
9620
|
+
/** Whether to swap at mint/burn (descending tick limits). Default false */
|
|
9621
|
+
swapAtMint?: boolean;
|
|
9622
|
+
/** Whether to use premia as collateral for the close. Default false */
|
|
9623
|
+
usePremiaAsCollateral?: boolean;
|
|
9624
|
+
/** Builder code (default 0) */
|
|
9625
|
+
builderCode?: bigint;
|
|
9626
|
+
}
|
|
9627
|
+
/**
|
|
9628
|
+
* Parameters shared by the settle-sequence write and simulation.
|
|
9629
|
+
*/
|
|
9630
|
+
interface SettleSequenceCallsParams {
|
|
9631
|
+
/** Position IDs from the caller's account (full held list) */
|
|
9632
|
+
positionIdListFrom: bigint[];
|
|
9633
|
+
/** Buyers to settle */
|
|
9634
|
+
targets: SettleSequenceTarget[];
|
|
9635
|
+
/** Optional close of the caller's own position, appended last */
|
|
9636
|
+
close?: SettleSequenceClose;
|
|
9637
|
+
/**
|
|
9638
|
+
* Optional arbitrary dispatch appended last (e.g. a reduce-size mint+burn
|
|
9639
|
+
* or a batch dispatch). Mutually exclusive with `close`.
|
|
9640
|
+
*/
|
|
9641
|
+
dispatch?: DispatchIntent;
|
|
9642
|
+
/** Packed value for using premia as collateral in the settles */
|
|
9643
|
+
usePremiaAsCollateral?: bigint;
|
|
9644
|
+
}
|
|
9645
|
+
/**
|
|
9646
|
+
* Build the encoded PanopticPool calls for a settle sequence: one settle-mode
|
|
9647
|
+
* `dispatchFrom` per target (equal To/ToFinal lists, settled tokenId last),
|
|
9648
|
+
* then the caller's own close `dispatch` when provided.
|
|
9649
|
+
*
|
|
9650
|
+
* A pure settle changes no position list, so targets need no cross-call
|
|
9651
|
+
* bookkeeping (unlike a force-exercise sequence).
|
|
9652
|
+
*/
|
|
9653
|
+
declare function buildSettleSequenceCalls(params: SettleSequenceCallsParams): Hex[];
|
|
9654
|
+
/**
|
|
9655
|
+
* Parameters for executing a settle sequence.
|
|
9656
|
+
*/
|
|
9657
|
+
interface ExecuteSettleSequenceParams extends SettleSequenceCallsParams {
|
|
9658
|
+
/** Public client */
|
|
9659
|
+
client: PublicClient;
|
|
9660
|
+
/** Wallet client */
|
|
9661
|
+
walletClient: WalletClient;
|
|
9662
|
+
/** Caller (settler) account address */
|
|
9663
|
+
account: Address$1;
|
|
9664
|
+
/** PanopticPool address */
|
|
9665
|
+
poolAddress: Address$1;
|
|
9666
|
+
/** Gas and transaction overrides */
|
|
9667
|
+
txOverrides?: TxOverrides;
|
|
9668
|
+
/** Storage adapter for auto-syncing positions after confirmation */
|
|
9669
|
+
storage?: StorageAdapter;
|
|
9670
|
+
/** Chain ID (required when storage is provided) */
|
|
9671
|
+
chainId?: bigint;
|
|
9672
|
+
}
|
|
9673
|
+
/**
|
|
9674
|
+
* Execute a settle sequence: settle each target buyer's owed long premium,
|
|
9675
|
+
* then optionally close the caller's own position, in one multicall.
|
|
9676
|
+
*
|
|
9677
|
+
* @param params - Settle sequence parameters
|
|
9678
|
+
* @returns TxResult
|
|
9679
|
+
*/
|
|
9680
|
+
declare function executeSettleSequence(params: ExecuteSettleSequenceParams): Promise<TxResult>;
|
|
9681
|
+
/**
|
|
9682
|
+
* Execute a settle sequence and wait for confirmation.
|
|
9683
|
+
*
|
|
9684
|
+
* When `storage` and `chainId` are provided, automatically syncs the
|
|
9685
|
+
* caller's positions after the transaction confirms.
|
|
9686
|
+
*/
|
|
9687
|
+
declare function executeSettleSequenceAndWait(params: ExecuteSettleSequenceParams): Promise<TxReceipt>;
|
|
9688
|
+
|
|
9335
9689
|
//#endregion
|
|
9336
9690
|
//#region src/panoptic/v2/writes/settle.d.ts
|
|
9337
9691
|
/**
|
|
@@ -10462,6 +10816,8 @@ interface SimulateDispatchParams {
|
|
|
10462
10816
|
usePremiaAsCollateral?: boolean;
|
|
10463
10817
|
/** Builder code */
|
|
10464
10818
|
builderCode?: bigint;
|
|
10819
|
+
/** Capture aggregate settled premia from atomic pre/post position snapshots. */
|
|
10820
|
+
measurePremia?: boolean;
|
|
10465
10821
|
/** Optional block number for simulation */
|
|
10466
10822
|
blockNumber?: bigint;
|
|
10467
10823
|
}
|
|
@@ -10665,6 +11021,129 @@ interface SimulateSettleParams {
|
|
|
10665
11021
|
*/
|
|
10666
11022
|
declare function simulateSettle(params: SimulateSettleParams): Promise<SimulationResult<SettleSimulation>>;
|
|
10667
11023
|
|
|
11024
|
+
//#endregion
|
|
11025
|
+
//#region src/panoptic/v2/simulations/simulateSettlePremiumBatch.d.ts
|
|
11026
|
+
/**
|
|
11027
|
+
* Per-target result of a batch settle simulation.
|
|
11028
|
+
*/
|
|
11029
|
+
interface SettlePremiumBatchTargetResult {
|
|
11030
|
+
/** The simulated target */
|
|
11031
|
+
target: SettleSequenceTarget;
|
|
11032
|
+
/** The individual simulation outcome */
|
|
11033
|
+
simulation: SettlePremiumFromSimulation;
|
|
11034
|
+
}
|
|
11035
|
+
/**
|
|
11036
|
+
* Result of simulating a batch of settles.
|
|
11037
|
+
*/
|
|
11038
|
+
interface SettlePremiumBatchResult {
|
|
11039
|
+
/** Per-target outcomes, in input order */
|
|
11040
|
+
results: SettlePremiumBatchTargetResult[];
|
|
11041
|
+
/** Targets whose settle succeeds (include these in the sequence) */
|
|
11042
|
+
settleable: SettleSequenceTarget[];
|
|
11043
|
+
/** Number of targets that cannot be settled */
|
|
11044
|
+
unsettleableCount: number;
|
|
11045
|
+
/** Total premium the caller receives from the settleable targets (token 0) */
|
|
11046
|
+
premium0: bigint;
|
|
11047
|
+
/** Total premium the caller receives from the settleable targets (token 1) */
|
|
11048
|
+
premium1: bigint;
|
|
11049
|
+
/** Block metadata */
|
|
11050
|
+
_meta: BlockMeta;
|
|
11051
|
+
}
|
|
11052
|
+
/**
|
|
11053
|
+
* Parameters for simulateSettlePremiumBatch.
|
|
11054
|
+
*/
|
|
11055
|
+
interface SimulateSettlePremiumBatchParams {
|
|
11056
|
+
/** Public client */
|
|
11057
|
+
client: PublicClient;
|
|
11058
|
+
/** PanopticPool address */
|
|
11059
|
+
poolAddress: Address$1;
|
|
11060
|
+
/** Caller (settler) account address */
|
|
11061
|
+
account: Address$1;
|
|
11062
|
+
/** Position IDs from the caller's account (full held list) */
|
|
11063
|
+
positionIdListFrom: bigint[];
|
|
11064
|
+
/** Buyers to simulate settling */
|
|
11065
|
+
targets: SettleSequenceTarget[];
|
|
11066
|
+
/** Optional block number for simulation */
|
|
11067
|
+
blockNumber?: bigint;
|
|
11068
|
+
}
|
|
11069
|
+
/**
|
|
11070
|
+
* Simulate settling each target buyer's owed long premium, all at one block.
|
|
11071
|
+
*
|
|
11072
|
+
* Individual failures (insolvent buyer, stale list, …) are soft: the target
|
|
11073
|
+
* lands in the unsettleable partition instead of failing the batch. Only
|
|
11074
|
+
* unexpected errors reject.
|
|
11075
|
+
*
|
|
11076
|
+
* @param params - Simulation parameters
|
|
11077
|
+
* @returns Partitioned targets with per-target premium and totals
|
|
11078
|
+
*/
|
|
11079
|
+
declare function simulateSettlePremiumBatch(params: SimulateSettlePremiumBatchParams): Promise<SettlePremiumBatchResult>;
|
|
11080
|
+
/**
|
|
11081
|
+
* Result of simulating a full settle sequence.
|
|
11082
|
+
*/
|
|
11083
|
+
interface SettleSequenceSimulation {
|
|
11084
|
+
/** Caller's net token 0 flow across the whole sequence */
|
|
11085
|
+
delta0: bigint;
|
|
11086
|
+
/** Caller's net token 1 flow across the whole sequence */
|
|
11087
|
+
delta1: bigint;
|
|
11088
|
+
}
|
|
11089
|
+
/**
|
|
11090
|
+
* Parameters for simulateSettleSequence.
|
|
11091
|
+
*/
|
|
11092
|
+
interface SimulateSettleSequenceParams extends SettleSequenceCallsParams {
|
|
11093
|
+
/** Public client */
|
|
11094
|
+
client: PublicClient;
|
|
11095
|
+
/** PanopticPool address */
|
|
11096
|
+
poolAddress: Address$1;
|
|
11097
|
+
/** Caller (settler) account address */
|
|
11098
|
+
account: Address$1;
|
|
11099
|
+
/** Optional block number for simulation */
|
|
11100
|
+
blockNumber?: bigint;
|
|
11101
|
+
}
|
|
11102
|
+
/**
|
|
11103
|
+
* Simulate a full settle sequence (all settles + optional close) as the one
|
|
11104
|
+
* multicall that `executeSettleSequence` submits, measuring the caller's
|
|
11105
|
+
* total token flow and gas.
|
|
11106
|
+
*
|
|
11107
|
+
* @param params - Simulation parameters
|
|
11108
|
+
* @returns Simulation result with the caller's net flow, or error
|
|
11109
|
+
*/
|
|
11110
|
+
declare function simulateSettleSequence(params: SimulateSettleSequenceParams): Promise<SimulationResult<SettleSequenceSimulation>>;
|
|
11111
|
+
|
|
11112
|
+
//#endregion
|
|
11113
|
+
//#region src/panoptic/v2/simulations/simulateSettlePremiumFrom.d.ts
|
|
11114
|
+
/**
|
|
11115
|
+
* Parameters for simulating settling another account's long premium.
|
|
11116
|
+
*/
|
|
11117
|
+
interface SimulateSettlePremiumFromParams {
|
|
11118
|
+
/** Public client */
|
|
11119
|
+
client: PublicClient;
|
|
11120
|
+
/** PanopticPool address */
|
|
11121
|
+
poolAddress: Address$1;
|
|
11122
|
+
/** Caller (settler) account address */
|
|
11123
|
+
account: Address$1;
|
|
11124
|
+
/** Account whose long premium is being settled */
|
|
11125
|
+
user: Address$1;
|
|
11126
|
+
/** Position IDs from the caller's account (full held list) */
|
|
11127
|
+
positionIdListFrom: bigint[];
|
|
11128
|
+
/** The target user's full held position ID list (passed as both To and ToFinal) */
|
|
11129
|
+
positionIdList: bigint[];
|
|
11130
|
+
/** The target position to settle; reordered to the end of the list when provided */
|
|
11131
|
+
tokenId?: bigint;
|
|
11132
|
+
/** Optional block number for simulation */
|
|
11133
|
+
blockNumber?: bigint;
|
|
11134
|
+
}
|
|
11135
|
+
/**
|
|
11136
|
+
* Simulate settling another account's accumulated long premium via `dispatchFrom`
|
|
11137
|
+
* (equal-length `positionIdListTo`/`positionIdListToFinal` selects the settle mode).
|
|
11138
|
+
*
|
|
11139
|
+
* The measured token flow is the CALLER's collateral delta — i.e. the premium
|
|
11140
|
+
* the caller receives from the settlement (for chunks they sold).
|
|
11141
|
+
*
|
|
11142
|
+
* @param params - Simulation parameters
|
|
11143
|
+
* @returns Simulation result with settled premium data or error
|
|
11144
|
+
*/
|
|
11145
|
+
declare function simulateSettlePremiumFrom(params: SimulateSettlePremiumFromParams): Promise<SimulationResult<SettlePremiumFromSimulation>>;
|
|
11146
|
+
|
|
10668
11147
|
//#endregion
|
|
10669
11148
|
//#region src/panoptic/v2/simulations/simulateVault.d.ts
|
|
10670
11149
|
/**
|
|
@@ -10841,56 +11320,6 @@ declare function simulateSwapExactOut(params: SimulateSwapExactOutParams): Promi
|
|
|
10841
11320
|
*/
|
|
10842
11321
|
declare function simulateSwapExactIn(params: SimulateSwapExactInParams): Promise<SimulationResult<SwapSimulation>>;
|
|
10843
11322
|
|
|
10844
|
-
//#endregion
|
|
10845
|
-
//#region src/panoptic/v2/simulations/creditWrap.d.ts
|
|
10846
|
-
/**
|
|
10847
|
-
* Pre-encoded `dispatch()` arguments a credit wrap is applied to.
|
|
10848
|
-
*
|
|
10849
|
-
* Alias of {@link BatchDispatchArgs} — the two are the same concept.
|
|
10850
|
-
*/
|
|
10851
|
-
type DispatchIntent = BatchDispatchArgs;
|
|
10852
|
-
/**
|
|
10853
|
-
* Which side of the swap is exact.
|
|
10854
|
-
*
|
|
10855
|
-
* - `exact-out`: the credit **sources** a known amount of its token, paying a
|
|
10856
|
-
* swapped amount of the counter-token. Mint carries `swapAtMint=true`.
|
|
10857
|
-
* - `exact-in`: the credit **sells** a known amount of its token, receiving a
|
|
10858
|
-
* swapped amount of the counter-token. Burn carries `swapAtMint=true`.
|
|
10859
|
-
*/
|
|
10860
|
-
type CreditWrapDirection = 'exact-in' | 'exact-out';
|
|
10861
|
-
/**
|
|
10862
|
-
* Where the two credit legs sit relative to the user's own operations.
|
|
10863
|
-
*
|
|
10864
|
-
* - `straddle`: mint first, user ops, burn last. Required for `exact-out`, where
|
|
10865
|
-
* the sourced token must be available while the user's ops run.
|
|
10866
|
-
* - `prepend`: both legs before the user's ops. Used by bootstrap recovery when
|
|
10867
|
-
* the account can sell one collateral token but holds none of the token it needs.
|
|
10868
|
-
* - `append`: both legs after the user's ops, for flows where the token being
|
|
10869
|
-
* sold does not exist until those operations run.
|
|
10870
|
-
*/
|
|
10871
|
-
type CreditWrapPlacement = 'append' | 'prepend' | 'straddle';
|
|
10872
|
-
interface BuildCreditWrappedDispatchParams {
|
|
10873
|
-
dispatch: DispatchIntent;
|
|
10874
|
-
/** The temporary width=0 credit leg. */
|
|
10875
|
-
creditTokenId: bigint;
|
|
10876
|
-
/** Size of the mint leg. The burn leg always passes `0n` (= burn all). */
|
|
10877
|
-
creditPositionSize: bigint;
|
|
10878
|
-
tickLimitLow: bigint;
|
|
10879
|
-
tickLimitHigh: bigint;
|
|
10880
|
-
direction: CreditWrapDirection;
|
|
10881
|
-
placement: CreditWrapPlacement;
|
|
10882
|
-
}
|
|
10883
|
-
/**
|
|
10884
|
-
* Wrap a dispatch with a temporary credit leg that is opened and closed in the
|
|
10885
|
-
* same transaction, netting to a swap.
|
|
10886
|
-
*
|
|
10887
|
-
* `swapAtMint` is not a calldata flag — it is the ORDER of the tick-limit pair:
|
|
10888
|
-
* descending `[high, low]` turns the swap on, ascending `[low, high]` leaves it
|
|
10889
|
-
* off. Exactly one of the two legs carries it, and which one is what makes the
|
|
10890
|
-
* swap exact-in vs exact-out.
|
|
10891
|
-
*/
|
|
10892
|
-
declare function buildCreditWrappedDispatch(params: BuildCreditWrappedDispatchParams): DispatchIntent;
|
|
10893
|
-
|
|
10894
11323
|
//#endregion
|
|
10895
11324
|
//#region src/panoptic/v2/simulations/oneTokenFlow.d.ts
|
|
10896
11325
|
/**
|
|
@@ -14930,6 +15359,11 @@ declare function useAccountGreeks(poolAddress: Address$1, account?: Address$1, o
|
|
|
14930
15359
|
declare function useMarginBuffer(poolAddress: Address$1, tokenIds: bigint[], queryAddress: Address$1, account?: Address$1, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
14931
15360
|
declare function useIsLiquidatable(poolAddress: Address$1, tokenIds: bigint[], queryAddress: Address$1, account?: Address$1, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
14932
15361
|
declare function useAccountPremia(poolAddress: Address$1, tokenIds: bigint[], account?: Address$1, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
15362
|
+
/**
|
|
15363
|
+
* Unsettled short premium the account would forfeit by closing `tokenIds` now
|
|
15364
|
+
* (owed-including-pending minus available-to-collect).
|
|
15365
|
+
*/
|
|
15366
|
+
declare function useForfeitablePremium(poolAddress: Address$1, tokenIds: bigint[], account?: Address$1, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
14933
15367
|
declare function usePositionsWithPremia(poolAddress: Address$1, tokenIds: bigint[], account?: Address$1, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
14934
15368
|
declare function usePreviewDeposit(poolAddress: Address$1, tokenIndex: 0 | 1, amount: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
14935
15369
|
declare function usePreviewWithdraw(poolAddress: Address$1, tokenIndex: 0 | 1, amount: bigint, options?: QueryOptions): QueryObserverResult<TData, TError>;
|
|
@@ -15189,6 +15623,14 @@ declare function useClosePosition(poolAddress: Address$1): any;
|
|
|
15189
15623
|
declare function useRollPosition(poolAddress: Address$1): any;
|
|
15190
15624
|
declare function useLiquidate(poolAddress: Address$1): any;
|
|
15191
15625
|
declare function useForceExercise(poolAddress: Address$1): any;
|
|
15626
|
+
/**
|
|
15627
|
+
* Execute a settle sequence (settle N buyers, optionally close own position)
|
|
15628
|
+
* as one multicall. The mutation resolves at submission with the TxResult so
|
|
15629
|
+
* callers can track confirmation via `result.wait()` or event polling;
|
|
15630
|
+
* invalidation therefore fires at submit time.
|
|
15631
|
+
*/
|
|
15632
|
+
declare function useExecuteSettleSequence(poolAddress: Address$1): any;
|
|
15633
|
+
declare function useSettlePremiumFrom(poolAddress: Address$1): any;
|
|
15192
15634
|
declare function useSettleAccumulatedPremia(poolAddress: Address$1): any;
|
|
15193
15635
|
declare function usePokeOracle(poolAddress: Address$1): any;
|
|
15194
15636
|
declare function useDispatch(poolAddress: Address$1): any;
|
|
@@ -15212,6 +15654,20 @@ declare function useSimulateDeposit(params?: OmitClient<SimulateDepositParams>):
|
|
|
15212
15654
|
declare function useSimulateWithdraw(params?: OmitClient<SimulateWithdrawParams>): QueryObserverResult<TData, TError>;
|
|
15213
15655
|
declare function useSimulateLiquidate(poolAddress: Address$1, params?: OmitClientAndPool<SimulateLiquidateParams>): QueryObserverResult<TData, TError>;
|
|
15214
15656
|
declare function useSimulateForceExercise(poolAddress: Address$1, params?: OmitClientAndPool<SimulateForceExerciseParams>): QueryObserverResult<TData, TError>;
|
|
15657
|
+
/**
|
|
15658
|
+
* Simulate settling several buyers' owed premium at one block, partitioning
|
|
15659
|
+
* them into settleable vs unsettleable and summing the caller's unlocked
|
|
15660
|
+
* premium. Refetches on every call (staleTime 0) so the partition reflects
|
|
15661
|
+
* current chain state.
|
|
15662
|
+
*/
|
|
15663
|
+
declare function useSimulateSettlePremiumBatch(poolAddress: Address$1, params?: OmitClientAndPool<SimulateSettlePremiumBatchParams>): QueryObserverResult<TData, TError>;
|
|
15664
|
+
/**
|
|
15665
|
+
* Simulate a full settle sequence (per-buyer settles + optional close/dispatch)
|
|
15666
|
+
* as the single multicall that will be submitted, returning the caller's net
|
|
15667
|
+
* token flow and gas. Refetches on every call (staleTime 0).
|
|
15668
|
+
*/
|
|
15669
|
+
declare function useSimulateSettleSequence(poolAddress: Address$1, params?: OmitClientAndPool<SimulateSettleSequenceParams>): QueryObserverResult<TData, TError>;
|
|
15670
|
+
declare function useSimulateSettlePremiumFrom(poolAddress: Address$1, params?: OmitClientAndPool<SimulateSettlePremiumFromParams>): QueryObserverResult<TData, TError>;
|
|
15215
15671
|
declare function useSimulateSettle(poolAddress: Address$1, params?: OmitClientAndPool<SimulateSettleParams>): QueryObserverResult<TData, TError>;
|
|
15216
15672
|
declare function useSimulateBatchDispatch(poolAddress: Address$1, params?: OmitClientAndPool<SimulateBatchDispatchParams>): QueryObserverResult<TData, TError>;
|
|
15217
15673
|
declare function useSimulateDispatch(poolAddress: Address$1, params?: OmitClientAndPool<SimulateDispatchParams>): QueryObserverResult<TData, TError>;
|
|
@@ -15874,6 +16330,12 @@ declare const queryKeys: {
|
|
|
15874
16330
|
* Key for positions with premia.
|
|
15875
16331
|
*/
|
|
15876
16332
|
readonly positionsWithPremia: (chainId: bigint, poolAddress: Address, account: Address) => readonly ["panoptic-v2", "positionsWithPremia", string, Address, Address];
|
|
16333
|
+
/**
|
|
16334
|
+
* Key prefix for forfeitable premium. Used both as the query key prefix (the
|
|
16335
|
+
* hook appends the client scope and tokenIds) and for prefix invalidation
|
|
16336
|
+
* after settle / force-exercise mutations.
|
|
16337
|
+
*/
|
|
16338
|
+
readonly forfeitablePremium: (chainId: bigint, poolAddress: Address, account: Address) => readonly ["panoptic-v2", "forfeitablePremium", string, Address, Address];
|
|
15877
16339
|
/**
|
|
15878
16340
|
* Key for collateral data.
|
|
15879
16341
|
*/
|
|
@@ -15915,5 +16377,5 @@ declare const queryKeys: {
|
|
|
15915
16377
|
};
|
|
15916
16378
|
|
|
15917
16379
|
//#endregion
|
|
15918
|
-
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, 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, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, 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, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, 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, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, 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, 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, buildSfpmSwapCalldata, buildSfpmSwapPlan, buildTemporaryLoanRecoveryDispatch, buildTokenShortfallRecoveryDispatch, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, 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, 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, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, isolateGroupTokenId, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralBreakdown, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxRedeem, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
16380
|
+
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, 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, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, MutationEffectParams, MutationType, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticContextValue, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticProvider, PanopticProviderProps, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceHistoryTimeRange, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QueryOptions, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, 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, 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, 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, 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, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralRuleKindFor, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleRiskParameters, decodeOracleTiming, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, deriveUniqueTokenId, detectReorg, diagnoseOracleSafeMode, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, ensureSfpmV3PoolInitialized, estimateBlockNumbers, estimateCollateralBreakdown, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, failPendingPosition, feesFromFeeGrowthDelta, fetchPoolId, fetchSfpmV3PoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, generateOverlappingTokenIds, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getForfeitablePremium, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCowSupportedChain, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, isolateGroupTokenId, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, mutationEffects, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, queryKeys, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, useAccountCollateral, useAccountGreeks, useAccountPremia, useAccountSummaryBasic, useAccountSummaryRisk, useAddPendingPosition, useApprove, useApproveErc20ForCow, useApproveErc20ForPermit2, useApprovePool, useApproveRouterViaPermit2, useBatchDispatch as useBatchDispatchHook, useBorrow as useBorrowHook, useCancelCowOrder, useCheckCowApproval, useCheckRouterApproval, useChunkSpreads, useClearTrackedPositions, useClosePosition as useClosePositionHook, useClosedPositions, useCollateralBreakdown, useCollateralData, useConfirmPendingPosition, useCowOrderStatus, useCurrentRates, useDeployNewPool as useDeployNewPoolHook, useDeposit as useDepositHook, useDispatch as useDispatchHook, useEstimateCollateralRequired, useEventPoller, useEventSubscription, useExecuteSettleSequence, useFactoryConstructMetadata, useFactoryOwnerOf, useFactoryTokenURI, useFailPendingPosition, useFlowNeutralTokenId, useForceExercise as useForceExerciseHook, useForfeitablePremium, useGuardianUnlockState, useInterestState, useIsLiquidatable, useLiquidate as useLiquidateHook, useLiquidationPrices, useMarginBuffer, useMaxPositionSize, useMaxRedeem, useMaxWithdrawable, useMinePoolAddress as useMinePoolAddressHook, useMintShares, useNativeTokenPrice, useNetLiquidationValue, useNetLiquidationValues, useOpenPosition as useOpenPositionHook, useOpenPositionPreview, useOptimizeRiskPartners, useOracleState, usePanopticContext, usePanopticPoolAddress, usePokeOracle as usePokeOracleHook, usePool, usePoolLiquidities, usePosition, usePositionGreeks, usePositions, usePositionsWithPremia, usePreviewBorrow, usePreviewDeposit, usePreviewMint, usePreviewRedeem, usePreviewWithdraw, usePriceHistory, useQuoteCowSwap, useQuoteSwapExactInViaRouter, useQuoteSwapExactOutViaRouter, useRealizedPnL, useRedeem as useRedeemHook, useRepay as useRepayHook, useResolveUniswapV4PoolKey, useRiskParameters, useRollPosition as useRollPositionHook, useSafeMode, useSettleAccumulatedPremia as useSettleAccumulatedPremiaHook, useSettlePremiumFrom as useSettlePremiumFromHook, useSimulateBatchDispatch, useSimulateClosePosition, useSimulateDeployNewPool, useSimulateDeposit, useSimulateDispatch, useSimulateForceExercise, useSimulateLiquidate, useSimulateOpenPosition, useSimulateSFPMBurn, useSimulateSFPMMint, useSimulateSettle, useSimulateSettlePremiumBatch, useSimulateSettlePremiumFrom, useSimulateSettleSequence, useSimulateSwapExactIn, useSimulateSwapExactOut, useSimulateWithdraw, useSmartRepay as useSmartRepayHook, useStreamiaHistory, useSubmitCowOrder, useSupply as useSupplyHook, useSwapExactIn, useSwapExactInViaRouter, useSwapExactOut, useSwapExactOutViaRouter, useSyncPositions, useSyncStatus, useTrackedPositionIds, useTradeHistory, useTxEventConfirmation, useUniswapFeeHistory, useUniswapV3PoolInfo, useUniswapV3PoolLiquidities, useUniswapV4PoolBasicState, useUniswapV4PoolInfo, useUniswapV4PoolLiquidities, useUnsupply as useUnsupplyHook, useUnwrapWeth, useUnwrapXstock, useUtilization, useValidateBuilderCode, useWatchEvents, useWithdraw as useWithdrawHook, useWithdrawWithPositions as useWithdrawWithPositionsHook, useWrapEth, useWrapXstock, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
15919
16381
|
//# sourceMappingURL=react-public.d.ts.map
|