@panoptic-eng/sdk 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cow/index.js +48 -4
- package/dist/cow/index.js.map +1 -1
- package/dist/{cow-64lD-1vF.js → cow-BPcuMjYR.js} +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +203 -162
- package/dist/index.js.map +1 -1
- package/dist/{irm-Cg08pWot.js → irm-C7QhFiwL.js} +7 -246
- package/dist/panoptic/v2/index.d.ts +167 -32
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +1562 -930
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +167 -32
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +1164 -528
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{getTrackedPositionIds-BwBtLpz-.js → rates-5oQD-SuM.js} +256 -4
- package/dist/{router-DR1NpQhi.js → router-C26q7i8w.js} +2 -2
- package/dist/{router-Di45CFq9.js → router-ClhAkKjh.js} +1 -1
- package/dist/uniswap/index.js +59 -15
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-BYlZLfDi.js → v2-DVcophLf.js} +1379 -2671
- package/dist/{writes-CmRf1Mok.js → writes-DBHwfbDD.js} +2855 -944
- package/dist/zodiac/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MulticallNoDataError, MulticallResultFailedError, MulticallResultMissingError, PanopticValidationError, collateralTrackerV2Abi, decodeLeftRightUnsigned, getBlockMeta, getPool, getPositions, panopticPoolV2Abi, riskEngineAbi } from "./
|
|
1
|
+
import { MulticallNoDataError, MulticallResultFailedError, MulticallResultMissingError, PanopticValidationError, collateralTrackerV2Abi, decodeLeftRightUnsigned, getBlockMeta, getPool, getPositions, panopticPoolV2Abi, riskEngineAbi } from "./rates-5oQD-SuM.js";
|
|
2
2
|
import { NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, tickToSqrtPriceX96 } from "./greeks-9aTE-DwO.js";
|
|
3
3
|
import { decodeFunctionResult, encodeFunctionData } from "viem";
|
|
4
4
|
import { call } from "viem/actions";
|
|
@@ -2004,7 +2004,7 @@ async function getLiquidationPrices(params) {
|
|
|
2004
2004
|
|
|
2005
2005
|
//#endregion
|
|
2006
2006
|
//#region src/panoptic/v2/reads/collateral.ts
|
|
2007
|
-
const SECONDS_PER_YEAR$
|
|
2007
|
+
const SECONDS_PER_YEAR$1 = 31536000n;
|
|
2008
2008
|
const erc20Abi$1 = [{
|
|
2009
2009
|
type: "function",
|
|
2010
2010
|
name: "symbol",
|
|
@@ -2059,7 +2059,7 @@ async function getCollateralData(params) {
|
|
|
2059
2059
|
const [poolData$1, totalShares$1, interestRate$1] = dynamicResults;
|
|
2060
2060
|
const [depositedAssets$1, insideAMM$1, creditedShares$1, utilization$1] = poolData$1;
|
|
2061
2061
|
const totalAssets$1 = depositedAssets$1 + insideAMM$1;
|
|
2062
|
-
const borrowRate$1 = BigInt(interestRate$1) * SECONDS_PER_YEAR$
|
|
2062
|
+
const borrowRate$1 = BigInt(interestRate$1) * SECONDS_PER_YEAR$1;
|
|
2063
2063
|
const supplyRate$1 = borrowRate$1 * utilization$1 / 10000n;
|
|
2064
2064
|
return {
|
|
2065
2065
|
address: trackerMetadata.address,
|
|
@@ -2125,7 +2125,7 @@ async function getCollateralData(params) {
|
|
|
2125
2125
|
});
|
|
2126
2126
|
const [depositedAssets, insideAMM, creditedShares, utilization] = poolData;
|
|
2127
2127
|
const totalAssets = depositedAssets + insideAMM;
|
|
2128
|
-
const borrowRate = BigInt(interestRate) * SECONDS_PER_YEAR$
|
|
2128
|
+
const borrowRate = BigInt(interestRate) * SECONDS_PER_YEAR$1;
|
|
2129
2129
|
const supplyRate = borrowRate * utilization / 10000n;
|
|
2130
2130
|
return {
|
|
2131
2131
|
address: collateralTrackerAddress,
|
|
@@ -2208,8 +2208,8 @@ async function getCurrentRates(params) {
|
|
|
2208
2208
|
const [interestRate0, poolData0, interestRate1, poolData1] = rateData;
|
|
2209
2209
|
const utilization0 = poolData0[3];
|
|
2210
2210
|
const utilization1 = poolData1[3];
|
|
2211
|
-
const borrowRate0 = BigInt(interestRate0) * SECONDS_PER_YEAR$
|
|
2212
|
-
const borrowRate1 = BigInt(interestRate1) * SECONDS_PER_YEAR$
|
|
2211
|
+
const borrowRate0 = BigInt(interestRate0) * SECONDS_PER_YEAR$1;
|
|
2212
|
+
const borrowRate1 = BigInt(interestRate1) * SECONDS_PER_YEAR$1;
|
|
2213
2213
|
const supplyRate0 = borrowRate0 * utilization0 / 10000n;
|
|
2214
2214
|
const supplyRate1 = borrowRate1 * utilization1 / 10000n;
|
|
2215
2215
|
return {
|
|
@@ -2603,245 +2603,6 @@ function resolveVaultDisplayName({ chainId, vaultAddress, underlyingSymbol, fall
|
|
|
2603
2603
|
return "Vault";
|
|
2604
2604
|
}
|
|
2605
2605
|
|
|
2606
|
-
//#endregion
|
|
2607
|
-
//#region src/panoptic/v2/formatters/amount.ts
|
|
2608
|
-
/**
|
|
2609
|
-
* Format a raw token amount to a human-readable string.
|
|
2610
|
-
*
|
|
2611
|
-
* @param amount - The amount in smallest units (e.g., wei)
|
|
2612
|
-
* @param decimals - Token decimals (e.g., 18n for WETH, 6n for USDC)
|
|
2613
|
-
* @param precision - Number of decimal places to display
|
|
2614
|
-
* @returns Formatted string
|
|
2615
|
-
*
|
|
2616
|
-
* @example
|
|
2617
|
-
* ```typescript
|
|
2618
|
-
* formatTokenAmount(1500000000000000000n, 18n, 4n) // "1.5000"
|
|
2619
|
-
* formatTokenAmount(1500000000000000000n, 18n, 2n) // "1.50"
|
|
2620
|
-
* formatTokenAmount(1500000n, 6n, 2n) // "1.50" (USDC)
|
|
2621
|
-
* formatTokenAmount(-500000000000000000n, 18n, 4n) // "-0.5000"
|
|
2622
|
-
* ```
|
|
2623
|
-
*/
|
|
2624
|
-
function formatTokenAmount(amount, decimals, precision) {
|
|
2625
|
-
const isNegative = amount < 0n;
|
|
2626
|
-
const absAmount = isNegative ? -amount : amount;
|
|
2627
|
-
const divisor = 10n ** decimals;
|
|
2628
|
-
const integerPart = absAmount / divisor;
|
|
2629
|
-
const fractionalPart = absAmount % divisor;
|
|
2630
|
-
const fullFractionalStr = fractionalPart.toString().padStart(Number(decimals), "0");
|
|
2631
|
-
const truncatedFractionalStr = fullFractionalStr.slice(0, Number(precision));
|
|
2632
|
-
const paddedFractionalStr = truncatedFractionalStr.padEnd(Number(precision), "0");
|
|
2633
|
-
const sign = isNegative ? "-" : "";
|
|
2634
|
-
return precision > 0n ? `${sign}${integerPart}.${paddedFractionalStr}` : `${sign}${integerPart}`;
|
|
2635
|
-
}
|
|
2636
|
-
/**
|
|
2637
|
-
* Format a token amount with a sign prefix (+/-) for non-zero values.
|
|
2638
|
-
* Useful for displaying PnL, deltas, or changes.
|
|
2639
|
-
*
|
|
2640
|
-
* @param amount - The amount in smallest units
|
|
2641
|
-
* @param decimals - Token decimals
|
|
2642
|
-
* @param precision - Number of decimal places to display
|
|
2643
|
-
* @returns Formatted string with sign prefix
|
|
2644
|
-
*
|
|
2645
|
-
* @example
|
|
2646
|
-
* ```typescript
|
|
2647
|
-
* formatTokenAmountSigned(1500000000000000000n, 18n, 4n) // "+1.5000"
|
|
2648
|
-
* formatTokenAmountSigned(-500000000000000000n, 18n, 4n) // "-0.5000"
|
|
2649
|
-
* formatTokenAmountSigned(0n, 18n, 4n) // "0.0000"
|
|
2650
|
-
* ```
|
|
2651
|
-
*/
|
|
2652
|
-
function formatTokenAmountSigned(amount, decimals, precision) {
|
|
2653
|
-
const formatted = formatTokenAmount(amount, decimals, precision);
|
|
2654
|
-
if (amount > 0n) return `+${formatted}`;
|
|
2655
|
-
return formatted;
|
|
2656
|
-
}
|
|
2657
|
-
/**
|
|
2658
|
-
* Parse a human-readable token amount string to raw units.
|
|
2659
|
-
*
|
|
2660
|
-
* @param amount - Human-readable amount string (e.g., "1.5")
|
|
2661
|
-
* @param decimals - Token decimals
|
|
2662
|
-
* @returns Amount in smallest units
|
|
2663
|
-
*
|
|
2664
|
-
* @example
|
|
2665
|
-
* ```typescript
|
|
2666
|
-
* parseTokenAmount("1.5", 18n) // 1500000000000000000n
|
|
2667
|
-
* parseTokenAmount("1.5", 6n) // 1500000n (USDC)
|
|
2668
|
-
* parseTokenAmount("100", 18n) // 100000000000000000000n
|
|
2669
|
-
* parseTokenAmount("-0.5", 18n) // -500000000000000000n
|
|
2670
|
-
* ```
|
|
2671
|
-
*/
|
|
2672
|
-
function parseTokenAmount(amount, decimals) {
|
|
2673
|
-
const trimmed = amount.trim();
|
|
2674
|
-
const isNegative = trimmed.startsWith("-");
|
|
2675
|
-
const cleanAmount = isNegative ? trimmed.slice(1) : trimmed;
|
|
2676
|
-
const [integerStr, fractionalStr = ""] = cleanAmount.split(".");
|
|
2677
|
-
const paddedFractional = fractionalStr.padEnd(Number(decimals), "0").slice(0, Number(decimals));
|
|
2678
|
-
const integerPart = BigInt(integerStr || "0") * 10n ** decimals;
|
|
2679
|
-
const fractionalPart = BigInt(paddedFractional || "0");
|
|
2680
|
-
const result = integerPart + fractionalPart;
|
|
2681
|
-
return isNegative ? -result : result;
|
|
2682
|
-
}
|
|
2683
|
-
/**
|
|
2684
|
-
* Format a token delta amount with a sign prefix (+/-) for non-zero values.
|
|
2685
|
-
* Alias for formatTokenAmountSigned, useful for clarity at call sites.
|
|
2686
|
-
*
|
|
2687
|
-
* @param amount - The delta amount in smallest units
|
|
2688
|
-
* @param decimals - Token decimals
|
|
2689
|
-
* @param precision - Number of decimal places to display
|
|
2690
|
-
* @returns Formatted string with sign prefix
|
|
2691
|
-
*/
|
|
2692
|
-
function formatTokenDelta(amount, decimals, precision) {
|
|
2693
|
-
return formatTokenAmountSigned(amount, decimals, precision);
|
|
2694
|
-
}
|
|
2695
|
-
/**
|
|
2696
|
-
* Format token flow deltas and balances from simulation results.
|
|
2697
|
-
*
|
|
2698
|
-
* @param flow - Token flow data
|
|
2699
|
-
* @param decimals0 - Token0 decimals
|
|
2700
|
-
* @param decimals1 - Token1 decimals
|
|
2701
|
-
* @param precision0 - Precision for token0 formatting
|
|
2702
|
-
* @param precision1 - Precision for token1 formatting
|
|
2703
|
-
* @returns Formatted token flow strings
|
|
2704
|
-
*/
|
|
2705
|
-
function formatTokenFlow(flow, decimals0, decimals1, precision0, precision1) {
|
|
2706
|
-
return {
|
|
2707
|
-
delta0: formatTokenAmountSigned(flow.delta0, decimals0, precision0),
|
|
2708
|
-
delta1: formatTokenAmountSigned(flow.delta1, decimals1, precision1),
|
|
2709
|
-
balanceBefore0: formatTokenAmount(flow.balanceBefore0, decimals0, precision0),
|
|
2710
|
-
balanceBefore1: formatTokenAmount(flow.balanceBefore1, decimals1, precision1),
|
|
2711
|
-
balanceAfter0: formatTokenAmount(flow.balanceAfter0, decimals0, precision0),
|
|
2712
|
-
balanceAfter1: formatTokenAmount(flow.balanceAfter1, decimals1, precision1)
|
|
2713
|
-
};
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
|
-
//#endregion
|
|
2717
|
-
//#region src/panoptic/v2/formatters/wad.ts
|
|
2718
|
-
/**
|
|
2719
|
-
* Format a WAD-scaled value (1e18 = 1.0).
|
|
2720
|
-
*
|
|
2721
|
-
* @param wad - WAD-scaled value
|
|
2722
|
-
* @param precision - Number of decimal places to display
|
|
2723
|
-
* @returns Formatted string
|
|
2724
|
-
*
|
|
2725
|
-
* @example
|
|
2726
|
-
* ```typescript
|
|
2727
|
-
* formatWad(1220000000000000000n, 2n) // "1.22"
|
|
2728
|
-
* formatWad(1220000000000000000n, 4n) // "1.2200"
|
|
2729
|
-
* formatWad(1000000000000000000n, 2n) // "1.00"
|
|
2730
|
-
* formatWad(500000000000000000n, 2n) // "0.50"
|
|
2731
|
-
* ```
|
|
2732
|
-
*/
|
|
2733
|
-
function formatWad(wad, precision) {
|
|
2734
|
-
return formatTokenAmount(wad, 18n, precision);
|
|
2735
|
-
}
|
|
2736
|
-
/**
|
|
2737
|
-
* Format a WAD-scaled value with sign prefix (+/-) for non-zero values.
|
|
2738
|
-
*
|
|
2739
|
-
* @param wad - WAD-scaled value
|
|
2740
|
-
* @param precision - Number of decimal places to display
|
|
2741
|
-
* @returns Formatted string with sign prefix
|
|
2742
|
-
*
|
|
2743
|
-
* @example
|
|
2744
|
-
* ```typescript
|
|
2745
|
-
* formatWadSigned(1220000000000000000n, 2n) // "+1.22"
|
|
2746
|
-
* formatWadSigned(-500000000000000000n, 2n) // "-0.50"
|
|
2747
|
-
* formatWadSigned(0n, 2n) // "0.00"
|
|
2748
|
-
* ```
|
|
2749
|
-
*/
|
|
2750
|
-
function formatWadSigned(wad, precision) {
|
|
2751
|
-
const formatted = formatWad(wad, precision);
|
|
2752
|
-
if (wad > 0n) return `+${formatted}`;
|
|
2753
|
-
return formatted;
|
|
2754
|
-
}
|
|
2755
|
-
/**
|
|
2756
|
-
* Format a WAD-scaled value as a percentage string.
|
|
2757
|
-
*
|
|
2758
|
-
* @param wad - WAD-scaled value
|
|
2759
|
-
* @param precision - Number of decimal places to display
|
|
2760
|
-
* @returns Formatted percentage string
|
|
2761
|
-
*
|
|
2762
|
-
* @example
|
|
2763
|
-
* ```typescript
|
|
2764
|
-
* formatWadPercent(50000000000000000n, 2n) // "5.00%"
|
|
2765
|
-
* formatWadPercent(1000000000000000000n, 1n) // "100.0%"
|
|
2766
|
-
* ```
|
|
2767
|
-
*/
|
|
2768
|
-
function formatWadPercent(wad, precision) {
|
|
2769
|
-
return `${formatTokenAmount(wad * 100n, 18n, precision)}%`;
|
|
2770
|
-
}
|
|
2771
|
-
/**
|
|
2772
|
-
* Format an annualized rate stored as a WAD-scaled value.
|
|
2773
|
-
* Alias for formatWadPercent.
|
|
2774
|
-
*
|
|
2775
|
-
* @param rateWad - Rate in WAD (1e18 = 1.0)
|
|
2776
|
-
* @param precision - Number of decimal places to display
|
|
2777
|
-
* @returns Formatted percentage string
|
|
2778
|
-
*/
|
|
2779
|
-
function formatRateWad(rateWad, precision) {
|
|
2780
|
-
return formatWadPercent(rateWad, precision);
|
|
2781
|
-
}
|
|
2782
|
-
/**
|
|
2783
|
-
* Parse a decimal string to a WAD-scaled value.
|
|
2784
|
-
*
|
|
2785
|
-
* @param value - Decimal string (e.g., "1.5")
|
|
2786
|
-
* @returns WAD-scaled bigint
|
|
2787
|
-
*
|
|
2788
|
-
* @example
|
|
2789
|
-
* ```typescript
|
|
2790
|
-
* parseWad("1.5") // 1500000000000000000n
|
|
2791
|
-
* parseWad("0.5") // 500000000000000000n
|
|
2792
|
-
* parseWad("100") // 100000000000000000000n
|
|
2793
|
-
* parseWad("-1.22") // -1220000000000000000n
|
|
2794
|
-
* ```
|
|
2795
|
-
*/
|
|
2796
|
-
function parseWad(value) {
|
|
2797
|
-
const trimmed = value.trim();
|
|
2798
|
-
const isNegative = trimmed.startsWith("-");
|
|
2799
|
-
const cleanValue = isNegative ? trimmed.slice(1) : trimmed;
|
|
2800
|
-
const [integerStr, fractionalStr = ""] = cleanValue.split(".");
|
|
2801
|
-
const paddedFractional = fractionalStr.padEnd(18, "0").slice(0, 18);
|
|
2802
|
-
const integerPart = BigInt(integerStr || "0") * 10n ** 18n;
|
|
2803
|
-
const fractionalPart = BigInt(paddedFractional || "0");
|
|
2804
|
-
const result = integerPart + fractionalPart;
|
|
2805
|
-
return isNegative ? -result : result;
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
|
-
//#endregion
|
|
2809
|
-
//#region src/panoptic/v2/formatters/rates.ts
|
|
2810
|
-
const SECONDS_PER_DAY = 86400n;
|
|
2811
|
-
const DAYS_PER_YEAR = 365n;
|
|
2812
|
-
const SECONDS_PER_YEAR$1 = SECONDS_PER_DAY * DAYS_PER_YEAR;
|
|
2813
|
-
/**
|
|
2814
|
-
* Annualize a per-second WAD-scaled rate to annual WAD.
|
|
2815
|
-
*
|
|
2816
|
-
* @param ratePerSecondWad - Rate in WAD per second
|
|
2817
|
-
* @returns Annualized rate in WAD
|
|
2818
|
-
*/
|
|
2819
|
-
function annualizePerSecondRateWad(ratePerSecondWad) {
|
|
2820
|
-
return ratePerSecondWad * SECONDS_PER_YEAR$1;
|
|
2821
|
-
}
|
|
2822
|
-
/**
|
|
2823
|
-
* Format a per-second WAD rate as APY percentage text.
|
|
2824
|
-
* Uses linear annualization, then formats as WAD percent.
|
|
2825
|
-
*
|
|
2826
|
-
* @param ratePerSecondWad - Rate in WAD per second
|
|
2827
|
-
* @param precision - Decimal places
|
|
2828
|
-
* @returns Percentage string, e.g. "2.41%"
|
|
2829
|
-
*/
|
|
2830
|
-
function formatPerSecondRateWadAsApyPct(ratePerSecondWad, precision) {
|
|
2831
|
-
return formatWadPercent(annualizePerSecondRateWad(ratePerSecondWad), precision);
|
|
2832
|
-
}
|
|
2833
|
-
/**
|
|
2834
|
-
* Format a per-second WAD rate as APR percentage text.
|
|
2835
|
-
* For this rate model, APR presentation uses the same annualized output.
|
|
2836
|
-
*
|
|
2837
|
-
* @param ratePerSecondWad - Rate in WAD per second
|
|
2838
|
-
* @param precision - Decimal places
|
|
2839
|
-
* @returns Percentage string, e.g. "2.41%"
|
|
2840
|
-
*/
|
|
2841
|
-
function formatPerSecondRateWadAsAprPct(ratePerSecondWad, precision) {
|
|
2842
|
-
return formatWadPercent(annualizePerSecondRateWad(ratePerSecondWad), precision);
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
2606
|
//#endregion
|
|
2846
2607
|
//#region src/panoptic/v2/reads/irm.ts
|
|
2847
2608
|
const WAD = 10n ** 18n;
|
|
@@ -3004,4 +2765,4 @@ async function getIrmCurve(params) {
|
|
|
3004
2765
|
}
|
|
3005
2766
|
|
|
3006
2767
|
//#endregion
|
|
3007
|
-
export { BASE_CHAIN_ID, BASE_DEPLOYMENT, BASE_ETH_USDC_5BPS_MARKET, BASE_HYPOVAULT_ADDRESSES, BASE_HYPOVAULT_CORE_ADDRESSES, BASE_HYPOVAULT_MANAGER_ADDRESSES, BASE_HYPOVAULT_MANAGER_TURNKEY_SIGNERS, BASE_PANOPTIC_POOL_ADDRESSES, BASE_PANOPTIC_V2_ADDRESSES, BORROW_INDEX_BITS, BPS_SCALE, CHAIN_DEPLOYMENTS, MAINNET_CHAIN_ID, MAINNET_DEPLOYMENT, MAINNET_ETH_USDC_5BPS_V3_PANOPTIC_POOL_ADDRESSES, MAINNET_PANOPTIC_V2_ADDRESSES, MAINNET_RISK_ENGINES, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, Multicall3Abi, RATE_AT_TARGET_BITS, SECONDS_PER_YEAR, SEPOLIA_CHAIN_ID, SEPOLIA_DEPLOYMENT, SEPOLIA_ETH_USDC_5BPS_MARKET, SEPOLIA_HYPOVAULT_ADDRESSES, SEPOLIA_HYPOVAULT_CORE_ADDRESSES, SEPOLIA_HYPOVAULT_MANAGER_ADDRESSES, SEPOLIA_HYPOVAULT_MANAGER_TURNKEY_SIGNERS, SEPOLIA_PANOPTIC_POOL_ADDRESSES, SEPOLIA_PANOPTIC_V2_ADDRESSES, StateViewAbi, UNREALIZED_INTEREST_BITS, VAULT_DISPLAY_NAMES_PER_CHAIN, VAULT_DISPLAY_NAME_RESOLVERS_PER_CHAIN, WAD as WAD$1,
|
|
2768
|
+
export { BASE_CHAIN_ID, BASE_DEPLOYMENT, BASE_ETH_USDC_5BPS_MARKET, BASE_HYPOVAULT_ADDRESSES, BASE_HYPOVAULT_CORE_ADDRESSES, BASE_HYPOVAULT_MANAGER_ADDRESSES, BASE_HYPOVAULT_MANAGER_TURNKEY_SIGNERS, BASE_PANOPTIC_POOL_ADDRESSES, BASE_PANOPTIC_V2_ADDRESSES, BORROW_INDEX_BITS, BPS_SCALE, CHAIN_DEPLOYMENTS, MAINNET_CHAIN_ID, MAINNET_DEPLOYMENT, MAINNET_ETH_USDC_5BPS_V3_PANOPTIC_POOL_ADDRESSES, MAINNET_PANOPTIC_V2_ADDRESSES, MAINNET_RISK_ENGINES, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, Multicall3Abi, RATE_AT_TARGET_BITS, SECONDS_PER_YEAR, SEPOLIA_CHAIN_ID, SEPOLIA_DEPLOYMENT, SEPOLIA_ETH_USDC_5BPS_MARKET, SEPOLIA_HYPOVAULT_ADDRESSES, SEPOLIA_HYPOVAULT_CORE_ADDRESSES, SEPOLIA_HYPOVAULT_MANAGER_ADDRESSES, SEPOLIA_HYPOVAULT_MANAGER_TURNKEY_SIGNERS, SEPOLIA_PANOPTIC_POOL_ADDRESSES, SEPOLIA_PANOPTIC_V2_ADDRESSES, StateViewAbi, UNREALIZED_INTEREST_BITS, VAULT_DISPLAY_NAMES_PER_CHAIN, VAULT_DISPLAY_NAME_RESOLVERS_PER_CHAIN, WAD as WAD$1, deriveSupplyRatePerSecWad, getAccountCollateral, getAccountSummaryBasic, getAccountSummaryRisk, getChainDeployment, getCollateralAddresses, getCollateralData, getCurrentRates, getEthUsdcMarket, getInterestState, getIrmCurrent, getIrmCurve, getLiquidationPrices, getNetLiquidationValue, getNetLiquidationValues, isLiquidatable, isSupportedChain, packMarketState, panopticQueryAbi, ratePerSecWadToAprPct, readBlockAndAggregate, requireChainDeployment, requireReturnData, resolveVaultDisplayName, utilizationBpsToWad, utilizationPctToWad };
|
|
@@ -2694,6 +2694,16 @@ declare class SwapTokenMismatchError extends PanopticError {
|
|
|
2694
2694
|
readonly name = "SwapTokenMismatchError";
|
|
2695
2695
|
constructor(tokenAddress: Address, token0: Address, token1: Address);
|
|
2696
2696
|
}
|
|
2697
|
+
/**
|
|
2698
|
+
* A premium settlement would advance the seller checkpoint while some
|
|
2699
|
+
* displayed premium is still unavailable, or a required buyer cannot settle.
|
|
2700
|
+
*/
|
|
2701
|
+
declare class UnsafePremiumSettlementError extends PanopticError {
|
|
2702
|
+
readonly remainingForfeit: readonly [bigint, bigint];
|
|
2703
|
+
readonly failedBuyerCount: number;
|
|
2704
|
+
readonly name = "UnsafePremiumSettlementError";
|
|
2705
|
+
constructor(remainingForfeit: readonly [bigint, bigint], failedBuyerCount: number, cause?: Error);
|
|
2706
|
+
}
|
|
2697
2707
|
|
|
2698
2708
|
//#endregion
|
|
2699
2709
|
//#region src/panoptic/v2/errors/parser.d.ts
|
|
@@ -2912,8 +2922,14 @@ interface SettleSimulation {
|
|
|
2912
2922
|
postCollateral0: bigint;
|
|
2913
2923
|
/** Post-settle collateral for token 1 */
|
|
2914
2924
|
postCollateral1: bigint;
|
|
2915
|
-
/**
|
|
2916
|
-
|
|
2925
|
+
/** Premium made collectable by buyer settlement and chunk pokes. */
|
|
2926
|
+
premiumProtected: [bigint, bigint];
|
|
2927
|
+
/** Premium still unavailable after protection and forfeited by settlement. */
|
|
2928
|
+
remainingForfeit: [bigint, bigint];
|
|
2929
|
+
/** Whether the settlement includes a temporary chunk-liquidity poke. */
|
|
2930
|
+
usesPoke: boolean;
|
|
2931
|
+
/** Number of buyer accounts settled before self-settlement. */
|
|
2932
|
+
settledBuyerCount: number;
|
|
2917
2933
|
}
|
|
2918
2934
|
/**
|
|
2919
2935
|
* Deposit simulation result data.
|
|
@@ -9684,6 +9700,40 @@ declare function executeSettleSequence(params: ExecuteSettleSequenceParams): Pro
|
|
|
9684
9700
|
*/
|
|
9685
9701
|
declare function executeSettleSequenceAndWait(params: ExecuteSettleSequenceParams): Promise<TxReceipt>;
|
|
9686
9702
|
|
|
9703
|
+
//#endregion
|
|
9704
|
+
//#region src/panoptic/v2/writes/protectedSettle.d.ts
|
|
9705
|
+
interface BuildProtectedSettleDispatchParams {
|
|
9706
|
+
/** Positions whose premium should be settled. */
|
|
9707
|
+
positionIdList: bigint[];
|
|
9708
|
+
/** The caller's complete held list. A settlement does not change it. */
|
|
9709
|
+
finalPositionIdList: bigint[];
|
|
9710
|
+
/** Current stored size for every entry in `positionIdList`. */
|
|
9711
|
+
positionSizes: bigint[];
|
|
9712
|
+
usePremiaAsCollateral?: boolean;
|
|
9713
|
+
builderCode?: bigint;
|
|
9714
|
+
}
|
|
9715
|
+
interface ProtectedSettlePlan {
|
|
9716
|
+
/** Atomic poke/settle/poke dispatch submitted after buyer settlements. */
|
|
9717
|
+
dispatch: DispatchIntent;
|
|
9718
|
+
/** Poke-only dispatch used to verify no displayed premium remains uncollected. */
|
|
9719
|
+
collectionDispatch?: DispatchIntent;
|
|
9720
|
+
/** Temporary position IDs, one for each settled position containing short chunks. */
|
|
9721
|
+
pokingTokenIds: bigint[];
|
|
9722
|
+
}
|
|
9723
|
+
/**
|
|
9724
|
+
* Build `[poke, settle, poke]` for every target containing a width>0 short.
|
|
9725
|
+
* Pure-long and width-zero positions are settled directly.
|
|
9726
|
+
*/
|
|
9727
|
+
declare function buildProtectedSettlePlan(params: BuildProtectedSettleDispatchParams): ProtectedSettlePlan;
|
|
9728
|
+
/**
|
|
9729
|
+
* Build the atomic self-settlement dispatch that temporarily pokes each
|
|
9730
|
+
* affected short chunk before settling its source position.
|
|
9731
|
+
*
|
|
9732
|
+
* @param params - Positions, current sizes, and complete held-position list.
|
|
9733
|
+
* @returns A dispatch intent ready for simulation or submission.
|
|
9734
|
+
*/
|
|
9735
|
+
declare function buildProtectedSettleDispatch(params: BuildProtectedSettleDispatchParams): DispatchIntent;
|
|
9736
|
+
|
|
9687
9737
|
//#endregion
|
|
9688
9738
|
//#region src/panoptic/v2/writes/settle.d.ts
|
|
9689
9739
|
/**
|
|
@@ -9729,6 +9779,16 @@ interface SettleParams {
|
|
|
9729
9779
|
* explicitly to eliminate that window.
|
|
9730
9780
|
*/
|
|
9731
9781
|
positionSizes?: bigint[];
|
|
9782
|
+
/** Buyers holding longs against the short chunks being settled. */
|
|
9783
|
+
targets?: SettleSequenceTarget[];
|
|
9784
|
+
/**
|
|
9785
|
+
* Skip the SDK preflight when the caller already simulated or intentionally
|
|
9786
|
+
* accepts settlement risk. The transaction itself is still simulated by
|
|
9787
|
+
* the write client. Default false.
|
|
9788
|
+
*/
|
|
9789
|
+
skipPreflight?: boolean;
|
|
9790
|
+
/** Allow irreducible forfeiture on positions with no available protection. */
|
|
9791
|
+
allowForfeit?: boolean;
|
|
9732
9792
|
/** Whether to use premia as collateral */
|
|
9733
9793
|
usePremiaAsCollateral?: boolean;
|
|
9734
9794
|
/** Builder code */
|
|
@@ -10978,45 +11038,25 @@ declare function simulateOpenPosition(params: SimulateOpenPositionParams): Promi
|
|
|
10978
11038
|
|
|
10979
11039
|
//#endregion
|
|
10980
11040
|
//#region src/panoptic/v2/simulations/simulateSettle.d.ts
|
|
10981
|
-
/**
|
|
10982
|
-
* Parameters for simulating premium settlement.
|
|
10983
|
-
*/
|
|
10984
11041
|
interface SimulateSettleParams {
|
|
10985
|
-
/** Public client */
|
|
10986
11042
|
client: PublicClient;
|
|
10987
|
-
/** PanopticPool address */
|
|
10988
11043
|
poolAddress: Address;
|
|
10989
|
-
/** Account address */
|
|
10990
11044
|
account: Address;
|
|
10991
|
-
/** TokenIds to settle in this dispatch (subset of the account's held list). */
|
|
10992
11045
|
positionIdList: bigint[];
|
|
10993
|
-
/**
|
|
10994
|
-
* Full held tokenId list AFTER dispatch (must hash-match s_positionsHash).
|
|
10995
|
-
* Defaults to `positionIdList` — correct only when settling ALL held
|
|
10996
|
-
* positions.
|
|
10997
|
-
*/
|
|
10998
11046
|
finalPositionIdList?: bigint[];
|
|
11047
|
+
positionSizes?: bigint[];
|
|
11048
|
+
/** Buyers holding longs against the short chunks being settled. */
|
|
11049
|
+
targets?: SettleSequenceTarget[];
|
|
11050
|
+
usePremiaAsCollateral?: boolean;
|
|
11051
|
+
builderCode?: bigint;
|
|
10999
11052
|
/**
|
|
11000
|
-
*
|
|
11001
|
-
*
|
|
11002
|
-
*
|
|
11053
|
+
* Allow settlement when premium remains but no buyer settlement or chunk
|
|
11054
|
+
* poke can collect it (for example, width-zero legs). Avoidable forfeiture
|
|
11055
|
+
* still fails closed. Default false.
|
|
11003
11056
|
*/
|
|
11004
|
-
|
|
11005
|
-
/** Optional tokenId to compute forfeit amounts for */
|
|
11006
|
-
tokenId?: bigint;
|
|
11007
|
-
/** Optional block number for simulation */
|
|
11057
|
+
allowForfeit?: boolean;
|
|
11008
11058
|
blockNumber?: bigint;
|
|
11009
11059
|
}
|
|
11010
|
-
/**
|
|
11011
|
-
* Simulate premium settlement.
|
|
11012
|
-
*
|
|
11013
|
-
* When `tokenId` is provided, the simulation also computes forfeit amounts
|
|
11014
|
-
* by chaining the dispatch with `getFullPositionsData` reads
|
|
11015
|
-
* in a single multicall.
|
|
11016
|
-
*
|
|
11017
|
-
* @param params - Simulation parameters
|
|
11018
|
-
* @returns Simulation result with settlement data or error
|
|
11019
|
-
*/
|
|
11020
11060
|
declare function simulateSettle(params: SimulateSettleParams): Promise<SimulationResult<SettleSimulation>>;
|
|
11021
11061
|
|
|
11022
11062
|
//#endregion
|
|
@@ -12523,6 +12563,101 @@ declare function formatWei(wei: bigint): string;
|
|
|
12523
12563
|
*/
|
|
12524
12564
|
declare function formatGwei(wei: bigint, precision: bigint): string;
|
|
12525
12565
|
|
|
12566
|
+
//#endregion
|
|
12567
|
+
//#region src/panoptic/v2/strike/ladder.d.ts
|
|
12568
|
+
/**
|
|
12569
|
+
* Human price ladder for option strike construction, scaled by leg width.
|
|
12570
|
+
*
|
|
12571
|
+
* Strikes for new positions live on a "nice number" ladder whose rung spacing
|
|
12572
|
+
* follows the leg's range: the increment is the nice value (1 / 2.5 / 5 × 10ⁿ)
|
|
12573
|
+
* closest to `price · (1.0001^(width·tickSpacing / TARGET_STRIKES) − 1)`, so every
|
|
12574
|
+
* expiry exposes roughly the same number of strikes across its range (≈16). At
|
|
12575
|
+
* $1,880 on a 10-tick pool that gives $2.5 rungs for 1H, $10 for 1D, $25 for 1W,
|
|
12576
|
+
* $50 for 1M and $250 for 1Y.
|
|
12577
|
+
*
|
|
12578
|
+
* Prices are normalised to `max(price, 1 / price)` before laddering, so both quote
|
|
12579
|
+
* orientations of a pool resolve to reciprocal rungs (2,500 USDC/ETH ↔ 0.0004
|
|
12580
|
+
* ETH/USDC). Normalised prices above 1,000,000 are outside the ladder.
|
|
12581
|
+
*
|
|
12582
|
+
* Nominal prices generally cannot be encoded exactly as Uniswap ticks, so an
|
|
12583
|
+
* "on-ladder" strike is the deterministic nearest *valid* Panoptic strike tick for
|
|
12584
|
+
* the requested width and pool tick spacing. Validity follows the on-chain rule
|
|
12585
|
+
* (`PanopticMath.getRangesFromStrike`): `rangeDown = floor(width·ts/2)`,
|
|
12586
|
+
* `rangeUp = ceil(width·ts/2)`, and both `strike - rangeDown` and
|
|
12587
|
+
* `strike + rangeUp` must be multiples of `ts`, i.e. `strike ≡ rangeDown (mod ts)`.
|
|
12588
|
+
*
|
|
12589
|
+
* All arithmetic is bigint / exact rational. Prices are decimal strings.
|
|
12590
|
+
*
|
|
12591
|
+
* @module v2/strike/ladder
|
|
12592
|
+
*/
|
|
12593
|
+
/** Target number of rungs across a leg's full range (lower tick → upper tick). */
|
|
12594
|
+
declare const STRIKE_LADDER_TARGET_STRIKES = 16n;
|
|
12595
|
+
/**
|
|
12596
|
+
* Quote orientation for a pool. `asset` is the token whose price we quote
|
|
12597
|
+
* (0 → token0 priced in token1, 1 → token1 priced in token0).
|
|
12598
|
+
*/
|
|
12599
|
+
interface StrikeOrientation {
|
|
12600
|
+
asset: 0n | 1n;
|
|
12601
|
+
assetDecimals: bigint;
|
|
12602
|
+
quoteDecimals: bigint;
|
|
12603
|
+
}
|
|
12604
|
+
/** A strike on the ladder: the valid on-chain tick plus the nominal price it represents. */
|
|
12605
|
+
interface LadderStrike {
|
|
12606
|
+
/** Valid Panoptic strike tick (absolute, not oriented). */
|
|
12607
|
+
tick: bigint;
|
|
12608
|
+
/** Nominal ladder price in the caller's quote orientation, as a decimal string. */
|
|
12609
|
+
nominalPrice: string;
|
|
12610
|
+
}
|
|
12611
|
+
type StrikeClassification = {
|
|
12612
|
+
kind: 'ladder';
|
|
12613
|
+
nominalPrice: string;
|
|
12614
|
+
} | {
|
|
12615
|
+
kind: 'off-ladder';
|
|
12616
|
+
} | {
|
|
12617
|
+
kind: 'outside-ladder';
|
|
12618
|
+
};
|
|
12619
|
+
interface StrikeGeometry {
|
|
12620
|
+
width: bigint;
|
|
12621
|
+
tickSpacing: bigint;
|
|
12622
|
+
orient: StrikeOrientation;
|
|
12623
|
+
}
|
|
12624
|
+
/**
|
|
12625
|
+
* Classify a strike tick against the ladder for its width.
|
|
12626
|
+
*
|
|
12627
|
+
* - `ladder`: the tick is the canonical tick of its nearest rung → show `nominalPrice`.
|
|
12628
|
+
* - `off-ladder`: an in-range tick that is not a rung's canonical tick (e.g. real AMM
|
|
12629
|
+
* liquidity at an arbitrary strike) → show the exact price.
|
|
12630
|
+
* - `outside-ladder`: the normalised price exceeds 1,000,000 → legacy behaviour.
|
|
12631
|
+
*/
|
|
12632
|
+
declare function classifyStrike(params: {
|
|
12633
|
+
tick: bigint;
|
|
12634
|
+
} & StrikeGeometry): StrikeClassification;
|
|
12635
|
+
/**
|
|
12636
|
+
* Resolve a tick to a ladder strike.
|
|
12637
|
+
*
|
|
12638
|
+
* - `step` 0 (default): the ladder tick nearest to `tick` (the tick's own rung when
|
|
12639
|
+
* it owns one, otherwise the closest owned neighbour).
|
|
12640
|
+
* - `step` ±1: the nearest ladder tick strictly beyond `tick` in that price direction
|
|
12641
|
+
* (rungs finer than the tick grid can collapse onto one tick, so a single rung hop
|
|
12642
|
+
* may not move the strike).
|
|
12643
|
+
*
|
|
12644
|
+
* Returns null when the target lies outside the ladder (normalised price > 1e6).
|
|
12645
|
+
*/
|
|
12646
|
+
declare function resolveLadderStrike(params: {
|
|
12647
|
+
tick: bigint;
|
|
12648
|
+
step?: 0n | 1n | -1n;
|
|
12649
|
+
} & StrikeGeometry): LadderStrike | null;
|
|
12650
|
+
/**
|
|
12651
|
+
* Generate up to `count` ladder strikes centred on `centerTick`, sorted by
|
|
12652
|
+
* ascending caller price and deduplicated by tick. Rungs beyond the ladder are
|
|
12653
|
+
* omitted (the result may be shorter than `count`). Returns null when the
|
|
12654
|
+
* centre itself lies outside the ladder and `[]` when `count` is 0.
|
|
12655
|
+
*/
|
|
12656
|
+
declare function ladderStrikeSequence(params: {
|
|
12657
|
+
centerTick: bigint;
|
|
12658
|
+
count: number;
|
|
12659
|
+
} & StrikeGeometry): LadderStrike[] | null;
|
|
12660
|
+
|
|
12526
12661
|
//#endregion
|
|
12527
12662
|
//#region src/panoptic/v2/bot/index.d.ts
|
|
12528
12663
|
/**
|
|
@@ -15297,5 +15432,5 @@ declare const riskEngineAbi: readonly [{
|
|
|
15297
15432
|
}];
|
|
15298
15433
|
|
|
15299
15434
|
//#endregion
|
|
15300
|
-
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, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, 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, 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, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
15435
|
+
export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountLiquidatedEvent, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BORROW_INDEX_BITS, BPS_DENOMINATOR, BPS_SCALE, BaseEvent, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BlockMeta, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildCreditWrappedDispatchParams, BuildProtectedSettleDispatchParams, BuildTemporaryLoanRecoveryDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, ChainDeployment, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, ClosePositionSimulation, ClosedPosition, CollateralAcrossTicks, CollateralBreakdown, CollateralDataPoint, CollateralEstimate, CollateralSharePriceData, CollateralStrategyKind, CollateralTracker, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditSwapCall, CreditSwapCallParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, CurrentRates, DEFAULT_MAX_SPREAD, DEFAULT_MINT_BUFFER, DEFAULT_MIN_SWAP_RATIO_BPS, DEFAULT_RECONNECT_CONFIG, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedOraclePack, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositEvent, DepositParams, DepositSimulation, DepositTooLargeError, DeriveStrategy, DeriveUniqueTokenIdParams, DeriveUniqueTokenIdResult, DetectReorgParams, DispatchCall, DispatchCalldata, DispatchIntent, DispatchParams, DispatchSimulation, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralBreakdownParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscription, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, ExecuteSettleSequenceParams, FailPendingPositionParams, FetchPoolIdParams, FetchPoolIdResult, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, ForceExerciseSimulation, ForcedExercisedEvent, ForfeitablePremium, GenerateOverlappingTokenIdsParams, GenerateOverlappingTokenIdsResult, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetForfeitablePremiumParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetOracleRiskParametersParams, GetOracleStateParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPoolMetadataParams, GetPoolParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetRiskParametersParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GetUtilizationParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IrmCurrent, IrmMarketStateInputs, IrmPoint, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LadderStrike, LegChunkData, LegConfig, LegGreeksParams, LegUpdate, LengthMismatchError, LiquidateParams, LiquidateSimulation, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MARKET_EPOCH_BITS, MARKET_EPOCH_SHIFT, MAX_TICK, MAX_TRACKED_CHUNKS, MINT_BUFFER, MINT_BUFFER_DENOMINATOR, MIN_TICK, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintBufferRatio, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NO_LOWER_LIQUIDATION_TICK, NO_UPPER_LIQUIDATION_TICK, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NonceManager, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OpenPositionSimulation, OptimizeTokenIdRiskPartnersParams, OptionBurntEvent, OptionMintedEvent, OracleEmaPeriods, OracleRateLimitedError, OracleRiskParameters, OracleRiskParametersState, OracleSafeModeCause, OracleSafeModeDiagnosis, OracleState, OracleTiming, OverlappingOptionLegConfig, OverlappingOptionType, PanopticError, PanopticEvent, PanopticEventType, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, Pool, PoolFormatterConfig, PoolFormatters, PoolHealthStatus, PoolKey, PoolLiquidities, PoolMetadata, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, Position, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionGreeks, PositionGreeksInput, PositionGreeksResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PremiumSettledEvent, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProtectedSettlePlan, ProviderLagError, QuoteSfpmSwapParams, QuoteV3ExactInParams, RATE_AT_TARGET_BITS, REORG_DEPTH, REQUIRED_BASE_ERROR_SENTINEL, RealizedPnL, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RiskEngine, RiskParameters, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION, SECONDS_PER_YEAR, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX, STRIKE_LADDER_TARGET_STRIKES, SafeMode, SafeModeError, SafeModeState, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettlePremiumBatchResult, SettlePremiumBatchTargetResult, SettlePremiumFromParams, SettlePremiumFromSimulation, SettleSequenceCallsParams, SettleSequenceClose, SettleSequenceSimulation, SettleSequenceTarget, SettleSimulation, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSettlePremiumBatchParams, SimulateSettlePremiumFromParams, SimulateSettleSequenceParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithTokenFlowParams, SimulateWithTokenFlowResult, SimulateWithdrawParams, SimulationResult, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, SplitTokenIdByTimescaleResult, StaleDataError, StaleOracleError, StorageAdapter, StrategyAllocation, StrategyGroup, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, StrikeClassification, StrikeOrientation, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncEvent, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TemporaryLoanRecoveryQuote, TemporaryLoanRecoveryQuoteParams, TemporaryLoanRecoveryResult, TemporaryLoanRecoveryUnavailableReason, TickAndSpreadLimits, TickLimitsResult, Timescale, TokenCollateral, TokenFlow, TokenIdBuilder, TokenIdHasZeroLegsError, TokenIdLeg, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, UNREALIZED_INTEREST_BITS, UTILIZATION_DENOMINATOR, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsafePremiumSettlementError, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, Utilization, V3ExactInQuote, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD, WatchEventsParams, WithdrawEvent, WithdrawParams, WithdrawSimulation, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL, ZERO_VALUATION, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition, addTrackedChunks, annualizePerSecondRateWad, applyMintBuffer, applyMintBufferPerToken, apportion, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildCreditWrappedDispatch, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildSfpmSwapCalldata, buildSfpmSwapPlan, buildTemporaryLoanRecoveryDispatch, buildTokenShortfallRecoveryDispatch, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure, calculatePortfolioDelta, calculatePortfolioGamma, calculatePortfolioGreeks, calculatePortfolioValue, calculatePositionDelta, calculatePositionDeltaDebtOnly, calculatePositionDeltaWithSwap, calculatePositionGamma, calculatePositionGreeks, calculatePositionValue, calculateResyncBlock, calculateSpreadWad, cancelTransaction, checkApproval, checkCollateralAcrossTicks, classifyStrategyGroups, classifyStrike, cleanupStalePendingPositions, clearCheckpoint, clearPendingPositions, clearTrackedChunks, clearTrackedPositions, clearTradeHistory, closePosition, closePositionAndWait, collateralRuleKindFor, collateralTrackerV2Abi, computeV4PoolId, confirmPendingPosition, convertToAssets, convertToShares, countLegs, createEventPoller, createEventSubscription, createFileStorage, createFlowNeutralTokenId, createMemoryStorage, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodeOraclePack, decodeOracleRiskParameters, decodeOracleTiming, decodePanopticTokenURI, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveSupplyRatePerSecWad, deriveUniqueTokenId, detectReorg, diagnoseOracleSafeMode, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes, encodeV3PoolKeyBytes, encodeV4PoolId, ensureSfpmV3PoolInitialized, estimateBlockNumbers, estimateCollateralBreakdown, estimateCollateralRequired, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, failPendingPosition, feesFromFeeGrowthDelta, fetchPoolId, fetchSfpmV3PoolId, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPerSecondRateWadAsAprPct, formatPerSecondRateWadAsApyPct, formatPoolIdHex, formatPriceRange, formatRateWad, formatRatioPercent, formatTick, formatTickRange, formatTimestamp, formatTimestampLocale, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWad, formatWadPercent, formatWadSigned, formatWei, generateOverlappingTokenIds, getAccountBuyingPower, getAccountCollateral, getAccountGreeks, getAccountHistory, getAccountPremia, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChainDeployment, getChunkLiquidities, getChunkSpreads, getClosedPositions, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices, getCollateralTotalAssetsBatch, getCurrentRates, getDeltaHedgeParams, getEnforcedTickLimits, getFactoryConstructMetadata, getFactoryOwnerOf, getFactoryTokenURI, getForfeitablePremium, getGuardianUnlockState, getInterestState, getIrmCurrent, getIrmCurve, getItmAmounts, getLegDelta, getLegDeltaInVaultFrame, getLegGamma, getLegNetValueWidth0, getLegValue, getLiquidationPrices, getMarginBuffer, getMaxPositionSize, getMaxRedeem, getMaxWithdrawable, getNativeTokenPrice, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError, getOpenPositionIds, getOpenPositionPreview, getOracleRiskParameters, getOracleState, getPanopticPoolAddress, getPanopticPoolFromPoolId, getPendingPositions, getPendingPositionsKey, getPool, getPoolDeploymentBlock, getPoolDisplayId, getPoolLiquidities, getPoolMetaKey, getPoolMetadata, getPoolPrefix, getPortfolioValue, getPosition, getPositionChunkData, getPositionEnrichmentData, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia, getPriceHistory, getPricesAtTick, getRealizedPnL, getRequiredCreditForITM, getRiskParameters, getSafeMode, getSchemaVersionKey, getStreamiaHistory, getSyncCheckpointKey, getSyncStatus, getTickSpacing, getTokenListId, getTrackedChunks, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory, getUniswapFeeHistory, getUniswapV3LpPositionState, getUniswapV3PoolFromId, getUniswapV3PoolInfo, getUniswapV3PoolLiquidities, getUniswapV4LpPositionState, getUniswapV4PoolBasicState, getUniswapV4PoolInfo, getUniswapV4PoolKeyFromId, getUniswapV4PoolLiquidities, getUtilization, hasLoanOrCredit, hasLongLeg, interpolateBlocks, isCall, isCredit, isCreditLeg, isDefinedRisk, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, isSupportedChain, isolateGroupTokenId, jsonSerializer, ladderStrikeSequence, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress, mint, mintAndWait, mintableAfterBuffer, multicallRead, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners, oracleEpochAt, orderListForSettle, packMarketState, panopticPoolV2Abi, parseBps, parseCollateralLog, parsePanopticError, parsePoolLog, parseTokenAmount, parseTokenListId, parseWad, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit, previewMint, previewRedeem, previewUnwrap, previewWithdraw, previewWrap, priceToTick, publicBroadcaster, quoteOneTokenFlow, quoteSfpmSwap, quoteTemporaryLoanRecovery, quoteTokenShortfallRecovery, quoteV3ExactIn, ratePerSecWadToAprPct, reconstructFromEvents, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks, repay, repayAndWait, requireChainDeployment, resolveBlockNumbers, resolveLadderStrike, resolvePanopticPoolFromPoolId, resolveTokenIndex, resolveUniswapV4PoolKey, riskEngineAbi, rollPosition, rollPositionAndWait, roundToTickSpacing, saveCheckpoint, saveClosedPosition, scanChunks, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateBatchDispatch, simulateClosePosition, simulateDeployNewPool, simulateDeposit, simulateDispatch, simulateForceExercise, simulateLiquidate, simulateOpenPosition, simulateSFPMBurn, simulateSFPMMint, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateSwapExactIn, simulateSwapExactOut, simulateWithTokenFlow, simulateWithdraw, slippageBpsToTickDistance, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, sqrtPriceX96ToPriceDecimalScaled, sqrtPriceX96ToTick, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96, toVaultFrameAtTick, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, utilizationBpsToWad, utilizationPctToWad, validateBatch, validateBuilderCode, validatePoolId, verifyBlockContinuity, watchEvents, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
15301
15436
|
//# sourceMappingURL=index.d.ts.map
|