timelock-sdk 0.0.164 → 0.0.166
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-Dp-YTEVp.d.ts → client-C3Dv62sE.d.cts} +951 -25
- package/dist/{client-Di1eoh5l.d.cts → client-CgVlKoVW.d.ts} +1350 -424
- package/dist/client.cjs +6 -23
- 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 +6 -23
- 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
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-
|
|
1
|
+
import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-c4hgszY_.cjs";
|
|
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";
|
|
6
4
|
import React, { ReactNode } from "react";
|
|
5
|
+
import "graphql";
|
|
7
6
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
8
|
-
import * as wagmi0 from "wagmi";
|
|
9
7
|
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
10
8
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
11
|
-
import "graphql";
|
|
12
9
|
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
10
|
+
import Big from "big.js";
|
|
11
|
+
import JSBI from "jsbi";
|
|
13
12
|
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
|
|
|
@@ -54892,8 +54892,8 @@ declare const usePauseGlobalTrading: ({
|
|
|
54892
54892
|
}: {
|
|
54893
54893
|
marketAddr?: Address;
|
|
54894
54894
|
}) => {
|
|
54895
|
-
error: null;
|
|
54896
54895
|
data: undefined;
|
|
54896
|
+
error: null;
|
|
54897
54897
|
status: "idle";
|
|
54898
54898
|
isError: false;
|
|
54899
54899
|
isPending: false;
|
|
@@ -54909,8 +54909,8 @@ declare const usePauseGlobalTrading: ({
|
|
|
54909
54909
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
54910
54910
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
54911
54911
|
} | {
|
|
54912
|
-
error: null;
|
|
54913
54912
|
data: undefined;
|
|
54913
|
+
error: null;
|
|
54914
54914
|
status: "pending";
|
|
54915
54915
|
isError: false;
|
|
54916
54916
|
isPending: true;
|
|
@@ -55070,8 +55070,8 @@ declare const usePauseGlobalTrading: ({
|
|
|
55070
55070
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
55071
55071
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
55072
55072
|
} | {
|
|
55073
|
-
error: _wagmi_core0.WriteContractErrorType;
|
|
55074
55073
|
data: undefined;
|
|
55074
|
+
error: _wagmi_core0.WriteContractErrorType;
|
|
55075
55075
|
status: "error";
|
|
55076
55076
|
isError: true;
|
|
55077
55077
|
isPending: false;
|
|
@@ -55231,8 +55231,8 @@ declare const usePauseGlobalTrading: ({
|
|
|
55231
55231
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
55232
55232
|
pauseGlobalTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
55233
55233
|
} | {
|
|
55234
|
-
error: null;
|
|
55235
55234
|
data: `0x${string}`;
|
|
55235
|
+
error: null;
|
|
55236
55236
|
status: "success";
|
|
55237
55237
|
isError: false;
|
|
55238
55238
|
isPending: false;
|
|
@@ -55399,8 +55399,8 @@ declare const usePauseMarketTrading: ({
|
|
|
55399
55399
|
}: {
|
|
55400
55400
|
marketAddr?: Address;
|
|
55401
55401
|
}) => {
|
|
55402
|
-
error: null;
|
|
55403
55402
|
data: undefined;
|
|
55403
|
+
error: null;
|
|
55404
55404
|
status: "idle";
|
|
55405
55405
|
isError: false;
|
|
55406
55406
|
isPending: false;
|
|
@@ -55416,8 +55416,8 @@ declare const usePauseMarketTrading: ({
|
|
|
55416
55416
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
55417
55417
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
55418
55418
|
} | {
|
|
55419
|
-
error: null;
|
|
55420
55419
|
data: undefined;
|
|
55420
|
+
error: null;
|
|
55421
55421
|
status: "pending";
|
|
55422
55422
|
isError: false;
|
|
55423
55423
|
isPending: true;
|
|
@@ -55577,8 +55577,8 @@ declare const usePauseMarketTrading: ({
|
|
|
55577
55577
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
55578
55578
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
55579
55579
|
} | {
|
|
55580
|
-
error: _wagmi_core0.WriteContractErrorType;
|
|
55581
55580
|
data: undefined;
|
|
55581
|
+
error: _wagmi_core0.WriteContractErrorType;
|
|
55582
55582
|
status: "error";
|
|
55583
55583
|
isError: true;
|
|
55584
55584
|
isPending: false;
|
|
@@ -55738,8 +55738,8 @@ declare const usePauseMarketTrading: ({
|
|
|
55738
55738
|
writeContract: wagmi_query0.WriteContractMutate<wagmi0.Config, unknown>;
|
|
55739
55739
|
pauseMarketTrading: (paused: boolean) => Promise<`0x${string}`>;
|
|
55740
55740
|
} | {
|
|
55741
|
-
error: null;
|
|
55742
55741
|
data: `0x${string}`;
|
|
55742
|
+
error: null;
|
|
55743
55743
|
status: "success";
|
|
55744
55744
|
isError: false;
|
|
55745
55745
|
isPending: false;
|
|
@@ -55911,8 +55911,8 @@ declare const useFeeRates: (feeStrategy?: Address) => Partial<NonUndefinedGuard<
|
|
|
55911
55911
|
//#endregion
|
|
55912
55912
|
//#region src/hooks/fees/useUpdateMarketFees.d.ts
|
|
55913
55913
|
declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
55914
|
-
error: null;
|
|
55915
55914
|
data: undefined;
|
|
55915
|
+
error: null;
|
|
55916
55916
|
status: "idle";
|
|
55917
55917
|
isError: false;
|
|
55918
55918
|
isPending: false;
|
|
@@ -55938,8 +55938,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
55938
55938
|
newFeeStrategy: `0x${string}`;
|
|
55939
55939
|
}>;
|
|
55940
55940
|
} | {
|
|
55941
|
-
error: null;
|
|
55942
55941
|
data: undefined;
|
|
55942
|
+
error: null;
|
|
55943
55943
|
status: "pending";
|
|
55944
55944
|
isError: false;
|
|
55945
55945
|
isPending: true;
|
|
@@ -56109,8 +56109,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
56109
56109
|
newFeeStrategy: `0x${string}`;
|
|
56110
56110
|
}>;
|
|
56111
56111
|
} | {
|
|
56112
|
-
error: _wagmi_core0.WriteContractErrorType;
|
|
56113
56112
|
data: undefined;
|
|
56113
|
+
error: _wagmi_core0.WriteContractErrorType;
|
|
56114
56114
|
status: "error";
|
|
56115
56115
|
isError: true;
|
|
56116
56116
|
isPending: false;
|
|
@@ -56280,8 +56280,8 @@ declare const useUpdateMarketFees: (marketAddr: Address) => {
|
|
|
56280
56280
|
newFeeStrategy: `0x${string}`;
|
|
56281
56281
|
}>;
|
|
56282
56282
|
} | {
|
|
56283
|
-
error: null;
|
|
56284
56283
|
data: `0x${string}`;
|
|
56284
|
+
error: null;
|
|
56285
56285
|
status: "success";
|
|
56286
56286
|
isError: false;
|
|
56287
56287
|
isPending: false;
|
|
@@ -56469,17 +56469,943 @@ type OptionPricingParams = {
|
|
|
56469
56469
|
type PricingParams = StaticPricingParams | OptionPricingParams;
|
|
56470
56470
|
declare const usePricingParams: (pricingAddr?: Address) => wagmi0.UseReadContractReturnType<readonly [{
|
|
56471
56471
|
readonly type: "function";
|
|
56472
|
-
readonly name: "
|
|
56472
|
+
readonly name: "batchGetRefTick";
|
|
56473
|
+
readonly inputs: readonly [{
|
|
56474
|
+
readonly name: "vault";
|
|
56475
|
+
readonly type: "address";
|
|
56476
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
56477
|
+
}, {
|
|
56478
|
+
readonly name: "tickLower";
|
|
56479
|
+
readonly type: "int24[]";
|
|
56480
|
+
readonly internalType: "int24[]";
|
|
56481
|
+
}];
|
|
56482
|
+
readonly outputs: readonly [{
|
|
56483
|
+
readonly name: "refTicks";
|
|
56484
|
+
readonly type: "int24[]";
|
|
56485
|
+
readonly internalType: "int24[]";
|
|
56486
|
+
}];
|
|
56487
|
+
readonly stateMutability: "view";
|
|
56488
|
+
}, {
|
|
56489
|
+
readonly type: "function";
|
|
56490
|
+
readonly name: "getAllBlocks";
|
|
56491
|
+
readonly inputs: readonly [{
|
|
56492
|
+
readonly name: "vault";
|
|
56493
|
+
readonly type: "address";
|
|
56494
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
56495
|
+
}];
|
|
56496
|
+
readonly outputs: readonly [{
|
|
56497
|
+
readonly name: "blocks";
|
|
56498
|
+
readonly type: "tuple[]";
|
|
56499
|
+
readonly internalType: "struct TimelockLens.LiquidityBlockData[]";
|
|
56500
|
+
readonly components: readonly [{
|
|
56501
|
+
readonly name: "tickLower";
|
|
56502
|
+
readonly type: "int24";
|
|
56503
|
+
readonly internalType: "int24";
|
|
56504
|
+
}, {
|
|
56505
|
+
readonly name: "tickUpper";
|
|
56506
|
+
readonly type: "int24";
|
|
56507
|
+
readonly internalType: "int24";
|
|
56508
|
+
}, {
|
|
56509
|
+
readonly name: "prevTickLower";
|
|
56510
|
+
readonly type: "int24";
|
|
56511
|
+
readonly internalType: "int24";
|
|
56512
|
+
}, {
|
|
56513
|
+
readonly name: "totalLiquidity";
|
|
56514
|
+
readonly type: "uint128";
|
|
56515
|
+
readonly internalType: "uint128";
|
|
56516
|
+
}, {
|
|
56517
|
+
readonly name: "borrowedLiquidity";
|
|
56518
|
+
readonly type: "uint128";
|
|
56519
|
+
readonly internalType: "uint128";
|
|
56520
|
+
}, {
|
|
56521
|
+
readonly name: "reservedLiquidity";
|
|
56522
|
+
readonly type: "uint128";
|
|
56523
|
+
readonly internalType: "uint128";
|
|
56524
|
+
}, {
|
|
56525
|
+
readonly name: "availableLiquidity";
|
|
56526
|
+
readonly type: "uint128";
|
|
56527
|
+
readonly internalType: "uint128";
|
|
56528
|
+
}, {
|
|
56529
|
+
readonly name: "totalAmount0";
|
|
56530
|
+
readonly type: "uint256";
|
|
56531
|
+
readonly internalType: "uint256";
|
|
56532
|
+
}, {
|
|
56533
|
+
readonly name: "totalAmount1";
|
|
56534
|
+
readonly type: "uint256";
|
|
56535
|
+
readonly internalType: "uint256";
|
|
56536
|
+
}, {
|
|
56537
|
+
readonly name: "borrowedAmount0";
|
|
56538
|
+
readonly type: "uint256";
|
|
56539
|
+
readonly internalType: "uint256";
|
|
56540
|
+
}, {
|
|
56541
|
+
readonly name: "borrowedAmount1";
|
|
56542
|
+
readonly type: "uint256";
|
|
56543
|
+
readonly internalType: "uint256";
|
|
56544
|
+
}];
|
|
56545
|
+
}];
|
|
56546
|
+
readonly stateMutability: "view";
|
|
56547
|
+
}, {
|
|
56548
|
+
readonly type: "function";
|
|
56549
|
+
readonly name: "getExpiredOptions";
|
|
56550
|
+
readonly inputs: readonly [{
|
|
56551
|
+
readonly name: "market";
|
|
56552
|
+
readonly type: "address";
|
|
56553
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
56554
|
+
}, {
|
|
56555
|
+
readonly name: "startId";
|
|
56556
|
+
readonly type: "uint256";
|
|
56557
|
+
readonly internalType: "uint256";
|
|
56558
|
+
}, {
|
|
56559
|
+
readonly name: "endId";
|
|
56560
|
+
readonly type: "uint256";
|
|
56561
|
+
readonly internalType: "uint256";
|
|
56562
|
+
}];
|
|
56563
|
+
readonly outputs: readonly [{
|
|
56564
|
+
readonly name: "expiredOptions";
|
|
56565
|
+
readonly type: "tuple[]";
|
|
56566
|
+
readonly internalType: "struct TimelockLens.OptionData[]";
|
|
56567
|
+
readonly components: readonly [{
|
|
56568
|
+
readonly name: "optionId";
|
|
56569
|
+
readonly type: "uint256";
|
|
56570
|
+
readonly internalType: "uint256";
|
|
56571
|
+
}, {
|
|
56572
|
+
readonly name: "owner";
|
|
56573
|
+
readonly type: "address";
|
|
56574
|
+
readonly internalType: "address";
|
|
56575
|
+
}, {
|
|
56576
|
+
readonly name: "optionType";
|
|
56577
|
+
readonly type: "uint8";
|
|
56578
|
+
readonly internalType: "uint8";
|
|
56579
|
+
}, {
|
|
56580
|
+
readonly name: "startTick";
|
|
56581
|
+
readonly type: "int24";
|
|
56582
|
+
readonly internalType: "int24";
|
|
56583
|
+
}, {
|
|
56584
|
+
readonly name: "strikeTick";
|
|
56585
|
+
readonly type: "int24";
|
|
56586
|
+
readonly internalType: "int24";
|
|
56587
|
+
}, {
|
|
56588
|
+
readonly name: "strikePrice";
|
|
56589
|
+
readonly type: "uint256";
|
|
56590
|
+
readonly internalType: "uint256";
|
|
56591
|
+
}, {
|
|
56592
|
+
readonly name: "positionSize";
|
|
56593
|
+
readonly type: "uint256";
|
|
56594
|
+
readonly internalType: "uint256";
|
|
56595
|
+
}, {
|
|
56596
|
+
readonly name: "expiresAt";
|
|
56597
|
+
readonly type: "uint32";
|
|
56598
|
+
readonly internalType: "uint32";
|
|
56599
|
+
}, {
|
|
56600
|
+
readonly name: "liquidities";
|
|
56601
|
+
readonly type: "uint128[]";
|
|
56602
|
+
readonly internalType: "uint128[]";
|
|
56603
|
+
}];
|
|
56604
|
+
}];
|
|
56605
|
+
readonly stateMutability: "view";
|
|
56606
|
+
}, {
|
|
56607
|
+
readonly type: "function";
|
|
56608
|
+
readonly name: "getFeeRates";
|
|
56609
|
+
readonly inputs: readonly [{
|
|
56610
|
+
readonly name: "feeStrategy";
|
|
56611
|
+
readonly type: "address";
|
|
56612
|
+
readonly internalType: "contract FeeStrategy";
|
|
56613
|
+
}];
|
|
56614
|
+
readonly outputs: readonly [{
|
|
56615
|
+
readonly name: "rates";
|
|
56616
|
+
readonly type: "tuple";
|
|
56617
|
+
readonly internalType: "struct TimelockLens.FeeStrategyRates";
|
|
56618
|
+
readonly components: readonly [{
|
|
56619
|
+
readonly name: "openingFeeRate";
|
|
56620
|
+
readonly type: "uint32";
|
|
56621
|
+
readonly internalType: "uint32";
|
|
56622
|
+
}, {
|
|
56623
|
+
readonly name: "baseFeeRate";
|
|
56624
|
+
readonly type: "uint32";
|
|
56625
|
+
readonly internalType: "uint32";
|
|
56626
|
+
}, {
|
|
56627
|
+
readonly name: "minOpeningFee";
|
|
56628
|
+
readonly type: "uint128";
|
|
56629
|
+
readonly internalType: "uint128";
|
|
56630
|
+
}, {
|
|
56631
|
+
readonly name: "minBaseFee";
|
|
56632
|
+
readonly type: "uint128";
|
|
56633
|
+
readonly internalType: "uint128";
|
|
56634
|
+
}, {
|
|
56635
|
+
readonly name: "feeRecipient";
|
|
56636
|
+
readonly type: "address";
|
|
56637
|
+
readonly internalType: "address";
|
|
56638
|
+
}];
|
|
56639
|
+
}];
|
|
56640
|
+
readonly stateMutability: "view";
|
|
56641
|
+
}, {
|
|
56642
|
+
readonly type: "function";
|
|
56643
|
+
readonly name: "getGlobalGuardianState";
|
|
56644
|
+
readonly inputs: readonly [{
|
|
56645
|
+
readonly name: "guardian";
|
|
56646
|
+
readonly type: "address";
|
|
56647
|
+
readonly internalType: "contract TimelockGuardian";
|
|
56648
|
+
}];
|
|
56649
|
+
readonly outputs: readonly [{
|
|
56650
|
+
readonly name: "guardianState";
|
|
56651
|
+
readonly type: "tuple";
|
|
56652
|
+
readonly internalType: "struct TimelockLens.GuardianGlobalState";
|
|
56653
|
+
readonly components: readonly [{
|
|
56654
|
+
readonly name: "globalMintPaused";
|
|
56655
|
+
readonly type: "tuple";
|
|
56656
|
+
readonly internalType: "struct TimelockGuardian.PauseState";
|
|
56657
|
+
readonly components: readonly [{
|
|
56658
|
+
readonly name: "paused";
|
|
56659
|
+
readonly type: "bool";
|
|
56660
|
+
readonly internalType: "bool";
|
|
56661
|
+
}, {
|
|
56662
|
+
readonly name: "updatedAt";
|
|
56663
|
+
readonly type: "uint64";
|
|
56664
|
+
readonly internalType: "uint64";
|
|
56665
|
+
}];
|
|
56666
|
+
}, {
|
|
56667
|
+
readonly name: "globalBurnPaused";
|
|
56668
|
+
readonly type: "tuple";
|
|
56669
|
+
readonly internalType: "struct TimelockGuardian.PauseState";
|
|
56670
|
+
readonly components: readonly [{
|
|
56671
|
+
readonly name: "paused";
|
|
56672
|
+
readonly type: "bool";
|
|
56673
|
+
readonly internalType: "bool";
|
|
56674
|
+
}, {
|
|
56675
|
+
readonly name: "updatedAt";
|
|
56676
|
+
readonly type: "uint64";
|
|
56677
|
+
readonly internalType: "uint64";
|
|
56678
|
+
}];
|
|
56679
|
+
}, {
|
|
56680
|
+
readonly name: "globalTradingPaused";
|
|
56681
|
+
readonly type: "tuple";
|
|
56682
|
+
readonly internalType: "struct TimelockGuardian.PauseState";
|
|
56683
|
+
readonly components: readonly [{
|
|
56684
|
+
readonly name: "paused";
|
|
56685
|
+
readonly type: "bool";
|
|
56686
|
+
readonly internalType: "bool";
|
|
56687
|
+
}, {
|
|
56688
|
+
readonly name: "updatedAt";
|
|
56689
|
+
readonly type: "uint64";
|
|
56690
|
+
readonly internalType: "uint64";
|
|
56691
|
+
}];
|
|
56692
|
+
}, {
|
|
56693
|
+
readonly name: "minWithdrawalInterval";
|
|
56694
|
+
readonly type: "uint256";
|
|
56695
|
+
readonly internalType: "uint256";
|
|
56696
|
+
}, {
|
|
56697
|
+
readonly name: "senderIsAdmin";
|
|
56698
|
+
readonly type: "bool";
|
|
56699
|
+
readonly internalType: "bool";
|
|
56700
|
+
}, {
|
|
56701
|
+
readonly name: "senderIsPauser";
|
|
56702
|
+
readonly type: "bool";
|
|
56703
|
+
readonly internalType: "bool";
|
|
56704
|
+
}];
|
|
56705
|
+
}];
|
|
56706
|
+
readonly stateMutability: "view";
|
|
56707
|
+
}, {
|
|
56708
|
+
readonly type: "function";
|
|
56709
|
+
readonly name: "getLiquidityAtTick";
|
|
56710
|
+
readonly inputs: readonly [{
|
|
56711
|
+
readonly name: "vault";
|
|
56712
|
+
readonly type: "address";
|
|
56713
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
56714
|
+
}, {
|
|
56715
|
+
readonly name: "tickLower";
|
|
56716
|
+
readonly type: "int24";
|
|
56717
|
+
readonly internalType: "int24";
|
|
56718
|
+
}];
|
|
56719
|
+
readonly outputs: readonly [{
|
|
56720
|
+
readonly name: "totalLiquidity";
|
|
56721
|
+
readonly type: "uint128";
|
|
56722
|
+
readonly internalType: "uint128";
|
|
56723
|
+
}, {
|
|
56724
|
+
readonly name: "borrowedLiquidity";
|
|
56725
|
+
readonly type: "uint128";
|
|
56726
|
+
readonly internalType: "uint128";
|
|
56727
|
+
}];
|
|
56473
56728
|
readonly stateMutability: "view";
|
|
56729
|
+
}, {
|
|
56730
|
+
readonly type: "function";
|
|
56731
|
+
readonly name: "getMarketData";
|
|
56474
56732
|
readonly inputs: readonly [{
|
|
56475
|
-
readonly name: "
|
|
56733
|
+
readonly name: "market";
|
|
56476
56734
|
readonly type: "address";
|
|
56735
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
56736
|
+
}];
|
|
56737
|
+
readonly outputs: readonly [{
|
|
56738
|
+
readonly name: "marketData";
|
|
56739
|
+
readonly type: "tuple";
|
|
56740
|
+
readonly internalType: "struct TimelockLens.TimelockMarketData";
|
|
56741
|
+
readonly components: readonly [{
|
|
56742
|
+
readonly name: "guardian";
|
|
56743
|
+
readonly type: "address";
|
|
56744
|
+
readonly internalType: "contract TimelockGuardian";
|
|
56745
|
+
}, {
|
|
56746
|
+
readonly name: "vault";
|
|
56747
|
+
readonly type: "address";
|
|
56748
|
+
readonly internalType: "contract ITimelockVault";
|
|
56749
|
+
}, {
|
|
56750
|
+
readonly name: "poolManager";
|
|
56751
|
+
readonly type: "address";
|
|
56752
|
+
readonly internalType: "contract IPoolManager";
|
|
56753
|
+
}, {
|
|
56754
|
+
readonly name: "poolKey";
|
|
56755
|
+
readonly type: "tuple";
|
|
56756
|
+
readonly internalType: "struct PoolKey";
|
|
56757
|
+
readonly components: readonly [{
|
|
56758
|
+
readonly name: "currency0";
|
|
56759
|
+
readonly type: "address";
|
|
56760
|
+
readonly internalType: "Currency";
|
|
56761
|
+
}, {
|
|
56762
|
+
readonly name: "currency1";
|
|
56763
|
+
readonly type: "address";
|
|
56764
|
+
readonly internalType: "Currency";
|
|
56765
|
+
}, {
|
|
56766
|
+
readonly name: "fee";
|
|
56767
|
+
readonly type: "uint24";
|
|
56768
|
+
readonly internalType: "uint24";
|
|
56769
|
+
}, {
|
|
56770
|
+
readonly name: "tickSpacing";
|
|
56771
|
+
readonly type: "int24";
|
|
56772
|
+
readonly internalType: "int24";
|
|
56773
|
+
}, {
|
|
56774
|
+
readonly name: "hooks";
|
|
56775
|
+
readonly type: "address";
|
|
56776
|
+
readonly internalType: "contract IHooks";
|
|
56777
|
+
}];
|
|
56778
|
+
}, {
|
|
56779
|
+
readonly name: "optionAssetIsToken0";
|
|
56780
|
+
readonly type: "bool";
|
|
56781
|
+
readonly internalType: "bool";
|
|
56782
|
+
}, {
|
|
56783
|
+
readonly name: "optionAsset";
|
|
56784
|
+
readonly type: "address";
|
|
56785
|
+
readonly internalType: "address";
|
|
56786
|
+
}, {
|
|
56787
|
+
readonly name: "payoutAsset";
|
|
56788
|
+
readonly type: "address";
|
|
56789
|
+
readonly internalType: "address";
|
|
56790
|
+
}, {
|
|
56791
|
+
readonly name: "optionAssetDecimals";
|
|
56792
|
+
readonly type: "uint8";
|
|
56793
|
+
readonly internalType: "uint8";
|
|
56794
|
+
}, {
|
|
56795
|
+
readonly name: "payoutAssetDecimals";
|
|
56796
|
+
readonly type: "uint8";
|
|
56797
|
+
readonly internalType: "uint8";
|
|
56798
|
+
}, {
|
|
56799
|
+
readonly name: "optionAssetSymbol";
|
|
56800
|
+
readonly type: "string";
|
|
56801
|
+
readonly internalType: "string";
|
|
56802
|
+
}, {
|
|
56803
|
+
readonly name: "payoutAssetSymbol";
|
|
56804
|
+
readonly type: "string";
|
|
56805
|
+
readonly internalType: "string";
|
|
56806
|
+
}, {
|
|
56807
|
+
readonly name: "optionAssetName";
|
|
56808
|
+
readonly type: "string";
|
|
56809
|
+
readonly internalType: "string";
|
|
56810
|
+
}, {
|
|
56811
|
+
readonly name: "payoutAssetName";
|
|
56812
|
+
readonly type: "string";
|
|
56813
|
+
readonly internalType: "string";
|
|
56814
|
+
}];
|
|
56815
|
+
}];
|
|
56816
|
+
readonly stateMutability: "view";
|
|
56817
|
+
}, {
|
|
56818
|
+
readonly type: "function";
|
|
56819
|
+
readonly name: "getMarketState";
|
|
56820
|
+
readonly inputs: readonly [{
|
|
56821
|
+
readonly name: "market";
|
|
56822
|
+
readonly type: "address";
|
|
56823
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
56824
|
+
}];
|
|
56825
|
+
readonly outputs: readonly [{
|
|
56826
|
+
readonly name: "marketState";
|
|
56827
|
+
readonly type: "tuple";
|
|
56828
|
+
readonly internalType: "struct TimelockLens.TimelockMarketState";
|
|
56829
|
+
readonly components: readonly [{
|
|
56830
|
+
readonly name: "optionsCount";
|
|
56831
|
+
readonly type: "uint256";
|
|
56832
|
+
readonly internalType: "uint256";
|
|
56833
|
+
}, {
|
|
56834
|
+
readonly name: "optionPricing";
|
|
56835
|
+
readonly type: "address";
|
|
56836
|
+
readonly internalType: "address";
|
|
56837
|
+
}, {
|
|
56838
|
+
readonly name: "feeStrategy";
|
|
56839
|
+
readonly type: "address";
|
|
56840
|
+
readonly internalType: "contract IFeeStrategy";
|
|
56841
|
+
}, {
|
|
56842
|
+
readonly name: "owner";
|
|
56843
|
+
readonly type: "address";
|
|
56844
|
+
readonly internalType: "address";
|
|
56845
|
+
}];
|
|
56846
|
+
}];
|
|
56847
|
+
readonly stateMutability: "view";
|
|
56848
|
+
}, {
|
|
56849
|
+
readonly type: "function";
|
|
56850
|
+
readonly name: "getMaxATMPositionSizes";
|
|
56851
|
+
readonly inputs: readonly [{
|
|
56852
|
+
readonly name: "market";
|
|
56853
|
+
readonly type: "address";
|
|
56854
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
56855
|
+
}, {
|
|
56856
|
+
readonly name: "maxSteps";
|
|
56857
|
+
readonly type: "int24";
|
|
56858
|
+
readonly internalType: "int24";
|
|
56859
|
+
}];
|
|
56860
|
+
readonly outputs: readonly [{
|
|
56861
|
+
readonly name: "maxCallSize";
|
|
56862
|
+
readonly type: "uint256";
|
|
56863
|
+
readonly internalType: "uint256";
|
|
56864
|
+
}, {
|
|
56865
|
+
readonly name: "maxPutSize";
|
|
56866
|
+
readonly type: "uint256";
|
|
56867
|
+
readonly internalType: "uint256";
|
|
56868
|
+
}];
|
|
56869
|
+
readonly stateMutability: "view";
|
|
56870
|
+
}, {
|
|
56871
|
+
readonly type: "function";
|
|
56872
|
+
readonly name: "getMaxBorrowable0";
|
|
56873
|
+
readonly inputs: readonly [{
|
|
56874
|
+
readonly name: "vault";
|
|
56875
|
+
readonly type: "address";
|
|
56876
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
56877
|
+
}, {
|
|
56878
|
+
readonly name: "strikeTick";
|
|
56879
|
+
readonly type: "int24";
|
|
56880
|
+
readonly internalType: "int24";
|
|
56881
|
+
}, {
|
|
56882
|
+
readonly name: "maxSteps";
|
|
56883
|
+
readonly type: "int24";
|
|
56884
|
+
readonly internalType: "int24";
|
|
56885
|
+
}];
|
|
56886
|
+
readonly outputs: readonly [{
|
|
56887
|
+
readonly name: "borrowable0";
|
|
56888
|
+
readonly type: "uint256";
|
|
56889
|
+
readonly internalType: "uint256";
|
|
56890
|
+
}];
|
|
56891
|
+
readonly stateMutability: "view";
|
|
56892
|
+
}, {
|
|
56893
|
+
readonly type: "function";
|
|
56894
|
+
readonly name: "getMaxBorrowable1";
|
|
56895
|
+
readonly inputs: readonly [{
|
|
56896
|
+
readonly name: "vault";
|
|
56897
|
+
readonly type: "address";
|
|
56898
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
56899
|
+
}, {
|
|
56900
|
+
readonly name: "strikeTick";
|
|
56901
|
+
readonly type: "int24";
|
|
56902
|
+
readonly internalType: "int24";
|
|
56903
|
+
}, {
|
|
56904
|
+
readonly name: "maxSteps";
|
|
56905
|
+
readonly type: "int24";
|
|
56906
|
+
readonly internalType: "int24";
|
|
56907
|
+
}];
|
|
56908
|
+
readonly outputs: readonly [{
|
|
56909
|
+
readonly name: "borrowable1";
|
|
56910
|
+
readonly type: "uint256";
|
|
56911
|
+
readonly internalType: "uint256";
|
|
56912
|
+
}];
|
|
56913
|
+
readonly stateMutability: "view";
|
|
56914
|
+
}, {
|
|
56915
|
+
readonly type: "function";
|
|
56916
|
+
readonly name: "getMaxPositionSizes";
|
|
56917
|
+
readonly inputs: readonly [{
|
|
56918
|
+
readonly name: "market";
|
|
56919
|
+
readonly type: "address";
|
|
56920
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
56921
|
+
}, {
|
|
56922
|
+
readonly name: "strikeTick";
|
|
56923
|
+
readonly type: "int24";
|
|
56924
|
+
readonly internalType: "int24";
|
|
56925
|
+
}, {
|
|
56926
|
+
readonly name: "maxSteps";
|
|
56927
|
+
readonly type: "int24";
|
|
56928
|
+
readonly internalType: "int24";
|
|
56929
|
+
}];
|
|
56930
|
+
readonly outputs: readonly [{
|
|
56931
|
+
readonly name: "maxCallSize";
|
|
56932
|
+
readonly type: "uint256";
|
|
56933
|
+
readonly internalType: "uint256";
|
|
56934
|
+
}, {
|
|
56935
|
+
readonly name: "maxPutSize";
|
|
56936
|
+
readonly type: "uint256";
|
|
56937
|
+
readonly internalType: "uint256";
|
|
56938
|
+
}];
|
|
56939
|
+
readonly stateMutability: "view";
|
|
56940
|
+
}, {
|
|
56941
|
+
readonly type: "function";
|
|
56942
|
+
readonly name: "getOptionData";
|
|
56943
|
+
readonly inputs: readonly [{
|
|
56944
|
+
readonly name: "market";
|
|
56945
|
+
readonly type: "address";
|
|
56946
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
56947
|
+
}, {
|
|
56948
|
+
readonly name: "optionId";
|
|
56949
|
+
readonly type: "uint256";
|
|
56950
|
+
readonly internalType: "uint256";
|
|
56477
56951
|
}];
|
|
56478
56952
|
readonly outputs: readonly [{
|
|
56479
56953
|
readonly name: "";
|
|
56954
|
+
readonly type: "tuple";
|
|
56955
|
+
readonly internalType: "struct TimelockLens.OptionData";
|
|
56956
|
+
readonly components: readonly [{
|
|
56957
|
+
readonly name: "optionId";
|
|
56958
|
+
readonly type: "uint256";
|
|
56959
|
+
readonly internalType: "uint256";
|
|
56960
|
+
}, {
|
|
56961
|
+
readonly name: "owner";
|
|
56962
|
+
readonly type: "address";
|
|
56963
|
+
readonly internalType: "address";
|
|
56964
|
+
}, {
|
|
56965
|
+
readonly name: "optionType";
|
|
56966
|
+
readonly type: "uint8";
|
|
56967
|
+
readonly internalType: "uint8";
|
|
56968
|
+
}, {
|
|
56969
|
+
readonly name: "startTick";
|
|
56970
|
+
readonly type: "int24";
|
|
56971
|
+
readonly internalType: "int24";
|
|
56972
|
+
}, {
|
|
56973
|
+
readonly name: "strikeTick";
|
|
56974
|
+
readonly type: "int24";
|
|
56975
|
+
readonly internalType: "int24";
|
|
56976
|
+
}, {
|
|
56977
|
+
readonly name: "strikePrice";
|
|
56978
|
+
readonly type: "uint256";
|
|
56979
|
+
readonly internalType: "uint256";
|
|
56980
|
+
}, {
|
|
56981
|
+
readonly name: "positionSize";
|
|
56982
|
+
readonly type: "uint256";
|
|
56983
|
+
readonly internalType: "uint256";
|
|
56984
|
+
}, {
|
|
56985
|
+
readonly name: "expiresAt";
|
|
56986
|
+
readonly type: "uint32";
|
|
56987
|
+
readonly internalType: "uint32";
|
|
56988
|
+
}, {
|
|
56989
|
+
readonly name: "liquidities";
|
|
56990
|
+
readonly type: "uint128[]";
|
|
56991
|
+
readonly internalType: "uint128[]";
|
|
56992
|
+
}];
|
|
56993
|
+
}];
|
|
56994
|
+
readonly stateMutability: "view";
|
|
56995
|
+
}, {
|
|
56996
|
+
readonly type: "function";
|
|
56997
|
+
readonly name: "getOptionPricingParams";
|
|
56998
|
+
readonly inputs: readonly [{
|
|
56999
|
+
readonly name: "pricing";
|
|
57000
|
+
readonly type: "address";
|
|
57001
|
+
readonly internalType: "contract OptionPricing";
|
|
57002
|
+
}];
|
|
57003
|
+
readonly outputs: readonly [{
|
|
57004
|
+
readonly name: "params";
|
|
57005
|
+
readonly type: "tuple";
|
|
57006
|
+
readonly internalType: "struct TimelockLens.OptionPricingParams";
|
|
57007
|
+
readonly components: readonly [{
|
|
57008
|
+
readonly name: "logicContract";
|
|
57009
|
+
readonly type: "address";
|
|
57010
|
+
readonly internalType: "contract StatelessOptionPricing";
|
|
57011
|
+
}, {
|
|
57012
|
+
readonly name: "iv";
|
|
57013
|
+
readonly type: "uint32";
|
|
57014
|
+
readonly internalType: "uint32";
|
|
57015
|
+
}, {
|
|
57016
|
+
readonly name: "riskFreeRate";
|
|
57017
|
+
readonly type: "uint32";
|
|
57018
|
+
readonly internalType: "uint32";
|
|
57019
|
+
}, {
|
|
57020
|
+
readonly name: "minPremiumDailyRate";
|
|
57021
|
+
readonly type: "uint32";
|
|
57022
|
+
readonly internalType: "uint32";
|
|
57023
|
+
}, {
|
|
57024
|
+
readonly name: "minPremiumAmount";
|
|
57025
|
+
readonly type: "uint256";
|
|
57026
|
+
readonly internalType: "uint256";
|
|
57027
|
+
}];
|
|
57028
|
+
}];
|
|
57029
|
+
readonly stateMutability: "view";
|
|
57030
|
+
}, {
|
|
57031
|
+
readonly type: "function";
|
|
57032
|
+
readonly name: "getOptionsData";
|
|
57033
|
+
readonly inputs: readonly [{
|
|
57034
|
+
readonly name: "market";
|
|
57035
|
+
readonly type: "address";
|
|
57036
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
57037
|
+
}, {
|
|
57038
|
+
readonly name: "optionIds";
|
|
57039
|
+
readonly type: "uint256[]";
|
|
57040
|
+
readonly internalType: "uint256[]";
|
|
57041
|
+
}];
|
|
57042
|
+
readonly outputs: readonly [{
|
|
57043
|
+
readonly name: "optionsData";
|
|
57044
|
+
readonly type: "tuple[]";
|
|
57045
|
+
readonly internalType: "struct TimelockLens.OptionData[]";
|
|
57046
|
+
readonly components: readonly [{
|
|
57047
|
+
readonly name: "optionId";
|
|
57048
|
+
readonly type: "uint256";
|
|
57049
|
+
readonly internalType: "uint256";
|
|
57050
|
+
}, {
|
|
57051
|
+
readonly name: "owner";
|
|
57052
|
+
readonly type: "address";
|
|
57053
|
+
readonly internalType: "address";
|
|
57054
|
+
}, {
|
|
57055
|
+
readonly name: "optionType";
|
|
57056
|
+
readonly type: "uint8";
|
|
57057
|
+
readonly internalType: "uint8";
|
|
57058
|
+
}, {
|
|
57059
|
+
readonly name: "startTick";
|
|
57060
|
+
readonly type: "int24";
|
|
57061
|
+
readonly internalType: "int24";
|
|
57062
|
+
}, {
|
|
57063
|
+
readonly name: "strikeTick";
|
|
57064
|
+
readonly type: "int24";
|
|
57065
|
+
readonly internalType: "int24";
|
|
57066
|
+
}, {
|
|
57067
|
+
readonly name: "strikePrice";
|
|
57068
|
+
readonly type: "uint256";
|
|
57069
|
+
readonly internalType: "uint256";
|
|
57070
|
+
}, {
|
|
57071
|
+
readonly name: "positionSize";
|
|
57072
|
+
readonly type: "uint256";
|
|
57073
|
+
readonly internalType: "uint256";
|
|
57074
|
+
}, {
|
|
57075
|
+
readonly name: "expiresAt";
|
|
57076
|
+
readonly type: "uint32";
|
|
57077
|
+
readonly internalType: "uint32";
|
|
57078
|
+
}, {
|
|
57079
|
+
readonly name: "liquidities";
|
|
57080
|
+
readonly type: "uint128[]";
|
|
57081
|
+
readonly internalType: "uint128[]";
|
|
57082
|
+
}];
|
|
57083
|
+
}];
|
|
57084
|
+
readonly stateMutability: "view";
|
|
57085
|
+
}, {
|
|
57086
|
+
readonly type: "function";
|
|
57087
|
+
readonly name: "getPoolData";
|
|
57088
|
+
readonly inputs: readonly [{
|
|
57089
|
+
readonly name: "poolManager";
|
|
57090
|
+
readonly type: "address";
|
|
57091
|
+
readonly internalType: "contract IPoolManager";
|
|
57092
|
+
}, {
|
|
57093
|
+
readonly name: "poolKey";
|
|
57094
|
+
readonly type: "tuple";
|
|
57095
|
+
readonly internalType: "struct PoolKey";
|
|
57096
|
+
readonly components: readonly [{
|
|
57097
|
+
readonly name: "currency0";
|
|
57098
|
+
readonly type: "address";
|
|
57099
|
+
readonly internalType: "Currency";
|
|
57100
|
+
}, {
|
|
57101
|
+
readonly name: "currency1";
|
|
57102
|
+
readonly type: "address";
|
|
57103
|
+
readonly internalType: "Currency";
|
|
57104
|
+
}, {
|
|
57105
|
+
readonly name: "fee";
|
|
57106
|
+
readonly type: "uint24";
|
|
57107
|
+
readonly internalType: "uint24";
|
|
57108
|
+
}, {
|
|
57109
|
+
readonly name: "tickSpacing";
|
|
57110
|
+
readonly type: "int24";
|
|
57111
|
+
readonly internalType: "int24";
|
|
57112
|
+
}, {
|
|
57113
|
+
readonly name: "hooks";
|
|
57114
|
+
readonly type: "address";
|
|
57115
|
+
readonly internalType: "contract IHooks";
|
|
57116
|
+
}];
|
|
57117
|
+
}];
|
|
57118
|
+
readonly outputs: readonly [{
|
|
57119
|
+
readonly name: "poolData";
|
|
57120
|
+
readonly type: "tuple";
|
|
57121
|
+
readonly internalType: "struct TimelockLens.UniswapPoolData";
|
|
57122
|
+
readonly components: readonly [{
|
|
57123
|
+
readonly name: "token0";
|
|
57124
|
+
readonly type: "address";
|
|
57125
|
+
readonly internalType: "address";
|
|
57126
|
+
}, {
|
|
57127
|
+
readonly name: "token1";
|
|
57128
|
+
readonly type: "address";
|
|
57129
|
+
readonly internalType: "address";
|
|
57130
|
+
}, {
|
|
57131
|
+
readonly name: "token0Decimals";
|
|
57132
|
+
readonly type: "uint8";
|
|
57133
|
+
readonly internalType: "uint8";
|
|
57134
|
+
}, {
|
|
57135
|
+
readonly name: "token1Decimals";
|
|
57136
|
+
readonly type: "uint8";
|
|
57137
|
+
readonly internalType: "uint8";
|
|
57138
|
+
}, {
|
|
57139
|
+
readonly name: "token0Symbol";
|
|
57140
|
+
readonly type: "string";
|
|
57141
|
+
readonly internalType: "string";
|
|
57142
|
+
}, {
|
|
57143
|
+
readonly name: "token1Symbol";
|
|
57144
|
+
readonly type: "string";
|
|
57145
|
+
readonly internalType: "string";
|
|
57146
|
+
}, {
|
|
57147
|
+
readonly name: "token0Name";
|
|
57148
|
+
readonly type: "string";
|
|
57149
|
+
readonly internalType: "string";
|
|
57150
|
+
}, {
|
|
57151
|
+
readonly name: "token1Name";
|
|
57152
|
+
readonly type: "string";
|
|
57153
|
+
readonly internalType: "string";
|
|
57154
|
+
}, {
|
|
57155
|
+
readonly name: "tickSpacing";
|
|
57156
|
+
readonly type: "int24";
|
|
57157
|
+
readonly internalType: "int24";
|
|
57158
|
+
}, {
|
|
57159
|
+
readonly name: "fee";
|
|
57160
|
+
readonly type: "uint24";
|
|
57161
|
+
readonly internalType: "uint24";
|
|
57162
|
+
}];
|
|
57163
|
+
}];
|
|
57164
|
+
readonly stateMutability: "view";
|
|
57165
|
+
}, {
|
|
57166
|
+
readonly type: "function";
|
|
57167
|
+
readonly name: "getPricingParams";
|
|
57168
|
+
readonly inputs: readonly [{
|
|
57169
|
+
readonly name: "pricing";
|
|
57170
|
+
readonly type: "address";
|
|
57171
|
+
readonly internalType: "address";
|
|
57172
|
+
}];
|
|
57173
|
+
readonly outputs: readonly [{
|
|
57174
|
+
readonly name: "pricingModel";
|
|
57175
|
+
readonly type: "uint8";
|
|
57176
|
+
readonly internalType: "uint8";
|
|
57177
|
+
}, {
|
|
57178
|
+
readonly name: "data";
|
|
56480
57179
|
readonly type: "bytes";
|
|
57180
|
+
readonly internalType: "bytes";
|
|
57181
|
+
}];
|
|
57182
|
+
readonly stateMutability: "view";
|
|
57183
|
+
}, {
|
|
57184
|
+
readonly type: "function";
|
|
57185
|
+
readonly name: "getRefTick";
|
|
57186
|
+
readonly inputs: readonly [{
|
|
57187
|
+
readonly name: "vault";
|
|
57188
|
+
readonly type: "address";
|
|
57189
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
57190
|
+
}, {
|
|
57191
|
+
readonly name: "tickLower";
|
|
57192
|
+
readonly type: "int24";
|
|
57193
|
+
readonly internalType: "int24";
|
|
57194
|
+
}];
|
|
57195
|
+
readonly outputs: readonly [{
|
|
57196
|
+
readonly name: "refTick";
|
|
57197
|
+
readonly type: "int24";
|
|
57198
|
+
readonly internalType: "int24";
|
|
57199
|
+
}];
|
|
57200
|
+
readonly stateMutability: "view";
|
|
57201
|
+
}, {
|
|
57202
|
+
readonly type: "function";
|
|
57203
|
+
readonly name: "getStaticPricingParams";
|
|
57204
|
+
readonly inputs: readonly [{
|
|
57205
|
+
readonly name: "pricing";
|
|
57206
|
+
readonly type: "address";
|
|
57207
|
+
readonly internalType: "contract StaticPerpsPricing";
|
|
57208
|
+
}];
|
|
57209
|
+
readonly outputs: readonly [{
|
|
57210
|
+
readonly name: "params";
|
|
57211
|
+
readonly type: "tuple";
|
|
57212
|
+
readonly internalType: "struct TimelockLens.StaticPerpsPricingParams";
|
|
57213
|
+
readonly components: readonly [{
|
|
57214
|
+
readonly name: "dailyFundingRate";
|
|
57215
|
+
readonly type: "uint32";
|
|
57216
|
+
readonly internalType: "uint32";
|
|
57217
|
+
}, {
|
|
57218
|
+
readonly name: "minFundingAmount";
|
|
57219
|
+
readonly type: "uint128";
|
|
57220
|
+
readonly internalType: "uint128";
|
|
57221
|
+
}];
|
|
57222
|
+
}];
|
|
57223
|
+
readonly stateMutability: "view";
|
|
57224
|
+
}, {
|
|
57225
|
+
readonly type: "function";
|
|
57226
|
+
readonly name: "getTokenData";
|
|
57227
|
+
readonly inputs: readonly [{
|
|
57228
|
+
readonly name: "token";
|
|
57229
|
+
readonly type: "address";
|
|
57230
|
+
readonly internalType: "address";
|
|
57231
|
+
}];
|
|
57232
|
+
readonly outputs: readonly [{
|
|
57233
|
+
readonly name: "tokenData";
|
|
57234
|
+
readonly type: "tuple";
|
|
57235
|
+
readonly internalType: "struct TimelockLens.TokenData";
|
|
57236
|
+
readonly components: readonly [{
|
|
57237
|
+
readonly name: "decimals";
|
|
57238
|
+
readonly type: "uint8";
|
|
57239
|
+
readonly internalType: "uint8";
|
|
57240
|
+
}, {
|
|
57241
|
+
readonly name: "symbol";
|
|
57242
|
+
readonly type: "string";
|
|
57243
|
+
readonly internalType: "string";
|
|
57244
|
+
}, {
|
|
57245
|
+
readonly name: "name";
|
|
57246
|
+
readonly type: "string";
|
|
57247
|
+
readonly internalType: "string";
|
|
57248
|
+
}];
|
|
57249
|
+
}];
|
|
57250
|
+
readonly stateMutability: "view";
|
|
57251
|
+
}, {
|
|
57252
|
+
readonly type: "function";
|
|
57253
|
+
readonly name: "getUserOptions";
|
|
57254
|
+
readonly inputs: readonly [{
|
|
57255
|
+
readonly name: "market";
|
|
57256
|
+
readonly type: "address";
|
|
57257
|
+
readonly internalType: "contract TimelockOptionsMarket";
|
|
57258
|
+
}, {
|
|
57259
|
+
readonly name: "user";
|
|
57260
|
+
readonly type: "address";
|
|
57261
|
+
readonly internalType: "address";
|
|
57262
|
+
}, {
|
|
57263
|
+
readonly name: "startId";
|
|
57264
|
+
readonly type: "uint256";
|
|
57265
|
+
readonly internalType: "uint256";
|
|
57266
|
+
}, {
|
|
57267
|
+
readonly name: "limit";
|
|
57268
|
+
readonly type: "uint256";
|
|
57269
|
+
readonly internalType: "uint256";
|
|
57270
|
+
}];
|
|
57271
|
+
readonly outputs: readonly [{
|
|
57272
|
+
readonly name: "userOptions";
|
|
57273
|
+
readonly type: "tuple[]";
|
|
57274
|
+
readonly internalType: "struct TimelockLens.OptionData[]";
|
|
57275
|
+
readonly components: readonly [{
|
|
57276
|
+
readonly name: "optionId";
|
|
57277
|
+
readonly type: "uint256";
|
|
57278
|
+
readonly internalType: "uint256";
|
|
57279
|
+
}, {
|
|
57280
|
+
readonly name: "owner";
|
|
57281
|
+
readonly type: "address";
|
|
57282
|
+
readonly internalType: "address";
|
|
57283
|
+
}, {
|
|
57284
|
+
readonly name: "optionType";
|
|
57285
|
+
readonly type: "uint8";
|
|
57286
|
+
readonly internalType: "uint8";
|
|
57287
|
+
}, {
|
|
57288
|
+
readonly name: "startTick";
|
|
57289
|
+
readonly type: "int24";
|
|
57290
|
+
readonly internalType: "int24";
|
|
57291
|
+
}, {
|
|
57292
|
+
readonly name: "strikeTick";
|
|
57293
|
+
readonly type: "int24";
|
|
57294
|
+
readonly internalType: "int24";
|
|
57295
|
+
}, {
|
|
57296
|
+
readonly name: "strikePrice";
|
|
57297
|
+
readonly type: "uint256";
|
|
57298
|
+
readonly internalType: "uint256";
|
|
57299
|
+
}, {
|
|
57300
|
+
readonly name: "positionSize";
|
|
57301
|
+
readonly type: "uint256";
|
|
57302
|
+
readonly internalType: "uint256";
|
|
57303
|
+
}, {
|
|
57304
|
+
readonly name: "expiresAt";
|
|
57305
|
+
readonly type: "uint32";
|
|
57306
|
+
readonly internalType: "uint32";
|
|
57307
|
+
}, {
|
|
57308
|
+
readonly name: "liquidities";
|
|
57309
|
+
readonly type: "uint128[]";
|
|
57310
|
+
readonly internalType: "uint128[]";
|
|
57311
|
+
}];
|
|
57312
|
+
}, {
|
|
57313
|
+
readonly name: "nextStartId";
|
|
57314
|
+
readonly type: "uint256";
|
|
57315
|
+
readonly internalType: "uint256";
|
|
57316
|
+
}, {
|
|
57317
|
+
readonly name: "hasMore";
|
|
57318
|
+
readonly type: "bool";
|
|
57319
|
+
readonly internalType: "bool";
|
|
57320
|
+
}];
|
|
57321
|
+
readonly stateMutability: "view";
|
|
57322
|
+
}, {
|
|
57323
|
+
readonly type: "function";
|
|
57324
|
+
readonly name: "getVaultData";
|
|
57325
|
+
readonly inputs: readonly [{
|
|
57326
|
+
readonly name: "vault";
|
|
57327
|
+
readonly type: "address";
|
|
57328
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
57329
|
+
}];
|
|
57330
|
+
readonly outputs: readonly [{
|
|
57331
|
+
readonly name: "vaultData";
|
|
57332
|
+
readonly type: "tuple";
|
|
57333
|
+
readonly internalType: "struct TimelockLens.TimelockVaultData";
|
|
57334
|
+
readonly components: readonly [{
|
|
57335
|
+
readonly name: "poolManager";
|
|
57336
|
+
readonly type: "address";
|
|
57337
|
+
readonly internalType: "contract IPoolManager";
|
|
57338
|
+
}, {
|
|
57339
|
+
readonly name: "poolKey";
|
|
57340
|
+
readonly type: "tuple";
|
|
57341
|
+
readonly internalType: "struct PoolKey";
|
|
57342
|
+
readonly components: readonly [{
|
|
57343
|
+
readonly name: "currency0";
|
|
57344
|
+
readonly type: "address";
|
|
57345
|
+
readonly internalType: "Currency";
|
|
57346
|
+
}, {
|
|
57347
|
+
readonly name: "currency1";
|
|
57348
|
+
readonly type: "address";
|
|
57349
|
+
readonly internalType: "Currency";
|
|
57350
|
+
}, {
|
|
57351
|
+
readonly name: "fee";
|
|
57352
|
+
readonly type: "uint24";
|
|
57353
|
+
readonly internalType: "uint24";
|
|
57354
|
+
}, {
|
|
57355
|
+
readonly name: "tickSpacing";
|
|
57356
|
+
readonly type: "int24";
|
|
57357
|
+
readonly internalType: "int24";
|
|
57358
|
+
}, {
|
|
57359
|
+
readonly name: "hooks";
|
|
57360
|
+
readonly type: "address";
|
|
57361
|
+
readonly internalType: "contract IHooks";
|
|
57362
|
+
}];
|
|
57363
|
+
}, {
|
|
57364
|
+
readonly name: "owner";
|
|
57365
|
+
readonly type: "address";
|
|
57366
|
+
readonly internalType: "address";
|
|
57367
|
+
}];
|
|
57368
|
+
}];
|
|
57369
|
+
readonly stateMutability: "view";
|
|
57370
|
+
}, {
|
|
57371
|
+
readonly type: "function";
|
|
57372
|
+
readonly name: "getVaultTVL";
|
|
57373
|
+
readonly inputs: readonly [{
|
|
57374
|
+
readonly name: "vault";
|
|
57375
|
+
readonly type: "address";
|
|
57376
|
+
readonly internalType: "contract TimelockSingleOwnerVault";
|
|
57377
|
+
}];
|
|
57378
|
+
readonly outputs: readonly [{
|
|
57379
|
+
readonly name: "total0";
|
|
57380
|
+
readonly type: "uint256";
|
|
57381
|
+
readonly internalType: "uint256";
|
|
57382
|
+
}, {
|
|
57383
|
+
readonly name: "total1";
|
|
57384
|
+
readonly type: "uint256";
|
|
57385
|
+
readonly internalType: "uint256";
|
|
57386
|
+
}, {
|
|
57387
|
+
readonly name: "borrowed0";
|
|
57388
|
+
readonly type: "uint256";
|
|
57389
|
+
readonly internalType: "uint256";
|
|
57390
|
+
}, {
|
|
57391
|
+
readonly name: "borrowed1";
|
|
57392
|
+
readonly type: "uint256";
|
|
57393
|
+
readonly internalType: "uint256";
|
|
57394
|
+
}, {
|
|
57395
|
+
readonly name: "tvlAs0";
|
|
57396
|
+
readonly type: "uint256";
|
|
57397
|
+
readonly internalType: "uint256";
|
|
57398
|
+
}, {
|
|
57399
|
+
readonly name: "tvlAs1";
|
|
57400
|
+
readonly type: "uint256";
|
|
57401
|
+
readonly internalType: "uint256";
|
|
57402
|
+
}, {
|
|
57403
|
+
readonly name: "blocksCount";
|
|
57404
|
+
readonly type: "uint256";
|
|
57405
|
+
readonly internalType: "uint256";
|
|
56481
57406
|
}];
|
|
56482
|
-
|
|
57407
|
+
readonly stateMutability: "view";
|
|
57408
|
+
}], "getPricingParams", readonly [`0x${string}`], PricingParams>;
|
|
56483
57409
|
//#endregion
|
|
56484
57410
|
//#region src/hooks/pricing/useOptionPricingParams.d.ts
|
|
56485
57411
|
declare const useOptionPricingParams: (pricingAddr?: Address) => Partial<NonUndefinedGuard<{
|
|
@@ -56498,8 +57424,8 @@ declare const useStaticPricingParams: (pricingAddr?: Address) => Partial<NonUnde
|
|
|
56498
57424
|
//#endregion
|
|
56499
57425
|
//#region src/hooks/pricing/useUpdateMarketPricing.d.ts
|
|
56500
57426
|
declare const useUpdateMarketPricing: (marketAddr: Address) => {
|
|
56501
|
-
error: null;
|
|
56502
57427
|
data: undefined;
|
|
57428
|
+
error: null;
|
|
56503
57429
|
status: "idle";
|
|
56504
57430
|
isError: false;
|
|
56505
57431
|
isPending: false;
|
|
@@ -56523,8 +57449,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address) => {
|
|
|
56523
57449
|
newPricingAddr: `0x${string}`;
|
|
56524
57450
|
}>;
|
|
56525
57451
|
} | {
|
|
56526
|
-
error: null;
|
|
56527
57452
|
data: undefined;
|
|
57453
|
+
error: null;
|
|
56528
57454
|
status: "pending";
|
|
56529
57455
|
isError: false;
|
|
56530
57456
|
isPending: true;
|
|
@@ -56692,8 +57618,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address) => {
|
|
|
56692
57618
|
newPricingAddr: `0x${string}`;
|
|
56693
57619
|
}>;
|
|
56694
57620
|
} | {
|
|
56695
|
-
error: _wagmi_core0.WriteContractErrorType;
|
|
56696
57621
|
data: undefined;
|
|
57622
|
+
error: _wagmi_core0.WriteContractErrorType;
|
|
56697
57623
|
status: "error";
|
|
56698
57624
|
isError: true;
|
|
56699
57625
|
isPending: false;
|
|
@@ -56861,8 +57787,8 @@ declare const useUpdateMarketPricing: (marketAddr: Address) => {
|
|
|
56861
57787
|
newPricingAddr: `0x${string}`;
|
|
56862
57788
|
}>;
|
|
56863
57789
|
} | {
|
|
56864
|
-
error: null;
|
|
56865
57790
|
data: `0x${string}`;
|
|
57791
|
+
error: null;
|
|
56866
57792
|
status: "success";
|
|
56867
57793
|
isError: false;
|
|
56868
57794
|
isPending: false;
|
|
@@ -99165,4 +100091,4 @@ declare const useLens: () => {
|
|
|
99165
100091
|
};
|
|
99166
100092
|
//#endregion
|
|
99167
100093
|
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 };
|
|
99168
|
-
//# sourceMappingURL=client-
|
|
100094
|
+
//# sourceMappingURL=client-C3Dv62sE.d.cts.map
|