@panoptic-eng/sdk 1.0.29 → 1.0.31
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 +3 -3
- package/dist/{cow-CSt61vNU.js → cow-CLFJQ-OP.js} +2 -2
- package/dist/{cow-CSt61vNU.js.map → cow-CLFJQ-OP.js.map} +1 -1
- package/dist/index-DQS8Luef.d.ts.map +1 -1
- package/dist/{index-B3JZRUNo.d.ts → index-DVtqKAH3.d.ts} +207 -13
- package/dist/index-DVtqKAH3.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -7
- package/dist/index.js.map +1 -1
- package/dist/{irm-IcePQm1r.js → irm-iAI9hTYQ.js} +3 -3
- package/dist/{irm-IcePQm1r.js.map → irm-iAI9hTYQ.js.map} +1 -1
- package/dist/{oracle-BnpPVG8V.d.ts → oracle-DaNTHk7B.d.ts} +14 -1
- package/dist/{oracle-BnpPVG8V.d.ts.map → oracle-DaNTHk7B.d.ts.map} +1 -1
- package/dist/panoptic/v2/index.d.ts +3 -3
- package/dist/panoptic/v2/index.js +5 -5
- package/dist/panoptic/v2/react-public.d.ts +6 -6
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +7 -7
- package/dist/{position-UL1gOvqZ.js → position-ClU7GrTa.js} +44 -12
- package/dist/position-ClU7GrTa.js.map +1 -0
- package/dist/{router-Del9H6e0.js → router-DKFR_vnu.js} +2 -2
- package/dist/{router-Del9H6e0.js.map → router-DKFR_vnu.js.map} +1 -1
- package/dist/{types-VeWdNN0j.d.ts → types-Cy6v8iPf.d.ts} +2 -2
- package/dist/{types-VeWdNN0j.d.ts.map → types-Cy6v8iPf.d.ts.map} +1 -1
- package/dist/uniswap/index.d.ts +2 -2
- package/dist/uniswap/index.js +3 -3
- package/dist/{v2-BSV35bpu.js → v2-D3B5BKml.js} +436 -167
- package/dist/v2-D3B5BKml.js.map +1 -0
- package/dist/{writes-RyS0kHpB.js → writes-DQLGdkJ5.js} +50 -26
- package/dist/writes-DQLGdkJ5.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-B3JZRUNo.d.ts.map +0 -1
- package/dist/position-UL1gOvqZ.js.map +0 -1
- package/dist/v2-BSV35bpu.js.map +0 -1
- package/dist/writes-RyS0kHpB.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchValidationError$1 as BatchValidationError, DEFAULT_VEGOID$1 as DEFAULT_VEGOID, InputListFailError$1 as InputListFailError, InvalidTickLimitsError, InvalidTokenIdParameterError$1 as InvalidTokenIdParameterError, LEG_BITS$1 as LEG_BITS, LEG_LIMITS$1 as LEG_LIMITS, LEG_MASKS$1 as LEG_MASKS, LoanSlotExhaustedError$1 as LoanSlotExhaustedError, MaxRetriesExceededError$1 as MaxRetriesExceededError, MissingPositionIdsError$1 as MissingPositionIdsError, NoLoanPositionsError, OracleRateLimitedError$1 as OracleRateLimitedError, PanopticError, ProviderLagError$1 as ProviderLagError, STRIKE_CONVERSION_FACTOR, SafeModeError$1 as SafeModeError, StaleDataError$1 as StaleDataError, SwapTokenMismatchError$1 as SwapTokenMismatchError, SyncTimeoutError$1 as SyncTimeoutError, TOKEN_ID_BITS$1 as TOKEN_ID_BITS, UnhealthyPoolError$1 as UnhealthyPoolError, collateralTrackerV2Abi, createTxResult, decodeLeftRightUnsigned$1 as decodeLeftRightUnsigned, getBlockMeta$1 as getBlockMeta, getPool, getPoolMetadata, getPositions$1 as getPositions, panopticErrorsAbi, panopticFactoryV3Abi, panopticFactoryV4Abi, panopticPoolV2Abi, parsePanopticError$1 as parsePanopticError, submitWrite } from "./position-
|
|
1
|
+
import { BatchValidationError$1 as BatchValidationError, DEFAULT_VEGOID$1 as DEFAULT_VEGOID, InputListFailError$1 as InputListFailError, InvalidTickLimitsError, InvalidTokenIdParameterError$1 as InvalidTokenIdParameterError, LEG_BITS$1 as LEG_BITS, LEG_LIMITS$1 as LEG_LIMITS, LEG_MASKS$1 as LEG_MASKS, LoanSlotExhaustedError$1 as LoanSlotExhaustedError, MaxRetriesExceededError$1 as MaxRetriesExceededError, MissingPositionIdsError$1 as MissingPositionIdsError, NoLoanPositionsError, OracleRateLimitedError$1 as OracleRateLimitedError, PanopticError, ProviderLagError$1 as ProviderLagError, STRIKE_CONVERSION_FACTOR, SafeModeError$1 as SafeModeError, StaleDataError$1 as StaleDataError, SwapTokenMismatchError$1 as SwapTokenMismatchError, SyncTimeoutError$1 as SyncTimeoutError, TOKEN_ID_BITS$1 as TOKEN_ID_BITS, UnhealthyPoolError$1 as UnhealthyPoolError, collateralTrackerV2Abi, createTxResult, decodeLeftRightUnsigned$1 as decodeLeftRightUnsigned, getBlockMeta$1 as getBlockMeta, getPool, getPoolMetadata, getPositions$1 as getPositions, panopticErrorsAbi, panopticFactoryV3Abi, panopticFactoryV4Abi, panopticPoolV2Abi, parsePanopticError$1 as parsePanopticError, submitWrite } from "./position-ClU7GrTa.js";
|
|
2
2
|
import { REORG_DEPTH, SCHEMA_VERSION, STORAGE_PREFIX, calculatePositionGreeks, tickLimits } from "./greeks-GysWXct-.js";
|
|
3
3
|
import { decodeFunctionData, decodeFunctionResult, encodeFunctionData, erc20Abi, getAddress, parseAbi, toFunctionSelector } from "viem";
|
|
4
4
|
|
|
@@ -3073,21 +3073,27 @@ function isInputListFailError(error) {
|
|
|
3073
3073
|
return parsed?.errorName === "InputListFail";
|
|
3074
3074
|
}
|
|
3075
3075
|
/**
|
|
3076
|
-
* Build a unique
|
|
3076
|
+
* Build a unique width=0 tokenId that doesn't collide with existing positions.
|
|
3077
3077
|
* Bumps optionRatio (1-127) and returns adjusted size to maintain equivalent exposure.
|
|
3078
3078
|
*
|
|
3079
|
+
* @param kind - Whether to build a loan (borrow) or a credit (pay-in) leg.
|
|
3079
3080
|
* @param asset - Which token denominates the positionSize (0 or 1).
|
|
3080
3081
|
*/
|
|
3081
|
-
function
|
|
3082
|
+
function buildUniqueWidthZeroLeg(kind, poolId, asset, tokenType, currentTick, tickSpacing, existingPositionIds, positionSize) {
|
|
3083
|
+
const addLeg = (strike$1, optionRatio) => {
|
|
3084
|
+
const builder = createTokenIdBuilder(poolId);
|
|
3085
|
+
const config = {
|
|
3086
|
+
asset,
|
|
3087
|
+
tokenType,
|
|
3088
|
+
strike: strike$1,
|
|
3089
|
+
optionRatio
|
|
3090
|
+
};
|
|
3091
|
+
return (kind === "loan" ? builder.addLoan(config) : builder.addCredit(config)).build();
|
|
3092
|
+
};
|
|
3082
3093
|
const mod = currentTick % tickSpacing;
|
|
3083
3094
|
let strike = currentTick - (mod + tickSpacing) % tickSpacing;
|
|
3084
3095
|
for (let ratio = 1n; ratio <= 127n; ratio++) {
|
|
3085
|
-
const tokenId =
|
|
3086
|
-
asset,
|
|
3087
|
-
tokenType,
|
|
3088
|
-
strike,
|
|
3089
|
-
optionRatio: ratio
|
|
3090
|
-
}).build();
|
|
3096
|
+
const tokenId = addLeg(strike, ratio);
|
|
3091
3097
|
if (!existingPositionIds.includes(tokenId)) {
|
|
3092
3098
|
const adjustedSize = positionSize / ratio;
|
|
3093
3099
|
if (adjustedSize === 0n || positionSize % ratio !== 0n) continue;
|
|
@@ -3100,11 +3106,7 @@ function buildUniqueLoan(poolId, asset, tokenType, currentTick, tickSpacing, exi
|
|
|
3100
3106
|
const mod2 = currentTick % tickSpacing;
|
|
3101
3107
|
strike = currentTick - (mod2 + tickSpacing) % tickSpacing + tickSpacing;
|
|
3102
3108
|
for (let i = 0; i < 100; i++) {
|
|
3103
|
-
const tokenId =
|
|
3104
|
-
asset,
|
|
3105
|
-
tokenType,
|
|
3106
|
-
strike
|
|
3107
|
-
}).build();
|
|
3109
|
+
const tokenId = addLeg(strike);
|
|
3108
3110
|
if (!existingPositionIds.includes(tokenId)) return {
|
|
3109
3111
|
tokenId,
|
|
3110
3112
|
adjustedSize: positionSize
|
|
@@ -3113,14 +3115,36 @@ function buildUniqueLoan(poolId, asset, tokenType, currentTick, tickSpacing, exi
|
|
|
3113
3115
|
}
|
|
3114
3116
|
throw new LoanSlotExhaustedError();
|
|
3115
3117
|
}
|
|
3118
|
+
/**
|
|
3119
|
+
* Build a unique loan (borrow) tokenId that doesn't collide with existing positions.
|
|
3120
|
+
*
|
|
3121
|
+
* @param asset - Which token denominates the positionSize (0 or 1).
|
|
3122
|
+
*/
|
|
3123
|
+
function buildUniqueLoan(poolId, asset, tokenType, currentTick, tickSpacing, existingPositionIds, positionSize) {
|
|
3124
|
+
return buildUniqueWidthZeroLeg("loan", poolId, asset, tokenType, currentTick, tickSpacing, existingPositionIds, positionSize);
|
|
3125
|
+
}
|
|
3126
|
+
/**
|
|
3127
|
+
* Build a unique credit (pay-in) tokenId that doesn't collide with existing positions.
|
|
3128
|
+
*
|
|
3129
|
+
* Unlike a loan, a credit never borrows from the pool: it requires **zero** buying
|
|
3130
|
+
* power, leaves `s_assetsInAMM` (and therefore utilization and the borrow rate)
|
|
3131
|
+
* untouched, and accrues no interest. This is what lets a credit-based swap run
|
|
3132
|
+
* against a fully-utilized collateral tracker.
|
|
3133
|
+
*
|
|
3134
|
+
* @param asset - Which token denominates the positionSize (0 or 1).
|
|
3135
|
+
*/
|
|
3136
|
+
function buildUniqueCredit(poolId, asset, tokenType, currentTick, tickSpacing, existingPositionIds, positionSize) {
|
|
3137
|
+
return buildUniqueWidthZeroLeg("credit", poolId, asset, tokenType, currentTick, tickSpacing, existingPositionIds, positionSize);
|
|
3138
|
+
}
|
|
3116
3139
|
|
|
3117
3140
|
//#endregion
|
|
3118
3141
|
//#region src/panoptic/v2/writes/swap.ts
|
|
3119
3142
|
/**
|
|
3120
3143
|
* Swap tokens using Panoptic's exact-output mechanism.
|
|
3121
3144
|
*
|
|
3122
|
-
* Opens a
|
|
3123
|
-
*
|
|
3145
|
+
* Opens a credit in `tokenOut` with `swapAtMint=true` (paying a swapped amount of
|
|
3146
|
+
* the other token), then burns it with `swapAtMint=false` to receive exactly
|
|
3147
|
+
* `amountOut` of `tokenOut`.
|
|
3124
3148
|
*
|
|
3125
3149
|
* @param params - Swap parameters
|
|
3126
3150
|
* @returns TxResult
|
|
@@ -3148,9 +3172,9 @@ async function swapExactOut(params) {
|
|
|
3148
3172
|
const token0 = pool.collateralTracker0.token;
|
|
3149
3173
|
const token1 = pool.collateralTracker1.token;
|
|
3150
3174
|
const tokenOutIndex = resolveTokenIndex(tokenOut, token0, token1);
|
|
3151
|
-
const tokenType = tokenOutIndex
|
|
3175
|
+
const tokenType = tokenOutIndex;
|
|
3152
3176
|
const { low: tickLimitLow, high: tickLimitHigh } = tickLimits(pool.currentTick, slippageBps);
|
|
3153
|
-
const { tokenId:
|
|
3177
|
+
const { tokenId: creditTokenId, adjustedSize } = buildUniqueCredit(pool.poolId, tokenOutIndex, tokenType, pool.currentTick, pool.tickSpacing, positionIds, amountOut);
|
|
3154
3178
|
const mintTickLimits = [
|
|
3155
3179
|
Number(tickLimitHigh),
|
|
3156
3180
|
Number(tickLimitLow),
|
|
@@ -3161,7 +3185,7 @@ async function swapExactOut(params) {
|
|
|
3161
3185
|
Number(tickLimitHigh),
|
|
3162
3186
|
0
|
|
3163
3187
|
];
|
|
3164
|
-
const positionIdList = [
|
|
3188
|
+
const positionIdList = [creditTokenId, creditTokenId];
|
|
3165
3189
|
const finalPositionIdList = [...positionIds];
|
|
3166
3190
|
const positionSizes = [adjustedSize, 0n];
|
|
3167
3191
|
try {
|
|
@@ -3199,9 +3223,9 @@ async function swapExactOutAndWait(params) {
|
|
|
3199
3223
|
/**
|
|
3200
3224
|
* Swap tokens using Panoptic's exact-input mechanism.
|
|
3201
3225
|
*
|
|
3202
|
-
* Opens a
|
|
3203
|
-
* then burns with `swapAtMint=true`
|
|
3204
|
-
* The user spends exactly `amountIn` of `tokenIn`.
|
|
3226
|
+
* Opens a credit in `tokenIn` with `swapAtMint=false` (paying exactly `amountIn`),
|
|
3227
|
+
* then burns it with `swapAtMint=true` to receive the swapped amount of the other
|
|
3228
|
+
* token. The user spends exactly `amountIn` of `tokenIn`.
|
|
3205
3229
|
*
|
|
3206
3230
|
* @param params - Swap parameters
|
|
3207
3231
|
* @returns TxResult
|
|
@@ -3231,7 +3255,7 @@ async function swapExactIn(params) {
|
|
|
3231
3255
|
const tokenInIndex = resolveTokenIndex(tokenIn, token0, token1);
|
|
3232
3256
|
const tokenType = tokenInIndex;
|
|
3233
3257
|
const { low: tickLimitLow, high: tickLimitHigh } = tickLimits(pool.currentTick, slippageBps);
|
|
3234
|
-
const { tokenId:
|
|
3258
|
+
const { tokenId: creditTokenId, adjustedSize } = buildUniqueCredit(pool.poolId, tokenInIndex, tokenType, pool.currentTick, pool.tickSpacing, positionIds, amountIn);
|
|
3235
3259
|
const mintTickLimits = [
|
|
3236
3260
|
Number(tickLimitLow),
|
|
3237
3261
|
Number(tickLimitHigh),
|
|
@@ -3242,7 +3266,7 @@ async function swapExactIn(params) {
|
|
|
3242
3266
|
Number(tickLimitLow),
|
|
3243
3267
|
0
|
|
3244
3268
|
];
|
|
3245
|
-
const positionIdList = [
|
|
3269
|
+
const positionIdList = [creditTokenId, creditTokenId];
|
|
3246
3270
|
const finalPositionIdList = [...positionIds];
|
|
3247
3271
|
const positionSizes = [adjustedSize, 0n];
|
|
3248
3272
|
try {
|
|
@@ -4548,5 +4572,5 @@ async function smartRepayAndWait(params) {
|
|
|
4548
4572
|
}
|
|
4549
4573
|
|
|
4550
4574
|
//#endregion
|
|
4551
|
-
export { addLegToTokenId as addLegToTokenId$1, approve as approve$1, approveAndWait as approveAndWait$1, approvePool as approvePool$1, assertCanBurn as assertCanBurn$1, assertCanForceExercise as assertCanForceExercise$1, assertCanLiquidate as assertCanLiquidate$1, assertCanMint as assertCanMint$1, assertFresh as assertFresh$1, assertHealthy as assertHealthy$1, assertTradeable as assertTradeable$1, borrow as borrow$1, borrowAndWait as borrowAndWait$1, buildBatchDispatchArgs as buildBatchDispatchArgs$1, buildOpenPositionCalldata as buildOpenPositionCalldata$1, buildUniqueLoan as buildUniqueLoan$1, calculateResyncBlock as calculateResyncBlock$1, cancelTransaction as cancelTransaction$1, checkApproval as checkApproval$1, clearCheckpoint as clearCheckpoint$1, clearTrackedPositions as clearTrackedPositions$1, closePosition as closePosition$1, closePositionAndWait as closePositionAndWait$1, countLegs as countLegs$1, createFileStorage as createFileStorage$1, createMemoryStorage as createMemoryStorage$1, createNonceManager as createNonceManager$1, createTokenIdBuilder as createTokenIdBuilder$1, decodeAllDispatchCalldata as decodeAllDispatchCalldata$1, decodeAllLegs as decodeAllLegs$1, decodeDispatchCalldata as decodeDispatchCalldata$1, decodeLeg as decodeLeg$1, decodePoolId as decodePoolId$1, decodeTickSpacing as decodeTickSpacing$2, decodeTokenId as decodeTokenId$1, decodeVegoid as decodeVegoid$1, deployNewPool as deployNewPool$1, deployNewPoolAndWait as deployNewPoolAndWait$1, deposit as deposit$1, depositAndWait as depositAndWait$1, detectReorg as detectReorg$1, dispatch as dispatch$1, dispatchAndWait as dispatchAndWait$1, encodeLeg as encodeLeg$1, encodePoolId as encodePoolId$1, encodeV4PoolId as encodeV4PoolId$1, executeBatchDispatch as executeBatchDispatch$1, executeBatchDispatchAndWait as executeBatchDispatchAndWait$1, forceExercise as forceExercise$1, forceExerciseAndWait as forceExerciseAndWait$1, getAssetIndex as getAssetIndex$1, getClosedPositionsKey as getClosedPositionsKey$1, getOpenPositionIds as getOpenPositionIds$1, getPendingPositionsKey as getPendingPositionsKey$1, getPoolMetaKey as getPoolMetaKey$1, getPoolPrefix as getPoolPrefix$1, getPositionMetaKey as getPositionMetaKey$1, getPositionsKey as getPositionsKey$1, getSchemaVersionKey as getSchemaVersionKey$1, getSyncCheckpointKey as getSyncCheckpointKey$1, getTrackedChunksKey as getTrackedChunksKey$1, getTrackedPositionIds as getTrackedPositionIds$1, hasLoanOrCredit as hasLoanOrCredit$1, hasLongLeg as hasLongLeg$1, isCredit as isCredit$1, isCreditLeg as isCreditLeg$1, isGasError as isGasError$1, isInputListFailError as isInputListFailError$1, isLoan as isLoan$1, isLoanLeg as isLoanLeg$1, isNonceError as isNonceError$1, isPositionTracked as isPositionTracked$1, isRetryableRpcError as isRetryableRpcError$1, isShortOnly as isShortOnly$1, isSpread as isSpread$1, jsonSerializer as jsonSerializer$1, liquidate as liquidate$1, liquidateAndWait as liquidateAndWait$1, loadCheckpoint as loadCheckpoint$1, mint as mint$1, mintAndWait as mintAndWait$1, openPosition as openPosition$1, openPositionAndWait as openPositionAndWait$1, pokeOracle as pokeOracle$1, pokeOracleAndWait as pokeOracleAndWait$1, previewBorrow as previewBorrow$1, previewUnwrap as previewUnwrap$1, previewWrap as previewWrap$1, publicBroadcaster as publicBroadcaster$1, recoverSnapshot as recoverSnapshot$1, recoverSnapshotFromTx as recoverSnapshotFromTx$1, redeem as redeem$1, redeemAndWait as redeemAndWait$1, repay as repay$1, repayAndWait as repayAndWait$1, resolveTokenIndex as resolveTokenIndex$1, rollPosition as rollPosition$1, rollPositionAndWait as rollPositionAndWait$1, saveCheckpoint as saveCheckpoint$1, selectDispatchForAccount as selectDispatchForAccount$1, settleAccumulatedPremia as settleAccumulatedPremia$1, settleAccumulatedPremiaAndWait as settleAccumulatedPremiaAndWait$1, simulateOpenPosition as simulateOpenPosition$1, simulateWithTokenFlow, smartRepay as smartRepay$1, smartRepayAndWait as smartRepayAndWait$1, speedUpTransaction as speedUpTransaction$1, supply as supply$1, supplyAndWait as supplyAndWait$1, swapExactIn as swapExactIn$1, swapExactInAndWait as swapExactInAndWait$1, swapExactOut as swapExactOut$1, swapExactOutAndWait as swapExactOutAndWait$1, syncPositions as syncPositions$1, unsupply as unsupply$1, unsupplyAndWait as unsupplyAndWait$1, unwrapWeth as unwrapWeth$1, unwrapWethAndWait as unwrapWethAndWait$1, unwrapXstock as unwrapXstock$1, unwrapXstockAndWait as unwrapXstockAndWait$1, validateBatch as validateBatch$1, validatePoolId as validatePoolId$1, verifyBlockContinuity as verifyBlockContinuity$1, wethWrapAbi as wethWrapAbi$1, withdraw as withdraw$1, withdrawAndWait as withdrawAndWait$1, withdrawWithPositions as withdrawWithPositions$1, withdrawWithPositionsAndWait as withdrawWithPositionsAndWait$1, wrapEth as wrapEth$1, wrapEthAndWait as wrapEthAndWait$1, wrapXstock as wrapXstock$1, wrapXstockAndWait as wrapXstockAndWait$1, xstockWrapperAbi as xstockWrapperAbi$1 };
|
|
4552
|
-
//# sourceMappingURL=writes-
|
|
4575
|
+
export { addLegToTokenId as addLegToTokenId$1, approve as approve$1, approveAndWait as approveAndWait$1, approvePool as approvePool$1, assertCanBurn as assertCanBurn$1, assertCanForceExercise as assertCanForceExercise$1, assertCanLiquidate as assertCanLiquidate$1, assertCanMint as assertCanMint$1, assertFresh as assertFresh$1, assertHealthy as assertHealthy$1, assertTradeable as assertTradeable$1, borrow as borrow$1, borrowAndWait as borrowAndWait$1, buildBatchDispatchArgs as buildBatchDispatchArgs$1, buildOpenPositionCalldata as buildOpenPositionCalldata$1, buildUniqueCredit as buildUniqueCredit$1, buildUniqueLoan as buildUniqueLoan$1, buildUniqueWidthZeroLeg as buildUniqueWidthZeroLeg$1, calculateResyncBlock as calculateResyncBlock$1, cancelTransaction as cancelTransaction$1, checkApproval as checkApproval$1, clearCheckpoint as clearCheckpoint$1, clearTrackedPositions as clearTrackedPositions$1, closePosition as closePosition$1, closePositionAndWait as closePositionAndWait$1, countLegs as countLegs$1, createFileStorage as createFileStorage$1, createMemoryStorage as createMemoryStorage$1, createNonceManager as createNonceManager$1, createTokenIdBuilder as createTokenIdBuilder$1, decodeAllDispatchCalldata as decodeAllDispatchCalldata$1, decodeAllLegs as decodeAllLegs$1, decodeDispatchCalldata as decodeDispatchCalldata$1, decodeLeg as decodeLeg$1, decodePoolId as decodePoolId$1, decodeTickSpacing as decodeTickSpacing$2, decodeTokenId as decodeTokenId$1, decodeVegoid as decodeVegoid$1, deployNewPool as deployNewPool$1, deployNewPoolAndWait as deployNewPoolAndWait$1, deposit as deposit$1, depositAndWait as depositAndWait$1, detectReorg as detectReorg$1, dispatch as dispatch$1, dispatchAndWait as dispatchAndWait$1, encodeLeg as encodeLeg$1, encodePoolId as encodePoolId$1, encodeV4PoolId as encodeV4PoolId$1, executeBatchDispatch as executeBatchDispatch$1, executeBatchDispatchAndWait as executeBatchDispatchAndWait$1, forceExercise as forceExercise$1, forceExerciseAndWait as forceExerciseAndWait$1, getAssetIndex as getAssetIndex$1, getClosedPositionsKey as getClosedPositionsKey$1, getOpenPositionIds as getOpenPositionIds$1, getPendingPositionsKey as getPendingPositionsKey$1, getPoolMetaKey as getPoolMetaKey$1, getPoolPrefix as getPoolPrefix$1, getPositionMetaKey as getPositionMetaKey$1, getPositionsKey as getPositionsKey$1, getSchemaVersionKey as getSchemaVersionKey$1, getSyncCheckpointKey as getSyncCheckpointKey$1, getTrackedChunksKey as getTrackedChunksKey$1, getTrackedPositionIds as getTrackedPositionIds$1, hasLoanOrCredit as hasLoanOrCredit$1, hasLongLeg as hasLongLeg$1, isCredit as isCredit$1, isCreditLeg as isCreditLeg$1, isGasError as isGasError$1, isInputListFailError as isInputListFailError$1, isLoan as isLoan$1, isLoanLeg as isLoanLeg$1, isNonceError as isNonceError$1, isPositionTracked as isPositionTracked$1, isRetryableRpcError as isRetryableRpcError$1, isShortOnly as isShortOnly$1, isSpread as isSpread$1, jsonSerializer as jsonSerializer$1, liquidate as liquidate$1, liquidateAndWait as liquidateAndWait$1, loadCheckpoint as loadCheckpoint$1, mint as mint$1, mintAndWait as mintAndWait$1, openPosition as openPosition$1, openPositionAndWait as openPositionAndWait$1, pokeOracle as pokeOracle$1, pokeOracleAndWait as pokeOracleAndWait$1, previewBorrow as previewBorrow$1, previewUnwrap as previewUnwrap$1, previewWrap as previewWrap$1, publicBroadcaster as publicBroadcaster$1, recoverSnapshot as recoverSnapshot$1, recoverSnapshotFromTx as recoverSnapshotFromTx$1, redeem as redeem$1, redeemAndWait as redeemAndWait$1, repay as repay$1, repayAndWait as repayAndWait$1, resolveTokenIndex as resolveTokenIndex$1, rollPosition as rollPosition$1, rollPositionAndWait as rollPositionAndWait$1, saveCheckpoint as saveCheckpoint$1, selectDispatchForAccount as selectDispatchForAccount$1, settleAccumulatedPremia as settleAccumulatedPremia$1, settleAccumulatedPremiaAndWait as settleAccumulatedPremiaAndWait$1, simulateOpenPosition as simulateOpenPosition$1, simulateWithTokenFlow, smartRepay as smartRepay$1, smartRepayAndWait as smartRepayAndWait$1, speedUpTransaction as speedUpTransaction$1, supply as supply$1, supplyAndWait as supplyAndWait$1, swapExactIn as swapExactIn$1, swapExactInAndWait as swapExactInAndWait$1, swapExactOut as swapExactOut$1, swapExactOutAndWait as swapExactOutAndWait$1, syncPositions as syncPositions$1, unsupply as unsupply$1, unsupplyAndWait as unsupplyAndWait$1, unwrapWeth as unwrapWeth$1, unwrapWethAndWait as unwrapWethAndWait$1, unwrapXstock as unwrapXstock$1, unwrapXstockAndWait as unwrapXstockAndWait$1, validateBatch as validateBatch$1, validatePoolId as validatePoolId$1, verifyBlockContinuity as verifyBlockContinuity$1, wethWrapAbi as wethWrapAbi$1, withdraw as withdraw$1, withdrawAndWait as withdrawAndWait$1, withdrawWithPositions as withdrawWithPositions$1, withdrawWithPositionsAndWait as withdrawWithPositionsAndWait$1, wrapEth as wrapEth$1, wrapEthAndWait as wrapEthAndWait$1, wrapXstock as wrapXstock$1, wrapXstockAndWait as wrapXstockAndWait$1, xstockWrapperAbi as xstockWrapperAbi$1 };
|
|
4576
|
+
//# sourceMappingURL=writes-DQLGdkJ5.js.map
|