@panoptic-eng/sdk 1.0.63 → 1.0.65
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/README.md +1 -1
- package/dist/StateView-q4yMpBY6.js +323 -0
- package/dist/cow/index.d.ts +1 -1
- package/dist/cow/index.js +1 -1
- package/dist/cow/index.js.map +1 -1
- package/dist/{cow-BsSaoahK.js → cow-BU9YOHkh.js} +1 -1
- package/dist/index.d.ts +34 -34
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/{irm-BDlcUNgJ.js → irm-DGyKOQXz.js} +4 -326
- package/dist/panoptic/v2/index.d.ts +161 -137
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +61 -51
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +168 -144
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +64 -54
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{rates-BwZnK0tG.js → rates-Y0Pbv1_x.js} +4 -4
- package/dist/{router-pm9PDlyH.js → router-CheXbrfz.js} +2 -2
- package/dist/{router-Dejb6MWu.js → router-DxE-iwYF.js} +304 -6
- package/dist/{transactionFees-aXQlx-lq.js → transactionFees-BF033Mob.js} +1 -1
- package/dist/uniswap/index.d.ts +194 -4
- package/dist/uniswap/index.d.ts.map +1 -1
- package/dist/uniswap/index.js +1316 -789
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-ccGPXWvq.js → v2-QFSAShVj.js} +29 -316
- package/dist/{writes--fM_8ggw.js → writes-BA21eyGF.js} +38 -38
- package/dist/zodiac/index.d.ts +3 -3
- package/dist/zodiac/index.js +3 -3
- package/dist/zodiac/index.js.map +1 -1
- package/package.json +1 -1
- /package/dist/{chainDeployments-BhXMBZ4B.js → chainDeployments-Do4NaZA_.js} +0 -0
- /package/dist/{greeks-CNi1-cnp.js → greeks-CGtgLUyh.js} +0 -0
- /package/dist/{providers-1WdiaRbY.js → providers-DubVMHWU.js} +0 -0
|
@@ -856,7 +856,7 @@ var NoLegsExercisableError = class extends PanopticError {
|
|
|
856
856
|
var NotALongLegError = class extends PanopticError {
|
|
857
857
|
name = "NotALongLegError";
|
|
858
858
|
constructor(cause) {
|
|
859
|
-
super("Cannot settle
|
|
859
|
+
super("Cannot settle streamia for non-long leg", cause);
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
862
|
/**
|
|
@@ -1325,7 +1325,7 @@ var UnsafePremiumSettlementError = class extends PanopticError {
|
|
|
1325
1325
|
name = "UnsafePremiumSettlementError";
|
|
1326
1326
|
constructor(remainingForfeit, failedBuyerCount, cause) {
|
|
1327
1327
|
const [token0, token1] = remainingForfeit;
|
|
1328
|
-
super(failedBuyerCount > 0 ? `
|
|
1328
|
+
super(failedBuyerCount > 0 ? `Streamia settlement blocked: ${failedBuyerCount} buyer settlement${failedBuyerCount === 1 ? "" : "s"} would fail` : `Streamia settlement blocked: uncollectable streamia remains (${token0}, ${token1})`, cause);
|
|
1329
1329
|
this.remainingForfeit = remainingForfeit;
|
|
1330
1330
|
this.failedBuyerCount = failedBuyerCount;
|
|
1331
1331
|
}
|
|
@@ -10565,7 +10565,7 @@ function formatPerSecondRateWadAsAprPct(ratePerSecondWad, precision) {
|
|
|
10565
10565
|
* // Now use without passing decimals each time
|
|
10566
10566
|
* const priceStr = fmt.tickToPriceScaled(position.currentTick, 4n)
|
|
10567
10567
|
* const amount0Str = fmt.formatAmount0(collateral.assets, 4n)
|
|
10568
|
-
* const amount1Str = fmt.formatAmount1(
|
|
10568
|
+
* const amount1Str = fmt.formatAmount1(streamia.token1, 2n)
|
|
10569
10569
|
*
|
|
10570
10570
|
* // Parse user input
|
|
10571
10571
|
* const rawAmount0 = fmt.parseAmount0("1.5")
|
|
@@ -16693,7 +16693,7 @@ async function fetchAndStorePoolMeta(client, poolAddress, poolMetaKey, storage)
|
|
|
16693
16693
|
* Reorder a position ID list so `tokenId` is the last element.
|
|
16694
16694
|
*
|
|
16695
16695
|
* The position list fingerprint is an XOR hash, so ordering is free to change.
|
|
16696
|
-
* The contract settles
|
|
16696
|
+
* The contract settles streamia on the last element of `positionIdListTo`.
|
|
16697
16697
|
*
|
|
16698
16698
|
* @throws PanopticError if `tokenId` is not in the list
|
|
16699
16699
|
*/
|
|
@@ -16702,15 +16702,15 @@ function orderListForSettle(positionIdList, tokenId) {
|
|
|
16702
16702
|
return [...positionIdList.filter((id) => id !== tokenId), tokenId];
|
|
16703
16703
|
}
|
|
16704
16704
|
/**
|
|
16705
|
-
* Settle another account's accumulated long
|
|
16705
|
+
* Settle another account's accumulated long streamia.
|
|
16706
16706
|
*
|
|
16707
16707
|
* Calls `dispatchFrom` with the target's position list passed as both
|
|
16708
16708
|
* `positionIdListTo` and `positionIdListToFinal` (equal lengths select the
|
|
16709
|
-
* settle-
|
|
16710
|
-
* target account to be solvent; the settled
|
|
16709
|
+
* settle-streamia mode and cannot force-exercise or liquidate). Requires the
|
|
16710
|
+
* target account to be solvent; the settled streamia is credited to the
|
|
16711
16711
|
* sellers of the corresponding chunks.
|
|
16712
16712
|
*
|
|
16713
|
-
* @param params - Settle
|
|
16713
|
+
* @param params - Settle streamia parameters
|
|
16714
16714
|
* @returns TxResult
|
|
16715
16715
|
*
|
|
16716
16716
|
* @example
|
|
@@ -16748,7 +16748,7 @@ async function settlePremiumFrom(params) {
|
|
|
16748
16748
|
});
|
|
16749
16749
|
}
|
|
16750
16750
|
/**
|
|
16751
|
-
* Settle another account's
|
|
16751
|
+
* Settle another account's streamia and wait for confirmation.
|
|
16752
16752
|
*
|
|
16753
16753
|
* When `storage` and `chainId` are provided, automatically syncs the
|
|
16754
16754
|
* caller's positions after the transaction confirms.
|
|
@@ -16838,7 +16838,7 @@ function buildSettleSequenceCalls(params) {
|
|
|
16838
16838
|
return calls;
|
|
16839
16839
|
}
|
|
16840
16840
|
/**
|
|
16841
|
-
* Execute a settle sequence: settle each target buyer's owed long
|
|
16841
|
+
* Execute a settle sequence: settle each target buyer's owed long streamia,
|
|
16842
16842
|
* then optionally close the caller's own position, in one multicall.
|
|
16843
16843
|
*
|
|
16844
16844
|
* @param params - Settle sequence parameters
|
|
@@ -18853,18 +18853,18 @@ const MASK_96 = (1n << 96n) - 1n;
|
|
|
18853
18853
|
//#endregion
|
|
18854
18854
|
//#region src/panoptic/v2/reads/premia.ts
|
|
18855
18855
|
/**
|
|
18856
|
-
* Get
|
|
18856
|
+
* Get streamia totals for an account.
|
|
18857
18857
|
*
|
|
18858
|
-
* Returns the total short and long
|
|
18859
|
-
* Short
|
|
18860
|
-
* Long
|
|
18858
|
+
* Returns the total short and long streamia across all positions.
|
|
18859
|
+
* Short streamia is owed TO the account (earned from selling options).
|
|
18860
|
+
* Long streamia is owed BY the account (paid for buying options).
|
|
18861
18861
|
*
|
|
18862
18862
|
* @param params - The parameters
|
|
18863
|
-
* @returns
|
|
18863
|
+
* @returns Streamia totals with block metadata
|
|
18864
18864
|
*
|
|
18865
18865
|
* @example
|
|
18866
18866
|
* ```typescript
|
|
18867
|
-
* const
|
|
18867
|
+
* const streamia = await getAccountPremia({
|
|
18868
18868
|
* client,
|
|
18869
18869
|
* poolAddress,
|
|
18870
18870
|
* account,
|
|
@@ -18872,8 +18872,8 @@ const MASK_96 = (1n << 96n) - 1n;
|
|
|
18872
18872
|
* includePendingPremium: true,
|
|
18873
18873
|
* })
|
|
18874
18874
|
*
|
|
18875
|
-
* console.log('Short
|
|
18876
|
-
* console.log('Long
|
|
18875
|
+
* console.log('Short streamia earned:', streamia.shortPremium0, streamia.shortPremium1)
|
|
18876
|
+
* console.log('Long streamia owed:', streamia.longPremium0, streamia.longPremium1)
|
|
18877
18877
|
* ```
|
|
18878
18878
|
*/
|
|
18879
18879
|
async function getAccountPremia(params) {
|
|
@@ -18919,13 +18919,13 @@ async function getAccountPremia(params) {
|
|
|
18919
18919
|
};
|
|
18920
18920
|
}
|
|
18921
18921
|
/**
|
|
18922
|
-
* Get positions with per-position
|
|
18922
|
+
* Get positions with per-position streamia data.
|
|
18923
18923
|
*
|
|
18924
18924
|
* Uses multicall to batch individual getFullPositionsData calls
|
|
18925
|
-
* for each position, giving us per-position
|
|
18925
|
+
* for each position, giving us per-position streamia in a single RPC request.
|
|
18926
18926
|
*
|
|
18927
18927
|
* @param params - The parameters
|
|
18928
|
-
* @returns Positions with
|
|
18928
|
+
* @returns Positions with streamia and totals with block metadata
|
|
18929
18929
|
*
|
|
18930
18930
|
* @example
|
|
18931
18931
|
* ```typescript
|
|
@@ -18938,9 +18938,9 @@ async function getAccountPremia(params) {
|
|
|
18938
18938
|
*
|
|
18939
18939
|
* for (const position of result.positions) {
|
|
18940
18940
|
* console.log('Position:', position.tokenId)
|
|
18941
|
-
* console.log('
|
|
18941
|
+
* console.log('Streamia:', position.premiaOwed0, position.premiaOwed1)
|
|
18942
18942
|
* }
|
|
18943
|
-
* console.log('Total short
|
|
18943
|
+
* console.log('Total short streamia:', result.shortPremium0, result.shortPremium1)
|
|
18944
18944
|
* ```
|
|
18945
18945
|
*/
|
|
18946
18946
|
async function getPositionsWithPremia(params) {
|
|
@@ -19057,17 +19057,17 @@ async function getPositionsWithPremia(params) {
|
|
|
19057
19057
|
};
|
|
19058
19058
|
}
|
|
19059
19059
|
/**
|
|
19060
|
-
* Get the unsettled short
|
|
19060
|
+
* Get the unsettled short streamia an account would forfeit by closing now.
|
|
19061
19061
|
*
|
|
19062
19062
|
* Calls `getFullPositionsData` twice in one multicall — once with
|
|
19063
19063
|
* `includePendingPremium = true` (everything owed to the short legs) and once
|
|
19064
19064
|
* with `false` (only what is available to collect). The difference is the
|
|
19065
|
-
*
|
|
19065
|
+
* streamia still owed by buyers that has not been settled; closing before it
|
|
19066
19066
|
* settles forfeits it. Settling buyers first (see `settlePremiumFrom`) moves
|
|
19067
|
-
* that
|
|
19067
|
+
* that streamia into the available bucket.
|
|
19068
19068
|
*
|
|
19069
19069
|
* @param params - The parameters
|
|
19070
|
-
* @returns Owed, available, and forfeitable
|
|
19070
|
+
* @returns Owed, available, and forfeitable streamia with block metadata
|
|
19071
19071
|
*/
|
|
19072
19072
|
async function getForfeitablePremium(params) {
|
|
19073
19073
|
const { client, poolAddress, account, tokenIds, blockNumber } = params;
|
|
@@ -19557,7 +19557,7 @@ async function getAccountSummaryRisk(params) {
|
|
|
19557
19557
|
* ## Same-Block Guarantee
|
|
19558
19558
|
* Tick and NLV are queried at the same target block.
|
|
19559
19559
|
*
|
|
19560
|
-
* Requires PanopticQuery for accurate value and
|
|
19560
|
+
* Requires PanopticQuery for accurate value and streamia accounting.
|
|
19561
19561
|
*
|
|
19562
19562
|
* @param params - The parameters
|
|
19563
19563
|
* @returns Net liquidation value with block metadata
|
|
@@ -21524,10 +21524,10 @@ async function getSafeMode(params) {
|
|
|
21524
21524
|
//#endregion
|
|
21525
21525
|
//#region src/panoptic/v2/reads/queryUtils.ts
|
|
21526
21526
|
/**
|
|
21527
|
-
* Get portfolio value (NAV) without
|
|
21527
|
+
* Get portfolio value (NAV) without streamia.
|
|
21528
21528
|
*
|
|
21529
21529
|
* This calculates the net asset value of the portfolio based on Uniswap liquidity
|
|
21530
|
-
* at a given tick, excluding accumulated
|
|
21530
|
+
* at a given tick, excluding accumulated streamia. Useful for PnL tracking separate
|
|
21531
21531
|
* from liquidation value.
|
|
21532
21532
|
*
|
|
21533
21533
|
* ## Same-Block Guarantee
|
|
@@ -22981,7 +22981,7 @@ const MASK_128 = (1n << 128n) - 1n;
|
|
|
22981
22981
|
* Get historical streamia data for a position across multiple blocks.
|
|
22982
22982
|
*
|
|
22983
22983
|
* @param params - The parameters
|
|
22984
|
-
* @returns Snapshots of Panoptic
|
|
22984
|
+
* @returns Snapshots of Panoptic streamia and Uniswap fee deltas at each block
|
|
22985
22985
|
*/
|
|
22986
22986
|
async function getStreamiaHistory(params) {
|
|
22987
22987
|
const { client, panopticPoolAddress, account, tokenId, blockNumbers, legs, poolConfig, includeUniswapFees = true, settledEvents } = params;
|
|
@@ -24144,17 +24144,17 @@ var EnrichmentCallError = class extends PanopticError {
|
|
|
24144
24144
|
}
|
|
24145
24145
|
};
|
|
24146
24146
|
/**
|
|
24147
|
-
* Fetch enrichment data (
|
|
24147
|
+
* Fetch enrichment data (streamia, portfolio values, collateral requirements) for a set of positions.
|
|
24148
24148
|
*
|
|
24149
24149
|
* Batches all needed contract reads into efficient multicalls:
|
|
24150
24150
|
* - **Open positions**: 3 calls per position in a single multicall at current block:
|
|
24151
|
-
* 1. `getFullPositionsData` →
|
|
24151
|
+
* 1. `getFullPositionsData` → streamia + collateral requirements
|
|
24152
24152
|
* 2. `getPortfolioValue` at currentTick → current portfolio value
|
|
24153
24153
|
* 3. `getPortfolioValue` at mintTick → portfolio value at mint
|
|
24154
24154
|
* - **Closed positions**: 2 calls per position at `burnBlockNumber - 1`:
|
|
24155
24155
|
* 1. `getPortfolioValue` at burnTick → portfolio value at close
|
|
24156
24156
|
* 2. `getPortfolioValue` at mintTick → portfolio value at mint
|
|
24157
|
-
* (
|
|
24157
|
+
* (streamia come from subgraph `burnPremium0/1`)
|
|
24158
24158
|
*
|
|
24159
24159
|
* ## Same-Block Guarantee
|
|
24160
24160
|
* Open position data is fetched at a single block number.
|
|
@@ -26354,11 +26354,11 @@ function buildProtectedSettleDispatch(params) {
|
|
|
26354
26354
|
|
|
26355
26355
|
//#endregion
|
|
26356
26356
|
//#region src/panoptic/v2/simulations/simulateSettlePremiumFrom.ts
|
|
26357
|
-
/** Soft-failure revert markers for settle
|
|
26357
|
+
/** Soft-failure revert markers for settle streamia (target-state issues, not caller errors). */
|
|
26358
26358
|
const SOFT_FAILURES = [
|
|
26359
26359
|
{
|
|
26360
26360
|
marker: "AccountInsolvent",
|
|
26361
|
-
reason: "Target account is insolvent;
|
|
26361
|
+
reason: "Target account is insolvent; streamia cannot be settled"
|
|
26362
26362
|
},
|
|
26363
26363
|
{
|
|
26364
26364
|
marker: "PositionNotOwned",
|
|
@@ -26374,14 +26374,14 @@ const SOFT_FAILURES = [
|
|
|
26374
26374
|
}
|
|
26375
26375
|
];
|
|
26376
26376
|
/**
|
|
26377
|
-
* Simulate settling another account's accumulated long
|
|
26377
|
+
* Simulate settling another account's accumulated long streamia via `dispatchFrom`
|
|
26378
26378
|
* (equal-length `positionIdListTo`/`positionIdListToFinal` selects the settle mode).
|
|
26379
26379
|
*
|
|
26380
|
-
* The measured token flow is the CALLER's collateral delta — i.e. the
|
|
26380
|
+
* The measured token flow is the CALLER's collateral delta — i.e. the streamia
|
|
26381
26381
|
* the caller receives from the settlement (for chunks they sold).
|
|
26382
26382
|
*
|
|
26383
26383
|
* @param params - Simulation parameters
|
|
26384
|
-
* @returns Simulation result with settled
|
|
26384
|
+
* @returns Simulation result with settled streamia data or error
|
|
26385
26385
|
*/
|
|
26386
26386
|
async function simulateSettlePremiumFrom(params) {
|
|
26387
26387
|
const { client, poolAddress, account, user, positionIdListFrom, positionIdList, tokenId, blockNumber } = params;
|
|
@@ -26539,14 +26539,14 @@ async function simulateSettlePremiumFrom(params) {
|
|
|
26539
26539
|
//#endregion
|
|
26540
26540
|
//#region src/panoptic/v2/simulations/simulateSettlePremiumBatch.ts
|
|
26541
26541
|
/**
|
|
26542
|
-
* Simulate settling each target buyer's owed long
|
|
26542
|
+
* Simulate settling each target buyer's owed long streamia, all at one block.
|
|
26543
26543
|
*
|
|
26544
26544
|
* Individual failures (insolvent buyer, stale list, …) are soft: the target
|
|
26545
26545
|
* lands in the unsettleable partition instead of failing the batch. Only
|
|
26546
26546
|
* unexpected errors reject.
|
|
26547
26547
|
*
|
|
26548
26548
|
* @param params - Simulation parameters
|
|
26549
|
-
* @returns Partitioned targets with per-target
|
|
26549
|
+
* @returns Partitioned targets with per-target streamia and totals
|
|
26550
26550
|
*/
|
|
26551
26551
|
async function simulateSettlePremiumBatch(params) {
|
|
26552
26552
|
const { client, poolAddress, account, positionIdListFrom, targets, blockNumber } = params;
|
|
@@ -26837,9 +26837,9 @@ async function simulateSettle(params) {
|
|
|
26837
26837
|
//#endregion
|
|
26838
26838
|
//#region src/panoptic/v2/writes/settle.ts
|
|
26839
26839
|
/**
|
|
26840
|
-
* Settle accumulated
|
|
26840
|
+
* Settle accumulated streamia on existing positions.
|
|
26841
26841
|
*
|
|
26842
|
-
* This function triggers
|
|
26842
|
+
* This function triggers streamia collection without changing position size.
|
|
26843
26843
|
* It calls dispatch with unchanged position lists.
|
|
26844
26844
|
*
|
|
26845
26845
|
* @param params - Settlement parameters
|
|
@@ -26922,7 +26922,7 @@ async function settleAccumulatedPremia(params) {
|
|
|
26922
26922
|
});
|
|
26923
26923
|
}
|
|
26924
26924
|
/**
|
|
26925
|
-
* Settle
|
|
26925
|
+
* Settle streamia and wait for confirmation.
|
|
26926
26926
|
*/
|
|
26927
26927
|
async function settleAccumulatedPremiaAndWait(params) {
|
|
26928
26928
|
const result = await settleAccumulatedPremia(params);
|
|
@@ -31848,7 +31848,7 @@ function netLiquidationValueInQuote(value0, value1, tick, isAssetToken0) {
|
|
|
31848
31848
|
const price = new Decimal("1.0001").pow(tick.toString());
|
|
31849
31849
|
return isAssetToken0 ? new Decimal(value1.toString()).plus(new Decimal(value0.toString()).mul(price)) : new Decimal(value0.toString()).plus(new Decimal(value1.toString()).div(price));
|
|
31850
31850
|
}
|
|
31851
|
-
/** Apply the accrued-
|
|
31851
|
+
/** Apply the accrued-streamia offset and optional asset collateral to a relative NLV curve. */
|
|
31852
31852
|
function marketPnlInQuote({ relativeValue, premium, assetBalance = 0n, price, baselinePrice }) {
|
|
31853
31853
|
return new Decimal(relativeValue).plus(premium).plus(new Decimal(assetBalance.toString()).mul(new Decimal(price).minus(baselinePrice)));
|
|
31854
31854
|
}
|
|
@@ -31885,7 +31885,7 @@ function marketRiskFromValues({ lower, current, upper }) {
|
|
|
31885
31885
|
const Precision = Decimal.clone({ precision: 80 });
|
|
31886
31886
|
const Q96 = 1n << 96n;
|
|
31887
31887
|
const YEAR_SECONDS = new Precision(31536e3);
|
|
31888
|
-
/** The
|
|
31888
|
+
/** The streamia-free position curve, expressed in one quote token's human units. */
|
|
31889
31889
|
function preparePositionGamma({ tokenId, positionSize, quoteIsToken0, quoteDecimals }) {
|
|
31890
31890
|
if (positionSize <= 0n || positionSize >= 1n << 128n) throw new RangeError("Invalid position size");
|
|
31891
31891
|
if (!Number.isInteger(quoteDecimals) || quoteDecimals < 0 || quoteDecimals > 255) throw new RangeError("Invalid quote decimals");
|
|
@@ -31908,6 +31908,16 @@ function preparePositionGamma({ tokenId, positionSize, quoteIsToken0, quoteDecim
|
|
|
31908
31908
|
isLong: leg.isLong
|
|
31909
31909
|
}];
|
|
31910
31910
|
});
|
|
31911
|
+
return prepareLiquidityGamma({
|
|
31912
|
+
chunks,
|
|
31913
|
+
quoteIsToken0,
|
|
31914
|
+
quoteDecimals
|
|
31915
|
+
});
|
|
31916
|
+
}
|
|
31917
|
+
/** Signed dollar-gamma for fixed liquidity ranges in one quote frame. */
|
|
31918
|
+
function prepareLiquidityGamma({ chunks, quoteIsToken0, quoteDecimals }) {
|
|
31919
|
+
if (!Number.isInteger(quoteDecimals) || quoteDecimals < 0 || quoteDecimals > 255) throw new RangeError("Invalid quote decimals");
|
|
31920
|
+
for (const chunk of chunks) if (!Number.isInteger(chunk.lowerTick) || !Number.isInteger(chunk.upperTick) || chunk.lowerTick < -887272 || chunk.upperTick > 887272 || chunk.lowerTick >= chunk.upperTick || chunk.liquidity < 0n || chunk.liquidity >= 1n << 128n) throw new RangeError("Invalid liquidity range");
|
|
31911
31921
|
const scale = new Precision(10).pow(quoteDecimals);
|
|
31912
31922
|
const atTick = (tick) => {
|
|
31913
31923
|
const netLiquidity = chunks.reduce((sum$1, chunk) => tick >= BigInt(chunk.lowerTick) && tick < BigInt(chunk.upperTick) ? sum$1 + (chunk.isLong ? -chunk.liquidity : chunk.liquidity) : sum$1, 0n);
|
|
@@ -32123,7 +32133,7 @@ async function getCollateralCurve({ client, poolAddress, account, queryAddress,
|
|
|
32123
32133
|
//#endregion
|
|
32124
32134
|
//#region src/panoptic/v2/reads/positionValueCurve.ts
|
|
32125
32135
|
const abi = parseAbi(["function computeNetLiquidationValue(uint256[] positionIdList, uint256 shortPremium, uint256 longPremium, uint256[] positionBalanceArray, int24[] atTicks) pure returns (int256[] value0, int256[] value1)"]);
|
|
32126
|
-
/** Stable identity for a position-dependent curve;
|
|
32136
|
+
/** Stable identity for a position-dependent curve; streamia and spot are separate inputs. */
|
|
32127
32137
|
function positionValueKey(positions) {
|
|
32128
32138
|
return [...positions].sort((a, b) => a.tokenId < b.tokenId ? -1 : a.tokenId > b.tokenId ? 1 : 0).map(({ tokenId, positionSize }) => `${tokenId}:${positionSize}`).join(",");
|
|
32129
32139
|
}
|
|
@@ -32309,7 +32319,7 @@ async function getPositionVolatilityHistory({ client, poolAddress, account, toke
|
|
|
32309
32319
|
logs: receipt.logs.filter((log) => log.address.toLowerCase() === poolAddress.toLowerCase()),
|
|
32310
32320
|
eventName: "AccountLiquidated"
|
|
32311
32321
|
});
|
|
32312
|
-
if (liquidations.some((event) => event.args.liquidatee.toLowerCase() === account.toLowerCase())) throw new Error("Liquidation
|
|
32322
|
+
if (liquidations.some((event) => event.args.liquidatee.toLowerCase() === account.toLowerCase())) throw new Error("Liquidation streamia requires haircut reconciliation");
|
|
32313
32323
|
for (const packed of close.args.premiaByLeg) {
|
|
32314
32324
|
const amounts = unpack(packed);
|
|
32315
32325
|
settled.push({
|
|
@@ -32354,7 +32364,7 @@ async function getPositionVolatilityHistory({ client, poolAddress, account, toke
|
|
|
32354
32364
|
})
|
|
32355
32365
|
});
|
|
32356
32366
|
const openingAccrual = premium[0];
|
|
32357
|
-
if (!openingAccrual || openingAccrual.timestamp !== start.blockTimestamp) throw new Error("Opening
|
|
32367
|
+
if (!openingAccrual || openingAccrual.timestamp !== start.blockTimestamp) throw new Error("Opening streamia snapshot missing");
|
|
32358
32368
|
premium = premium.map((snapshot) => ({
|
|
32359
32369
|
timestamp: snapshot.timestamp,
|
|
32360
32370
|
token0: snapshot.token0 - openingAccrual.token0,
|
|
@@ -32362,7 +32372,7 @@ async function getPositionVolatilityHistory({ client, poolAddress, account, toke
|
|
|
32362
32372
|
}));
|
|
32363
32373
|
} catch (error) {
|
|
32364
32374
|
premium = null;
|
|
32365
|
-
premiumError = error instanceof Error ? error.message : "
|
|
32375
|
+
premiumError = error instanceof Error ? error.message : "Streamia history unavailable";
|
|
32366
32376
|
}
|
|
32367
32377
|
if (includeBaseFees) try {
|
|
32368
32378
|
const feeBlocks = close ? blockNumbers.filter((block) => block < finalBlock) : blockNumbers;
|
|
@@ -32414,5 +32424,5 @@ async function getPositionVolatilityHistory({ client, poolAddress, account, toke
|
|
|
32414
32424
|
}
|
|
32415
32425
|
|
|
32416
32426
|
//#endregion
|
|
32417
|
-
export { AccountInsolventError, AlreadyInitializedError, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BatchValidationError, BelowMinimumRedemptionError, CastingError, ChunkHasZeroLiquidityError, ChunkLimitError, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DepositTooLargeError, DuplicateTokenIdError, EffectiveLiquidityAboveThresholdError, ExceedsMaximumRedemptionError, InputListFailError, InsufficientCreditLiquidityError, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, LEG_BITS, LEG_LIMITS, LEG_MASKS, LengthMismatchError, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MARKET_INDICATOR_PERIODS, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MaxRetriesExceededError, MissingPositionIdsError, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidityZeroError, NetworkMismatchError, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OracleRateLimitedError, PanopticError, PanopticHelperNotDeployedError, PanopticValidationError, PoolNotInitializedError, PositionCountNotZeroError, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionTooLargeError, PriceBoundFailError, PriceImpactTooLargeError, ProviderLagError, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, ReentrancyError, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeModeError, StaleDataError, StaleOracleError, SwapTokenMismatchError, SyncTimeoutError, TOKEN_ID_BITS, TokenIdHasZeroLegsError, TooManyLegsOpenError, TransferFailedError, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UnsafePremiumSettlementError, VARIANCE_RATIO_LAG, WAD, 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, calculatePositionVolatilityMetrics, calculateResyncBlock, calculateSpreadWad, calculateVarianceProfile, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralCurveTicks, 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, feeGrowthInsideX128, feesFromFeeGrowthDelta, fetchPoolId, fetchSfpmV3PoolId, fetchUniswapFeeData, 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, getCollateralCurve, getCollateralCurveInputs, 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, getPositionValueCurve, getPositionVolatilityHistory, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getSimpleLoanTokenIndex, 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, logReturns, marketPnlInQuote, marketRiskFromValues, marketScenario, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, netLiquidationValueInQuote, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticLiquidatorAbi, panopticPoolV2Abi, panopticQueryAbi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, positionValueKey, positionValueTicks, prepareIndicatorCandles, preparePositionGamma, preparePositionValue, preparePositionValueCurve, previewBorrow, previewDeposit, previewMint, previewRedeem, previewRepay, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, quoteLiquidation, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, realizedBeta, 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, valuePositionAccrual, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
32427
|
+
export { AccountInsolventError, AlreadyInitializedError, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BatchValidationError, BelowMinimumRedemptionError, CastingError, ChunkHasZeroLiquidityError, ChunkLimitError, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DepositTooLargeError, DuplicateTokenIdError, EffectiveLiquidityAboveThresholdError, ExceedsMaximumRedemptionError, InputListFailError, InsufficientCreditLiquidityError, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, LEG_BITS, LEG_LIMITS, LEG_MASKS, LengthMismatchError, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MARKET_INDICATOR_PERIODS, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MaxRetriesExceededError, MissingPositionIdsError, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidityZeroError, NetworkMismatchError, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OracleRateLimitedError, PanopticError, PanopticHelperNotDeployedError, PanopticValidationError, PoolNotInitializedError, PositionCountNotZeroError, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionTooLargeError, PriceBoundFailError, PriceImpactTooLargeError, ProviderLagError, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, ReentrancyError, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeModeError, StaleDataError, StaleOracleError, SwapTokenMismatchError, SyncTimeoutError, TOKEN_ID_BITS, TokenIdHasZeroLegsError, TooManyLegsOpenError, TransferFailedError, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UnsafePremiumSettlementError, VARIANCE_RATIO_LAG, WAD, 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, calculatePositionVolatilityMetrics, calculateResyncBlock, calculateSpreadWad, calculateVarianceProfile, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralCurveTicks, 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, feeGrowthInsideX128, feesFromFeeGrowthDelta, fetchPoolId, fetchSfpmV3PoolId, fetchUniswapFeeData, 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, getCollateralCurve, getCollateralCurveInputs, 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, getPositionValueCurve, getPositionVolatilityHistory, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getSimpleLoanTokenIndex, 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, logReturns, marketPnlInQuote, marketRiskFromValues, marketScenario, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, netLiquidationValueInQuote, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticLiquidatorAbi, panopticPoolV2Abi, panopticQueryAbi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, positionValueKey, positionValueTicks, prepareIndicatorCandles, prepareLiquidityGamma, preparePositionGamma, preparePositionValue, preparePositionValueCurve, previewBorrow, previewDeposit, previewMint, previewRedeem, previewRepay, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, quoteLiquidation, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, realizedBeta, 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, valuePositionAccrual, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
32418
32428
|
//# sourceMappingURL=index.js.map
|