timelock-sdk 0.0.156 → 0.0.157
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-L8_H45kU.d.cts → client-CSYKjcyD.d.cts} +18 -18
- package/dist/{client-DfG9023x.d.ts → client-cNTMuD8y.d.ts} +18 -18
- package/dist/client.cjs +2 -3
- 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 +2 -3
- 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
|
@@ -427,7 +427,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
427
427
|
}];
|
|
428
428
|
readonly stateMutability: "nonpayable";
|
|
429
429
|
}], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
430
|
-
|
|
430
|
+
decimals: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
431
431
|
readonly type: "constructor";
|
|
432
432
|
readonly inputs: readonly [{
|
|
433
433
|
readonly name: "name_";
|
|
@@ -605,8 +605,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
605
605
|
readonly internalType: "bool";
|
|
606
606
|
}];
|
|
607
607
|
readonly stateMutability: "nonpayable";
|
|
608
|
-
}], "
|
|
609
|
-
|
|
608
|
+
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
609
|
+
name: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
610
610
|
readonly type: "constructor";
|
|
611
611
|
readonly inputs: readonly [{
|
|
612
612
|
readonly name: "name_";
|
|
@@ -784,8 +784,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
784
784
|
readonly internalType: "bool";
|
|
785
785
|
}];
|
|
786
786
|
readonly stateMutability: "nonpayable";
|
|
787
|
-
}], "
|
|
788
|
-
|
|
787
|
+
}], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
788
|
+
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
789
789
|
readonly type: "constructor";
|
|
790
790
|
readonly inputs: readonly [{
|
|
791
791
|
readonly name: "name_";
|
|
@@ -963,8 +963,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
963
963
|
readonly internalType: "bool";
|
|
964
964
|
}];
|
|
965
965
|
readonly stateMutability: "nonpayable";
|
|
966
|
-
}], "
|
|
967
|
-
|
|
966
|
+
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
967
|
+
balanceOf: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
968
968
|
readonly type: "constructor";
|
|
969
969
|
readonly inputs: readonly [{
|
|
970
970
|
readonly name: "name_";
|
|
@@ -1142,7 +1142,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1142
1142
|
readonly internalType: "bool";
|
|
1143
1143
|
}];
|
|
1144
1144
|
readonly stateMutability: "nonpayable";
|
|
1145
|
-
}], "
|
|
1145
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
1146
1146
|
totalSupply: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
1147
1147
|
readonly type: "constructor";
|
|
1148
1148
|
readonly inputs: readonly [{
|
|
@@ -44996,7 +44996,7 @@ declare const useOptionPnl: (option: OptionData) => {
|
|
|
44996
44996
|
};
|
|
44997
44997
|
//#endregion
|
|
44998
44998
|
//#region src/hooks/options/useOptionPremium.d.ts
|
|
44999
|
-
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount
|
|
44999
|
+
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount?: bigint, addedDuration?: number, remainingDuration?: number, strikeTick?: number) => {
|
|
45000
45000
|
premium?: undefined;
|
|
45001
45001
|
protocolFee?: undefined;
|
|
45002
45002
|
totalPremium?: undefined;
|
|
@@ -48848,11 +48848,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
48848
48848
|
marketAddr?: Address;
|
|
48849
48849
|
}) => {
|
|
48850
48850
|
data: undefined;
|
|
48851
|
+
status: "idle";
|
|
48851
48852
|
error: null;
|
|
48852
48853
|
isError: false;
|
|
48853
48854
|
isPending: false;
|
|
48854
48855
|
isSuccess: false;
|
|
48855
|
-
status: "idle";
|
|
48856
48856
|
failureCount: number;
|
|
48857
48857
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
48858
48858
|
isPaused: boolean;
|
|
@@ -48865,11 +48865,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
48865
48865
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
48866
48866
|
} | {
|
|
48867
48867
|
data: undefined;
|
|
48868
|
+
status: "pending";
|
|
48868
48869
|
error: null;
|
|
48869
48870
|
isError: false;
|
|
48870
48871
|
isPending: true;
|
|
48871
48872
|
isSuccess: false;
|
|
48872
|
-
status: "pending";
|
|
48873
48873
|
failureCount: number;
|
|
48874
48874
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
48875
48875
|
isPaused: boolean;
|
|
@@ -49026,11 +49026,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
49026
49026
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49027
49027
|
} | {
|
|
49028
49028
|
data: undefined;
|
|
49029
|
+
status: "error";
|
|
49029
49030
|
error: _wagmi_core0.WriteContractErrorType;
|
|
49030
49031
|
isError: true;
|
|
49031
49032
|
isPending: false;
|
|
49032
49033
|
isSuccess: false;
|
|
49033
|
-
status: "error";
|
|
49034
49034
|
failureCount: number;
|
|
49035
49035
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49036
49036
|
isPaused: boolean;
|
|
@@ -49187,11 +49187,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
49187
49187
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49188
49188
|
} | {
|
|
49189
49189
|
data: `0x${string}`;
|
|
49190
|
+
status: "success";
|
|
49190
49191
|
error: null;
|
|
49191
49192
|
isError: false;
|
|
49192
49193
|
isPending: false;
|
|
49193
49194
|
isSuccess: true;
|
|
49194
|
-
status: "success";
|
|
49195
49195
|
failureCount: number;
|
|
49196
49196
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49197
49197
|
isPaused: boolean;
|
|
@@ -49355,11 +49355,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49355
49355
|
marketAddr?: Address;
|
|
49356
49356
|
}) => {
|
|
49357
49357
|
data: undefined;
|
|
49358
|
+
status: "idle";
|
|
49358
49359
|
error: null;
|
|
49359
49360
|
isError: false;
|
|
49360
49361
|
isPending: false;
|
|
49361
49362
|
isSuccess: false;
|
|
49362
|
-
status: "idle";
|
|
49363
49363
|
failureCount: number;
|
|
49364
49364
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49365
49365
|
isPaused: boolean;
|
|
@@ -49372,11 +49372,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49372
49372
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49373
49373
|
} | {
|
|
49374
49374
|
data: undefined;
|
|
49375
|
+
status: "pending";
|
|
49375
49376
|
error: null;
|
|
49376
49377
|
isError: false;
|
|
49377
49378
|
isPending: true;
|
|
49378
49379
|
isSuccess: false;
|
|
49379
|
-
status: "pending";
|
|
49380
49380
|
failureCount: number;
|
|
49381
49381
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49382
49382
|
isPaused: boolean;
|
|
@@ -49533,11 +49533,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49533
49533
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49534
49534
|
} | {
|
|
49535
49535
|
data: undefined;
|
|
49536
|
+
status: "error";
|
|
49536
49537
|
error: _wagmi_core0.WriteContractErrorType;
|
|
49537
49538
|
isError: true;
|
|
49538
49539
|
isPending: false;
|
|
49539
49540
|
isSuccess: false;
|
|
49540
|
-
status: "error";
|
|
49541
49541
|
failureCount: number;
|
|
49542
49542
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49543
49543
|
isPaused: boolean;
|
|
@@ -49694,11 +49694,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49694
49694
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49695
49695
|
} | {
|
|
49696
49696
|
data: `0x${string}`;
|
|
49697
|
+
status: "success";
|
|
49697
49698
|
error: null;
|
|
49698
49699
|
isError: false;
|
|
49699
49700
|
isPending: false;
|
|
49700
49701
|
isSuccess: true;
|
|
49701
|
-
status: "success";
|
|
49702
49702
|
failureCount: number;
|
|
49703
49703
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49704
49704
|
isPaused: boolean;
|
|
@@ -86490,4 +86490,4 @@ declare const useLens: () => {
|
|
|
86490
86490
|
};
|
|
86491
86491
|
//#endregion
|
|
86492
86492
|
export { useUserPerps as $, getNearestValidStrikeTick as A, useExerciseOption as At, token0ToToken1AtTick as B, UniswapMathLens as Bt, PoolKey as C, wrapAmount as Ct, getPayoutAtTick as D, zero as Dt, getPayoutAtPrice as E, wrapPriceUnscaled as Et, liquiditiesToAmount0 as F, useCurrentMarket as Ft, PriceResolution as G, stateViews as Gt, token1ToToken0AtTick as H, getStateView as Ht, liquiditiesToAmount1 as I, useTimelockConfig as It, useSetOperatorPerms as J, timelockLenses as Jt, getCurrentPrice as K, swapRouters as Kt, liquiditiesToAmounts as L, TimelockLens as Lt, getPriceAtTick as M, useActiveUserOptions as Mt, getSqrtPriceX96AtPrice as N, useClosedUserOptions as Nt, PRICE_PRECISION as O, useMarketVolume as Ot, getTickAtPrice as P, TimelockProvider as Pt, useClosedUserPerps as Q, roundTick as R, TimelockMarket as Rt, useCurrentPrice as S, unscalePrice as St, usePoolData as T, wrapPrice as Tt, PriceData as U, getTimelockLens as Ut, token1ToToken0 as V, getErc20 as Vt, PriceDataPoint as W, getTimelockMarket as Wt, useOperatorPerms as X, useUserOperators as Y, useActiveUserPerps as Z, useMarketPriceHistory as _, formatUSD as _t, useGuardianGlobalState as a, MintOptionEvent as at, usePriceAtTick as b, scalePrice as bt, TokenData as c, useExtendOption as ct, useVaultData as d, useMintOption as dt, usePerpsOperator as et, batchGetAmountsFromLiquidity as f, useMaxPositionSize as ft, useBurnLiquidity as g, formatCondensed as gt, useLiquidityBlocks as h, formatAmount as ht, usePauseGlobalTrading as i, ExtendEvent as it, getPriceAtSqrtPriceX96 as j, OptionData as jt, getAmountsFromLiquidity as k, useMarketData as kt, useTokenData as l, useOptionPremium as lt, LiquidityBlockData as m, EMPTY_ARRAY as mt, useFeeRates as n, useMintPerp as nt, useApproval as o, OptionEvent as ot, useMintLiquidity as p, Amount as pt, getPriceHistory as q, swappers as qt, usePauseMarketTrading as r, ExerciseOptionEvent as rt, useTokenBalance as s, useOptionTimeline as st, useLens as t, useClosePerp as tt, useVaultTVL as u, useOptionPnl as ut, usePriceHistory as v, formatVagueAmount as vt, UniswapPoolData as w, wrapAmountUnscaled as wt, useCurrentTick as x, unscaleAmount as xt, usePriceAtSqrtPriceX96 as y, scaleAmount as yt, token0ToToken1 as z, TimelockMarketData as zt };
|
|
86493
|
-
//# sourceMappingURL=client-
|
|
86493
|
+
//# sourceMappingURL=client-CSYKjcyD.d.cts.map
|
|
@@ -427,7 +427,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
427
427
|
}];
|
|
428
428
|
readonly stateMutability: "nonpayable";
|
|
429
429
|
}], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
430
|
-
|
|
430
|
+
decimals: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
431
431
|
readonly type: "constructor";
|
|
432
432
|
readonly inputs: readonly [{
|
|
433
433
|
readonly name: "name_";
|
|
@@ -605,8 +605,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
605
605
|
readonly internalType: "bool";
|
|
606
606
|
}];
|
|
607
607
|
readonly stateMutability: "nonpayable";
|
|
608
|
-
}], "
|
|
609
|
-
|
|
608
|
+
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
609
|
+
name: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
610
610
|
readonly type: "constructor";
|
|
611
611
|
readonly inputs: readonly [{
|
|
612
612
|
readonly name: "name_";
|
|
@@ -784,8 +784,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
784
784
|
readonly internalType: "bool";
|
|
785
785
|
}];
|
|
786
786
|
readonly stateMutability: "nonpayable";
|
|
787
|
-
}], "
|
|
788
|
-
|
|
787
|
+
}], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
788
|
+
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
789
789
|
readonly type: "constructor";
|
|
790
790
|
readonly inputs: readonly [{
|
|
791
791
|
readonly name: "name_";
|
|
@@ -963,8 +963,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
963
963
|
readonly internalType: "bool";
|
|
964
964
|
}];
|
|
965
965
|
readonly stateMutability: "nonpayable";
|
|
966
|
-
}], "
|
|
967
|
-
|
|
966
|
+
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
967
|
+
balanceOf: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
968
968
|
readonly type: "constructor";
|
|
969
969
|
readonly inputs: readonly [{
|
|
970
970
|
readonly name: "name_";
|
|
@@ -1142,7 +1142,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1142
1142
|
readonly internalType: "bool";
|
|
1143
1143
|
}];
|
|
1144
1144
|
readonly stateMutability: "nonpayable";
|
|
1145
|
-
}], "
|
|
1145
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
1146
1146
|
totalSupply: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
1147
1147
|
readonly type: "constructor";
|
|
1148
1148
|
readonly inputs: readonly [{
|
|
@@ -44996,7 +44996,7 @@ declare const useOptionPnl: (option: OptionData) => {
|
|
|
44996
44996
|
};
|
|
44997
44997
|
//#endregion
|
|
44998
44998
|
//#region src/hooks/options/useOptionPremium.d.ts
|
|
44999
|
-
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount
|
|
44999
|
+
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount?: bigint, addedDuration?: number, remainingDuration?: number, strikeTick?: number) => {
|
|
45000
45000
|
premium?: undefined;
|
|
45001
45001
|
protocolFee?: undefined;
|
|
45002
45002
|
totalPremium?: undefined;
|
|
@@ -48848,11 +48848,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
48848
48848
|
marketAddr?: Address;
|
|
48849
48849
|
}) => {
|
|
48850
48850
|
data: undefined;
|
|
48851
|
+
status: "idle";
|
|
48851
48852
|
error: null;
|
|
48852
48853
|
isError: false;
|
|
48853
48854
|
isPending: false;
|
|
48854
48855
|
isSuccess: false;
|
|
48855
|
-
status: "idle";
|
|
48856
48856
|
failureCount: number;
|
|
48857
48857
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
48858
48858
|
isPaused: boolean;
|
|
@@ -48865,11 +48865,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
48865
48865
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
48866
48866
|
} | {
|
|
48867
48867
|
data: undefined;
|
|
48868
|
+
status: "pending";
|
|
48868
48869
|
error: null;
|
|
48869
48870
|
isError: false;
|
|
48870
48871
|
isPending: true;
|
|
48871
48872
|
isSuccess: false;
|
|
48872
|
-
status: "pending";
|
|
48873
48873
|
failureCount: number;
|
|
48874
48874
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
48875
48875
|
isPaused: boolean;
|
|
@@ -49026,11 +49026,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
49026
49026
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49027
49027
|
} | {
|
|
49028
49028
|
data: undefined;
|
|
49029
|
+
status: "error";
|
|
49029
49030
|
error: _wagmi_core0.WriteContractErrorType;
|
|
49030
49031
|
isError: true;
|
|
49031
49032
|
isPending: false;
|
|
49032
49033
|
isSuccess: false;
|
|
49033
|
-
status: "error";
|
|
49034
49034
|
failureCount: number;
|
|
49035
49035
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49036
49036
|
isPaused: boolean;
|
|
@@ -49187,11 +49187,11 @@ declare const usePauseGlobalTrading: ({
|
|
|
49187
49187
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49188
49188
|
} | {
|
|
49189
49189
|
data: `0x${string}`;
|
|
49190
|
+
status: "success";
|
|
49190
49191
|
error: null;
|
|
49191
49192
|
isError: false;
|
|
49192
49193
|
isPending: false;
|
|
49193
49194
|
isSuccess: true;
|
|
49194
|
-
status: "success";
|
|
49195
49195
|
failureCount: number;
|
|
49196
49196
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49197
49197
|
isPaused: boolean;
|
|
@@ -49355,11 +49355,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49355
49355
|
marketAddr?: Address;
|
|
49356
49356
|
}) => {
|
|
49357
49357
|
data: undefined;
|
|
49358
|
+
status: "idle";
|
|
49358
49359
|
error: null;
|
|
49359
49360
|
isError: false;
|
|
49360
49361
|
isPending: false;
|
|
49361
49362
|
isSuccess: false;
|
|
49362
|
-
status: "idle";
|
|
49363
49363
|
failureCount: number;
|
|
49364
49364
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49365
49365
|
isPaused: boolean;
|
|
@@ -49372,11 +49372,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49372
49372
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49373
49373
|
} | {
|
|
49374
49374
|
data: undefined;
|
|
49375
|
+
status: "pending";
|
|
49375
49376
|
error: null;
|
|
49376
49377
|
isError: false;
|
|
49377
49378
|
isPending: true;
|
|
49378
49379
|
isSuccess: false;
|
|
49379
|
-
status: "pending";
|
|
49380
49380
|
failureCount: number;
|
|
49381
49381
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49382
49382
|
isPaused: boolean;
|
|
@@ -49533,11 +49533,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49533
49533
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49534
49534
|
} | {
|
|
49535
49535
|
data: undefined;
|
|
49536
|
+
status: "error";
|
|
49536
49537
|
error: _wagmi_core0.WriteContractErrorType;
|
|
49537
49538
|
isError: true;
|
|
49538
49539
|
isPending: false;
|
|
49539
49540
|
isSuccess: false;
|
|
49540
|
-
status: "error";
|
|
49541
49541
|
failureCount: number;
|
|
49542
49542
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49543
49543
|
isPaused: boolean;
|
|
@@ -49694,11 +49694,11 @@ declare const usePauseMarketTrading: ({
|
|
|
49694
49694
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
49695
49695
|
} | {
|
|
49696
49696
|
data: `0x${string}`;
|
|
49697
|
+
status: "success";
|
|
49697
49698
|
error: null;
|
|
49698
49699
|
isError: false;
|
|
49699
49700
|
isPending: false;
|
|
49700
49701
|
isSuccess: true;
|
|
49701
|
-
status: "success";
|
|
49702
49702
|
failureCount: number;
|
|
49703
49703
|
failureReason: _wagmi_core0.WriteContractErrorType | null;
|
|
49704
49704
|
isPaused: boolean;
|
|
@@ -86490,4 +86490,4 @@ declare const useLens: () => {
|
|
|
86490
86490
|
};
|
|
86491
86491
|
//#endregion
|
|
86492
86492
|
export { useUserPerps as $, getNearestValidStrikeTick as A, useExerciseOption as At, token0ToToken1AtTick as B, UniswapMathLens as Bt, PoolKey as C, wrapAmount as Ct, getPayoutAtTick as D, zero as Dt, getPayoutAtPrice as E, wrapPriceUnscaled as Et, liquiditiesToAmount0 as F, useCurrentMarket as Ft, PriceResolution as G, stateViews as Gt, token1ToToken0AtTick as H, getStateView as Ht, liquiditiesToAmount1 as I, useTimelockConfig as It, useSetOperatorPerms as J, timelockLenses as Jt, getCurrentPrice as K, swapRouters as Kt, liquiditiesToAmounts as L, TimelockLens as Lt, getPriceAtTick as M, useActiveUserOptions as Mt, getSqrtPriceX96AtPrice as N, useClosedUserOptions as Nt, PRICE_PRECISION as O, useMarketVolume as Ot, getTickAtPrice as P, TimelockProvider as Pt, useClosedUserPerps as Q, roundTick as R, TimelockMarket as Rt, useCurrentPrice as S, unscalePrice as St, usePoolData as T, wrapPrice as Tt, PriceData as U, getTimelockLens as Ut, token1ToToken0 as V, getErc20 as Vt, PriceDataPoint as W, getTimelockMarket as Wt, useOperatorPerms as X, useUserOperators as Y, useActiveUserPerps as Z, useMarketPriceHistory as _, formatUSD as _t, useGuardianGlobalState as a, MintOptionEvent as at, usePriceAtTick as b, scalePrice as bt, TokenData as c, useExtendOption as ct, useVaultData as d, useMintOption as dt, usePerpsOperator as et, batchGetAmountsFromLiquidity as f, useMaxPositionSize as ft, useBurnLiquidity as g, formatCondensed as gt, useLiquidityBlocks as h, formatAmount as ht, usePauseGlobalTrading as i, ExtendEvent as it, getPriceAtSqrtPriceX96 as j, OptionData as jt, getAmountsFromLiquidity as k, useMarketData as kt, useTokenData as l, useOptionPremium as lt, LiquidityBlockData as m, EMPTY_ARRAY as mt, useFeeRates as n, useMintPerp as nt, useApproval as o, OptionEvent as ot, useMintLiquidity as p, Amount as pt, getPriceHistory as q, swappers as qt, usePauseMarketTrading as r, ExerciseOptionEvent as rt, useTokenBalance as s, useOptionTimeline as st, useLens as t, useClosePerp as tt, useVaultTVL as u, useOptionPnl as ut, usePriceHistory as v, formatVagueAmount as vt, UniswapPoolData as w, wrapAmountUnscaled as wt, useCurrentTick as x, unscaleAmount as xt, usePriceAtSqrtPriceX96 as y, scaleAmount as yt, token0ToToken1 as z, TimelockMarketData as zt };
|
|
86493
|
-
//# sourceMappingURL=client-
|
|
86493
|
+
//# sourceMappingURL=client-cNTMuD8y.d.ts.map
|
package/dist/client.cjs
CHANGED
|
@@ -814,14 +814,13 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, addedDuration, r
|
|
|
814
814
|
address: marketAddr,
|
|
815
815
|
abi: require_optionsMarket.optionsMarketAbi,
|
|
816
816
|
functionName: "calculatePremium",
|
|
817
|
-
args: strikeTickRounded !== void 0 ? [
|
|
817
|
+
args: strikeTickRounded !== void 0 && optionAmount !== void 0 && addedDuration !== void 0 ? [
|
|
818
818
|
optionType === "CALL" ? 0 : 1,
|
|
819
819
|
optionAmount,
|
|
820
820
|
strikeTickRounded,
|
|
821
821
|
addedDuration,
|
|
822
822
|
remainingDuration
|
|
823
|
-
] : void 0
|
|
824
|
-
query: { enabled: strikeTickRounded !== void 0 }
|
|
823
|
+
] : void 0
|
|
825
824
|
});
|
|
826
825
|
return (0, react.useMemo)(() => {
|
|
827
826
|
if (premium === void 0 || protocolFee === void 0 || payoutAssetDecimals === void 0) return {};
|