timelock-sdk 0.0.184 → 0.0.186
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-DAfdr7d2.d.cts → client-DS3Ll673.d.cts} +37 -37
- package/dist/{client-mb6de6Cl.d.ts → client-d6g1gJhy.d.ts} +37 -37
- package/dist/client.cjs +1 -1
- 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 +1 -1
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-vNu8pzHF.js → optionUtils-pQWykofY.js} +2 -2
- package/dist/{optionUtils-vNu8pzHF.js.map → optionUtils-pQWykofY.js.map} +1 -1
- package/dist/{optionUtils-CEVvDS1q.cjs → optionUtils-vw98cuWU.cjs} +2 -2
- package/dist/{optionUtils-CEVvDS1q.cjs.map → optionUtils-vw98cuWU.cjs.map} +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { Address, Client, GetContractReturnType, Hex, PublicClient } from "viem"
|
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
5
5
|
import "graphql";
|
|
6
6
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _tanstack_react_query1 from "@tanstack/react-query";
|
|
8
8
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
9
9
|
import * as wagmi0 from "wagmi";
|
|
10
10
|
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
@@ -49254,7 +49254,7 @@ declare const useMarketState: (marketAddr: Address | undefined) => wagmi0.UseRea
|
|
|
49254
49254
|
}>;
|
|
49255
49255
|
//#endregion
|
|
49256
49256
|
//#region src/hooks/market/useMarketVolume.d.ts
|
|
49257
|
-
declare const useMarketVolume: (marketAddr: Address | undefined) =>
|
|
49257
|
+
declare const useMarketVolume: (marketAddr: Address | undefined) => _tanstack_react_query1.UseQueryResult<{
|
|
49258
49258
|
address: Address;
|
|
49259
49259
|
volume: bigint;
|
|
49260
49260
|
optionsCount: bigint;
|
|
@@ -49462,7 +49462,7 @@ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?:
|
|
|
49462
49462
|
};
|
|
49463
49463
|
//#endregion
|
|
49464
49464
|
//#region src/hooks/options/useMintOption.d.ts
|
|
49465
|
-
declare const useMintOption: (marketAddr: Address | undefined) =>
|
|
49465
|
+
declare const useMintOption: (marketAddr: Address | undefined) => _tanstack_react_query1.UseMutationResult<`0x${string}`, Error, {
|
|
49466
49466
|
optionType: "CALL" | "PUT";
|
|
49467
49467
|
amount: bigint;
|
|
49468
49468
|
duration: number;
|
|
@@ -49472,7 +49472,7 @@ declare const useMintOption: (marketAddr: Address | undefined) => _tanstack_reac
|
|
|
49472
49472
|
//#endregion
|
|
49473
49473
|
//#region src/hooks/options/useUserOptions.d.ts
|
|
49474
49474
|
type OptionData = NonUndefinedGuard<ReturnType<typeof useUserOptions>['data']>[number];
|
|
49475
|
-
declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Address | "*" | undefined, active?: boolean) =>
|
|
49475
|
+
declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Address | "*" | undefined, active?: boolean) => _tanstack_react_query1.UseQueryResult<{
|
|
49476
49476
|
optionId: bigint;
|
|
49477
49477
|
marketAddr: Address;
|
|
49478
49478
|
ownerAddr: Address;
|
|
@@ -49502,7 +49502,7 @@ declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Addres
|
|
|
49502
49502
|
address: string;
|
|
49503
49503
|
} | null;
|
|
49504
49504
|
}[], Error>;
|
|
49505
|
-
declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address | "*") =>
|
|
49505
|
+
declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address | "*") => _tanstack_react_query1.UseQueryResult<{
|
|
49506
49506
|
optionId: bigint;
|
|
49507
49507
|
marketAddr: Address;
|
|
49508
49508
|
ownerAddr: Address;
|
|
@@ -49532,7 +49532,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
49532
49532
|
address: string;
|
|
49533
49533
|
} | null;
|
|
49534
49534
|
}[], Error>;
|
|
49535
|
-
declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address | "*") =>
|
|
49535
|
+
declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address | "*") => _tanstack_react_query1.UseQueryResult<{
|
|
49536
49536
|
optionId: bigint;
|
|
49537
49537
|
marketAddr: Address;
|
|
49538
49538
|
ownerAddr: Address;
|
|
@@ -49564,7 +49564,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
49564
49564
|
}[], Error>;
|
|
49565
49565
|
//#endregion
|
|
49566
49566
|
//#region src/hooks/options/useExerciseOption.d.ts
|
|
49567
|
-
declare const useExerciseOption: (marketAddr: Address | undefined) =>
|
|
49567
|
+
declare const useExerciseOption: (marketAddr: Address | undefined) => _tanstack_react_query1.UseMutationResult<`0x${string}`, Error, {
|
|
49568
49568
|
option: OptionData;
|
|
49569
49569
|
liquidities: readonly bigint[];
|
|
49570
49570
|
}, unknown>;
|
|
@@ -49587,7 +49587,7 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
|
|
|
49587
49587
|
};
|
|
49588
49588
|
//#endregion
|
|
49589
49589
|
//#region src/hooks/options/useExtendOption.d.ts
|
|
49590
|
-
declare const useExtendOption: (marketAddr: Address | undefined) =>
|
|
49590
|
+
declare const useExtendOption: (marketAddr: Address | undefined) => _tanstack_react_query1.UseMutationResult<`0x${string}`, Error, {
|
|
49591
49591
|
option: OptionData;
|
|
49592
49592
|
duration: number;
|
|
49593
49593
|
}, unknown>;
|
|
@@ -49603,7 +49603,7 @@ type ExerciseOptionEvent = Extract<OptionEvent, {
|
|
|
49603
49603
|
type ExtendEvent = Extract<OptionEvent, {
|
|
49604
49604
|
type: 'extend';
|
|
49605
49605
|
}>;
|
|
49606
|
-
declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: bigint | undefined) =>
|
|
49606
|
+
declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: bigint | undefined) => _tanstack_react_query1.UseQueryResult<({
|
|
49607
49607
|
type: "mint";
|
|
49608
49608
|
data: {
|
|
49609
49609
|
id: string;
|
|
@@ -49644,7 +49644,7 @@ declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: big
|
|
|
49644
49644
|
})[], Error>;
|
|
49645
49645
|
//#endregion
|
|
49646
49646
|
//#region src/hooks/perps/useMintPerp.d.ts
|
|
49647
|
-
declare const useMintPerp: (marketAddr: Address | undefined) =>
|
|
49647
|
+
declare const useMintPerp: (marketAddr: Address | undefined) => _tanstack_react_query1.UseMutationResult<void, Error, {
|
|
49648
49648
|
optionType: "CALL" | "PUT";
|
|
49649
49649
|
amount: bigint;
|
|
49650
49650
|
duration: number;
|
|
@@ -49652,17 +49652,17 @@ declare const useMintPerp: (marketAddr: Address | undefined) => _tanstack_react_
|
|
|
49652
49652
|
}, unknown>;
|
|
49653
49653
|
//#endregion
|
|
49654
49654
|
//#region src/hooks/perps/useClosePerp.d.ts
|
|
49655
|
-
declare const useClosePerp: () =>
|
|
49655
|
+
declare const useClosePerp: () => _tanstack_react_query1.UseMutationResult<void, Error, ExercisePerpBody, unknown>;
|
|
49656
49656
|
//#endregion
|
|
49657
49657
|
//#region src/hooks/perps/usePerpsOperator.d.ts
|
|
49658
49658
|
declare const usePerpsOperator: () => {
|
|
49659
49659
|
operator: PerpsOperator | undefined;
|
|
49660
49660
|
address: `0x${string}` | undefined;
|
|
49661
|
-
signMessage:
|
|
49661
|
+
signMessage: _tanstack_react_query1.UseMutationResult<void, Error, void, unknown>;
|
|
49662
49662
|
};
|
|
49663
49663
|
//#endregion
|
|
49664
49664
|
//#region src/hooks/perps/useUserPerps.d.ts
|
|
49665
|
-
declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined, type: "active" | "closed" | undefined) =>
|
|
49665
|
+
declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined, type: "active" | "closed" | undefined) => _tanstack_react_query1.UseQueryResult<{
|
|
49666
49666
|
optionId: bigint;
|
|
49667
49667
|
id: string;
|
|
49668
49668
|
ownerAddr: Address;
|
|
@@ -49671,7 +49671,7 @@ declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address
|
|
|
49671
49671
|
expiresAt: number;
|
|
49672
49672
|
closed: boolean;
|
|
49673
49673
|
}[] | undefined, Error>;
|
|
49674
|
-
declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) =>
|
|
49674
|
+
declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) => _tanstack_react_query1.UseQueryResult<{
|
|
49675
49675
|
optionId: bigint;
|
|
49676
49676
|
id: string;
|
|
49677
49677
|
ownerAddr: Address;
|
|
@@ -49680,7 +49680,7 @@ declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Ad
|
|
|
49680
49680
|
expiresAt: number;
|
|
49681
49681
|
closed: boolean;
|
|
49682
49682
|
}[] | undefined, Error>;
|
|
49683
|
-
declare const useClosedUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) =>
|
|
49683
|
+
declare const useClosedUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) => _tanstack_react_query1.UseQueryResult<{
|
|
49684
49684
|
optionId: bigint;
|
|
49685
49685
|
id: string;
|
|
49686
49686
|
ownerAddr: Address;
|
|
@@ -49904,7 +49904,7 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
49904
49904
|
};
|
|
49905
49905
|
//#endregion
|
|
49906
49906
|
//#region src/hooks/operators/useUserOperators.d.ts
|
|
49907
|
-
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) =>
|
|
49907
|
+
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => _tanstack_react_query1.UseQueryResult<{
|
|
49908
49908
|
spendingApproval: bigint;
|
|
49909
49909
|
operatorAddr: string;
|
|
49910
49910
|
__typename: "UserMarketOperator";
|
|
@@ -49920,7 +49920,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => _t
|
|
|
49920
49920
|
}[] | undefined, Error>;
|
|
49921
49921
|
//#endregion
|
|
49922
49922
|
//#region src/hooks/operators/useSetOperatorPerms.d.ts
|
|
49923
|
-
declare const useSetOperatorPerms: (marketAddr: Address | undefined) =>
|
|
49923
|
+
declare const useSetOperatorPerms: (marketAddr: Address | undefined) => _tanstack_react_query1.UseMutationResult<`0x${string}`, Error, {
|
|
49924
49924
|
operator: Address;
|
|
49925
49925
|
canExtend: boolean;
|
|
49926
49926
|
canExercise: boolean;
|
|
@@ -50846,8 +50846,8 @@ declare const usePriceAtTick: (poolManager?: Address, poolKey?: PoolKey, tick?:
|
|
|
50846
50846
|
declare const usePriceAtSqrtPriceX96: (poolManager?: Address, poolKey?: PoolKey, sqrtPriceX96?: bigint) => Amount | undefined;
|
|
50847
50847
|
//#endregion
|
|
50848
50848
|
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
50849
|
-
declare const usePriceHistory: (pool: Address | undefined, token: 0 | 1, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) =>
|
|
50850
|
-
declare const useMarketPriceHistory: (marketAddr: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) =>
|
|
50849
|
+
declare const usePriceHistory: (pool: Address | undefined, token: 0 | 1, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query1.UseQueryResult<PriceDataPoint[], Error>;
|
|
50850
|
+
declare const useMarketPriceHistory: (marketAddr: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query1.UseQueryResult<PriceDataPoint[], Error>;
|
|
50851
50851
|
//#endregion
|
|
50852
50852
|
//#region src/hooks/vault/useBurnLiquidity.d.ts
|
|
50853
50853
|
interface BurnPosition {
|
|
@@ -51266,7 +51266,7 @@ interface MintPositionParams {
|
|
|
51266
51266
|
tickUpper: number;
|
|
51267
51267
|
liquidity: bigint;
|
|
51268
51268
|
}
|
|
51269
|
-
declare const useMintLiquidity: (vaultAddr: Address | undefined) =>
|
|
51269
|
+
declare const useMintLiquidity: (vaultAddr: Address | undefined) => _tanstack_react_query1.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
|
|
51270
51270
|
//#endregion
|
|
51271
51271
|
//#region src/hooks/vault/useVaultData.d.ts
|
|
51272
51272
|
declare const useVaultData: (vaultAddr: Address | undefined) => Partial<NonUndefinedGuard<{
|
|
@@ -52453,8 +52453,8 @@ declare const useGuardianGlobalState: (guardianAddr?: Address) => wagmi0.UseRead
|
|
|
52453
52453
|
//#endregion
|
|
52454
52454
|
//#region src/hooks/guardian/usePauseGlobalTrading.d.ts
|
|
52455
52455
|
declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
52456
|
-
data: undefined;
|
|
52457
52456
|
error: null;
|
|
52457
|
+
data: undefined;
|
|
52458
52458
|
status: "idle";
|
|
52459
52459
|
isError: false;
|
|
52460
52460
|
isPending: false;
|
|
@@ -52470,8 +52470,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52470
52470
|
writeContract: wagmi_query3.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52471
52471
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52472
52472
|
} | {
|
|
52473
|
-
data: undefined;
|
|
52474
52473
|
error: null;
|
|
52474
|
+
data: undefined;
|
|
52475
52475
|
status: "pending";
|
|
52476
52476
|
isError: false;
|
|
52477
52477
|
isPending: true;
|
|
@@ -52631,8 +52631,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52631
52631
|
writeContract: wagmi_query3.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52632
52632
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52633
52633
|
} | {
|
|
52634
|
-
data: undefined;
|
|
52635
52634
|
error: _wagmi_core0.WriteContractErrorType;
|
|
52635
|
+
data: undefined;
|
|
52636
52636
|
status: "error";
|
|
52637
52637
|
isError: true;
|
|
52638
52638
|
isPending: false;
|
|
@@ -52792,8 +52792,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52792
52792
|
writeContract: wagmi_query3.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52793
52793
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52794
52794
|
} | {
|
|
52795
|
-
data: `0x${string}`;
|
|
52796
52795
|
error: null;
|
|
52796
|
+
data: `0x${string}`;
|
|
52797
52797
|
status: "success";
|
|
52798
52798
|
isError: false;
|
|
52799
52799
|
isPending: false;
|
|
@@ -52956,8 +52956,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52956
52956
|
//#endregion
|
|
52957
52957
|
//#region src/hooks/guardian/usePauseMarketTrading.d.ts
|
|
52958
52958
|
declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
52959
|
-
data: undefined;
|
|
52960
52959
|
error: null;
|
|
52960
|
+
data: undefined;
|
|
52961
52961
|
status: "idle";
|
|
52962
52962
|
isError: false;
|
|
52963
52963
|
isPending: false;
|
|
@@ -52973,8 +52973,8 @@ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
|
52973
52973
|
writeContract: wagmi_query3.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52974
52974
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52975
52975
|
} | {
|
|
52976
|
-
data: undefined;
|
|
52977
52976
|
error: null;
|
|
52977
|
+
data: undefined;
|
|
52978
52978
|
status: "pending";
|
|
52979
52979
|
isError: false;
|
|
52980
52980
|
isPending: true;
|
|
@@ -53134,8 +53134,8 @@ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
|
53134
53134
|
writeContract: wagmi_query3.WriteContractMutate<wagmi0.Config, unknown>;
|
|
53135
53135
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
53136
53136
|
} | {
|
|
53137
|
-
data: undefined;
|
|
53138
53137
|
error: _wagmi_core0.WriteContractErrorType;
|
|
53138
|
+
data: undefined;
|
|
53139
53139
|
status: "error";
|
|
53140
53140
|
isError: true;
|
|
53141
53141
|
isPending: false;
|
|
@@ -53295,8 +53295,8 @@ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
|
53295
53295
|
writeContract: wagmi_query3.WriteContractMutate<wagmi0.Config, unknown>;
|
|
53296
53296
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
53297
53297
|
} | {
|
|
53298
|
-
data: `0x${string}`;
|
|
53299
53298
|
error: null;
|
|
53299
|
+
data: `0x${string}`;
|
|
53300
53300
|
status: "success";
|
|
53301
53301
|
isError: false;
|
|
53302
53302
|
isPending: false;
|
|
@@ -53468,8 +53468,8 @@ declare const useFeeRates: (feeStrategy?: Address) => Partial<NonUndefinedGuard<
|
|
|
53468
53468
|
//#endregion
|
|
53469
53469
|
//#region src/hooks/fees/useUpdateMarketFees.d.ts
|
|
53470
53470
|
declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
53471
|
-
data: undefined;
|
|
53472
53471
|
error: null;
|
|
53472
|
+
data: undefined;
|
|
53473
53473
|
status: "idle";
|
|
53474
53474
|
isError: false;
|
|
53475
53475
|
isPending: false;
|
|
@@ -53495,8 +53495,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
53495
53495
|
newFeeStrategy: `0x${string}`;
|
|
53496
53496
|
}>;
|
|
53497
53497
|
} | {
|
|
53498
|
-
data: undefined;
|
|
53499
53498
|
error: null;
|
|
53499
|
+
data: undefined;
|
|
53500
53500
|
status: "pending";
|
|
53501
53501
|
isError: false;
|
|
53502
53502
|
isPending: true;
|
|
@@ -53666,8 +53666,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
53666
53666
|
newFeeStrategy: `0x${string}`;
|
|
53667
53667
|
}>;
|
|
53668
53668
|
} | {
|
|
53669
|
-
data: undefined;
|
|
53670
53669
|
error: _wagmi_core0.WriteContractErrorType;
|
|
53670
|
+
data: undefined;
|
|
53671
53671
|
status: "error";
|
|
53672
53672
|
isError: true;
|
|
53673
53673
|
isPending: false;
|
|
@@ -53837,8 +53837,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
53837
53837
|
newFeeStrategy: `0x${string}`;
|
|
53838
53838
|
}>;
|
|
53839
53839
|
} | {
|
|
53840
|
-
data: `0x${string}`;
|
|
53841
53840
|
error: null;
|
|
53841
|
+
data: `0x${string}`;
|
|
53842
53842
|
status: "success";
|
|
53843
53843
|
isError: false;
|
|
53844
53844
|
isPending: false;
|
|
@@ -54985,8 +54985,8 @@ declare const useStaticPricingParams: (pricingAddr: Address | undefined) => Part
|
|
|
54985
54985
|
//#endregion
|
|
54986
54986
|
//#region src/hooks/pricing/useUpdateMarketPricing.d.ts
|
|
54987
54987
|
declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
54988
|
-
data: undefined;
|
|
54989
54988
|
error: null;
|
|
54989
|
+
data: undefined;
|
|
54990
54990
|
status: "idle";
|
|
54991
54991
|
isError: false;
|
|
54992
54992
|
isPending: false;
|
|
@@ -55010,8 +55010,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
|
55010
55010
|
newPricingAddr: `0x${string}`;
|
|
55011
55011
|
}>;
|
|
55012
55012
|
} | {
|
|
55013
|
-
data: undefined;
|
|
55014
55013
|
error: null;
|
|
55014
|
+
data: undefined;
|
|
55015
55015
|
status: "pending";
|
|
55016
55016
|
isError: false;
|
|
55017
55017
|
isPending: true;
|
|
@@ -55179,8 +55179,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
|
55179
55179
|
newPricingAddr: `0x${string}`;
|
|
55180
55180
|
}>;
|
|
55181
55181
|
} | {
|
|
55182
|
-
data: undefined;
|
|
55183
55182
|
error: _wagmi_core0.WriteContractErrorType;
|
|
55183
|
+
data: undefined;
|
|
55184
55184
|
status: "error";
|
|
55185
55185
|
isError: true;
|
|
55186
55186
|
isPending: false;
|
|
@@ -55348,8 +55348,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
|
55348
55348
|
newPricingAddr: `0x${string}`;
|
|
55349
55349
|
}>;
|
|
55350
55350
|
} | {
|
|
55351
|
-
data: `0x${string}`;
|
|
55352
55351
|
error: null;
|
|
55352
|
+
data: `0x${string}`;
|
|
55353
55353
|
status: "success";
|
|
55354
55354
|
isError: false;
|
|
55355
55355
|
isPending: false;
|
|
@@ -97744,4 +97744,4 @@ declare const useLens: () => {
|
|
|
97744
97744
|
};
|
|
97745
97745
|
//#endregion
|
|
97746
97746
|
export { PriceResolution as $, swapRouters as $t, useCurrentPrice as A, scaleAmount as At, getPriceAtTick as B, useMarketState as Bt, useLiquidityBlocks as C, useMintOption as Ct, usePriceAtSqrtPriceX96 as D, formatCondensed as Dt, usePriceHistory as E, formatAmount as Et, getPayoutAtTick as F, wrapAmountUnscaled as Ft, liquiditiesToAmounts as G, TimelockLens as Gt, getTickAtPrice as H, TimelockProvider as Ht, PRICE_PRECISION as I, wrapPrice as It, token0ToToken1AtTick as J, getErc20 as Jt, roundTick as K, TimelockMarket as Kt, getAmountsFromLiquidity as L, wrapPriceUnscaled as Lt, UniswapPoolData as M, unscaleAmount as Mt, usePoolData as N, unscalePrice as Nt, usePriceAtTick as O, formatUSD as Ot, getPayoutAtPrice as P, wrapAmount as Pt, PriceDataPoint as Q, stateViews as Qt, getNearestValidStrikeTick as R, zero as Rt, LiquidityBlockData as S, useClosedUserOptions as St, useMarketPriceHistory as T, Amount as Tt, liquiditiesToAmount0 as U, useCurrentMarket as Ut, getSqrtPriceX96AtPrice as V, useMarketData as Vt, liquiditiesToAmount1 as W, useTimelockConfig as Wt, token1ToToken0AtTick as X, getTimelockLens as Xt, token1ToToken0 as Y, getStateView as Yt, PriceData as Z, getTimelockMarket as Zt, useTokenData as _, useOptionPremium as _t, OptionPricingParams as a, useActiveUserPerps as at, batchGetAmountsFromLiquidity as b, OptionData as bt, usePricingParams as c, usePerpsOperator as ct, usePauseMarketTrading as d, ExerciseOptionEvent as dt, swappers as en, getCurrentPrice as et, usePauseGlobalTrading as f, ExtendEvent as ft, TokenData as g, useExtendOption as gt, useTokenBalance as h, useOptionTimeline as ht, useOptionPricingParams as i, useOperatorPerms as it, PoolKey as j, scalePrice as jt, useCurrentTick as k, formatVagueAmount as kt, useUpdateMarketFees as l, useClosePerp as lt, useApproval as m, OptionEvent as mt, useUpdateMarketPricing as n, timelockLenses as nn, useSetOperatorPerms as nt, PricingParams as o, useClosedUserPerps as ot, useGuardianGlobalState as p, MintOptionEvent as pt, token0ToToken1 as q, TimelockMarketData as qt, useStaticPricingParams as r, useUserOperators as rt, StaticPricingParams as s, useUserPerps as st, useLens as t, timelockFactories as tn, getPriceHistory as tt, useFeeRates as u, useMintPerp as ut, useVaultTVL as v, useOptionPnl as vt, useBurnLiquidity as w, useMaxPositionSize as wt, useMintLiquidity as x, useActiveUserOptions as xt, useVaultData as y, useExerciseOption as yt, getPriceAtSqrtPriceX96 as z, useMarketVolume as zt };
|
|
97747
|
-
//# sourceMappingURL=client-
|
|
97747
|
+
//# sourceMappingURL=client-DS3Ll673.d.cts.map
|
|
@@ -5,7 +5,7 @@ import Big from "big.js";
|
|
|
5
5
|
import JSBI from "jsbi";
|
|
6
6
|
import React, { ReactNode } from "react";
|
|
7
7
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
9
9
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
10
10
|
import * as wagmi0 from "wagmi";
|
|
11
11
|
import "graphql";
|
|
@@ -49254,7 +49254,7 @@ declare const useMarketState: (marketAddr: Address | undefined) => wagmi0.UseRea
|
|
|
49254
49254
|
}>;
|
|
49255
49255
|
//#endregion
|
|
49256
49256
|
//#region src/hooks/market/useMarketVolume.d.ts
|
|
49257
|
-
declare const useMarketVolume: (marketAddr: Address | undefined) =>
|
|
49257
|
+
declare const useMarketVolume: (marketAddr: Address | undefined) => _tanstack_react_query0.UseQueryResult<{
|
|
49258
49258
|
address: Address;
|
|
49259
49259
|
volume: bigint;
|
|
49260
49260
|
optionsCount: bigint;
|
|
@@ -49462,7 +49462,7 @@ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?:
|
|
|
49462
49462
|
};
|
|
49463
49463
|
//#endregion
|
|
49464
49464
|
//#region src/hooks/options/useMintOption.d.ts
|
|
49465
|
-
declare const useMintOption: (marketAddr: Address | undefined) =>
|
|
49465
|
+
declare const useMintOption: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
49466
49466
|
optionType: "CALL" | "PUT";
|
|
49467
49467
|
amount: bigint;
|
|
49468
49468
|
duration: number;
|
|
@@ -49472,7 +49472,7 @@ declare const useMintOption: (marketAddr: Address | undefined) => _tanstack_reac
|
|
|
49472
49472
|
//#endregion
|
|
49473
49473
|
//#region src/hooks/options/useUserOptions.d.ts
|
|
49474
49474
|
type OptionData = NonUndefinedGuard<ReturnType<typeof useUserOptions>['data']>[number];
|
|
49475
|
-
declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Address | "*" | undefined, active?: boolean) =>
|
|
49475
|
+
declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Address | "*" | undefined, active?: boolean) => _tanstack_react_query0.UseQueryResult<{
|
|
49476
49476
|
optionId: bigint;
|
|
49477
49477
|
marketAddr: Address;
|
|
49478
49478
|
ownerAddr: Address;
|
|
@@ -49502,7 +49502,7 @@ declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Addres
|
|
|
49502
49502
|
address: string;
|
|
49503
49503
|
} | null;
|
|
49504
49504
|
}[], Error>;
|
|
49505
|
-
declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address | "*") =>
|
|
49505
|
+
declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address | "*") => _tanstack_react_query0.UseQueryResult<{
|
|
49506
49506
|
optionId: bigint;
|
|
49507
49507
|
marketAddr: Address;
|
|
49508
49508
|
ownerAddr: Address;
|
|
@@ -49532,7 +49532,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
49532
49532
|
address: string;
|
|
49533
49533
|
} | null;
|
|
49534
49534
|
}[], Error>;
|
|
49535
|
-
declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address | "*") =>
|
|
49535
|
+
declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address | "*") => _tanstack_react_query0.UseQueryResult<{
|
|
49536
49536
|
optionId: bigint;
|
|
49537
49537
|
marketAddr: Address;
|
|
49538
49538
|
ownerAddr: Address;
|
|
@@ -49564,7 +49564,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
49564
49564
|
}[], Error>;
|
|
49565
49565
|
//#endregion
|
|
49566
49566
|
//#region src/hooks/options/useExerciseOption.d.ts
|
|
49567
|
-
declare const useExerciseOption: (marketAddr: Address | undefined) =>
|
|
49567
|
+
declare const useExerciseOption: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
49568
49568
|
option: OptionData;
|
|
49569
49569
|
liquidities: readonly bigint[];
|
|
49570
49570
|
}, unknown>;
|
|
@@ -49587,7 +49587,7 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
|
|
|
49587
49587
|
};
|
|
49588
49588
|
//#endregion
|
|
49589
49589
|
//#region src/hooks/options/useExtendOption.d.ts
|
|
49590
|
-
declare const useExtendOption: (marketAddr: Address | undefined) =>
|
|
49590
|
+
declare const useExtendOption: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
49591
49591
|
option: OptionData;
|
|
49592
49592
|
duration: number;
|
|
49593
49593
|
}, unknown>;
|
|
@@ -49603,7 +49603,7 @@ type ExerciseOptionEvent = Extract<OptionEvent, {
|
|
|
49603
49603
|
type ExtendEvent = Extract<OptionEvent, {
|
|
49604
49604
|
type: 'extend';
|
|
49605
49605
|
}>;
|
|
49606
|
-
declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: bigint | undefined) =>
|
|
49606
|
+
declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: bigint | undefined) => _tanstack_react_query0.UseQueryResult<({
|
|
49607
49607
|
type: "mint";
|
|
49608
49608
|
data: {
|
|
49609
49609
|
id: string;
|
|
@@ -49644,7 +49644,7 @@ declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: big
|
|
|
49644
49644
|
})[], Error>;
|
|
49645
49645
|
//#endregion
|
|
49646
49646
|
//#region src/hooks/perps/useMintPerp.d.ts
|
|
49647
|
-
declare const useMintPerp: (marketAddr: Address | undefined) =>
|
|
49647
|
+
declare const useMintPerp: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<void, Error, {
|
|
49648
49648
|
optionType: "CALL" | "PUT";
|
|
49649
49649
|
amount: bigint;
|
|
49650
49650
|
duration: number;
|
|
@@ -49652,17 +49652,17 @@ declare const useMintPerp: (marketAddr: Address | undefined) => _tanstack_react_
|
|
|
49652
49652
|
}, unknown>;
|
|
49653
49653
|
//#endregion
|
|
49654
49654
|
//#region src/hooks/perps/useClosePerp.d.ts
|
|
49655
|
-
declare const useClosePerp: () =>
|
|
49655
|
+
declare const useClosePerp: () => _tanstack_react_query0.UseMutationResult<void, Error, ExercisePerpBody, unknown>;
|
|
49656
49656
|
//#endregion
|
|
49657
49657
|
//#region src/hooks/perps/usePerpsOperator.d.ts
|
|
49658
49658
|
declare const usePerpsOperator: () => {
|
|
49659
49659
|
operator: PerpsOperator | undefined;
|
|
49660
49660
|
address: `0x${string}` | undefined;
|
|
49661
|
-
signMessage:
|
|
49661
|
+
signMessage: _tanstack_react_query0.UseMutationResult<void, Error, void, unknown>;
|
|
49662
49662
|
};
|
|
49663
49663
|
//#endregion
|
|
49664
49664
|
//#region src/hooks/perps/useUserPerps.d.ts
|
|
49665
|
-
declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined, type: "active" | "closed" | undefined) =>
|
|
49665
|
+
declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined, type: "active" | "closed" | undefined) => _tanstack_react_query0.UseQueryResult<{
|
|
49666
49666
|
optionId: bigint;
|
|
49667
49667
|
id: string;
|
|
49668
49668
|
ownerAddr: Address;
|
|
@@ -49671,7 +49671,7 @@ declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address
|
|
|
49671
49671
|
expiresAt: number;
|
|
49672
49672
|
closed: boolean;
|
|
49673
49673
|
}[] | undefined, Error>;
|
|
49674
|
-
declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) =>
|
|
49674
|
+
declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) => _tanstack_react_query0.UseQueryResult<{
|
|
49675
49675
|
optionId: bigint;
|
|
49676
49676
|
id: string;
|
|
49677
49677
|
ownerAddr: Address;
|
|
@@ -49680,7 +49680,7 @@ declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Ad
|
|
|
49680
49680
|
expiresAt: number;
|
|
49681
49681
|
closed: boolean;
|
|
49682
49682
|
}[] | undefined, Error>;
|
|
49683
|
-
declare const useClosedUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) =>
|
|
49683
|
+
declare const useClosedUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) => _tanstack_react_query0.UseQueryResult<{
|
|
49684
49684
|
optionId: bigint;
|
|
49685
49685
|
id: string;
|
|
49686
49686
|
ownerAddr: Address;
|
|
@@ -49904,7 +49904,7 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
49904
49904
|
};
|
|
49905
49905
|
//#endregion
|
|
49906
49906
|
//#region src/hooks/operators/useUserOperators.d.ts
|
|
49907
|
-
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) =>
|
|
49907
|
+
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => _tanstack_react_query0.UseQueryResult<{
|
|
49908
49908
|
spendingApproval: bigint;
|
|
49909
49909
|
operatorAddr: string;
|
|
49910
49910
|
__typename: "UserMarketOperator";
|
|
@@ -49920,7 +49920,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => _t
|
|
|
49920
49920
|
}[] | undefined, Error>;
|
|
49921
49921
|
//#endregion
|
|
49922
49922
|
//#region src/hooks/operators/useSetOperatorPerms.d.ts
|
|
49923
|
-
declare const useSetOperatorPerms: (marketAddr: Address | undefined) =>
|
|
49923
|
+
declare const useSetOperatorPerms: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
49924
49924
|
operator: Address;
|
|
49925
49925
|
canExtend: boolean;
|
|
49926
49926
|
canExercise: boolean;
|
|
@@ -50846,8 +50846,8 @@ declare const usePriceAtTick: (poolManager?: Address, poolKey?: PoolKey, tick?:
|
|
|
50846
50846
|
declare const usePriceAtSqrtPriceX96: (poolManager?: Address, poolKey?: PoolKey, sqrtPriceX96?: bigint) => Amount | undefined;
|
|
50847
50847
|
//#endregion
|
|
50848
50848
|
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
50849
|
-
declare const usePriceHistory: (pool: Address | undefined, token: 0 | 1, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) =>
|
|
50850
|
-
declare const useMarketPriceHistory: (marketAddr: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) =>
|
|
50849
|
+
declare const usePriceHistory: (pool: Address | undefined, token: 0 | 1, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
50850
|
+
declare const useMarketPriceHistory: (marketAddr: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
50851
50851
|
//#endregion
|
|
50852
50852
|
//#region src/hooks/vault/useBurnLiquidity.d.ts
|
|
50853
50853
|
interface BurnPosition {
|
|
@@ -51266,7 +51266,7 @@ interface MintPositionParams {
|
|
|
51266
51266
|
tickUpper: number;
|
|
51267
51267
|
liquidity: bigint;
|
|
51268
51268
|
}
|
|
51269
|
-
declare const useMintLiquidity: (vaultAddr: Address | undefined) =>
|
|
51269
|
+
declare const useMintLiquidity: (vaultAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
|
|
51270
51270
|
//#endregion
|
|
51271
51271
|
//#region src/hooks/vault/useVaultData.d.ts
|
|
51272
51272
|
declare const useVaultData: (vaultAddr: Address | undefined) => Partial<NonUndefinedGuard<{
|
|
@@ -52453,8 +52453,8 @@ declare const useGuardianGlobalState: (guardianAddr?: Address) => wagmi0.UseRead
|
|
|
52453
52453
|
//#endregion
|
|
52454
52454
|
//#region src/hooks/guardian/usePauseGlobalTrading.d.ts
|
|
52455
52455
|
declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
52456
|
-
data: undefined;
|
|
52457
52456
|
error: null;
|
|
52457
|
+
data: undefined;
|
|
52458
52458
|
status: "idle";
|
|
52459
52459
|
isError: false;
|
|
52460
52460
|
isPending: false;
|
|
@@ -52470,8 +52470,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52470
52470
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52471
52471
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52472
52472
|
} | {
|
|
52473
|
-
data: undefined;
|
|
52474
52473
|
error: null;
|
|
52474
|
+
data: undefined;
|
|
52475
52475
|
status: "pending";
|
|
52476
52476
|
isError: false;
|
|
52477
52477
|
isPending: true;
|
|
@@ -52631,8 +52631,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52631
52631
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52632
52632
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52633
52633
|
} | {
|
|
52634
|
-
data: undefined;
|
|
52635
52634
|
error: _wagmi_core0.WriteContractErrorType;
|
|
52635
|
+
data: undefined;
|
|
52636
52636
|
status: "error";
|
|
52637
52637
|
isError: true;
|
|
52638
52638
|
isPending: false;
|
|
@@ -52792,8 +52792,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52792
52792
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52793
52793
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52794
52794
|
} | {
|
|
52795
|
-
data: `0x${string}`;
|
|
52796
52795
|
error: null;
|
|
52796
|
+
data: `0x${string}`;
|
|
52797
52797
|
status: "success";
|
|
52798
52798
|
isError: false;
|
|
52799
52799
|
isPending: false;
|
|
@@ -52956,8 +52956,8 @@ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
|
|
|
52956
52956
|
//#endregion
|
|
52957
52957
|
//#region src/hooks/guardian/usePauseMarketTrading.d.ts
|
|
52958
52958
|
declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
52959
|
-
data: undefined;
|
|
52960
52959
|
error: null;
|
|
52960
|
+
data: undefined;
|
|
52961
52961
|
status: "idle";
|
|
52962
52962
|
isError: false;
|
|
52963
52963
|
isPending: false;
|
|
@@ -52973,8 +52973,8 @@ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
|
52973
52973
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
52974
52974
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
52975
52975
|
} | {
|
|
52976
|
-
data: undefined;
|
|
52977
52976
|
error: null;
|
|
52977
|
+
data: undefined;
|
|
52978
52978
|
status: "pending";
|
|
52979
52979
|
isError: false;
|
|
52980
52980
|
isPending: true;
|
|
@@ -53134,8 +53134,8 @@ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
|
53134
53134
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
53135
53135
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
53136
53136
|
} | {
|
|
53137
|
-
data: undefined;
|
|
53138
53137
|
error: _wagmi_core0.WriteContractErrorType;
|
|
53138
|
+
data: undefined;
|
|
53139
53139
|
status: "error";
|
|
53140
53140
|
isError: true;
|
|
53141
53141
|
isPending: false;
|
|
@@ -53295,8 +53295,8 @@ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
|
|
|
53295
53295
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
53296
53296
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
53297
53297
|
} | {
|
|
53298
|
-
data: `0x${string}`;
|
|
53299
53298
|
error: null;
|
|
53299
|
+
data: `0x${string}`;
|
|
53300
53300
|
status: "success";
|
|
53301
53301
|
isError: false;
|
|
53302
53302
|
isPending: false;
|
|
@@ -53468,8 +53468,8 @@ declare const useFeeRates: (feeStrategy?: Address) => Partial<NonUndefinedGuard<
|
|
|
53468
53468
|
//#endregion
|
|
53469
53469
|
//#region src/hooks/fees/useUpdateMarketFees.d.ts
|
|
53470
53470
|
declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
53471
|
-
data: undefined;
|
|
53472
53471
|
error: null;
|
|
53472
|
+
data: undefined;
|
|
53473
53473
|
status: "idle";
|
|
53474
53474
|
isError: false;
|
|
53475
53475
|
isPending: false;
|
|
@@ -53495,8 +53495,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
53495
53495
|
newFeeStrategy: `0x${string}`;
|
|
53496
53496
|
}>;
|
|
53497
53497
|
} | {
|
|
53498
|
-
data: undefined;
|
|
53499
53498
|
error: null;
|
|
53499
|
+
data: undefined;
|
|
53500
53500
|
status: "pending";
|
|
53501
53501
|
isError: false;
|
|
53502
53502
|
isPending: true;
|
|
@@ -53666,8 +53666,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
53666
53666
|
newFeeStrategy: `0x${string}`;
|
|
53667
53667
|
}>;
|
|
53668
53668
|
} | {
|
|
53669
|
-
data: undefined;
|
|
53670
53669
|
error: _wagmi_core0.WriteContractErrorType;
|
|
53670
|
+
data: undefined;
|
|
53671
53671
|
status: "error";
|
|
53672
53672
|
isError: true;
|
|
53673
53673
|
isPending: false;
|
|
@@ -53837,8 +53837,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
53837
53837
|
newFeeStrategy: `0x${string}`;
|
|
53838
53838
|
}>;
|
|
53839
53839
|
} | {
|
|
53840
|
-
data: `0x${string}`;
|
|
53841
53840
|
error: null;
|
|
53841
|
+
data: `0x${string}`;
|
|
53842
53842
|
status: "success";
|
|
53843
53843
|
isError: false;
|
|
53844
53844
|
isPending: false;
|
|
@@ -54985,8 +54985,8 @@ declare const useStaticPricingParams: (pricingAddr: Address | undefined) => Part
|
|
|
54985
54985
|
//#endregion
|
|
54986
54986
|
//#region src/hooks/pricing/useUpdateMarketPricing.d.ts
|
|
54987
54987
|
declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
54988
|
-
data: undefined;
|
|
54989
54988
|
error: null;
|
|
54989
|
+
data: undefined;
|
|
54990
54990
|
status: "idle";
|
|
54991
54991
|
isError: false;
|
|
54992
54992
|
isPending: false;
|
|
@@ -55010,8 +55010,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
|
55010
55010
|
newPricingAddr: `0x${string}`;
|
|
55011
55011
|
}>;
|
|
55012
55012
|
} | {
|
|
55013
|
-
data: undefined;
|
|
55014
55013
|
error: null;
|
|
55014
|
+
data: undefined;
|
|
55015
55015
|
status: "pending";
|
|
55016
55016
|
isError: false;
|
|
55017
55017
|
isPending: true;
|
|
@@ -55179,8 +55179,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
|
55179
55179
|
newPricingAddr: `0x${string}`;
|
|
55180
55180
|
}>;
|
|
55181
55181
|
} | {
|
|
55182
|
-
data: undefined;
|
|
55183
55182
|
error: _wagmi_core0.WriteContractErrorType;
|
|
55183
|
+
data: undefined;
|
|
55184
55184
|
status: "error";
|
|
55185
55185
|
isError: true;
|
|
55186
55186
|
isPending: false;
|
|
@@ -55348,8 +55348,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
|
|
|
55348
55348
|
newPricingAddr: `0x${string}`;
|
|
55349
55349
|
}>;
|
|
55350
55350
|
} | {
|
|
55351
|
-
data: `0x${string}`;
|
|
55352
55351
|
error: null;
|
|
55352
|
+
data: `0x${string}`;
|
|
55353
55353
|
status: "success";
|
|
55354
55354
|
isError: false;
|
|
55355
55355
|
isPending: false;
|
|
@@ -97744,4 +97744,4 @@ declare const useLens: () => {
|
|
|
97744
97744
|
};
|
|
97745
97745
|
//#endregion
|
|
97746
97746
|
export { PriceResolution as $, swapRouters as $t, useCurrentPrice as A, scaleAmount as At, getPriceAtTick as B, useMarketState as Bt, useLiquidityBlocks as C, useMintOption as Ct, usePriceAtSqrtPriceX96 as D, formatCondensed as Dt, usePriceHistory as E, formatAmount as Et, getPayoutAtTick as F, wrapAmountUnscaled as Ft, liquiditiesToAmounts as G, TimelockLens as Gt, getTickAtPrice as H, TimelockProvider as Ht, PRICE_PRECISION as I, wrapPrice as It, token0ToToken1AtTick as J, getErc20 as Jt, roundTick as K, TimelockMarket as Kt, getAmountsFromLiquidity as L, wrapPriceUnscaled as Lt, UniswapPoolData as M, unscaleAmount as Mt, usePoolData as N, unscalePrice as Nt, usePriceAtTick as O, formatUSD as Ot, getPayoutAtPrice as P, wrapAmount as Pt, PriceDataPoint as Q, stateViews as Qt, getNearestValidStrikeTick as R, zero as Rt, LiquidityBlockData as S, useClosedUserOptions as St, useMarketPriceHistory as T, Amount as Tt, liquiditiesToAmount0 as U, useCurrentMarket as Ut, getSqrtPriceX96AtPrice as V, useMarketData as Vt, liquiditiesToAmount1 as W, useTimelockConfig as Wt, token1ToToken0AtTick as X, getTimelockLens as Xt, token1ToToken0 as Y, getStateView as Yt, PriceData as Z, getTimelockMarket as Zt, useTokenData as _, useOptionPremium as _t, OptionPricingParams as a, useActiveUserPerps as at, batchGetAmountsFromLiquidity as b, OptionData as bt, usePricingParams as c, usePerpsOperator as ct, usePauseMarketTrading as d, ExerciseOptionEvent as dt, swappers as en, getCurrentPrice as et, usePauseGlobalTrading as f, ExtendEvent as ft, TokenData as g, useExtendOption as gt, useTokenBalance as h, useOptionTimeline as ht, useOptionPricingParams as i, useOperatorPerms as it, PoolKey as j, scalePrice as jt, useCurrentTick as k, formatVagueAmount as kt, useUpdateMarketFees as l, useClosePerp as lt, useApproval as m, OptionEvent as mt, useUpdateMarketPricing as n, timelockLenses as nn, useSetOperatorPerms as nt, PricingParams as o, useClosedUserPerps as ot, useGuardianGlobalState as p, MintOptionEvent as pt, token0ToToken1 as q, TimelockMarketData as qt, useStaticPricingParams as r, useUserOperators as rt, StaticPricingParams as s, useUserPerps as st, useLens as t, timelockFactories as tn, getPriceHistory as tt, useFeeRates as u, useMintPerp as ut, useVaultTVL as v, useOptionPnl as vt, useBurnLiquidity as w, useMaxPositionSize as wt, useMintLiquidity as x, useActiveUserOptions as xt, useVaultData as y, useExerciseOption as yt, getPriceAtSqrtPriceX96 as z, useMarketVolume as zt };
|
|
97747
|
-
//# sourceMappingURL=client-
|
|
97747
|
+
//# sourceMappingURL=client-d6g1gJhy.d.ts.map
|
package/dist/client.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
const require_optionUtils = require('./optionUtils-
|
|
3
|
+
const require_optionUtils = require('./optionUtils-vw98cuWU.cjs');
|
|
4
4
|
const require_statelessStateView = require('./statelessStateView-Dl3QIl1g.cjs');
|
|
5
5
|
const require_factory = require('./factory-DitVXzjQ.cjs');
|
|
6
6
|
let viem = require("viem");
|