@panoptic-eng/sdk 1.0.60 → 1.0.62
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/{chainDeployments-CmDzAmZ3.js → chainDeployments-BhXMBZ4B.js} +50 -12
- package/dist/cow/index.js +1207 -484
- package/dist/cow/index.js.map +1 -1
- package/dist/{cow-CHb343la.js → cow-DTi3GjQz.js} +1 -1
- package/dist/deployments.d.ts +9 -1
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +50 -12
- package/dist/deployments.js.map +1 -1
- package/dist/index.d.ts +587 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +577 -357
- package/dist/index.js.map +1 -1
- package/dist/{irm-BIaLQ-0n.js → irm-BDlcUNgJ.js} +2 -2
- package/dist/panoptic/v2/index.d.ts +169 -3
- package/dist/panoptic/v2/index.d.ts.map +1 -1
- package/dist/panoptic/v2/index.js +658 -107
- package/dist/panoptic/v2/index.js.map +1 -1
- package/dist/panoptic/v2/react-public.d.ts +177 -3
- package/dist/panoptic/v2/react-public.d.ts.map +1 -1
- package/dist/panoptic/v2/react-public.js +674 -113
- package/dist/panoptic/v2/react-public.js.map +1 -1
- package/dist/{rates-COAJpKRd.js → rates-BwZnK0tG.js} +498 -482
- package/dist/{router-B2fj4_X7.js → router-Y1OxL9Nt.js} +2 -2
- package/dist/{router-DliBF9FK.js → router-jMP7fVno.js} +2 -2
- package/dist/{transactionFees-CNbjAigT.js → transactionFees-aXQlx-lq.js} +11 -6
- package/dist/uniswap/index.js +724 -1
- package/dist/uniswap/index.js.map +1 -1
- package/dist/{v2-C3n8n1_i.js → v2-B27ILZl4.js} +518 -202
- package/dist/vault-transaction-fees.d.ts +1 -0
- package/dist/vault-transaction-fees.d.ts.map +1 -1
- package/dist/vault-transaction-fees.js +59 -16
- package/dist/vault-transaction-fees.js.map +1 -1
- package/dist/{writes-BTkqc_rn.js → writes-B8NGXzUG.js} +219 -38
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchValidationError, DEFAULT_VEGOID, InputListFailError, InvalidTickLimitsError, InvalidTokenIdParameterError, LEG_BITS, LEG_LIMITS, LEG_MASKS, LoanSlotExhaustedError, MaxRetriesExceededError, MissingPositionIdsError, NoLoanPositionsError, OracleRateLimitedError, PanopticError, PanopticValidationError, PositionSnapshotNotFoundError, ProviderLagError, STANDARD_TICK_WIDTHS, STRIKE_CONVERSION_FACTOR, SwapTokenMismatchError, SyncTimeoutError, TOKEN_ID_BITS, UnsafePremiumSettlementError, collateralTrackerV2Abi, createTxResult, decodeLeftRightUnsigned, decodeOracleTiming, decodePosition, decodeTickSpacing, formatTokenAmount, getBlockMeta, getOpenPositionIds, getPool, getPoolMetaKey, getPoolMetadata, getPositionMetaKey, getPositions, getPositionsKey, getSyncCheckpointKey, getTrackedPositionIds, jsonSerializer, oracleEpochAt, panopticErrorsAbi, panopticFactoryV3Abi, panopticFactoryV4Abi, panopticPoolV2Abi, parsePanopticError, parseTokenAmount, submitWrite } from "./rates-
|
|
1
|
+
import { BatchValidationError, DEFAULT_VEGOID, InputListFailError, InvalidTickLimitsError, InvalidTokenIdParameterError, LEG_BITS, LEG_LIMITS, LEG_MASKS, LoanSlotExhaustedError, MaxRetriesExceededError, MissingPositionIdsError, NoLoanPositionsError, OracleRateLimitedError, PanopticError, PanopticValidationError, PositionSnapshotNotFoundError, ProviderLagError, STANDARD_TICK_WIDTHS, STRIKE_CONVERSION_FACTOR, SwapTokenMismatchError, SyncTimeoutError, TOKEN_ID_BITS, UnsafePremiumSettlementError, collateralTrackerV2Abi, createTxResult, decodeLeftRightUnsigned, decodeOracleTiming, decodePosition, decodeTickSpacing$1 as decodeTickSpacing, formatTokenAmount, getBlockMeta, getOpenPositionIds, getPool, getPoolMetaKey, getPoolMetadata, getPositionMetaKey, getPositions, getPositionsKey, getSyncCheckpointKey, getTrackedPositionIds, jsonSerializer, oracleEpochAt, panopticErrorsAbi, panopticFactoryV3Abi, panopticFactoryV4Abi, panopticPoolV2Abi, parsePanopticError, parseTokenAmount, submitWrite } from "./rates-BwZnK0tG.js";
|
|
2
2
|
import { MAX_TICK, MIN_TICK, REORG_DEPTH, calculatePositionGreeks, priceToTick, roundToTickSpacing, sqrtPriceX96ToTick, tickLimits, tickToPrice, tickToPriceDecimalScaled, tickToSqrtPriceX96 } from "./greeks-CNi1-cnp.js";
|
|
3
3
|
import { decodeFunctionResult, encodeFunctionData, erc20Abi, getAbiItem } from "viem";
|
|
4
4
|
|
|
@@ -5057,6 +5057,159 @@ async function unwrapWethAndWait(params) {
|
|
|
5057
5057
|
return result.wait();
|
|
5058
5058
|
}
|
|
5059
5059
|
|
|
5060
|
+
//#endregion
|
|
5061
|
+
//#region src/panoptic/v2/simulations/simulateDispatch.ts
|
|
5062
|
+
/**
|
|
5063
|
+
* Simulate a raw dispatch operation.
|
|
5064
|
+
*
|
|
5065
|
+
* Uses PanopticPool.multicall with getAssetsOf-dispatch-getAssetsOf pattern
|
|
5066
|
+
* to measure exact collateral asset movements.
|
|
5067
|
+
*
|
|
5068
|
+
* @param params - Simulation parameters
|
|
5069
|
+
* @returns Simulation result with dispatch data or error
|
|
5070
|
+
*/
|
|
5071
|
+
async function simulateDispatch(params) {
|
|
5072
|
+
const { client, poolAddress, account, positionIdList, finalPositionIdList, positionSizes, tickAndSpreadLimits, usePremiaAsCollateral = false, builderCode = 0n, blockNumber, existingPositionIdList, measurePremia = false } = params;
|
|
5073
|
+
const targetBlockNumber = blockNumber ?? await client.getBlockNumber();
|
|
5074
|
+
const metaPromise = getBlockMeta({
|
|
5075
|
+
client,
|
|
5076
|
+
blockNumber: targetBlockNumber
|
|
5077
|
+
});
|
|
5078
|
+
try {
|
|
5079
|
+
const callData = encodeFunctionData({
|
|
5080
|
+
abi: panopticPoolV2Abi,
|
|
5081
|
+
functionName: "dispatch",
|
|
5082
|
+
args: [
|
|
5083
|
+
positionIdList,
|
|
5084
|
+
finalPositionIdList,
|
|
5085
|
+
positionSizes,
|
|
5086
|
+
tickAndSpreadLimits.map((t) => [
|
|
5087
|
+
Number(t[0]),
|
|
5088
|
+
Number(t[1]),
|
|
5089
|
+
Number(t[2])
|
|
5090
|
+
]),
|
|
5091
|
+
usePremiaAsCollateral,
|
|
5092
|
+
builderCode
|
|
5093
|
+
]
|
|
5094
|
+
});
|
|
5095
|
+
const preFullPositionsCallData = existingPositionIdList !== void 0 ? encodeFunctionData({
|
|
5096
|
+
abi: panopticPoolV2Abi,
|
|
5097
|
+
functionName: "getFullPositionsData",
|
|
5098
|
+
args: [
|
|
5099
|
+
account,
|
|
5100
|
+
false,
|
|
5101
|
+
existingPositionIdList
|
|
5102
|
+
]
|
|
5103
|
+
}) : void 0;
|
|
5104
|
+
const prePremiaCallData = measurePremia && existingPositionIdList !== void 0 ? encodeFunctionData({
|
|
5105
|
+
abi: panopticPoolV2Abi,
|
|
5106
|
+
functionName: "getFullPositionsData",
|
|
5107
|
+
args: [
|
|
5108
|
+
account,
|
|
5109
|
+
true,
|
|
5110
|
+
existingPositionIdList
|
|
5111
|
+
]
|
|
5112
|
+
}) : void 0;
|
|
5113
|
+
const postFullPositionsCallData = encodeFunctionData({
|
|
5114
|
+
abi: panopticPoolV2Abi,
|
|
5115
|
+
functionName: "getFullPositionsData",
|
|
5116
|
+
args: [
|
|
5117
|
+
account,
|
|
5118
|
+
false,
|
|
5119
|
+
finalPositionIdList
|
|
5120
|
+
]
|
|
5121
|
+
});
|
|
5122
|
+
const postPremiaCallData = measurePremia ? encodeFunctionData({
|
|
5123
|
+
abi: panopticPoolV2Abi,
|
|
5124
|
+
functionName: "getFullPositionsData",
|
|
5125
|
+
args: [
|
|
5126
|
+
account,
|
|
5127
|
+
true,
|
|
5128
|
+
finalPositionIdList
|
|
5129
|
+
]
|
|
5130
|
+
}) : void 0;
|
|
5131
|
+
const flowResult = await simulateWithTokenFlow({
|
|
5132
|
+
client,
|
|
5133
|
+
poolAddress,
|
|
5134
|
+
user: account,
|
|
5135
|
+
callData: params.settleSequence?.targets.length ? encodeFunctionData({
|
|
5136
|
+
abi: panopticPoolV2Abi,
|
|
5137
|
+
functionName: "multicall",
|
|
5138
|
+
args: [[...buildSettleSequenceCalls(params.settleSequence), callData]]
|
|
5139
|
+
}) : callData,
|
|
5140
|
+
blockNumber: targetBlockNumber,
|
|
5141
|
+
preCallData: preFullPositionsCallData ? [preFullPositionsCallData, ...prePremiaCallData ? [prePremiaCallData] : []] : void 0,
|
|
5142
|
+
postCallData: [postFullPositionsCallData, ...postPremiaCallData ? [postPremiaCallData] : []]
|
|
5143
|
+
});
|
|
5144
|
+
if (!flowResult.success || !flowResult.tokenFlow) throw flowResult.rawError ?? new PanopticError(flowResult.error || "Token flow simulation failed");
|
|
5145
|
+
const tokenFlow = flowResult.tokenFlow;
|
|
5146
|
+
const preSnapshot = existingPositionIdList ?? [];
|
|
5147
|
+
const positionsCreated = finalPositionIdList.filter((id) => !preSnapshot.includes(id));
|
|
5148
|
+
const positionsClosed = preSnapshot.filter((id) => !finalPositionIdList.includes(id));
|
|
5149
|
+
const decodeFullPositions = (data$1) => {
|
|
5150
|
+
if (!data$1) return null;
|
|
5151
|
+
try {
|
|
5152
|
+
const decoded = decodeFunctionResult({
|
|
5153
|
+
abi: panopticPoolV2Abi,
|
|
5154
|
+
functionName: "getFullPositionsData",
|
|
5155
|
+
data: data$1
|
|
5156
|
+
});
|
|
5157
|
+
const shortPremium = decodeLeftRightUnsigned(decoded[0]);
|
|
5158
|
+
const longPremium = decodeLeftRightUnsigned(decoded[1]);
|
|
5159
|
+
const reqs = decoded[3];
|
|
5160
|
+
let collateralRequirements0 = 0n;
|
|
5161
|
+
let collateralRequirements1 = 0n;
|
|
5162
|
+
for (const packed of reqs) {
|
|
5163
|
+
const r = decodeLeftRightUnsigned(packed);
|
|
5164
|
+
collateralRequirements0 += r.right;
|
|
5165
|
+
collateralRequirements1 += r.left;
|
|
5166
|
+
}
|
|
5167
|
+
return {
|
|
5168
|
+
collateralRequirements0,
|
|
5169
|
+
collateralRequirements1,
|
|
5170
|
+
netPremia0: shortPremium.right - longPremium.right,
|
|
5171
|
+
netPremia1: shortPremium.left - longPremium.left
|
|
5172
|
+
};
|
|
5173
|
+
} catch {
|
|
5174
|
+
return null;
|
|
5175
|
+
}
|
|
5176
|
+
};
|
|
5177
|
+
const prePositions = decodeFullPositions(flowResult.preCallResults?.[0]);
|
|
5178
|
+
const postPositions = decodeFullPositions(flowResult.postCallResults?.[0]);
|
|
5179
|
+
const prePremia = decodeFullPositions(flowResult.preCallResults?.[1]);
|
|
5180
|
+
const postPremia = decodeFullPositions(flowResult.postCallResults?.[1]);
|
|
5181
|
+
const _meta = await metaPromise;
|
|
5182
|
+
const data = {
|
|
5183
|
+
netAmount0: tokenFlow.delta0,
|
|
5184
|
+
netAmount1: tokenFlow.delta1,
|
|
5185
|
+
premiaReceived0: prePremia !== null && postPremia !== null ? prePremia.netPremia0 - postPremia.netPremia0 : null,
|
|
5186
|
+
premiaReceived1: prePremia !== null && postPremia !== null ? prePremia.netPremia1 - postPremia.netPremia1 : null,
|
|
5187
|
+
positionsCreated,
|
|
5188
|
+
positionsClosed,
|
|
5189
|
+
postCollateral0: tokenFlow.balanceAfter0,
|
|
5190
|
+
postCollateral1: tokenFlow.balanceAfter1,
|
|
5191
|
+
preMarginExcess0: prePositions === null ? null : tokenFlow.balanceBefore0 - prePositions.collateralRequirements0,
|
|
5192
|
+
preMarginExcess1: prePositions === null ? null : tokenFlow.balanceBefore1 - prePositions.collateralRequirements1,
|
|
5193
|
+
postMarginExcess0: postPositions === null ? null : tokenFlow.balanceAfter0 - postPositions.collateralRequirements0,
|
|
5194
|
+
postMarginExcess1: postPositions === null ? null : tokenFlow.balanceAfter1 - postPositions.collateralRequirements1
|
|
5195
|
+
};
|
|
5196
|
+
return {
|
|
5197
|
+
success: true,
|
|
5198
|
+
data,
|
|
5199
|
+
gasEstimate: flowResult.gasEstimate,
|
|
5200
|
+
tokenFlow,
|
|
5201
|
+
_meta
|
|
5202
|
+
};
|
|
5203
|
+
} catch (error) {
|
|
5204
|
+
const _meta = await metaPromise;
|
|
5205
|
+
return {
|
|
5206
|
+
success: false,
|
|
5207
|
+
error: error instanceof PanopticError ? error : new PanopticError(error instanceof Error ? error.message : "Simulation failed", error instanceof Error ? error : void 0),
|
|
5208
|
+
_meta
|
|
5209
|
+
};
|
|
5210
|
+
}
|
|
5211
|
+
}
|
|
5212
|
+
|
|
5060
5213
|
//#endregion
|
|
5061
5214
|
//#region src/panoptic/v2/simulations/simulateOpenPosition.ts
|
|
5062
5215
|
/**
|
|
@@ -5651,6 +5804,62 @@ async function getLoanPositionsForToken(client, poolAddress, account, existingPo
|
|
|
5651
5804
|
};
|
|
5652
5805
|
});
|
|
5653
5806
|
}
|
|
5807
|
+
async function buildRepayDispatch(params) {
|
|
5808
|
+
const { client, account, poolAddress, chainId, token, amount, slippageBps, existingPositionIds, builderCode = 0n } = params;
|
|
5809
|
+
if (amount <= 0n) throw new Error("Repayment amount must be positive");
|
|
5810
|
+
const pool = await getPool({
|
|
5811
|
+
client,
|
|
5812
|
+
poolAddress,
|
|
5813
|
+
chainId
|
|
5814
|
+
});
|
|
5815
|
+
const tokenIndex = resolveTokenIndex(token, pool.collateralTracker0.token, pool.collateralTracker1.token);
|
|
5816
|
+
const loans = await getLoanPositionsForToken(client, poolAddress, account, existingPositionIds, tokenIndex);
|
|
5817
|
+
if (loans.length === 0) throw new NoLoanPositionsError(token);
|
|
5818
|
+
const totalDebt = loans.reduce((sum, l) => sum + l.tokenAmount, 0n);
|
|
5819
|
+
const loanIds = loans.map((l) => l.tokenId);
|
|
5820
|
+
const remainder = totalDebt > amount ? totalDebt - amount : 0n;
|
|
5821
|
+
const { low: tickLimitLow, high: tickLimitHigh } = tickLimits(pool.currentTick, slippageBps);
|
|
5822
|
+
const ascendingLimits = [
|
|
5823
|
+
tickLimitLow,
|
|
5824
|
+
tickLimitHigh,
|
|
5825
|
+
0n
|
|
5826
|
+
];
|
|
5827
|
+
const nonLoanIds = existingPositionIds.filter((id) => !loanIds.includes(id));
|
|
5828
|
+
const opsPositionIds = [...loanIds];
|
|
5829
|
+
const opsSizes = loanIds.map(() => 0n);
|
|
5830
|
+
const opsLimits = loanIds.map(() => ascendingLimits);
|
|
5831
|
+
let finalPositionIdList;
|
|
5832
|
+
if (remainder > 0n) {
|
|
5833
|
+
const { tokenId: newLoanId, adjustedSize } = buildUniqueLoan(pool.poolId, tokenIndex, tokenIndex, pool.currentTick, pool.tickSpacing, nonLoanIds, remainder);
|
|
5834
|
+
opsPositionIds.push(newLoanId);
|
|
5835
|
+
opsSizes.push(adjustedSize);
|
|
5836
|
+
opsLimits.push(ascendingLimits);
|
|
5837
|
+
finalPositionIdList = [...nonLoanIds, newLoanId];
|
|
5838
|
+
} else finalPositionIdList = nonLoanIds;
|
|
5839
|
+
return {
|
|
5840
|
+
positionIdList: opsPositionIds,
|
|
5841
|
+
finalPositionIdList,
|
|
5842
|
+
positionSizes: opsSizes,
|
|
5843
|
+
tickAndSpreadLimits: opsLimits,
|
|
5844
|
+
usePremiaAsCollateral: false,
|
|
5845
|
+
builderCode
|
|
5846
|
+
};
|
|
5847
|
+
}
|
|
5848
|
+
/** Preview the same full or partial repayment dispatch used by smartRepay. */
|
|
5849
|
+
async function previewRepay(params) {
|
|
5850
|
+
const dispatch$1 = await buildRepayDispatch(params);
|
|
5851
|
+
const simulation = await simulateDispatch({
|
|
5852
|
+
client: params.client,
|
|
5853
|
+
account: params.account,
|
|
5854
|
+
poolAddress: params.poolAddress,
|
|
5855
|
+
existingPositionIdList: params.existingPositionIds,
|
|
5856
|
+
...dispatch$1
|
|
5857
|
+
});
|
|
5858
|
+
return {
|
|
5859
|
+
dispatch: dispatch$1,
|
|
5860
|
+
simulation
|
|
5861
|
+
};
|
|
5862
|
+
}
|
|
5654
5863
|
/**
|
|
5655
5864
|
* Smart repay: burns all loan positions for a token and optionally re-opens a smaller one.
|
|
5656
5865
|
*
|
|
@@ -5664,37 +5873,9 @@ async function getLoanPositionsForToken(client, poolAddress, account, existingPo
|
|
|
5664
5873
|
* @returns TxResult
|
|
5665
5874
|
*/
|
|
5666
5875
|
async function smartRepay(params) {
|
|
5667
|
-
const { client, walletClient, account, poolAddress,
|
|
5876
|
+
const { client, walletClient, account, poolAddress, txOverrides } = params;
|
|
5668
5877
|
for (let attempt = 0; attempt < MAX_RETRIES; attempt++) {
|
|
5669
|
-
const
|
|
5670
|
-
client,
|
|
5671
|
-
poolAddress,
|
|
5672
|
-
chainId
|
|
5673
|
-
});
|
|
5674
|
-
const tokenIndex = resolveTokenIndex(token, pool.collateralTracker0.token, pool.collateralTracker1.token);
|
|
5675
|
-
const loans = await getLoanPositionsForToken(client, poolAddress, account, existingPositionIds, tokenIndex);
|
|
5676
|
-
if (loans.length === 0) throw new NoLoanPositionsError(token);
|
|
5677
|
-
const totalDebt = loans.reduce((sum, l) => sum + l.tokenAmount, 0n);
|
|
5678
|
-
const loanIds = loans.map((l) => l.tokenId);
|
|
5679
|
-
const remainder = totalDebt > amount ? totalDebt - amount : 0n;
|
|
5680
|
-
const { low: tickLimitLow, high: tickLimitHigh } = tickLimits(pool.currentTick, slippageBps);
|
|
5681
|
-
const ascendingLimits = [
|
|
5682
|
-
Number(tickLimitLow),
|
|
5683
|
-
Number(tickLimitHigh),
|
|
5684
|
-
0
|
|
5685
|
-
];
|
|
5686
|
-
const nonLoanIds = existingPositionIds.filter((id) => !loanIds.includes(id));
|
|
5687
|
-
const opsPositionIds = [...loanIds];
|
|
5688
|
-
const opsSizes = loanIds.map(() => 0n);
|
|
5689
|
-
const opsLimits = loanIds.map(() => ascendingLimits);
|
|
5690
|
-
let finalPositionIdList;
|
|
5691
|
-
if (remainder > 0n) {
|
|
5692
|
-
const { tokenId: newLoanId, adjustedSize } = buildUniqueLoan(pool.poolId, tokenIndex, tokenIndex, pool.currentTick, pool.tickSpacing, nonLoanIds, remainder);
|
|
5693
|
-
opsPositionIds.push(newLoanId);
|
|
5694
|
-
opsSizes.push(adjustedSize);
|
|
5695
|
-
opsLimits.push(ascendingLimits);
|
|
5696
|
-
finalPositionIdList = [...nonLoanIds, newLoanId];
|
|
5697
|
-
} else finalPositionIdList = nonLoanIds;
|
|
5878
|
+
const intent = await buildRepayDispatch(params);
|
|
5698
5879
|
try {
|
|
5699
5880
|
return await submitWrite({
|
|
5700
5881
|
client,
|
|
@@ -5704,12 +5885,12 @@ async function smartRepay(params) {
|
|
|
5704
5885
|
abi: panopticPoolV2Abi,
|
|
5705
5886
|
functionName: "dispatch",
|
|
5706
5887
|
args: [
|
|
5707
|
-
|
|
5708
|
-
finalPositionIdList,
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
builderCode
|
|
5888
|
+
intent.positionIdList,
|
|
5889
|
+
intent.finalPositionIdList,
|
|
5890
|
+
intent.positionSizes,
|
|
5891
|
+
intent.tickAndSpreadLimits.map((limits) => limits.map(Number)),
|
|
5892
|
+
intent.usePremiaAsCollateral,
|
|
5893
|
+
intent.builderCode
|
|
5713
5894
|
],
|
|
5714
5895
|
txOverrides
|
|
5715
5896
|
});
|
|
@@ -5756,4 +5937,4 @@ async function smartRepayAndWait(params) {
|
|
|
5756
5937
|
}
|
|
5757
5938
|
|
|
5758
5939
|
//#endregion
|
|
5759
|
-
export { addLegToTokenId, approve, approveAndWait, approvePool, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateResyncBlock, cancelTransaction, checkApproval, clearCheckpoint, closePosition, closePositionAndWait, countLegs, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllLegs, decodeLeg, decodePoolId, decodeTickSpacing$1, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveUniqueTokenId, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodeV4PoolId, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPoolIdHex, formatRatioPercent, formatTimestamp, formatTimestampLocale, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWei, generateOverlappingTokenIds, getAccountPremia, getAssetIndex, getForfeitablePremium, getPoolDeploymentBlock, getPoolDisplayId, getPoolTokensForSimulation, getPositionsWithPremia, getSimpleLoanTokenIndex, getTokenListId, hasLoanOrCredit, hasLongLeg, isCredit, isCreditLeg, isInputListFailError, isLoan, isLoanLeg, isShortOnly, isSpread, liquidate, liquidateAndWait, loadCheckpoint, mint, mintAndWait, openPosition, openPositionAndWait, orderListForSettle, parseBps, parseTokenListId, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewUnwrap, previewWrap, publicBroadcaster, reconstructFromEvents, redeem, redeemAndWait, repay, repayAndWait, resolveTokenIndex, rollPosition, rollPositionAndWait, saveCheckpoint, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateOpenPosition, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateWithTokenFlow, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|
|
5940
|
+
export { addLegToTokenId, approve, approveAndWait, approvePool, borrow, borrowAndWait, buildBatchDispatchArgs, buildCreditSwapCall, buildOpenPositionCalldata, buildProtectedSettleDispatch, buildProtectedSettlePlan, buildSettleSequenceCalls, buildUniqueCredit, buildUniqueLoan, buildUniqueWidthZeroLeg, calculateResyncBlock, cancelTransaction, checkApproval, clearCheckpoint, closePosition, closePositionAndWait, countLegs, createNonceManager, createPoolFormatters, createTokenIdBuilder, decodeAllLegs, decodeLeg, decodePoolId, decodeTickSpacing$1 as decodeTickSpacing, decodeTokenId, decodeVegoid, deployNewPool, deployNewPoolAndWait, deposit, depositAndWait, deriveUniqueTokenId, detectReorg, dispatch, dispatchAndWait, encodeLeg, encodePoolId, encodeV4PoolId, executeBatchDispatch, executeBatchDispatchAndWait, executeSettleSequence, executeSettleSequenceAndWait, forceExercise, forceExerciseAndWait, formatBlockNumber, formatBps, formatCompact, formatDatetime, formatDuration, formatDurationSeconds, formatFeeTier, formatGas, formatGwei, formatPoolIdHex, formatRatioPercent, formatTimestamp, formatTimestampLocale, formatTokenIdHex, formatTokenIdShort, formatTxHash, formatUtilization, formatWei, generateOverlappingTokenIds, getAccountPremia, getAssetIndex, getForfeitablePremium, getPoolDeploymentBlock, getPoolDisplayId, getPoolTokensForSimulation, getPositionsWithPremia, getSimpleLoanTokenIndex, getTokenListId, hasLoanOrCredit, hasLongLeg, isCredit, isCreditLeg, isInputListFailError, isLoan, isLoanLeg, isShortOnly, isSpread, liquidate, liquidateAndWait, loadCheckpoint, mint, mintAndWait, openPosition, openPositionAndWait, orderListForSettle, parseBps, parseTokenListId, planDeriveStrategy, pokeOracle, pokeOracleAndWait, previewBorrow, previewRepay, previewUnwrap, previewWrap, publicBroadcaster, reconstructFromEvents, redeem, redeemAndWait, repay, repayAndWait, resolveTokenIndex, rollPosition, rollPositionAndWait, saveCheckpoint, settleAccumulatedPremia, settleAccumulatedPremiaAndWait, settlePremiumFrom, settlePremiumFromAndWait, simulateDispatch, simulateOpenPosition, simulateSettle, simulateSettlePremiumBatch, simulateSettlePremiumFrom, simulateSettleSequence, simulateWithTokenFlow, smartRepay, smartRepayAndWait, speedUpTransaction, splitTokenIdByTimescale, supply, supplyAndWait, swapExactIn, swapExactInAndWait, swapExactOut, swapExactOutAndWait, syncPositions, truncateAddress, unsupply, unsupplyAndWait, unwrapWeth, unwrapWethAndWait, unwrapXstock, unwrapXstockAndWait, validateBatch, validatePoolId, verifyBlockContinuity, wethWrapAbi, withdraw, withdrawAndWait, withdrawWithPositions, withdrawWithPositionsAndWait, wrapEth, wrapEthAndWait, wrapXstock, wrapXstockAndWait, xstockWrapperAbi };
|