timelock-sdk 0.0.103 → 0.0.104
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/{client-DfYiZw0g.d.ts → client-BV_X9Rk7.d.ts} +8 -8
- package/dist/{client-uwDDNqle.d.cts → client-DnAemTJq.d.cts} +268 -268
- package/dist/client.cjs +16 -16
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +16 -16
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
|
@@ -34926,15 +34926,15 @@ declare class PerpsOperator {
|
|
|
34926
34926
|
signature: Hex;
|
|
34927
34927
|
};
|
|
34928
34928
|
constructor(baseUrl: string);
|
|
34929
|
-
getOperatorAddr()
|
|
34930
|
-
genAuthMessage(userAddr: Address)
|
|
34931
|
-
validateAuthMessage(authMessage: string, signature: Hex)
|
|
34929
|
+
getOperatorAddr: () => Promise<Address>;
|
|
34930
|
+
genAuthMessage: (userAddr: Address) => Promise<string>;
|
|
34931
|
+
validateAuthMessage: (authMessage: string, signature: Hex) => Promise<{
|
|
34932
34932
|
address: `0x${string}`;
|
|
34933
34933
|
createdAt: number;
|
|
34934
34934
|
validUntil: number;
|
|
34935
34935
|
}>;
|
|
34936
|
-
setAuth(authMessage: string, signature: Hex)
|
|
34937
|
-
getUserPerps(userAddr: Address, marketAddr?: Address, type?:
|
|
34936
|
+
setAuth: (authMessage: string, signature: Hex) => void;
|
|
34937
|
+
getUserPerps: (userAddr: Address, marketAddr?: Address, type?: "active" | "closed", offset?: number, limit?: number) => Promise<{
|
|
34938
34938
|
optionId: bigint;
|
|
34939
34939
|
id: string;
|
|
34940
34940
|
ownerAddr: Address;
|
|
@@ -34943,11 +34943,11 @@ declare class PerpsOperator {
|
|
|
34943
34943
|
expiresAt: number;
|
|
34944
34944
|
closed: boolean;
|
|
34945
34945
|
}[]>;
|
|
34946
|
-
mintPerp(body: MintPerpBody)
|
|
34946
|
+
mintPerp: (body: MintPerpBody) => Promise<{
|
|
34947
34947
|
txHash: string;
|
|
34948
34948
|
optionId: bigint;
|
|
34949
34949
|
}>;
|
|
34950
|
-
exercisePerp(body: ExercisePerpBody)
|
|
34950
|
+
exercisePerp: (body: ExercisePerpBody) => Promise<{
|
|
34951
34951
|
txHash: string;
|
|
34952
34952
|
optionId: bigint;
|
|
34953
34953
|
}>;
|
|
@@ -61933,4 +61933,4 @@ declare const useApproval: () => {
|
|
|
61933
61933
|
};
|
|
61934
61934
|
//#endregion
|
|
61935
61935
|
export { scaleAmount as $, PriceDataPoint as A, OptionTimelineData as B, liquiditiesToAmount1 as C, getUniswapMathLens as Ct, token0ToToken1 as D, roundTickUp as E, useUserOperators as F, useMintOption as G, useExtendOption as H, useOperatorPerms as I, EMPTY_ARRAY as J, useMaxPositionSize as K, usePerpsOperator as L, getCurrentPrice as M, getPriceHistory as N, token1ToToken0 as O, useSetOperatorPerms as P, formatVagueAmount as Q, useClosePerp as R, liquiditiesToAmount0 as S, getTimelockMarket as St, roundTickDown as T, uniswapMathLenses as Tt, useOptionPremium as U, useOptionTimeline as V, useOptionPnl as W, formatCondensed as X, formatAmount as Y, formatUSD as Z, PRICE_PRECISION as _, TimelockMarket as _t, batchGetAmountsFromLiquidity as a, wrapPrice as at, getPriceAtTick as b, getErc20 as bt, useLiquidityBlocks as c, useMarketData as ct, usePriceAtTick as d, useActiveUserOptions as dt, scalePrice as et, UniswapPoolData as f, useClosedUserOptions as ft, getPayoutAtTick as g, TimelockLens as gt, useCurrentPrice as h, useTimelockConfig as ht, useVaultData as i, wrapAmountUnscaled as it, PriceResolution as j, PriceData as k, useBurnLiquidity as l, useExerciseOption as lt, useCurrentTick as m, useCurrentMarket as mt, useLens as n, unscalePrice as nt, useMintLiquidity as o, wrapPriceUnscaled as ot, usePoolData as p, TimelockProvider as pt, Amount as q, useVaultTVL as r, wrapAmount as rt, LiquidityBlockData as s, zero as st, useApproval as t, unscaleAmount as tt, usePriceHistory as u, OptionData as ut, getAmountsFromLiquidity as v, TimelockMarketData as vt, liquiditiesToAmounts as w, timelockLenses as wt, getTickAtPrice as x, getTimelockLens as xt, getNearestValidStrikeTick as y, UniswapMathLens as yt, useMintPerp as z };
|
|
61936
|
-
//# sourceMappingURL=client-
|
|
61936
|
+
//# sourceMappingURL=client-BV_X9Rk7.d.ts.map
|