timelock-sdk 0.0.170 → 0.0.172

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.
@@ -1,16 +1,16 @@
1
- import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-c4hgszY_.cjs";
1
+ import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-2HZ-p_dl.js";
2
2
  import * as viem0 from "viem";
3
3
  import { Address, Client, GetContractReturnType, Hex, PublicClient } from "viem";
4
+ import Big from "big.js";
5
+ import JSBI from "jsbi";
4
6
  import React, { ReactNode } from "react";
5
- import "graphql";
6
7
  import { GraphQLClient, RequestOptions } from "graphql-request";
8
+ import * as wagmi0 from "wagmi";
7
9
  import * as _tanstack_react_query0 from "@tanstack/react-query";
8
10
  import { NonUndefinedGuard } from "@tanstack/react-query";
11
+ import "graphql";
9
12
  import * as _tanstack_query_core0 from "@tanstack/query-core";
10
- import Big from "big.js";
11
- import JSBI from "jsbi";
12
13
  import * as _wagmi_core0 from "@wagmi/core";
13
- import * as wagmi0 from "wagmi";
14
14
  import * as wagmi_query0 from "wagmi/query";
15
15
  import * as abitype0 from "abitype";
16
16
 
@@ -6490,7 +6490,7 @@ declare const getStateView: (client: Client | PublicClient) => {
6490
6490
  readonly stateMutability: "view";
6491
6491
  }, {
6492
6492
  readonly type: "function";
6493
- readonly name: "getSlot0";
6493
+ readonly name: "getSlot0FromId";
6494
6494
  readonly inputs: readonly [{
6495
6495
  readonly name: "poolManager";
6496
6496
  readonly type: "address";
@@ -7337,7 +7337,7 @@ declare const getStateView: (client: Client | PublicClient) => {
7337
7337
  readonly stateMutability: "view";
7338
7338
  }, {
7339
7339
  readonly type: "function";
7340
- readonly name: "getSlot0";
7340
+ readonly name: "getSlot0FromId";
7341
7341
  readonly inputs: readonly [{
7342
7342
  readonly name: "poolManager";
7343
7343
  readonly type: "address";
@@ -8179,7 +8179,7 @@ declare const getStateView: (client: Client | PublicClient) => {
8179
8179
  readonly stateMutability: "view";
8180
8180
  }, {
8181
8181
  readonly type: "function";
8182
- readonly name: "getSlot0";
8182
+ readonly name: "getSlot0FromId";
8183
8183
  readonly inputs: readonly [{
8184
8184
  readonly name: "poolManager";
8185
8185
  readonly type: "address";
@@ -9026,7 +9026,7 @@ declare const getStateView: (client: Client | PublicClient) => {
9026
9026
  readonly stateMutability: "view";
9027
9027
  }, {
9028
9028
  readonly type: "function";
9029
- readonly name: "getSlot0";
9029
+ readonly name: "getSlot0FromId";
9030
9030
  readonly inputs: readonly [{
9031
9031
  readonly name: "poolManager";
9032
9032
  readonly type: "address";
@@ -9868,7 +9868,7 @@ declare const getStateView: (client: Client | PublicClient) => {
9868
9868
  readonly stateMutability: "view";
9869
9869
  }, {
9870
9870
  readonly type: "function";
9871
- readonly name: "getSlot0";
9871
+ readonly name: "getSlot0FromId";
9872
9872
  readonly inputs: readonly [{
9873
9873
  readonly name: "poolManager";
9874
9874
  readonly type: "address";
@@ -10715,7 +10715,7 @@ declare const getStateView: (client: Client | PublicClient) => {
10715
10715
  readonly stateMutability: "view";
10716
10716
  }, {
10717
10717
  readonly type: "function";
10718
- readonly name: "getSlot0";
10718
+ readonly name: "getSlot0FromId";
10719
10719
  readonly inputs: readonly [{
10720
10720
  readonly name: "poolManager";
10721
10721
  readonly type: "address";
@@ -11557,7 +11557,7 @@ declare const getStateView: (client: Client | PublicClient) => {
11557
11557
  readonly stateMutability: "view";
11558
11558
  }, {
11559
11559
  readonly type: "function";
11560
- readonly name: "getSlot0";
11560
+ readonly name: "getSlot0FromId";
11561
11561
  readonly inputs: readonly [{
11562
11562
  readonly name: "poolManager";
11563
11563
  readonly type: "address";
@@ -12404,7 +12404,7 @@ declare const getStateView: (client: Client | PublicClient) => {
12404
12404
  readonly stateMutability: "view";
12405
12405
  }, {
12406
12406
  readonly type: "function";
12407
- readonly name: "getSlot0";
12407
+ readonly name: "getSlot0FromId";
12408
12408
  readonly inputs: readonly [{
12409
12409
  readonly name: "poolManager";
12410
12410
  readonly type: "address";
@@ -13257,7 +13257,7 @@ declare const getStateView: (client: Client | PublicClient) => {
13257
13257
  readonly stateMutability: "view";
13258
13258
  }, {
13259
13259
  readonly type: "function";
13260
- readonly name: "getSlot0";
13260
+ readonly name: "getSlot0FromId";
13261
13261
  readonly inputs: readonly [{
13262
13262
  readonly name: "poolManager";
13263
13263
  readonly type: "address";
@@ -14110,7 +14110,7 @@ declare const getStateView: (client: Client | PublicClient) => {
14110
14110
  readonly stateMutability: "view";
14111
14111
  }, {
14112
14112
  readonly type: "function";
14113
- readonly name: "getSlot0";
14113
+ readonly name: "getSlot0FromId";
14114
14114
  readonly inputs: readonly [{
14115
14115
  readonly name: "poolManager";
14116
14116
  readonly type: "address";
@@ -14958,7 +14958,7 @@ declare const getStateView: (client: Client | PublicClient) => {
14958
14958
  readonly stateMutability: "view";
14959
14959
  }, {
14960
14960
  readonly type: "function";
14961
- readonly name: "getSlot0";
14961
+ readonly name: "getSlot0FromId";
14962
14962
  readonly inputs: readonly [{
14963
14963
  readonly name: "poolManager";
14964
14964
  readonly type: "address";
@@ -15805,7 +15805,7 @@ declare const getStateView: (client: Client | PublicClient) => {
15805
15805
  readonly stateMutability: "view";
15806
15806
  }, {
15807
15807
  readonly type: "function";
15808
- readonly name: "getSlot0";
15808
+ readonly name: "getSlot0FromId";
15809
15809
  readonly inputs: readonly [{
15810
15810
  readonly name: "poolManager";
15811
15811
  readonly type: "address";
@@ -16140,7 +16140,13 @@ declare const getStateView: (client: Client | PublicClient) => {
16140
16140
  tickSpacing: number;
16141
16141
  hooks: `0x${string}`;
16142
16142
  }, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<never>;
16143
- getSlot0: (...parameters: [args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16143
+ getSlot0: (args: readonly [`0x${string}`, {
16144
+ currency0: `0x${string}`;
16145
+ currency1: `0x${string}`;
16146
+ fee: number;
16147
+ tickSpacing: number;
16148
+ hooks: `0x${string}`;
16149
+ }], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16144
16150
  readonly type: "function";
16145
16151
  readonly name: "getFeeGrowthGlobals";
16146
16152
  readonly inputs: readonly [{
@@ -16647,7 +16653,7 @@ declare const getStateView: (client: Client | PublicClient) => {
16647
16653
  readonly stateMutability: "view";
16648
16654
  }, {
16649
16655
  readonly type: "function";
16650
- readonly name: "getSlot0";
16656
+ readonly name: "getSlot0FromId";
16651
16657
  readonly inputs: readonly [{
16652
16658
  readonly name: "poolManager";
16653
16659
  readonly type: "address";
@@ -16975,19 +16981,14 @@ declare const getStateView: (client: Client | PublicClient) => {
16975
16981
  readonly internalType: "int128";
16976
16982
  }];
16977
16983
  readonly stateMutability: "view";
16978
- }], "getSlot0", readonly [`0x${string}`, `0x${string}`] | readonly [`0x${string}`, {
16979
- currency0: `0x${string}`;
16980
- currency1: `0x${string}`;
16981
- fee: number;
16982
- tickSpacing: number;
16983
- hooks: `0x${string}`;
16984
- }]>, "address" | "abi" | "args" | "functionName">> | undefined] | [args: readonly [`0x${string}`, {
16984
+ }], "getSlot0", readonly [`0x${string}`, {
16985
16985
  currency0: `0x${string}`;
16986
16986
  currency1: `0x${string}`;
16987
16987
  fee: number;
16988
16988
  tickSpacing: number;
16989
16989
  hooks: `0x${string}`;
16990
- }], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16990
+ }]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, number, number, number]>;
16991
+ getSlot0FromId: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16991
16992
  readonly type: "function";
16992
16993
  readonly name: "getFeeGrowthGlobals";
16993
16994
  readonly inputs: readonly [{
@@ -17494,7 +17495,7 @@ declare const getStateView: (client: Client | PublicClient) => {
17494
17495
  readonly stateMutability: "view";
17495
17496
  }, {
17496
17497
  readonly type: "function";
17497
- readonly name: "getSlot0";
17498
+ readonly name: "getSlot0FromId";
17498
17499
  readonly inputs: readonly [{
17499
17500
  readonly name: "poolManager";
17500
17501
  readonly type: "address";
@@ -17822,13 +17823,7 @@ declare const getStateView: (client: Client | PublicClient) => {
17822
17823
  readonly internalType: "int128";
17823
17824
  }];
17824
17825
  readonly stateMutability: "view";
17825
- }], "getSlot0", readonly [`0x${string}`, `0x${string}`] | readonly [`0x${string}`, {
17826
- currency0: `0x${string}`;
17827
- currency1: `0x${string}`;
17828
- fee: number;
17829
- tickSpacing: number;
17830
- hooks: `0x${string}`;
17831
- }]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<never>;
17826
+ }], "getSlot0FromId", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, number, number, number]>;
17832
17827
  getTickBitmap: (...parameters: [args: readonly [`0x${string}`, `0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
17833
17828
  readonly type: "function";
17834
17829
  readonly name: "getFeeGrowthGlobals";
@@ -18336,7 +18331,7 @@ declare const getStateView: (client: Client | PublicClient) => {
18336
18331
  readonly stateMutability: "view";
18337
18332
  }, {
18338
18333
  readonly type: "function";
18339
- readonly name: "getSlot0";
18334
+ readonly name: "getSlot0FromId";
18340
18335
  readonly inputs: readonly [{
18341
18336
  readonly name: "poolManager";
18342
18337
  readonly type: "address";
@@ -19183,7 +19178,7 @@ declare const getStateView: (client: Client | PublicClient) => {
19183
19178
  readonly stateMutability: "view";
19184
19179
  }, {
19185
19180
  readonly type: "function";
19186
- readonly name: "getSlot0";
19181
+ readonly name: "getSlot0FromId";
19187
19182
  readonly inputs: readonly [{
19188
19183
  readonly name: "poolManager";
19189
19184
  readonly type: "address";
@@ -20025,7 +20020,7 @@ declare const getStateView: (client: Client | PublicClient) => {
20025
20020
  readonly stateMutability: "view";
20026
20021
  }, {
20027
20022
  readonly type: "function";
20028
- readonly name: "getSlot0";
20023
+ readonly name: "getSlot0FromId";
20029
20024
  readonly inputs: readonly [{
20030
20025
  readonly name: "poolManager";
20031
20026
  readonly type: "address";
@@ -20872,7 +20867,7 @@ declare const getStateView: (client: Client | PublicClient) => {
20872
20867
  readonly stateMutability: "view";
20873
20868
  }, {
20874
20869
  readonly type: "function";
20875
- readonly name: "getSlot0";
20870
+ readonly name: "getSlot0FromId";
20876
20871
  readonly inputs: readonly [{
20877
20872
  readonly name: "poolManager";
20878
20873
  readonly type: "address";
@@ -21714,7 +21709,7 @@ declare const getStateView: (client: Client | PublicClient) => {
21714
21709
  readonly stateMutability: "view";
21715
21710
  }, {
21716
21711
  readonly type: "function";
21717
- readonly name: "getSlot0";
21712
+ readonly name: "getSlot0FromId";
21718
21713
  readonly inputs: readonly [{
21719
21714
  readonly name: "poolManager";
21720
21715
  readonly type: "address";
@@ -22561,7 +22556,7 @@ declare const getStateView: (client: Client | PublicClient) => {
22561
22556
  readonly stateMutability: "view";
22562
22557
  }, {
22563
22558
  readonly type: "function";
22564
- readonly name: "getSlot0";
22559
+ readonly name: "getSlot0FromId";
22565
22560
  readonly inputs: readonly [{
22566
22561
  readonly name: "poolManager";
22567
22562
  readonly type: "address";
@@ -23403,7 +23398,7 @@ declare const getStateView: (client: Client | PublicClient) => {
23403
23398
  readonly stateMutability: "view";
23404
23399
  }, {
23405
23400
  readonly type: "function";
23406
- readonly name: "getSlot0";
23401
+ readonly name: "getSlot0FromId";
23407
23402
  readonly inputs: readonly [{
23408
23403
  readonly name: "poolManager";
23409
23404
  readonly type: "address";
@@ -24250,7 +24245,7 @@ declare const getStateView: (client: Client | PublicClient) => {
24250
24245
  readonly stateMutability: "view";
24251
24246
  }, {
24252
24247
  readonly type: "function";
24253
- readonly name: "getSlot0";
24248
+ readonly name: "getSlot0FromId";
24254
24249
  readonly inputs: readonly [{
24255
24250
  readonly name: "poolManager";
24256
24251
  readonly type: "address";
@@ -25094,7 +25089,7 @@ declare const getStateView: (client: Client | PublicClient) => {
25094
25089
  readonly stateMutability: "view";
25095
25090
  }, {
25096
25091
  readonly type: "function";
25097
- readonly name: "getSlot0";
25092
+ readonly name: "getSlot0FromId";
25098
25093
  readonly inputs: readonly [{
25099
25094
  readonly name: "poolManager";
25100
25095
  readonly type: "address";
@@ -48188,7 +48183,7 @@ declare const useCurrentMarket: () => Partial<TimelockMarketData>;
48188
48183
  declare const useTimelockConfig: () => TimelockContextValue;
48189
48184
  //#endregion
48190
48185
  //#region src/hooks/options/useMarketData.d.ts
48191
- declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
48186
+ declare const useMarketData: (marketAddr: Address | undefined) => Partial<NonUndefinedGuard<{
48192
48187
  guardian: `0x${string}`;
48193
48188
  vault: `0x${string}`;
48194
48189
  poolManager: `0x${string}`;
@@ -48211,7 +48206,7 @@ declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard
48211
48206
  } | undefined>>;
48212
48207
  //#endregion
48213
48208
  //#region src/hooks/options/useMarketState.d.ts
48214
- declare const useMarketState: (marketAddr?: Address) => {
48209
+ declare const useMarketState: (marketAddr: Address | undefined) => {
48215
48210
  error: viem0.ReadContractErrorType;
48216
48211
  isError: true;
48217
48212
  isPending: false;
@@ -48472,7 +48467,7 @@ declare const useMarketState: (marketAddr?: Address) => {
48472
48467
  };
48473
48468
  //#endregion
48474
48469
  //#region src/hooks/options/useMarketVolume.d.ts
48475
- declare const useMarketVolume: (marketAddr?: Address) => {
48470
+ declare const useMarketVolume: (marketAddr: Address | undefined) => {
48476
48471
  error: Error;
48477
48472
  isError: true;
48478
48473
  isPending: false;
@@ -48962,7 +48957,7 @@ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?:
48962
48957
  };
48963
48958
  //#endregion
48964
48959
  //#region src/hooks/options/useMintOption.d.ts
48965
- declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
48960
+ declare const useMintOption: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
48966
48961
  optionType: "CALL" | "PUT";
48967
48962
  amount: bigint;
48968
48963
  duration: number;
@@ -48972,7 +48967,7 @@ declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.Us
48972
48967
  //#endregion
48973
48968
  //#region src/hooks/options/useUserOptions.d.ts
48974
48969
  type OptionData = ReturnType<typeof useUserOptions>['data'][0];
48975
- declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", active?: boolean) => {
48970
+ declare const useUserOptions: (userAddr: Address | undefined, marketAddr: Address | "*" | undefined, active?: boolean) => {
48976
48971
  error: Error;
48977
48972
  isError: true;
48978
48973
  isPending: false;
@@ -51029,7 +51024,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
51029
51024
  };
51030
51025
  //#endregion
51031
51026
  //#region src/hooks/options/useExerciseOption.d.ts
51032
- declare const useExerciseOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
51027
+ declare const useExerciseOption: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
51033
51028
  option: OptionData;
51034
51029
  liquidities: readonly bigint[];
51035
51030
  }, unknown>;
@@ -51052,7 +51047,7 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
51052
51047
  };
51053
51048
  //#endregion
51054
51049
  //#region src/hooks/options/useExtendOption.d.ts
51055
- declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
51050
+ declare const useExtendOption: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
51056
51051
  option: OptionData;
51057
51052
  duration: number;
51058
51053
  }, unknown>;
@@ -51068,7 +51063,7 @@ type ExerciseOptionEvent = Extract<OptionEvent, {
51068
51063
  type ExtendEvent = Extract<OptionEvent, {
51069
51064
  type: 'extend';
51070
51065
  }>;
51071
- declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
51066
+ declare const useOptionTimeline: (marketAddr: Address | undefined, optionId: bigint | undefined) => {
51072
51067
  error: Error;
51073
51068
  isError: true;
51074
51069
  isPending: false;
@@ -51917,7 +51912,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
51917
51912
  };
51918
51913
  //#endregion
51919
51914
  //#region src/hooks/perps/useMintPerp.d.ts
51920
- declare const useMintPerp: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, {
51915
+ declare const useMintPerp: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<void, Error, {
51921
51916
  optionType: "CALL" | "PUT";
51922
51917
  amount: bigint;
51923
51918
  duration: number;
@@ -51935,7 +51930,7 @@ declare const usePerpsOperator: () => {
51935
51930
  };
51936
51931
  //#endregion
51937
51932
  //#region src/hooks/perps/useUserPerps.d.ts
51938
- declare const useUserPerps: (marketAddr?: Address, userAddr?: Address, type?: "active" | "closed") => {
51933
+ declare const useUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined, type: "active" | "closed" | undefined) => {
51939
51934
  error: Error;
51940
51935
  isError: true;
51941
51936
  isPending: false;
@@ -52242,7 +52237,7 @@ declare const useUserPerps: (marketAddr?: Address, userAddr?: Address, type?: "a
52242
52237
  closed: boolean;
52243
52238
  }[];
52244
52239
  };
52245
- declare const useActiveUserPerps: (marketAddr?: Address, userAddr?: Address) => {
52240
+ declare const useActiveUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) => {
52246
52241
  error: Error;
52247
52242
  isError: true;
52248
52243
  isPending: false;
@@ -52549,7 +52544,7 @@ declare const useActiveUserPerps: (marketAddr?: Address, userAddr?: Address) =>
52549
52544
  closed: boolean;
52550
52545
  }[];
52551
52546
  };
52552
- declare const useClosedUserPerps: (marketAddr?: Address, userAddr?: Address) => {
52547
+ declare const useClosedUserPerps: (marketAddr: Address | undefined, userAddr: Address | undefined) => {
52553
52548
  error: Error;
52554
52549
  isError: true;
52555
52550
  isPending: false;
@@ -53470,7 +53465,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
53470
53465
  };
53471
53466
  //#endregion
53472
53467
  //#region src/hooks/operators/useSetOperatorPerms.d.ts
53473
- declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
53468
+ declare const useSetOperatorPerms: (marketAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
53474
53469
  operator: Address;
53475
53470
  canExtend: boolean;
53476
53471
  canExercise: boolean;
@@ -53792,7 +53787,7 @@ interface BurnPosition {
53792
53787
  tickUpper: number;
53793
53788
  liquidity: bigint;
53794
53789
  }
53795
- declare const useBurnLiquidity: (vaultAddr?: Address) => {
53790
+ declare const useBurnLiquidity: (vaultAddr: Address | undefined) => {
53796
53791
  burnMultiple: (positions: BurnPosition[]) => Promise<void>;
53797
53792
  burn: (tickLower: number, tickUpper: number, liquidity: bigint) => Promise<`0x${string}`>;
53798
53793
  hash: `0x${string}` | undefined;
@@ -53805,7 +53800,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
53805
53800
  //#endregion
53806
53801
  //#region src/hooks/vault/useLiquidityBlocks.d.ts
53807
53802
  type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
53808
- declare const useLiquidityBlocks: (vaultAddr?: Address) => {
53803
+ declare const useLiquidityBlocks: (vaultAddr: Address | undefined) => {
53809
53804
  error: viem0.ReadContractErrorType;
53810
53805
  isError: true;
53811
53806
  isPending: false;
@@ -54203,10 +54198,10 @@ interface MintPositionParams {
54203
54198
  tickUpper: number;
54204
54199
  liquidity: bigint;
54205
54200
  }
54206
- declare const useMintLiquidity: (vaultAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
54201
+ declare const useMintLiquidity: (vaultAddr: Address | undefined) => _tanstack_react_query0.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
54207
54202
  //#endregion
54208
54203
  //#region src/hooks/vault/useVaultData.d.ts
54209
- declare const useVaultData: (vaultAddr?: Address) => Partial<NonUndefinedGuard<{
54204
+ declare const useVaultData: (vaultAddr: Address | undefined) => Partial<NonUndefinedGuard<{
54210
54205
  poolManager: `0x${string}`;
54211
54206
  poolKey: {
54212
54207
  currency0: `0x${string}`;
@@ -54219,7 +54214,7 @@ declare const useVaultData: (vaultAddr?: Address) => Partial<NonUndefinedGuard<{
54219
54214
  } | undefined>>;
54220
54215
  //#endregion
54221
54216
  //#region src/hooks/vault/useVaultTVL.d.ts
54222
- declare const useVaultTVL: (vaultAddr?: Address) => {
54217
+ declare const useVaultTVL: (vaultAddr: Address | undefined) => {
54223
54218
  tvlAs0?: undefined;
54224
54219
  tvlAs1?: undefined;
54225
54220
  total0?: undefined;
@@ -54241,7 +54236,7 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
54241
54236
  //#endregion
54242
54237
  //#region src/hooks/tokens/useTokenData.d.ts
54243
54238
  type TokenData = ReturnType<typeof useTokenData>;
54244
- declare const useTokenData: (tokenAddr?: Address) => Partial<NonUndefinedGuard<{
54239
+ declare const useTokenData: (tokenAddr: Address | undefined) => Partial<NonUndefinedGuard<{
54245
54240
  decimals: number;
54246
54241
  symbol: string;
54247
54242
  name: string;
@@ -54887,11 +54882,7 @@ declare const useGuardianGlobalState: (guardianAddr?: Address) => {
54887
54882
  };
54888
54883
  //#endregion
54889
54884
  //#region src/hooks/guardian/usePauseGlobalTrading.d.ts
54890
- declare const usePauseGlobalTrading: ({
54891
- marketAddr
54892
- }: {
54893
- marketAddr?: Address;
54894
- }) => {
54885
+ declare const usePauseGlobalTrading: (marketAddr: Address | undefined) => {
54895
54886
  error: null;
54896
54887
  data: undefined;
54897
54888
  status: "idle";
@@ -55394,11 +55385,7 @@ declare const usePauseGlobalTrading: ({
55394
55385
  };
55395
55386
  //#endregion
55396
55387
  //#region src/hooks/guardian/usePauseMarketTrading.d.ts
55397
- declare const usePauseMarketTrading: ({
55398
- marketAddr
55399
- }: {
55400
- marketAddr?: Address;
55401
- }) => {
55388
+ declare const usePauseMarketTrading: (marketAddr: Address | undefined) => {
55402
55389
  error: null;
55403
55390
  data: undefined;
55404
55391
  status: "idle";
@@ -56467,7 +56454,7 @@ type OptionPricingParams = {
56467
56454
  minPremiumAmount: bigint;
56468
56455
  };
56469
56456
  type PricingParams = StaticPricingParams | OptionPricingParams;
56470
- declare const usePricingParams: (pricingAddr?: Address) => wagmi0.UseReadContractReturnType<readonly [{
56457
+ declare const usePricingParams: (pricingAddr: Address | undefined) => wagmi0.UseReadContractReturnType<readonly [{
56471
56458
  readonly type: "function";
56472
56459
  readonly name: "batchGetRefTick";
56473
56460
  readonly inputs: readonly [{
@@ -57408,7 +57395,7 @@ declare const usePricingParams: (pricingAddr?: Address) => wagmi0.UseReadContrac
57408
57395
  }], "getPricingParams", readonly [`0x${string}`], PricingParams>;
57409
57396
  //#endregion
57410
57397
  //#region src/hooks/pricing/useOptionPricingParams.d.ts
57411
- declare const useOptionPricingParams: (pricingAddr?: Address) => Partial<NonUndefinedGuard<{
57398
+ declare const useOptionPricingParams: (pricingAddr: Address | undefined) => Partial<NonUndefinedGuard<{
57412
57399
  logicContract: `0x${string}`;
57413
57400
  iv: number;
57414
57401
  riskFreeRate: number;
@@ -57417,13 +57404,13 @@ declare const useOptionPricingParams: (pricingAddr?: Address) => Partial<NonUnde
57417
57404
  } | undefined>>;
57418
57405
  //#endregion
57419
57406
  //#region src/hooks/pricing/useStaticPricingParams.d.ts
57420
- declare const useStaticPricingParams: (pricingAddr?: Address) => Partial<NonUndefinedGuard<{
57407
+ declare const useStaticPricingParams: (pricingAddr: Address | undefined) => Partial<NonUndefinedGuard<{
57421
57408
  dailyFundingRate: number;
57422
57409
  minFundingAmount: bigint;
57423
57410
  } | undefined>>;
57424
57411
  //#endregion
57425
57412
  //#region src/hooks/pricing/useUpdateMarketPricing.d.ts
57426
- declare const useUpdateMarketPricing: (marketAddr?: Address) => {
57413
+ declare const useUpdateMarketPricing: (marketAddr: Address | undefined) => {
57427
57414
  error: null;
57428
57415
  data: undefined;
57429
57416
  status: "idle";
@@ -81154,7 +81141,7 @@ declare const useLens: () => {
81154
81141
  readonly stateMutability: "view";
81155
81142
  }, {
81156
81143
  readonly type: "function";
81157
- readonly name: "getSlot0";
81144
+ readonly name: "getSlot0FromId";
81158
81145
  readonly inputs: readonly [{
81159
81146
  readonly name: "poolManager";
81160
81147
  readonly type: "address";
@@ -82001,7 +81988,7 @@ declare const useLens: () => {
82001
81988
  readonly stateMutability: "view";
82002
81989
  }, {
82003
81990
  readonly type: "function";
82004
- readonly name: "getSlot0";
81991
+ readonly name: "getSlot0FromId";
82005
81992
  readonly inputs: readonly [{
82006
81993
  readonly name: "poolManager";
82007
81994
  readonly type: "address";
@@ -82843,7 +82830,7 @@ declare const useLens: () => {
82843
82830
  readonly stateMutability: "view";
82844
82831
  }, {
82845
82832
  readonly type: "function";
82846
- readonly name: "getSlot0";
82833
+ readonly name: "getSlot0FromId";
82847
82834
  readonly inputs: readonly [{
82848
82835
  readonly name: "poolManager";
82849
82836
  readonly type: "address";
@@ -83690,7 +83677,7 @@ declare const useLens: () => {
83690
83677
  readonly stateMutability: "view";
83691
83678
  }, {
83692
83679
  readonly type: "function";
83693
- readonly name: "getSlot0";
83680
+ readonly name: "getSlot0FromId";
83694
83681
  readonly inputs: readonly [{
83695
83682
  readonly name: "poolManager";
83696
83683
  readonly type: "address";
@@ -84532,7 +84519,7 @@ declare const useLens: () => {
84532
84519
  readonly stateMutability: "view";
84533
84520
  }, {
84534
84521
  readonly type: "function";
84535
- readonly name: "getSlot0";
84522
+ readonly name: "getSlot0FromId";
84536
84523
  readonly inputs: readonly [{
84537
84524
  readonly name: "poolManager";
84538
84525
  readonly type: "address";
@@ -85379,7 +85366,7 @@ declare const useLens: () => {
85379
85366
  readonly stateMutability: "view";
85380
85367
  }, {
85381
85368
  readonly type: "function";
85382
- readonly name: "getSlot0";
85369
+ readonly name: "getSlot0FromId";
85383
85370
  readonly inputs: readonly [{
85384
85371
  readonly name: "poolManager";
85385
85372
  readonly type: "address";
@@ -86221,7 +86208,7 @@ declare const useLens: () => {
86221
86208
  readonly stateMutability: "view";
86222
86209
  }, {
86223
86210
  readonly type: "function";
86224
- readonly name: "getSlot0";
86211
+ readonly name: "getSlot0FromId";
86225
86212
  readonly inputs: readonly [{
86226
86213
  readonly name: "poolManager";
86227
86214
  readonly type: "address";
@@ -87068,7 +87055,7 @@ declare const useLens: () => {
87068
87055
  readonly stateMutability: "view";
87069
87056
  }, {
87070
87057
  readonly type: "function";
87071
- readonly name: "getSlot0";
87058
+ readonly name: "getSlot0FromId";
87072
87059
  readonly inputs: readonly [{
87073
87060
  readonly name: "poolManager";
87074
87061
  readonly type: "address";
@@ -87921,7 +87908,7 @@ declare const useLens: () => {
87921
87908
  readonly stateMutability: "view";
87922
87909
  }, {
87923
87910
  readonly type: "function";
87924
- readonly name: "getSlot0";
87911
+ readonly name: "getSlot0FromId";
87925
87912
  readonly inputs: readonly [{
87926
87913
  readonly name: "poolManager";
87927
87914
  readonly type: "address";
@@ -88774,7 +88761,7 @@ declare const useLens: () => {
88774
88761
  readonly stateMutability: "view";
88775
88762
  }, {
88776
88763
  readonly type: "function";
88777
- readonly name: "getSlot0";
88764
+ readonly name: "getSlot0FromId";
88778
88765
  readonly inputs: readonly [{
88779
88766
  readonly name: "poolManager";
88780
88767
  readonly type: "address";
@@ -89622,7 +89609,7 @@ declare const useLens: () => {
89622
89609
  readonly stateMutability: "view";
89623
89610
  }, {
89624
89611
  readonly type: "function";
89625
- readonly name: "getSlot0";
89612
+ readonly name: "getSlot0FromId";
89626
89613
  readonly inputs: readonly [{
89627
89614
  readonly name: "poolManager";
89628
89615
  readonly type: "address";
@@ -90469,7 +90456,7 @@ declare const useLens: () => {
90469
90456
  readonly stateMutability: "view";
90470
90457
  }, {
90471
90458
  readonly type: "function";
90472
- readonly name: "getSlot0";
90459
+ readonly name: "getSlot0FromId";
90473
90460
  readonly inputs: readonly [{
90474
90461
  readonly name: "poolManager";
90475
90462
  readonly type: "address";
@@ -90804,7 +90791,13 @@ declare const useLens: () => {
90804
90791
  tickSpacing: number;
90805
90792
  hooks: `0x${string}`;
90806
90793
  }, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<never>;
90807
- getSlot0: (...parameters: [args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
90794
+ getSlot0: (args: readonly [`0x${string}`, {
90795
+ currency0: `0x${string}`;
90796
+ currency1: `0x${string}`;
90797
+ fee: number;
90798
+ tickSpacing: number;
90799
+ hooks: `0x${string}`;
90800
+ }], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
90808
90801
  readonly type: "function";
90809
90802
  readonly name: "getFeeGrowthGlobals";
90810
90803
  readonly inputs: readonly [{
@@ -91311,7 +91304,7 @@ declare const useLens: () => {
91311
91304
  readonly stateMutability: "view";
91312
91305
  }, {
91313
91306
  readonly type: "function";
91314
- readonly name: "getSlot0";
91307
+ readonly name: "getSlot0FromId";
91315
91308
  readonly inputs: readonly [{
91316
91309
  readonly name: "poolManager";
91317
91310
  readonly type: "address";
@@ -91639,19 +91632,14 @@ declare const useLens: () => {
91639
91632
  readonly internalType: "int128";
91640
91633
  }];
91641
91634
  readonly stateMutability: "view";
91642
- }], "getSlot0", readonly [`0x${string}`, `0x${string}`] | readonly [`0x${string}`, {
91635
+ }], "getSlot0", readonly [`0x${string}`, {
91643
91636
  currency0: `0x${string}`;
91644
91637
  currency1: `0x${string}`;
91645
91638
  fee: number;
91646
91639
  tickSpacing: number;
91647
91640
  hooks: `0x${string}`;
91648
- }]>, "address" | "abi" | "args" | "functionName">> | undefined] | [args: readonly [`0x${string}`, {
91649
- currency0: `0x${string}`;
91650
- currency1: `0x${string}`;
91651
- fee: number;
91652
- tickSpacing: number;
91653
- hooks: `0x${string}`;
91654
- }], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
91641
+ }]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, number, number, number]>;
91642
+ getSlot0FromId: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
91655
91643
  readonly type: "function";
91656
91644
  readonly name: "getFeeGrowthGlobals";
91657
91645
  readonly inputs: readonly [{
@@ -92158,7 +92146,7 @@ declare const useLens: () => {
92158
92146
  readonly stateMutability: "view";
92159
92147
  }, {
92160
92148
  readonly type: "function";
92161
- readonly name: "getSlot0";
92149
+ readonly name: "getSlot0FromId";
92162
92150
  readonly inputs: readonly [{
92163
92151
  readonly name: "poolManager";
92164
92152
  readonly type: "address";
@@ -92486,13 +92474,7 @@ declare const useLens: () => {
92486
92474
  readonly internalType: "int128";
92487
92475
  }];
92488
92476
  readonly stateMutability: "view";
92489
- }], "getSlot0", readonly [`0x${string}`, `0x${string}`] | readonly [`0x${string}`, {
92490
- currency0: `0x${string}`;
92491
- currency1: `0x${string}`;
92492
- fee: number;
92493
- tickSpacing: number;
92494
- hooks: `0x${string}`;
92495
- }]>, "address" | "abi" | "args" | "functionName">> | undefined]) => Promise<never>;
92477
+ }], "getSlot0FromId", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, number, number, number]>;
92496
92478
  getTickBitmap: (...parameters: [args: readonly [`0x${string}`, `0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
92497
92479
  readonly type: "function";
92498
92480
  readonly name: "getFeeGrowthGlobals";
@@ -93000,7 +92982,7 @@ declare const useLens: () => {
93000
92982
  readonly stateMutability: "view";
93001
92983
  }, {
93002
92984
  readonly type: "function";
93003
- readonly name: "getSlot0";
92985
+ readonly name: "getSlot0FromId";
93004
92986
  readonly inputs: readonly [{
93005
92987
  readonly name: "poolManager";
93006
92988
  readonly type: "address";
@@ -93847,7 +93829,7 @@ declare const useLens: () => {
93847
93829
  readonly stateMutability: "view";
93848
93830
  }, {
93849
93831
  readonly type: "function";
93850
- readonly name: "getSlot0";
93832
+ readonly name: "getSlot0FromId";
93851
93833
  readonly inputs: readonly [{
93852
93834
  readonly name: "poolManager";
93853
93835
  readonly type: "address";
@@ -94689,7 +94671,7 @@ declare const useLens: () => {
94689
94671
  readonly stateMutability: "view";
94690
94672
  }, {
94691
94673
  readonly type: "function";
94692
- readonly name: "getSlot0";
94674
+ readonly name: "getSlot0FromId";
94693
94675
  readonly inputs: readonly [{
94694
94676
  readonly name: "poolManager";
94695
94677
  readonly type: "address";
@@ -95536,7 +95518,7 @@ declare const useLens: () => {
95536
95518
  readonly stateMutability: "view";
95537
95519
  }, {
95538
95520
  readonly type: "function";
95539
- readonly name: "getSlot0";
95521
+ readonly name: "getSlot0FromId";
95540
95522
  readonly inputs: readonly [{
95541
95523
  readonly name: "poolManager";
95542
95524
  readonly type: "address";
@@ -96378,7 +96360,7 @@ declare const useLens: () => {
96378
96360
  readonly stateMutability: "view";
96379
96361
  }, {
96380
96362
  readonly type: "function";
96381
- readonly name: "getSlot0";
96363
+ readonly name: "getSlot0FromId";
96382
96364
  readonly inputs: readonly [{
96383
96365
  readonly name: "poolManager";
96384
96366
  readonly type: "address";
@@ -97225,7 +97207,7 @@ declare const useLens: () => {
97225
97207
  readonly stateMutability: "view";
97226
97208
  }, {
97227
97209
  readonly type: "function";
97228
- readonly name: "getSlot0";
97210
+ readonly name: "getSlot0FromId";
97229
97211
  readonly inputs: readonly [{
97230
97212
  readonly name: "poolManager";
97231
97213
  readonly type: "address";
@@ -98067,7 +98049,7 @@ declare const useLens: () => {
98067
98049
  readonly stateMutability: "view";
98068
98050
  }, {
98069
98051
  readonly type: "function";
98070
- readonly name: "getSlot0";
98052
+ readonly name: "getSlot0FromId";
98071
98053
  readonly inputs: readonly [{
98072
98054
  readonly name: "poolManager";
98073
98055
  readonly type: "address";
@@ -98914,7 +98896,7 @@ declare const useLens: () => {
98914
98896
  readonly stateMutability: "view";
98915
98897
  }, {
98916
98898
  readonly type: "function";
98917
- readonly name: "getSlot0";
98899
+ readonly name: "getSlot0FromId";
98918
98900
  readonly inputs: readonly [{
98919
98901
  readonly name: "poolManager";
98920
98902
  readonly type: "address";
@@ -99758,7 +99740,7 @@ declare const useLens: () => {
99758
99740
  readonly stateMutability: "view";
99759
99741
  }, {
99760
99742
  readonly type: "function";
99761
- readonly name: "getSlot0";
99743
+ readonly name: "getSlot0FromId";
99762
99744
  readonly inputs: readonly [{
99763
99745
  readonly name: "poolManager";
99764
99746
  readonly type: "address";
@@ -100091,4 +100073,4 @@ declare const useLens: () => {
100091
100073
  };
100092
100074
  //#endregion
100093
100075
  export { PriceResolution as $, stateViews as $t, useCurrentPrice as A, formatVagueAmount as At, getPriceAtTick as B, useMarketVolume as Bt, useLiquidityBlocks as C, useMintOption as Ct, usePriceAtSqrtPriceX96 as D, formatAmount as Dt, usePriceHistory as E, EMPTY_ARRAY as Et, getPayoutAtTick as F, wrapAmount as Ft, liquiditiesToAmounts as G, useTimelockConfig as Gt, getTickAtPrice as H, useMarketData as Ht, PRICE_PRECISION as I, wrapAmountUnscaled as It, token0ToToken1AtTick as J, TimelockMarketData as Jt, roundTick as K, TimelockLens as Kt, getAmountsFromLiquidity as L, wrapPrice as Lt, UniswapPoolData as M, scalePrice as Mt, usePoolData as N, unscaleAmount as Nt, usePriceAtTick as O, formatCondensed as Ot, getPayoutAtPrice as P, unscalePrice as Pt, PriceDataPoint as Q, getTimelockMarket as Qt, getNearestValidStrikeTick as R, wrapPriceUnscaled as Rt, LiquidityBlockData as S, useClosedUserOptions as St, useMarketPriceHistory as T, Amount as Tt, liquiditiesToAmount0 as U, TimelockProvider as Ut, getSqrtPriceX96AtPrice as V, useMarketState as Vt, liquiditiesToAmount1 as W, useCurrentMarket as Wt, token1ToToken0AtTick as X, getStateView as Xt, token1ToToken0 as Y, getErc20 as Yt, PriceData as Z, getTimelockLens 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, swapRouters 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, scaleAmount as jt, useCurrentTick as k, formatUSD as kt, useUpdateMarketFees as l, useClosePerp as lt, useApproval as m, OptionEvent as mt, useUpdateMarketPricing as n, timelockFactories as nn, useSetOperatorPerms as nt, PricingParams as o, useClosedUserPerps as ot, useGuardianGlobalState as p, MintOptionEvent as pt, token0ToToken1 as q, TimelockMarket as qt, useStaticPricingParams as r, timelockLenses as rn, useUserOperators as rt, StaticPricingParams as s, useUserPerps as st, useLens as t, swappers 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, zero as zt };
100094
- //# sourceMappingURL=client-TkINcahD.d.cts.map
100076
+ //# sourceMappingURL=client-DLJ_b42j.d.ts.map