@panoptic-eng/sdk 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cow/index.d.ts +5 -5
- package/dist/cow/index.js +3 -3
- package/dist/cow/types.d.ts +2 -2
- package/dist/{cow-CLFJQ-OP.js → cow-aX6of9TS.js} +2 -2
- package/dist/{cow-CLFJQ-OP.js.map → cow-aX6of9TS.js.map} +1 -1
- package/dist/deployments.d.ts +21 -1
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +13 -1
- package/dist/deployments.js.map +1 -1
- package/dist/{index-DVtqKAH3.d.ts → index-CURXeKNy.d.ts} +440 -12
- package/dist/index-CURXeKNy.d.ts.map +1 -0
- package/dist/{index-DQS8Luef.d.ts → index-Cp-nCeV2.d.ts} +4 -4
- package/dist/index-Cp-nCeV2.d.ts.map +1 -0
- package/dist/{index-CDCAju5o.d.ts → index-Zvu-rJpV.d.ts} +2 -2
- package/dist/{index-CDCAju5o.d.ts.map → index-Zvu-rJpV.d.ts.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -324
- package/dist/index.js.map +1 -1
- package/dist/{irm-BNtE1Dmg.d.ts → irm-Dw2agmGR.d.ts} +1 -1
- package/dist/{irm-BNtE1Dmg.d.ts.map → irm-Dw2agmGR.d.ts.map} +1 -1
- package/dist/{irm-iAI9hTYQ.js → irm-JPcV9ykY.js} +333 -3
- package/dist/irm-JPcV9ykY.js.map +1 -0
- package/dist/panoptic/v2/greeks/index.d.ts +2 -2
- package/dist/panoptic/v2/index.d.ts +8 -8
- package/dist/panoptic/v2/index.js +6 -5
- package/dist/panoptic/v2/react-public.d.ts +27 -13
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +44 -9
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{position-Bmd_3nzI.d.ts → position-BqIgubs5.d.ts} +1 -1
- package/dist/{position-Bmd_3nzI.d.ts.map → position-BqIgubs5.d.ts.map} +1 -1
- package/dist/{position-ClU7GrTa.js → position-C8rkkKhi.js} +10 -4
- package/dist/{position-ClU7GrTa.js.map → position-C8rkkKhi.js.map} +1 -1
- package/dist/{oracle-DaNTHk7B.d.ts → quote-BxQkPBRg.d.ts} +57 -4
- package/dist/quote-BxQkPBRg.d.ts.map +1 -0
- package/dist/{router-DKFR_vnu.js → router-CS86ptMu.js} +6 -87
- package/dist/router-CS86ptMu.js.map +1 -0
- package/dist/router-DcoU2KmV.js +313 -0
- package/dist/router-DcoU2KmV.js.map +1 -0
- package/dist/{simulation-CUqERC5Y.d.ts → simulation-zM6-YUaw.d.ts} +2 -2
- package/dist/{simulation-CUqERC5Y.d.ts.map → simulation-zM6-YUaw.d.ts.map} +1 -1
- package/dist/{tx-BXXqhBHn.d.ts → tx-CbDQ58Io.d.ts} +1 -1
- package/dist/{tx-BXXqhBHn.d.ts.map → tx-CbDQ58Io.d.ts.map} +1 -1
- package/dist/{types-DgWfno7q.d.ts → types-BHdnurYr.d.ts} +2 -2
- package/dist/{types-DgWfno7q.d.ts.map → types-BHdnurYr.d.ts.map} +1 -1
- package/dist/{types-Cy6v8iPf.d.ts → types-D_jcYss-.d.ts} +5 -4
- package/dist/types-D_jcYss-.d.ts.map +1 -0
- package/dist/uniswap/index.d.ts +53 -100
- package/dist/uniswap/index.d.ts.map +1 -1
- package/dist/uniswap/index.js +4 -226
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-D3B5BKml.js → v2-B68I6nwv.js} +870 -65
- package/dist/v2-B68I6nwv.js.map +1 -0
- package/dist/{writes-DQLGdkJ5.js → writes-AupZCK4M.js} +2 -2
- package/dist/{writes-DQLGdkJ5.js.map → writes-AupZCK4M.js.map} +1 -1
- package/dist/zodiac/index.d.ts +74 -1
- package/dist/zodiac/index.d.ts.map +1 -1
- package/dist/zodiac/index.js +213 -3
- package/dist/zodiac/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-DQS8Luef.d.ts.map +0 -1
- package/dist/index-DVtqKAH3.d.ts.map +0 -1
- package/dist/irm-iAI9hTYQ.js.map +0 -1
- package/dist/oracle-DaNTHk7B.d.ts.map +0 -1
- package/dist/router-DKFR_vnu.js.map +0 -1
- package/dist/types-Cy6v8iPf.d.ts.map +0 -1
- package/dist/v2-D3B5BKml.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BlockMeta, ClosedPosition, Position, PositionGreeks, RealizedPnL, StoredPositionData, TokenIdLeg } from "./position-
|
|
2
|
-
import { CollateralTracker, CurrentRates, Pool, PoolHealthStatus, PoolKey, PoolMetadata, SafeMode, SafeModeState } from "./
|
|
3
|
-
import { EventSubscription, NonceManager, PanopticEvent, PanopticEventType, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult } from "./tx-
|
|
4
|
-
import { ClosePositionSimulation, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, SettleSimulation, SimulationResult, TokenFlow, WithdrawSimulation } from "./simulation-
|
|
5
|
-
import { PositionGreeksResult } from "./index-
|
|
6
|
-
import { Abi, Address, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, WalletClient } from "viem";
|
|
1
|
+
import { BlockMeta, ClosedPosition, Position, PositionGreeks, RealizedPnL, StoredPositionData, TokenIdLeg } from "./position-BqIgubs5.js";
|
|
2
|
+
import { CollateralTracker, CurrentRates, Pool, PoolHealthStatus, PoolKey, PoolMetadata, SafeMode, SafeModeState } from "./quote-BxQkPBRg.js";
|
|
3
|
+
import { EventSubscription, NonceManager, PanopticEvent, PanopticEventType, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult } from "./tx-CbDQ58Io.js";
|
|
4
|
+
import { ClosePositionSimulation, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LiquidateSimulation, OpenPositionSimulation, PanopticError$1 as PanopticError, SettleSimulation, SimulationResult, TokenFlow, WithdrawSimulation } from "./simulation-zM6-YUaw.js";
|
|
5
|
+
import { PositionGreeksResult } from "./index-Zvu-rJpV.js";
|
|
6
|
+
import { Abi, Address, Client, ContractFunctionArgs, ContractFunctionName, Hash, Hex, Log, PublicClient, StateOverride, WalletClient } from "viem";
|
|
7
7
|
|
|
8
8
|
//#region src/panoptic/v2/types/account.d.ts
|
|
9
9
|
/**
|
|
@@ -2271,6 +2271,184 @@ declare function isCredit(tokenId: bigint): boolean;
|
|
|
2271
2271
|
*/
|
|
2272
2272
|
declare function hasLoanOrCredit(tokenId: bigint): boolean;
|
|
2273
2273
|
|
|
2274
|
+
//#endregion
|
|
2275
|
+
//#region src/panoptic/v2/sfpmSwap/types.d.ts
|
|
2276
|
+
/** Exact-input or exact-output swap. */
|
|
2277
|
+
type SfpmSwapKind = 'exactIn' | 'exactOut';
|
|
2278
|
+
/**
|
|
2279
|
+
* Inputs for {@link buildSfpmSwapPlan}.
|
|
2280
|
+
*
|
|
2281
|
+
* The swap is executed in a **Uniswap v3** pool via the SemiFungiblePositionManager
|
|
2282
|
+
* (SFPM) `multicall([mint, burn])` of a single-leg loan tokenId. See the module
|
|
2283
|
+
* README / plan for the mechanism.
|
|
2284
|
+
*/
|
|
2285
|
+
interface SfpmSwapPlanParams {
|
|
2286
|
+
/** SFPM (v3) contract address. */
|
|
2287
|
+
sfpmAddress: Address;
|
|
2288
|
+
/** Underlying Uniswap v3 pool the swap runs in (the SFPM poolKey). */
|
|
2289
|
+
poolAddress: Address;
|
|
2290
|
+
/**
|
|
2291
|
+
* The `uint64` SFPM poolId for {@link poolAddress}, as registered via
|
|
2292
|
+
* `initializeAMMPool` — also the low 64 bits of the tokenId. Resolve on-chain
|
|
2293
|
+
* with {@link fetchSfpmV3PoolId}; do not trust an offline-encoded value (the
|
|
2294
|
+
* SFPM can collision-increment the id).
|
|
2295
|
+
*/
|
|
2296
|
+
poolId: bigint;
|
|
2297
|
+
/** Exact-in or exact-out. */
|
|
2298
|
+
kind: SfpmSwapKind;
|
|
2299
|
+
/**
|
|
2300
|
+
* Swap direction: `true` sells token0 for token1, `false` sells token1 for token0.
|
|
2301
|
+
* (token0/token1 are the Uniswap pool's ordering, i.e. by address.)
|
|
2302
|
+
*/
|
|
2303
|
+
zeroForOne: boolean;
|
|
2304
|
+
/**
|
|
2305
|
+
* The exact amount, in the fixed token: for `exactIn` this is the input amount
|
|
2306
|
+
* (in the token being sold); for `exactOut` the output amount (token being bought).
|
|
2307
|
+
*/
|
|
2308
|
+
amount: bigint;
|
|
2309
|
+
/** Current tick of the Uniswap pool (from slot0), used to center the slippage band. */
|
|
2310
|
+
currentTick: number;
|
|
2311
|
+
/** Slippage tolerance in bps (bounds the pool's post-swap tick). */
|
|
2312
|
+
slippageBps: bigint;
|
|
2313
|
+
}
|
|
2314
|
+
/**
|
|
2315
|
+
* A fully-resolved swap plan: the tokenId + per-call tick limits ready to encode.
|
|
2316
|
+
*/
|
|
2317
|
+
interface SfpmSwapPlan {
|
|
2318
|
+
sfpmAddress: Address;
|
|
2319
|
+
poolAddress: Address;
|
|
2320
|
+
/** `abi.encode(address)` of {@link poolAddress}. */
|
|
2321
|
+
poolKey: Hex;
|
|
2322
|
+
/** Single-leg loan tokenId (width=0, isLong=false, asset==tokenType). */
|
|
2323
|
+
tokenId: bigint;
|
|
2324
|
+
/** `positionSize` passed to both mint and burn (== {@link SfpmSwapPlanParams.amount}). */
|
|
2325
|
+
positionSize: bigint;
|
|
2326
|
+
/** `[tickLimitLow, tickLimitHigh]` for the mint call. */
|
|
2327
|
+
mintTickLimits: [number, number];
|
|
2328
|
+
/** `[tickLimitLow, tickLimitHigh]` for the burn call. */
|
|
2329
|
+
burnTickLimits: [number, number];
|
|
2330
|
+
/** Which of the two calls carries the inverted (swap-triggering) limits. */
|
|
2331
|
+
swapOn: 'mint' | 'burn';
|
|
2332
|
+
kind: SfpmSwapKind;
|
|
2333
|
+
}
|
|
2334
|
+
/** Result of quoting a plan against live pool state. */
|
|
2335
|
+
interface SfpmSwapQuote {
|
|
2336
|
+
/** Amount of the input token pulled from the caller. */
|
|
2337
|
+
amountIn: bigint;
|
|
2338
|
+
/** Amount of the output token delivered to the caller. */
|
|
2339
|
+
amountOut: bigint;
|
|
2340
|
+
/** Pool tick after the swap. */
|
|
2341
|
+
finalTick: number;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
//#endregion
|
|
2345
|
+
//#region src/panoptic/v2/sfpmSwap/calldata.d.ts
|
|
2346
|
+
/** Encoded calldata for an SFPM swap. */
|
|
2347
|
+
interface SfpmSwapCalldata {
|
|
2348
|
+
/** The `SFPM.multicall(bytes[])` calldata to send to {@link SfpmSwapPlan.sfpmAddress}. */
|
|
2349
|
+
multicallData: Hex;
|
|
2350
|
+
/** The inner `mintTokenizedPosition` calldata (index 0 of the multicall). */
|
|
2351
|
+
mintData: Hex;
|
|
2352
|
+
/** The inner `burnTokenizedPosition` calldata (index 1 of the multicall). */
|
|
2353
|
+
burnData: Hex;
|
|
2354
|
+
}
|
|
2355
|
+
/**
|
|
2356
|
+
* Encode the `multicall([mint, burn])` for a swap plan.
|
|
2357
|
+
*
|
|
2358
|
+
* The order is always `[mint, burn]` — the ERC1155 must be minted before it is
|
|
2359
|
+
* burned. Which call carries the inverted (swap) limits is decided in the plan.
|
|
2360
|
+
*/
|
|
2361
|
+
declare function buildSfpmSwapCalldata(plan: SfpmSwapPlan): SfpmSwapCalldata;
|
|
2362
|
+
|
|
2363
|
+
//#endregion
|
|
2364
|
+
//#region src/panoptic/v2/sfpmSwap/init.d.ts
|
|
2365
|
+
interface FetchSfpmV3PoolIdParams {
|
|
2366
|
+
client: PublicClient;
|
|
2367
|
+
sfpmAddress: Address;
|
|
2368
|
+
token0: Address;
|
|
2369
|
+
token1: Address;
|
|
2370
|
+
/** Uniswap fee tier (e.g. 500 for 0.05%). */
|
|
2371
|
+
fee: number;
|
|
2372
|
+
/** Vegoid; defaults to the SDK {@link DEFAULT_VEGOID}. Must match the market's other pools. */
|
|
2373
|
+
vegoid?: number;
|
|
2374
|
+
}
|
|
2375
|
+
/**
|
|
2376
|
+
* Resolve the `uint64` SFPM poolId for a Uniswap v3 pool, initializing it if needed.
|
|
2377
|
+
*
|
|
2378
|
+
* `initializeAMMPool` is permissionless and idempotent and **returns the poolId**
|
|
2379
|
+
* whether or not the pool was already registered, so a `simulateContract` call is
|
|
2380
|
+
* enough to learn the id without sending a transaction. Always resolve the id this
|
|
2381
|
+
* way rather than encoding it offline — the SFPM can collision-increment ids.
|
|
2382
|
+
*/
|
|
2383
|
+
declare function fetchSfpmV3PoolId(params: FetchSfpmV3PoolIdParams): Promise<bigint>;
|
|
2384
|
+
interface EnsureSfpmV3PoolInitializedParams extends FetchSfpmV3PoolIdParams {
|
|
2385
|
+
wallet: WalletClient;
|
|
2386
|
+
/** Expected underlying Uniswap v3 pool; if provided, the resolved id is verified against it. */
|
|
2387
|
+
expectedPool?: Address;
|
|
2388
|
+
}
|
|
2389
|
+
interface EnsureSfpmV3PoolInitializedResult {
|
|
2390
|
+
poolId: bigint;
|
|
2391
|
+
/** True if an `initializeAMMPool` transaction was sent (pool was not yet registered). */
|
|
2392
|
+
initialized: boolean;
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Ensure a Uniswap v3 pool is registered on the SFPM, sending `initializeAMMPool`
|
|
2396
|
+
* only if it is not already registered. Returns the resolved poolId.
|
|
2397
|
+
*
|
|
2398
|
+
* When `expectedPool` is given, the resolved id is checked to map back to it via
|
|
2399
|
+
* `getUniswapV3PoolFromId` — guards against a wrong token/fee triple.
|
|
2400
|
+
*/
|
|
2401
|
+
declare function ensureSfpmV3PoolInitialized(params: EnsureSfpmV3PoolInitializedParams): Promise<EnsureSfpmV3PoolInitializedResult>;
|
|
2402
|
+
|
|
2403
|
+
//#endregion
|
|
2404
|
+
//#region src/panoptic/v2/sfpmSwap/plan.d.ts
|
|
2405
|
+
/**
|
|
2406
|
+
* Convert a slippage tolerance in bps to a conservative Uniswap tick distance.
|
|
2407
|
+
*
|
|
2408
|
+
* Ticks are 1.0001^tick, so each tick ≈ 1 bps. This walks up powers of 1.0001
|
|
2409
|
+
* until the cumulative price move covers `slippageBps`, matching the hedger-bot's
|
|
2410
|
+
* dispatch-path helper so both swap paths agree on band width.
|
|
2411
|
+
*/
|
|
2412
|
+
declare function slippageBpsToTickDistance(slippageBps: bigint): bigint;
|
|
2413
|
+
/**
|
|
2414
|
+
* Build the swap plan.
|
|
2415
|
+
*
|
|
2416
|
+
* Mechanism (verified in the Phase 0 fork test):
|
|
2417
|
+
* - A single-leg **loan** tokenId (width=0, isLong=false, `asset == tokenType`) moves
|
|
2418
|
+
* exactly `positionSize` of the `tokenType` token when its call carries inverted
|
|
2419
|
+
* tick limits (`low > high`); the paired call uses a wide band and moves nothing.
|
|
2420
|
+
* - `exactIn`: swap on the **mint**; `tokenType` = the **input** token index.
|
|
2421
|
+
* - `exactOut`: swap on the **burn** (isLong flips → exact-output); `tokenType` = the
|
|
2422
|
+
* **output** token index.
|
|
2423
|
+
*
|
|
2424
|
+
* The inverted band is centered on `currentTick` at ±`slippageBpsToTickDistance`,
|
|
2425
|
+
* which the SFPM re-sorts and enforces as an open interval on the post-swap tick.
|
|
2426
|
+
*/
|
|
2427
|
+
declare function buildSfpmSwapPlan(params: SfpmSwapPlanParams): SfpmSwapPlan;
|
|
2428
|
+
|
|
2429
|
+
//#endregion
|
|
2430
|
+
//#region src/panoptic/v2/sfpmSwap/quote.d.ts
|
|
2431
|
+
interface QuoteSfpmSwapParams {
|
|
2432
|
+
client: PublicClient;
|
|
2433
|
+
/** Plan from {@link buildSfpmSwapPlan}. */
|
|
2434
|
+
plan: SfpmSwapPlan;
|
|
2435
|
+
/** Caller executing the swap (the Safe in production); must hold the input token. */
|
|
2436
|
+
account: Address;
|
|
2437
|
+
/**
|
|
2438
|
+
* Optional viem state overrides — e.g. to grant the input-token allowance to the
|
|
2439
|
+
* SFPM and/or fund the account so the quote works before approvals exist. In
|
|
2440
|
+
* production (Safe already approved + funded) this can be omitted.
|
|
2441
|
+
*/
|
|
2442
|
+
stateOverride?: StateOverride;
|
|
2443
|
+
blockNumber?: bigint;
|
|
2444
|
+
}
|
|
2445
|
+
/**
|
|
2446
|
+
* Quote a swap by simulating `SFPM.multicall([mint, burn])` and decoding the swap
|
|
2447
|
+
* call's `totalMoved` return. Authoritative — captures the width-0 loan-leg wei
|
|
2448
|
+
* rounding a raw QuoterV2 quote would miss.
|
|
2449
|
+
*/
|
|
2450
|
+
declare function quoteSfpmSwap(params: QuoteSfpmSwapParams): Promise<SimulationResult<SfpmSwapQuote>>;
|
|
2451
|
+
|
|
2274
2452
|
//#endregion
|
|
2275
2453
|
//#region src/panoptic/v2/reads/factory.d.ts
|
|
2276
2454
|
/**
|
|
@@ -3500,6 +3678,34 @@ declare function getMaxWithdrawable(params: GetMaxWithdrawableParams): Promise<{
|
|
|
3500
3678
|
maxWithdrawable: bigint;
|
|
3501
3679
|
_meta: BlockMeta;
|
|
3502
3680
|
}>;
|
|
3681
|
+
/**
|
|
3682
|
+
* Parameters for getMaxRedeem.
|
|
3683
|
+
*/
|
|
3684
|
+
interface GetMaxRedeemParams {
|
|
3685
|
+
/** viem PublicClient */
|
|
3686
|
+
client: PublicClient;
|
|
3687
|
+
/** CollateralTracker address */
|
|
3688
|
+
collateralTrackerAddress: Address;
|
|
3689
|
+
/** Account address */
|
|
3690
|
+
account: Address;
|
|
3691
|
+
/** Optional block number for historical queries */
|
|
3692
|
+
blockNumber?: bigint;
|
|
3693
|
+
}
|
|
3694
|
+
/**
|
|
3695
|
+
* Read the maximum number of shares an account can redeem from a CollateralTracker.
|
|
3696
|
+
*
|
|
3697
|
+
* This is the ERC4626 `maxRedeem(owner)`, i.e. `min(availableShares, balanceOf(owner))`,
|
|
3698
|
+
* and returns 0 when the account has open positions (legs). Redeeming exactly this many
|
|
3699
|
+
* shares burns the account's full (available) share balance, so a MAX withdraw leaves no
|
|
3700
|
+
* rounding dust — unlike an assets-based `withdraw`, which round-trips shares↔assets.
|
|
3701
|
+
*
|
|
3702
|
+
* @param params - The parameters
|
|
3703
|
+
* @returns Maximum redeemable shares with block metadata
|
|
3704
|
+
*/
|
|
3705
|
+
declare function getMaxRedeem(params: GetMaxRedeemParams): Promise<{
|
|
3706
|
+
maxRedeem: bigint;
|
|
3707
|
+
_meta: BlockMeta;
|
|
3708
|
+
}>;
|
|
3503
3709
|
|
|
3504
3710
|
//#endregion
|
|
3505
3711
|
//#region src/panoptic/v2/reads/checks.d.ts
|
|
@@ -4851,8 +5057,10 @@ declare function getStreamiaHistory(params: GetStreamiaHistoryParams): Promise<S
|
|
|
4851
5057
|
//#region src/panoptic/v2/reads/uniswapFeeHistory.d.ts
|
|
4852
5058
|
/** A single snapshot of Uniswap fee data at a particular block. */
|
|
4853
5059
|
interface UniswapFeeSnapshot {
|
|
4854
|
-
/**
|
|
4855
|
-
blockNumber: bigint
|
|
5060
|
+
/** Resolved block number for this snapshot. */
|
|
5061
|
+
blockNumber: bigint;
|
|
5062
|
+
/** Timestamp of the resolved block in Unix seconds. */
|
|
5063
|
+
blockTimestamp: bigint;
|
|
4856
5064
|
/** Uniswap fee delta from the first block in the series */
|
|
4857
5065
|
fees: {
|
|
4858
5066
|
token0: bigint;
|
|
@@ -5053,6 +5261,76 @@ interface GetUniswapV4PoolLiquiditiesParams {
|
|
|
5053
5261
|
*/
|
|
5054
5262
|
declare function getUniswapV4PoolLiquidities(params: GetUniswapV4PoolLiquiditiesParams): Promise<UniswapV3Liquidities>;
|
|
5055
5263
|
|
|
5264
|
+
//#endregion
|
|
5265
|
+
//#region src/panoptic/v2/reads/uniswapLpPosition.d.ts
|
|
5266
|
+
/** Liquidity, range and uncollected fees for a single LP position. */
|
|
5267
|
+
interface UniswapLpPositionState {
|
|
5268
|
+
liquidity: bigint;
|
|
5269
|
+
tickLower: number;
|
|
5270
|
+
tickUpper: number;
|
|
5271
|
+
/** Uncollected fees in token0, inclusive of tokensOwed (V3). */
|
|
5272
|
+
fees0: bigint;
|
|
5273
|
+
/** Uncollected fees in token1, inclusive of tokensOwed (V3). */
|
|
5274
|
+
fees1: bigint;
|
|
5275
|
+
/** Block metadata the reads were pinned to. */
|
|
5276
|
+
_meta: BlockMeta;
|
|
5277
|
+
}
|
|
5278
|
+
interface UniswapV3LpPositionState extends UniswapLpPositionState {
|
|
5279
|
+
token0: Address;
|
|
5280
|
+
token1: Address;
|
|
5281
|
+
/** Fee tier in hundredths of a bip (e.g. 500 = 0.05%). */
|
|
5282
|
+
fee: number;
|
|
5283
|
+
}
|
|
5284
|
+
interface GetUniswapV3LpPositionStateParams {
|
|
5285
|
+
client: PublicClient;
|
|
5286
|
+
/** NonfungiblePositionManager address. */
|
|
5287
|
+
nfpmAddress: Address;
|
|
5288
|
+
/** ERC721 tokenId of the position. */
|
|
5289
|
+
tokenId: bigint;
|
|
5290
|
+
/** Current owner of the position NFT (used as `account` for the collect simulation). */
|
|
5291
|
+
owner: Address;
|
|
5292
|
+
/** Optional historical block to pin the position read to. */
|
|
5293
|
+
blockNumber?: bigint;
|
|
5294
|
+
}
|
|
5295
|
+
/**
|
|
5296
|
+
* Fetch a Uniswap V3 LP position's state and uncollected fees.
|
|
5297
|
+
*
|
|
5298
|
+
* Fees come from simulating `collect` with max amounts as the owner — one
|
|
5299
|
+
* eth_call returning the exact claimable amounts (tokensOwed + fee growth
|
|
5300
|
+
* since the last poke). The simulation is best-effort: if it reverts (e.g.
|
|
5301
|
+
* an empty position), fees fall back to 0.
|
|
5302
|
+
*/
|
|
5303
|
+
declare function getUniswapV3LpPositionState(params: GetUniswapV3LpPositionStateParams): Promise<UniswapV3LpPositionState>;
|
|
5304
|
+
/**
|
|
5305
|
+
* Uncollected fees from a feeGrowthInside delta, mirroring v4-core's
|
|
5306
|
+
* `Position.calculatePositionFeesAccrued`: the subtraction wraps around
|
|
5307
|
+
* uint256 (feeGrowthInside can legitimately underflow in-protocol).
|
|
5308
|
+
*/
|
|
5309
|
+
declare function feesFromFeeGrowthDelta(feeGrowthInsideCurrentX128: bigint, feeGrowthInsideLastX128: bigint, liquidity: bigint): bigint;
|
|
5310
|
+
interface GetUniswapV4LpPositionStateParams {
|
|
5311
|
+
client: PublicClient;
|
|
5312
|
+
/** StateView address. */
|
|
5313
|
+
stateViewAddress: Address;
|
|
5314
|
+
/** Uniswap v4 PositionManager (posm) address — the position owner inside PoolManager. */
|
|
5315
|
+
positionManagerAddress: Address;
|
|
5316
|
+
/** The bytes32 poolId hash. */
|
|
5317
|
+
poolId: Hex;
|
|
5318
|
+
/** ERC721 tokenId of the position (posm salt = bytes32(tokenId)). */
|
|
5319
|
+
tokenId: bigint;
|
|
5320
|
+
tickLower: number;
|
|
5321
|
+
tickUpper: number;
|
|
5322
|
+
/** Optional historical block to pin the position read to. */
|
|
5323
|
+
blockNumber?: bigint;
|
|
5324
|
+
}
|
|
5325
|
+
/**
|
|
5326
|
+
* Fetch a Uniswap V4 LP position's state and uncollected fees via StateView.
|
|
5327
|
+
*
|
|
5328
|
+
* The position inside PoolManager is keyed by (positionManager, tickLower,
|
|
5329
|
+
* tickUpper, salt) where posm uses `bytes32(tokenId)` as the salt. Fees on
|
|
5330
|
+
* pools with fee-taking hooks may be approximate.
|
|
5331
|
+
*/
|
|
5332
|
+
declare function getUniswapV4LpPositionState(params: GetUniswapV4LpPositionStateParams): Promise<UniswapLpPositionState>;
|
|
5333
|
+
|
|
5056
5334
|
//#endregion
|
|
5057
5335
|
//#region src/panoptic/v2/reads/priceHistory.d.ts
|
|
5058
5336
|
/** A single price snapshot at a particular block. */
|
|
@@ -8189,13 +8467,163 @@ declare function simulateSwapExactOut(params: SimulateSwapExactOutParams): Promi
|
|
|
8189
8467
|
declare function simulateSwapExactIn(params: SimulateSwapExactInParams): Promise<SimulationResult<SwapSimulation>>;
|
|
8190
8468
|
|
|
8191
8469
|
//#endregion
|
|
8192
|
-
//#region src/panoptic/v2/simulations/
|
|
8470
|
+
//#region src/panoptic/v2/simulations/creditWrap.d.ts
|
|
8193
8471
|
/**
|
|
8194
|
-
* Pre-encoded `dispatch()` arguments
|
|
8472
|
+
* Pre-encoded `dispatch()` arguments a credit wrap is applied to.
|
|
8195
8473
|
*
|
|
8196
8474
|
* Alias of {@link BatchDispatchArgs} — the two are the same concept.
|
|
8197
8475
|
*/
|
|
8198
8476
|
type DispatchIntent = BatchDispatchArgs;
|
|
8477
|
+
/**
|
|
8478
|
+
* Which side of the swap is exact.
|
|
8479
|
+
*
|
|
8480
|
+
* - `exact-out`: the credit **sources** a known amount of its token, paying a
|
|
8481
|
+
* swapped amount of the counter-token. Mint carries `swapAtMint=true`.
|
|
8482
|
+
* - `exact-in`: the credit **sells** a known amount of its token, receiving a
|
|
8483
|
+
* swapped amount of the counter-token. Burn carries `swapAtMint=true`.
|
|
8484
|
+
*/
|
|
8485
|
+
type CreditWrapDirection = 'exact-in' | 'exact-out';
|
|
8486
|
+
/**
|
|
8487
|
+
* Where the two credit legs sit relative to the user's own operations.
|
|
8488
|
+
*
|
|
8489
|
+
* - `straddle`: mint first, user ops, burn last. Required for `exact-out`, where
|
|
8490
|
+
* the sourced token must be available while the user's ops run.
|
|
8491
|
+
* - `append`: both legs after the user's ops. Required for `exact-in`, where the
|
|
8492
|
+
* token being sold does not exist until those ops have run.
|
|
8493
|
+
*/
|
|
8494
|
+
type CreditWrapPlacement = 'append' | 'straddle';
|
|
8495
|
+
interface BuildCreditWrappedDispatchParams {
|
|
8496
|
+
dispatch: DispatchIntent;
|
|
8497
|
+
/** The temporary width=0 credit leg. */
|
|
8498
|
+
creditTokenId: bigint;
|
|
8499
|
+
/** Size of the mint leg. The burn leg always passes `0n` (= burn all). */
|
|
8500
|
+
creditPositionSize: bigint;
|
|
8501
|
+
tickLimitLow: bigint;
|
|
8502
|
+
tickLimitHigh: bigint;
|
|
8503
|
+
direction: CreditWrapDirection;
|
|
8504
|
+
placement: CreditWrapPlacement;
|
|
8505
|
+
}
|
|
8506
|
+
/**
|
|
8507
|
+
* Wrap a dispatch with a temporary credit leg that is opened and closed in the
|
|
8508
|
+
* same transaction, netting to a swap.
|
|
8509
|
+
*
|
|
8510
|
+
* `swapAtMint` is not a calldata flag — it is the ORDER of the tick-limit pair:
|
|
8511
|
+
* descending `[high, low]` turns the swap on, ascending `[low, high]` leaves it
|
|
8512
|
+
* off. Exactly one of the two legs carries it, and which one is what makes the
|
|
8513
|
+
* swap exact-in vs exact-out.
|
|
8514
|
+
*/
|
|
8515
|
+
declare function buildCreditWrappedDispatch(params: BuildCreditWrappedDispatchParams): DispatchIntent;
|
|
8516
|
+
|
|
8517
|
+
//#endregion
|
|
8518
|
+
//#region src/panoptic/v2/simulations/oneTokenFlow.d.ts
|
|
8519
|
+
/**
|
|
8520
|
+
* Default {@link OneTokenFlowQuoteParams.minSwapRatioBps}: 0.5%.
|
|
8521
|
+
*
|
|
8522
|
+
* A swap pays a pool fee of roughly 5-30 bps plus slippage, so a non-target
|
|
8523
|
+
* flow below this fraction of the target flow cannot pay for itself — while
|
|
8524
|
+
* still leaving any residual small enough not to surprise someone who asked to
|
|
8525
|
+
* settle in one token.
|
|
8526
|
+
*/
|
|
8527
|
+
declare const DEFAULT_MIN_SWAP_RATIO_BPS = 50n;
|
|
8528
|
+
interface OneTokenFlowQuoteParams {
|
|
8529
|
+
client: PublicClient;
|
|
8530
|
+
poolAddress: Address;
|
|
8531
|
+
account: Address;
|
|
8532
|
+
chainId: bigint;
|
|
8533
|
+
/** The user's actual on-chain position list BEFORE the dispatch. */
|
|
8534
|
+
existingPositionIds: bigint[];
|
|
8535
|
+
/** The dispatch the user is about to send, unwrapped. */
|
|
8536
|
+
dispatch: DispatchIntent;
|
|
8537
|
+
/** Index of the token the whole net flow should land in: `0n` or `1n`. */
|
|
8538
|
+
targetTokenIndex: bigint;
|
|
8539
|
+
/**
|
|
8540
|
+
* Slippage tolerance for the credit swap, in **basis points** (1% = 100).
|
|
8541
|
+
* Applied to the estimated target-token cost of an exact-out swap to produce
|
|
8542
|
+
* `maximumAmountIn`. Values above `10_000` (100%) are rejected.
|
|
8543
|
+
*/
|
|
8544
|
+
slippageBps: bigint;
|
|
8545
|
+
/**
|
|
8546
|
+
* Minimum size of the non-target flow, in **basis points** of the target
|
|
8547
|
+
* token's own flow, for the swap to be worth doing. Below this the residual
|
|
8548
|
+
* is dust and the swap would cost more in pool fee and slippage than it
|
|
8549
|
+
* settles, so the quote reports `below-threshold` and the caller falls back
|
|
8550
|
+
* to the native two-token flow. Defaults to
|
|
8551
|
+
* {@link DEFAULT_MIN_SWAP_RATIO_BPS}. Pass `0n` to always swap.
|
|
8552
|
+
*
|
|
8553
|
+
* Only applied when the unwrapped dispatch simulates successfully. When it
|
|
8554
|
+
* reverts on a shortfall, the swap is what makes the transaction possible at
|
|
8555
|
+
* all, so no threshold is applied.
|
|
8556
|
+
*/
|
|
8557
|
+
minSwapRatioBps?: bigint;
|
|
8558
|
+
/**
|
|
8559
|
+
* Price bound for the temporary credit legs. Defaults to the full tick range —
|
|
8560
|
+
* the swap is protected economically by the balance check, not by a price
|
|
8561
|
+
* band, and the user's own operations keep their own limits.
|
|
8562
|
+
*/
|
|
8563
|
+
tickLimitLow?: bigint;
|
|
8564
|
+
/** See {@link OneTokenFlowQuoteParams.tickLimitLow}. */
|
|
8565
|
+
tickLimitHigh?: bigint;
|
|
8566
|
+
blockNumber?: bigint;
|
|
8567
|
+
}
|
|
8568
|
+
interface OneTokenFlowQuote {
|
|
8569
|
+
targetToken: Address;
|
|
8570
|
+
otherToken: Address;
|
|
8571
|
+
targetTokenIndex: bigint;
|
|
8572
|
+
otherTokenIndex: bigint;
|
|
8573
|
+
direction: CreditWrapDirection;
|
|
8574
|
+
/**
|
|
8575
|
+
* Amount of `otherToken` the credit sources (`exact-out`) or sells
|
|
8576
|
+
* (`exact-in`) — i.e. the non-target flow being cancelled.
|
|
8577
|
+
*/
|
|
8578
|
+
swapAmount: bigint;
|
|
8579
|
+
/**
|
|
8580
|
+
* Target-token side of the swap leg alone, priced by a swap-only simulation:
|
|
8581
|
+
* spent for `exact-out`, received for `exact-in`. NOT the same as
|
|
8582
|
+
* `netTargetChange`, which also includes the user's own operations.
|
|
8583
|
+
*/
|
|
8584
|
+
estimatedCounterAmount: bigint;
|
|
8585
|
+
/** `estimatedCounterAmount` padded by `slippageBps`. `exact-out` only. */
|
|
8586
|
+
maximumAmountIn: bigint;
|
|
8587
|
+
slippageBps: bigint;
|
|
8588
|
+
/** Signed net change of the target token across the ENTIRE wrapped tx. */
|
|
8589
|
+
netTargetChange: bigint;
|
|
8590
|
+
/**
|
|
8591
|
+
* Signed net change of the other token across the entire wrapped tx — the
|
|
8592
|
+
* residual dust left by sizing the credit from a single simulation. Disclose
|
|
8593
|
+
* this to the user rather than claiming an exact zero.
|
|
8594
|
+
*/
|
|
8595
|
+
residualOtherChange: bigint;
|
|
8596
|
+
/** The temporary width=0 credit leg used to move the flow. */
|
|
8597
|
+
creditTokenId: bigint;
|
|
8598
|
+
dispatch: DispatchIntent;
|
|
8599
|
+
tokenFlow: TokenFlow;
|
|
8600
|
+
_meta: BlockMeta;
|
|
8601
|
+
}
|
|
8602
|
+
type OneTokenFlowUnavailableReason = 'already-single-token' | 'below-threshold' | 'base-simulation-failed' | 'invalid-slippage' | 'invalid-target-token' | 'invalid-tick-limits' | 'swap-unavailable' | 'wrap-unavailable';
|
|
8603
|
+
type OneTokenFlowResult = {
|
|
8604
|
+
available: true;
|
|
8605
|
+
quote: OneTokenFlowQuote;
|
|
8606
|
+
} | {
|
|
8607
|
+
available: false;
|
|
8608
|
+
reason: OneTokenFlowUnavailableReason;
|
|
8609
|
+
/** Human-readable description of the sub-step that failed, for diagnostics. */
|
|
8610
|
+
detail?: string;
|
|
8611
|
+
error?: PanopticError;
|
|
8612
|
+
};
|
|
8613
|
+
/**
|
|
8614
|
+
* Quote a dispatch wrapped so its net flow lands in `targetTokenIndex` only.
|
|
8615
|
+
*
|
|
8616
|
+
* Three simulations, all pinned to one block and with no convergence loop:
|
|
8617
|
+
*
|
|
8618
|
+
* 1. the user's dispatch as-is, to measure the non-target flow to cancel;
|
|
8619
|
+
* 2. the credit legs alone, to price the swap and check the source balance;
|
|
8620
|
+
* 3. the wrapped dispatch, whose token flow is what the user is shown and what
|
|
8621
|
+
* the residual dust is read from.
|
|
8622
|
+
*/
|
|
8623
|
+
declare function quoteOneTokenFlow(params: OneTokenFlowQuoteParams): Promise<OneTokenFlowResult>;
|
|
8624
|
+
|
|
8625
|
+
//#endregion
|
|
8626
|
+
//#region src/panoptic/v2/simulations/tokenShortfallRecovery.d.ts
|
|
8199
8627
|
interface TokenShortfallRecoveryQuoteParams {
|
|
8200
8628
|
client: PublicClient;
|
|
8201
8629
|
poolAddress: Address;
|
|
@@ -9274,5 +9702,5 @@ declare function isNonceError(error: unknown): boolean;
|
|
|
9274
9702
|
declare function isGasError(error: unknown): boolean;
|
|
9275
9703
|
|
|
9276
9704
|
//#endregion
|
|
9277
|
-
export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BPS_DENOMINATOR as BPS_DENOMINATOR$1, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate$1 as CollateralEstimate, CollateralSharePriceData, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_RECONNECT_CONFIG as DEFAULT_RECONNECT_CONFIG$1, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositParams, DepositTooLargeError, DetectReorgParams, DispatchCalldata, DispatchIntent, DispatchParams, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FlowNeutralTokenId, ForceExerciseParams, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LengthMismatchError, LiquidateParams, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MAX_TICK as MAX_TICK$1, MAX_TRACKED_CHUNKS as MAX_TRACKED_CHUNKS$1, MIN_TICK as MIN_TICK$1, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS as ORACLE_EPOCH_SECONDS$1, OpenPositionParams, OpenPositionPreview, OptimizeTokenIdRiskPartnersParams, OracleRateLimitedError, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, PoolFormatterConfig, PoolFormatters, PoolLiquidities, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, REORG_DEPTH as REORG_DEPTH$1, REQUIRED_BASE_ERROR_SENTINEL as REQUIRED_BASE_ERROR_SENTINEL$1, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION as SCHEMA_VERSION$1, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX as STORAGE_PREFIX$1, SafeModeError, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettledEvent, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, Timescale, TokenCollateral, TokenIdBuilder, TokenIdHasZeroLegsError, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, UTILIZATION_DENOMINATOR as UTILIZATION_DENOMINATOR$1, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapV3Liquidities, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD as WAD$1, WatchEventsParams, WithdrawParams, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL as ZERO_COLLATERAL$1, ZERO_VALUATION as ZERO_VALUATION$1, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition as addPendingPosition$1, addTrackedChunks as addTrackedChunks$1, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildOpenPositionCalldata, buildTokenShortfallRecoveryDispatch as buildTokenShortfallRecoveryDispatch$1, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure as calculateAccountGreeksPure$1, calculateResyncBlock, calculateSpreadWad as calculateSpreadWad$1, cancelTransaction, checkApproval, checkCollateralAcrossTicks as checkCollateralAcrossTicks$1, cleanupStalePendingPositions as cleanupStalePendingPositions$1, clearCheckpoint, clearPendingPositions as clearPendingPositions$1, clearTrackedChunks as clearTrackedChunks$1, clearTrackedPositions, clearTradeHistory as clearTradeHistory$1, closePosition, closePositionAndWait, computeV4PoolId as computeV4PoolId$1, confirmPendingPosition as confirmPendingPosition$1, convertToAssets as convertToAssets$1, convertToShares as convertToShares$1, countLegs, createEventPoller as createEventPoller$1, createEventSubscription as createEventSubscription$1, createFileStorage, createFlowNeutralTokenId as createFlowNeutralTokenId$1, createMemoryStorage, createNonceManager, createPoolFormatters as createPoolFormatters$1, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI as decodePanopticTokenURI$1, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes as encodePoolKeyBytes$1, encodeV3PoolKeyBytes as encodeV3PoolKeyBytes$1, encodeV4PoolId, estimateBlockNumbers as estimateBlockNumbers$1, estimateCollateralRequired as estimateCollateralRequired$1, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition as failPendingPosition$1, forceExercise, forceExerciseAndWait, formatBlockNumber as formatBlockNumber$1, formatBps as formatBps$1, formatCompact as formatCompact$1, formatDatetime as formatDatetime$1, formatDuration as formatDuration$1, formatDurationSeconds as formatDurationSeconds$1, formatFeeTier as formatFeeTier$1, formatGas as formatGas$1, formatGwei as formatGwei$1, formatPoolIdHex as formatPoolIdHex$1, formatRateWad, formatRatioPercent as formatRatioPercent$1, formatTimestamp as formatTimestamp$1, formatTimestampLocale as formatTimestampLocale$1, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex as formatTokenIdHex$1, formatTokenIdShort as formatTokenIdShort$1, formatTxHash as formatTxHash$1, formatUtilization as formatUtilization$1, formatWad, formatWadPercent, formatWadSigned, formatWei as formatWei$1, getAccountBuyingPower as getAccountBuyingPower$1, getAccountCollateral, getAccountGreeks as getAccountGreeks$1, getAccountHistory as getAccountHistory$1, getAccountPremia as getAccountPremia$1, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities as getChunkLiquidities$1, getChunkSpreads as getChunkSpreads$1, getClosedPositions as getClosedPositions$1, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices as getCollateralSharePrices$1, getCollateralTotalAssetsBatch as getCollateralTotalAssetsBatch$1, getCurrentRates, getDeltaHedgeParams as getDeltaHedgeParams$1, getEnforcedTickLimits as getEnforcedTickLimits$1, getFactoryConstructMetadata as getFactoryConstructMetadata$1, getFactoryOwnerOf as getFactoryOwnerOf$1, getFactoryTokenURI as getFactoryTokenURI$1, getGuardianUnlockState as getGuardianUnlockState$1, getInterestState, getItmAmounts as getItmAmounts$1, getLiquidationPrices, getMarginBuffer as getMarginBuffer$1, getMaxPositionSize as getMaxPositionSize$1, getMaxWithdrawable as getMaxWithdrawable$1, getNativeTokenPrice as getNativeTokenPrice$1, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError as getNotEnoughTokensError$1, getOpenPositionIds, getOpenPositionPreview as getOpenPositionPreview$1, getPanopticPoolAddress as getPanopticPoolAddress$1, getPanopticPoolFromPoolId as getPanopticPoolFromPoolId$1, getPendingPositions as getPendingPositions$1, getPendingPositionsKey, getPoolDeploymentBlock as getPoolDeploymentBlock$1, getPoolDisplayId as getPoolDisplayId$1, getPoolLiquidities as getPoolLiquidities$1, getPoolMetaKey, getPoolPrefix, getPortfolioValue as getPortfolioValue$1, getPosition, getPositionChunkData as getPositionChunkData$1, getPositionEnrichmentData as getPositionEnrichmentData$1, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia as getPositionsWithPremia$1, getPriceHistory as getPriceHistory$1, getRealizedPnL as getRealizedPnL$1, getRequiredCreditForITM as getRequiredCreditForITM$1, getSafeMode as getSafeMode$1, getSchemaVersionKey, getStreamiaHistory as getStreamiaHistory$1, getSyncCheckpointKey, getSyncStatus as getSyncStatus$1, getTokenListId as getTokenListId$1, getTrackedChunks as getTrackedChunks$1, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory as getTradeHistory$1, getUniswapFeeHistory as getUniswapFeeHistory$1, getUniswapV3PoolFromId as getUniswapV3PoolFromId$1, getUniswapV3PoolInfo as getUniswapV3PoolInfo$1, getUniswapV3PoolLiquidities as getUniswapV3PoolLiquidities$1, getUniswapV4PoolBasicState as getUniswapV4PoolBasicState$1, getUniswapV4PoolInfo as getUniswapV4PoolInfo$1, getUniswapV4PoolKeyFromId as getUniswapV4PoolKeyFromId$1, getUniswapV4PoolLiquidities as getUniswapV4PoolLiquidities$1, hasLoanOrCredit, hasLongLeg, interpolateBlocks as interpolateBlocks$1, isCredit, isCreditLeg, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress as minePoolAddress$1, mint, mintAndWait, multicallRead as multicallRead$1, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners as optimizeTokenIdRiskPartners$1, parseBps as parseBps$1, parseCollateralLog as parseCollateralLog$1, parsePanopticError, parsePoolLog as parsePoolLog$1, parseTokenAmount, parseTokenListId as parseTokenListId$1, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit as previewDeposit$1, previewMint as previewMint$1, previewRedeem as previewRedeem$1, previewUnwrap, previewWithdraw as previewWithdraw$1, previewWrap, publicBroadcaster, quoteTokenShortfallRecovery as quoteTokenShortfallRecovery$1, reconstructFromEvents as reconstructFromEvents$1, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks as removeTrackedChunks$1, repay, repayAndWait, resolveBlockNumbers as resolveBlockNumbers$1, resolvePanopticPoolFromPoolId as resolvePanopticPoolFromPoolId$1, resolveTokenIndex, resolveUniswapV4PoolKey as resolveUniswapV4PoolKey$1, rollPosition, rollPositionAndWait, saveCheckpoint, saveClosedPosition as saveClosedPosition$1, scanChunks as scanChunks$1, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch as simulateBatchDispatch$1, simulateClosePosition as simulateClosePosition$1, simulateDeployNewPool as simulateDeployNewPool$1, simulateDeposit as simulateDeposit$1, simulateDispatch as simulateDispatch$1, simulateForceExercise as simulateForceExercise$1, simulateLiquidate as simulateLiquidate$1, simulateOpenPosition, simulateSFPMBurn as simulateSFPMBurn$1, simulateSFPMMint as simulateSFPMMint$1, simulateSettle as simulateSettle$1, simulateSwapExactIn as simulateSwapExactIn$1, simulateSwapExactOut as simulateSwapExactOut$1, simulateWithdraw as simulateWithdraw$1, smartRepay, smartRepayAndWait, speedUpTransaction, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress as truncateAddress$1, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, watchEvents as watchEvents$1, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
9278
|
-
//# sourceMappingURL=index-
|
|
9705
|
+
export { AccountBuyingPower, AccountCollateral, AccountGreeksCurveResult, AccountGreeksResult, AccountInsolventError, AccountPremia, AccountSummaryBasic, AccountSummaryRisk, AddPendingPositionParams, AddTrackedChunksParams, AlreadyInitializedError, ApprovalStatus, ApproveParams, ApprovePoolParams, BPS_DENOMINATOR as BPS_DENOMINATOR$1, BatchDiagnostic, BatchDiagnosticCode, BatchDispatchArgs, BatchOp, BatchOpBurn, BatchOpKind, BatchOpMint, BatchValidationError, BelowMinimumRedemptionError, BorrowParams, BuildBatchDispatchArgsParams, BuildBatchDispatchArgsResult, BuildCreditWrappedDispatchParams, BuildTokenShortfallRecoveryDispatchParams, CalculateAccountGreeksPureParams, CancelParams, CastingError, CheckApprovalParams, CheckCollateralAcrossTicksParams, ChunkData, ChunkHasZeroLiquidityError, ChunkInput, ChunkKey, ChunkLimitError, ChunkLiquidityResult, ChunkMetadata, ChunkSpread, ChunkStats, ClosePositionParams, CollateralAcrossTicks, CollateralDataPoint, CollateralEstimate$1 as CollateralEstimate, CollateralSharePriceData, ConfirmPendingPositionParams, CreateEventPollerParams, CreateEventSubscriptionParams, CreateFlowNeutralTokenIdParams, CreditWrapDirection, CreditWrapPlacement, CrossPoolError, DEFAULT_MAX_SPREAD, DEFAULT_MIN_SWAP_RATIO_BPS as DEFAULT_MIN_SWAP_RATIO_BPS$1, DEFAULT_RECONNECT_CONFIG as DEFAULT_RECONNECT_CONFIG$1, DEFAULT_VEGOID, DataWithMeta, DecodedLeg, DecodedTokenId, DeltaHedgeResult, DeployNewPoolParams, DepositParams, DepositTooLargeError, DetectReorgParams, DispatchCalldata, DispatchIntent, DispatchParams, DuplicateTokenIdError, ERC4626PreviewParams, ERC4626PreviewResult, EffectiveLiquidityAboveThresholdError, EncodeLegParams, EnforcedTickLimits, EnsureSfpmV3PoolInitializedParams, EnsureSfpmV3PoolInitializedResult, EstimateBlockNumbersParams, EstimateCollateralRequiredParams, EventPoller, EventReconstructionParams, EventReconstructionResult, EventSubscriptionHandle, ExceedsMaximumRedemptionError, ExecuteBatchDispatchParams, FailPendingPositionParams, FetchSfpmV3PoolIdParams, FlowNeutralTokenId, ForceExerciseParams, GetAccountBuyingPowerParams, GetAccountCollateralParams, GetAccountGreeksParams, GetAccountPremiaParams, GetAccountSummaryBasicParams, GetAccountSummaryRiskParams, GetBlockMetaParams, GetChunkLiquiditiesParams, GetChunkLiquiditiesResult, GetChunkSpreadsParams, GetCollateralDataParams, GetCurrentRatesParams, GetDeltaHedgeParamsInput, GetEnforcedTickLimitsParams, GetFactoryConstructMetadataParams, GetFactoryOwnerOfParams, GetFactoryTokenURIParams, GetGuardianUnlockStateParams, GetInterestStateParams, GetItmAmountsParams, GetLiquidationPricesParams, GetMarginBufferParams, GetMaxPositionSizeParams, GetMaxRedeemParams, GetMaxWithdrawableParams, GetNativeTokenPriceParams, GetNetLiquidationValueParams, GetNetLiquidationValuesParams, GetOpenPositionIdsParams, GetOpenPositionPreviewParams, GetPanopticPoolAddressParams, GetPanopticPoolFromPoolIdParams, GetPendingPositionsParams, GetPoolLiquiditiesParams, GetPortfolioValueParams, GetPositionChunkDataParams, GetPositionChunkDataResult, GetPositionEnrichmentDataParams, GetPositionEnrichmentDataResult, GetPositionGreeksParams, GetPositionParams, GetPositionsParams, GetPositionsWithPremiaParams, GetPriceHistoryParams, GetRealizedPnLParams, GetRequiredCreditForITMParams, GetSafeModeParams, GetStreamiaHistoryParams, GetSyncStatusParams, GetTrackedChunksParams, GetTrackedPositionIdsParams, GetTradeHistoryParams, GetUniswapFeeHistoryParams, GetUniswapV3LpPositionStateParams, GetUniswapV3PoolFromIdParams, GetUniswapV3PoolInfoParams, GetUniswapV3PoolLiquiditiesParams, GetUniswapV4LpPositionStateParams, GetUniswapV4PoolBasicStateParams, GetUniswapV4PoolInfoParams, GetUniswapV4PoolKeyFromIdParams, GetUniswapV4PoolLiquiditiesParams, GuardianUnlockState, InputListFailError, InsufficientCreditLiquidityError, InterestState, InvalidBuilderCodeError, InvalidHistoryRangeError, InvalidTickBoundError, InvalidTickError, InvalidTokenIdParameterError, InvalidUniswapCallbackError, IsLiquidatableParams, ItmAmounts, LEG_BITS, LEG_LIMITS, LEG_MASKS, LegChunkData, LegConfig, LengthMismatchError, LiquidateParams, LiquidationCheck, LiquidationPrices, LiquidityChunkKey, LiquidityChunkSpread, LiquidityTooHighError, LoanSlotExhaustedError, MAX_TICK as MAX_TICK$1, MAX_TRACKED_CHUNKS as MAX_TRACKED_CHUNKS$1, MIN_TICK as MIN_TICK$1, MarginBuffer, MaxPositionSize, MaxRetriesExceededError, MinePoolAddressParams, MinePoolAddressResult, MintParams, MissingPositionIdsError, MulticallContract, MulticallReadParams, NetLiquidationValue, NetLiquidationValues, NetLiquidityZeroError, NetworkMismatchError, NeutralLeg, NoLegsExercisableError, NotALongLegError, NotBuilderError, NotEnoughLiquidityInChunkError, NotEnoughTokensError, NotGuardianError, NotMarginCalledError, NotPanopticPoolError, ORACLE_EPOCH_SECONDS as ORACLE_EPOCH_SECONDS$1, OneTokenFlowQuote, OneTokenFlowQuoteParams, OneTokenFlowResult, OneTokenFlowUnavailableReason, OpenPositionParams, OpenPositionPreview, OptimizeTokenIdRiskPartnersParams, OracleRateLimitedError, PanopticHelperNotDeployedError, PanopticNFTMetadata, PanopticValidationError, ParsedError, PendingPosition, PokeOracleParams, PoolFormatterConfig, PoolFormatters, PoolLiquidities, PoolNotInitializedError, PoolVersionConfig, PortfolioValue, PositionChunkData, PositionCountNotZeroError, PositionEnrichmentResult, PositionInput, PositionNotOwnedError, PositionSnapshotNotFoundError, PositionStorageParams, PositionTooLargeError, PositionWithPremia, PositionsWithPremiaResult, PreviewBorrowParams, PreviewBorrowResult, PreviewWrapParams, PriceBoundFailError, PriceHistoryResult, PriceImpactTooLargeError, PriceSnapshot, ProviderLagError, QuoteSfpmSwapParams, REORG_DEPTH as REORG_DEPTH$1, REQUIRED_BASE_ERROR_SENTINEL as REQUIRED_BASE_ERROR_SENTINEL$1, ReconnectConfig, RecoverSnapshotFromTxParams, RecoverSnapshotParams, RedeemParams, ReentrancyError, RemoveTrackedChunksParams, ReorgDetection, RepayParams, RequiredCreditForITM, ResolveBlockNumbersParams, ResolvePanopticPoolFromPoolIdParams, ResolvePanopticPoolFromPoolIdResult, ResolveUniswapV4PoolKeyParams, RollPositionParams, RpcError, RpcResponseError, SCHEMA_VERSION as SCHEMA_VERSION$1, SFPMSimulationResult, STANDARD_TICK_WIDTHS, STORAGE_PREFIX as STORAGE_PREFIX$1, SafeModeError, SaveCheckpointParams, SaveClosedPositionParams, ScanChunksParams, ScanChunksResult, ScannedChunk, SettleParams, SettledEvent, SfpmSwapCalldata, SfpmSwapKind, SfpmSwapPlan, SfpmSwapPlanParams, SfpmSwapQuote, SimulateBatchDispatchParams, SimulateBatchDispatchResult, SimulateClosePositionParams, SimulateDeployNewPoolParams, SimulateDepositParams, SimulateDispatchParams, SimulateForceExerciseParams, SimulateLiquidateParams, SimulateOpenPositionParams, SimulateSFPMParams, SimulateSettleParams, SimulateSwapExactInParams, SimulateSwapExactOutParams, SimulateWithdrawParams, SmartRepayParams, SnapshotRecoveryResult, SpeedUpParams, StaleDataError, StaleOracleError, StorageAdapter, StreamiaHistoryResult, StreamiaLeg, StreamiaSnapshot, SupplyParams, SwapExactInParams, SwapExactOutParams, SwapSimulation, SwapTokenMismatchError, SyncCheckpoint, SyncOptions, SyncPositionsParams, SyncPositionsResult, SyncProgressEvent, SyncResult, SyncState, SyncStatus, SyncStatusResult, SyncTimeoutError, TOKEN_ID_BITS, TickAndSpreadLimits, Timescale, TokenCollateral, TokenIdBuilder, TokenIdHasZeroLegsError, TokenInterestState, TokenShortfallRecoveryQuote, TokenShortfallRecoveryQuoteParams, TokenShortfallRecoveryResult, TokenShortfallRecoveryUnavailableReason, TooManyLegsOpenError, TransferFailedError, UTILIZATION_DENOMINATOR as UTILIZATION_DENOMINATOR$1, UnauthorizedUniswapCallbackError, UnderOverFlowError, UnhealthyPoolError, UniswapFeeHistoryResult, UniswapFeeSnapshot, UniswapLpPositionState, UniswapV3Liquidities, UniswapV3LpPositionState, UniswapV3PoolInfo, UniswapV3PoolToken, UniswapV4PoolBasicState, UniswapV4PoolInfo, UniswapV4PoolKey, UnsupplyParams, UnwrapWethParams, UnwrapXstockParams, V3PoolConfig, V4PoolConfig, ValidateBatchParams, WAD as WAD$1, WatchEventsParams, WithdrawParams, WithdrawWithPositionsParams, WrapEthParams, WrapXstockParams, WriteConfig, WrongPoolIdError, WrongUniswapPoolError, ZERO_COLLATERAL as ZERO_COLLATERAL$1, ZERO_VALUATION as ZERO_VALUATION$1, ZeroAddressError, ZeroCollateralRequirementError, addLegToTokenId, addPendingPosition as addPendingPosition$1, addTrackedChunks as addTrackedChunks$1, approve, approveAndWait, approvePool, assertCanBurn, assertCanForceExercise, assertCanLiquidate, assertCanMint, assertFresh, assertHealthy, assertTradeable, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditWrappedDispatch as buildCreditWrappedDispatch$1, buildOpenPositionCalldata, buildSfpmSwapCalldata as buildSfpmSwapCalldata$1, buildSfpmSwapPlan as buildSfpmSwapPlan$1, buildTokenShortfallRecoveryDispatch as buildTokenShortfallRecoveryDispatch$1, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateAccountGreeksPure as calculateAccountGreeksPure$1, calculateResyncBlock, calculateSpreadWad as calculateSpreadWad$1, cancelTransaction, checkApproval, checkCollateralAcrossTicks as checkCollateralAcrossTicks$1, cleanupStalePendingPositions as cleanupStalePendingPositions$1, clearCheckpoint, clearPendingPositions as clearPendingPositions$1, clearTrackedChunks as clearTrackedChunks$1, clearTrackedPositions, clearTradeHistory as clearTradeHistory$1, closePosition, closePositionAndWait, computeV4PoolId as computeV4PoolId$1, confirmPendingPosition as confirmPendingPosition$1, convertToAssets as convertToAssets$1, convertToShares as convertToShares$1, countLegs, createEventPoller as createEventPoller$1, createEventSubscription as createEventSubscription$1, createFileStorage, createFlowNeutralTokenId as createFlowNeutralTokenId$1, createMemoryStorage, createNonceManager, createPoolFormatters as createPoolFormatters$1, createTokenIdBuilder, decodeAllDispatchCalldata, decodeAllLegs, decodeDispatchCalldata, decodeLeftRightSigned, decodeLeftRightUnsigned, decodeLeg, decodePanopticTokenURI as decodePanopticTokenURI$1, decodePoolId, decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodePoolKeyBytes as encodePoolKeyBytes$1, encodeV3PoolKeyBytes as encodeV3PoolKeyBytes$1, encodeV4PoolId, ensureSfpmV3PoolInitialized as ensureSfpmV3PoolInitialized$1, estimateBlockNumbers as estimateBlockNumbers$1, estimateCollateralRequired as estimateCollateralRequired$1, executeBatchDispatch, executeBatchDispatchAndWait, failPendingPosition as failPendingPosition$1, feesFromFeeGrowthDelta as feesFromFeeGrowthDelta$1, fetchSfpmV3PoolId as fetchSfpmV3PoolId$1, forceExercise, forceExerciseAndWait, formatBlockNumber as formatBlockNumber$1, formatBps as formatBps$1, formatCompact as formatCompact$1, formatDatetime as formatDatetime$1, formatDuration as formatDuration$1, formatDurationSeconds as formatDurationSeconds$1, formatFeeTier as formatFeeTier$1, formatGas as formatGas$1, formatGwei as formatGwei$1, formatPoolIdHex as formatPoolIdHex$1, formatRateWad, formatRatioPercent as formatRatioPercent$1, formatTimestamp as formatTimestamp$1, formatTimestampLocale as formatTimestampLocale$1, formatTokenAmount, formatTokenAmountSigned, formatTokenDelta, formatTokenFlow, formatTokenIdHex as formatTokenIdHex$1, formatTokenIdShort as formatTokenIdShort$1, formatTxHash as formatTxHash$1, formatUtilization as formatUtilization$1, formatWad, formatWadPercent, formatWadSigned, formatWei as formatWei$1, getAccountBuyingPower as getAccountBuyingPower$1, getAccountCollateral, getAccountGreeks as getAccountGreeks$1, getAccountHistory as getAccountHistory$1, getAccountPremia as getAccountPremia$1, getAccountSummaryBasic, getAccountSummaryRisk, getAssetIndex, getBlockMeta, getChunkLiquidities as getChunkLiquidities$1, getChunkSpreads as getChunkSpreads$1, getClosedPositions as getClosedPositions$1, getClosedPositionsKey, getCollateralAddresses, getCollateralData, getCollateralSharePrices as getCollateralSharePrices$1, getCollateralTotalAssetsBatch as getCollateralTotalAssetsBatch$1, getCurrentRates, getDeltaHedgeParams as getDeltaHedgeParams$1, getEnforcedTickLimits as getEnforcedTickLimits$1, getFactoryConstructMetadata as getFactoryConstructMetadata$1, getFactoryOwnerOf as getFactoryOwnerOf$1, getFactoryTokenURI as getFactoryTokenURI$1, getGuardianUnlockState as getGuardianUnlockState$1, getInterestState, getItmAmounts as getItmAmounts$1, getLiquidationPrices, getMarginBuffer as getMarginBuffer$1, getMaxPositionSize as getMaxPositionSize$1, getMaxRedeem as getMaxRedeem$1, getMaxWithdrawable as getMaxWithdrawable$1, getNativeTokenPrice as getNativeTokenPrice$1, getNetLiquidationValue, getNetLiquidationValues, getNotEnoughTokensError as getNotEnoughTokensError$1, getOpenPositionIds, getOpenPositionPreview as getOpenPositionPreview$1, getPanopticPoolAddress as getPanopticPoolAddress$1, getPanopticPoolFromPoolId as getPanopticPoolFromPoolId$1, getPendingPositions as getPendingPositions$1, getPendingPositionsKey, getPoolDeploymentBlock as getPoolDeploymentBlock$1, getPoolDisplayId as getPoolDisplayId$1, getPoolLiquidities as getPoolLiquidities$1, getPoolMetaKey, getPoolPrefix, getPortfolioValue as getPortfolioValue$1, getPosition, getPositionChunkData as getPositionChunkData$1, getPositionEnrichmentData as getPositionEnrichmentData$1, getPositionGreeks, getPositionMetaKey, getPositions, getPositionsKey, getPositionsWithPremia as getPositionsWithPremia$1, getPriceHistory as getPriceHistory$1, getRealizedPnL as getRealizedPnL$1, getRequiredCreditForITM as getRequiredCreditForITM$1, getSafeMode as getSafeMode$1, getSchemaVersionKey, getStreamiaHistory as getStreamiaHistory$1, getSyncCheckpointKey, getSyncStatus as getSyncStatus$1, getTokenListId as getTokenListId$1, getTrackedChunks as getTrackedChunks$1, getTrackedChunksKey, getTrackedPositionIds, getTradeHistory as getTradeHistory$1, getUniswapFeeHistory as getUniswapFeeHistory$1, getUniswapV3LpPositionState as getUniswapV3LpPositionState$1, getUniswapV3PoolFromId as getUniswapV3PoolFromId$1, getUniswapV3PoolInfo as getUniswapV3PoolInfo$1, getUniswapV3PoolLiquidities as getUniswapV3PoolLiquidities$1, getUniswapV4LpPositionState as getUniswapV4LpPositionState$1, getUniswapV4PoolBasicState as getUniswapV4PoolBasicState$1, getUniswapV4PoolInfo as getUniswapV4PoolInfo$1, getUniswapV4PoolKeyFromId as getUniswapV4PoolKeyFromId$1, getUniswapV4PoolLiquidities as getUniswapV4PoolLiquidities$1, hasLoanOrCredit, hasLongLeg, interpolateBlocks as interpolateBlocks$1, isCredit, isCreditLeg, isGasError, isInputListFailError, isLiquidatable, isLoan, isLoanLeg, isNonceError, isPanopticErrorType, isPositionTracked, isRetryableRpcError, isShortOnly, isSpread, jsonSerializer, liquidate, liquidateAndWait, loadCheckpoint, minePoolAddress as minePoolAddress$1, mint, mintAndWait, multicallRead as multicallRead$1, openPosition, openPositionAndWait, optimizeTokenIdRiskPartners as optimizeTokenIdRiskPartners$1, parseBps as parseBps$1, parseCollateralLog as parseCollateralLog$1, parsePanopticError, parsePoolLog as parsePoolLog$1, parseTokenAmount, parseTokenListId as parseTokenListId$1, parseWad, pokeOracle, pokeOracleAndWait, previewBorrow, previewDeposit as previewDeposit$1, previewMint as previewMint$1, previewRedeem as previewRedeem$1, previewUnwrap, previewWithdraw as previewWithdraw$1, previewWrap, publicBroadcaster, quoteOneTokenFlow as quoteOneTokenFlow$1, quoteSfpmSwap as quoteSfpmSwap$1, quoteTokenShortfallRecovery as quoteTokenShortfallRecovery$1, reconstructFromEvents as reconstructFromEvents$1, recoverSnapshot, recoverSnapshotFromTx, redeem, redeemAndWait, removeTrackedChunks as removeTrackedChunks$1, repay, repayAndWait, resolveBlockNumbers as resolveBlockNumbers$1, resolvePanopticPoolFromPoolId as resolvePanopticPoolFromPoolId$1, resolveTokenIndex, resolveUniswapV4PoolKey as resolveUniswapV4PoolKey$1, rollPosition, rollPositionAndWait, saveCheckpoint, saveClosedPosition as saveClosedPosition$1, scanChunks as scanChunks$1, selectDispatchForAccount, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, simulateBatchDispatch as simulateBatchDispatch$1, simulateClosePosition as simulateClosePosition$1, simulateDeployNewPool as simulateDeployNewPool$1, simulateDeposit as simulateDeposit$1, simulateDispatch as simulateDispatch$1, simulateForceExercise as simulateForceExercise$1, simulateLiquidate as simulateLiquidate$1, simulateOpenPosition, simulateSFPMBurn as simulateSFPMBurn$1, simulateSFPMMint as simulateSFPMMint$1, simulateSettle as simulateSettle$1, simulateSwapExactIn as simulateSwapExactIn$1, simulateSwapExactOut as simulateSwapExactOut$1, simulateWithdraw as simulateWithdraw$1, slippageBpsToTickDistance as slippageBpsToTickDistance$1, smartRepay, smartRepayAndWait, speedUpTransaction, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress as truncateAddress$1, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, watchEvents as watchEvents$1, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
9706
|
+
//# sourceMappingURL=index-CURXeKNy.d.ts.map
|