timelock-sdk 0.0.120 → 0.0.122
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-CTL-mr5n.d.ts → client-B05FmAOu.d.cts} +125 -166
- package/dist/{client-r3O6AK_5.d.cts → client-DD0ZqvvE.d.ts} +125 -166
- package/dist/client.cjs +57 -58
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +57 -58
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-CtGcjfvf.js → optionUtils-BTJL8VrK.js} +28 -15
- package/dist/optionUtils-BTJL8VrK.js.map +1 -0
- package/dist/{optionUtils-BHL27KMw.cjs → optionUtils-TQHs3mDI.cjs} +53 -16
- package/dist/optionUtils-TQHs3mDI.cjs.map +1 -0
- package/dist/package.cjs +6 -2
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/package.json +1 -1
- package/dist/optionUtils-BHL27KMw.cjs.map +0 -1
- package/dist/optionUtils-CtGcjfvf.js.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-
|
|
1
|
+
import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-DtacRMPz.cjs";
|
|
2
2
|
import * as viem148 from "viem";
|
|
3
3
|
import { Address, Client, GetContractReturnType, Hex, PublicClient } from "viem";
|
|
4
|
-
import Big from "big.js";
|
|
5
4
|
import React, { ReactNode } from "react";
|
|
5
|
+
import "graphql";
|
|
6
6
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
7
7
|
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
8
8
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
9
|
-
import "graphql";
|
|
10
9
|
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
10
|
+
import Big from "big.js";
|
|
11
|
+
import JSBI from "jsbi";
|
|
11
12
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
12
13
|
|
|
13
14
|
//#region src/generated/graphql.d.ts
|
|
@@ -60,7 +61,6 @@ type UserOptionFieldsFragment = {
|
|
|
60
61
|
optionId: any;
|
|
61
62
|
optionType: any;
|
|
62
63
|
strikeTick: number;
|
|
63
|
-
entryTick: number;
|
|
64
64
|
startTick: number;
|
|
65
65
|
strikePrice: any;
|
|
66
66
|
entryPrice: any;
|
|
@@ -177,7 +177,7 @@ type GetOptionEventsQuery = {
|
|
|
177
177
|
id: string;
|
|
178
178
|
optionType: number;
|
|
179
179
|
strikeTick: number;
|
|
180
|
-
|
|
180
|
+
price: any;
|
|
181
181
|
expiresAt: any;
|
|
182
182
|
premium: any;
|
|
183
183
|
protocolFee: any;
|
|
@@ -190,7 +190,7 @@ type GetOptionEventsQuery = {
|
|
|
190
190
|
__typename: 'ExerciseOptionEvent';
|
|
191
191
|
id: string;
|
|
192
192
|
liquidities: Array<string>;
|
|
193
|
-
|
|
193
|
+
price: any;
|
|
194
194
|
payout: any;
|
|
195
195
|
timestamp: any;
|
|
196
196
|
blockNumber: any;
|
|
@@ -201,7 +201,7 @@ type GetOptionEventsQuery = {
|
|
|
201
201
|
id: string;
|
|
202
202
|
premium: any;
|
|
203
203
|
protocolFee: any;
|
|
204
|
-
|
|
204
|
+
price: any;
|
|
205
205
|
addedDuration: any;
|
|
206
206
|
timestamp: any;
|
|
207
207
|
blockNumber: any;
|
|
@@ -407,7 +407,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
407
407
|
}];
|
|
408
408
|
readonly stateMutability: "nonpayable";
|
|
409
409
|
}], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
410
|
-
|
|
410
|
+
name: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
|
|
411
411
|
readonly type: "constructor";
|
|
412
412
|
readonly inputs: readonly [{
|
|
413
413
|
readonly name: "name_";
|
|
@@ -585,8 +585,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
585
585
|
readonly internalType: "bool";
|
|
586
586
|
}];
|
|
587
587
|
readonly stateMutability: "nonpayable";
|
|
588
|
-
}], "
|
|
589
|
-
|
|
588
|
+
}], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
589
|
+
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
|
|
590
590
|
readonly type: "constructor";
|
|
591
591
|
readonly inputs: readonly [{
|
|
592
592
|
readonly name: "name_";
|
|
@@ -764,8 +764,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
764
764
|
readonly internalType: "bool";
|
|
765
765
|
}];
|
|
766
766
|
readonly stateMutability: "nonpayable";
|
|
767
|
-
}], "
|
|
768
|
-
|
|
767
|
+
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
768
|
+
balanceOf: (args: readonly [`0x${string}`], options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
|
|
769
769
|
readonly type: "constructor";
|
|
770
770
|
readonly inputs: readonly [{
|
|
771
771
|
readonly name: "name_";
|
|
@@ -943,8 +943,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
943
943
|
readonly internalType: "bool";
|
|
944
944
|
}];
|
|
945
945
|
readonly stateMutability: "nonpayable";
|
|
946
|
-
}], "
|
|
947
|
-
|
|
946
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
947
|
+
decimals: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
|
|
948
948
|
readonly type: "constructor";
|
|
949
949
|
readonly inputs: readonly [{
|
|
950
950
|
readonly name: "name_";
|
|
@@ -1122,7 +1122,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1122
1122
|
readonly internalType: "bool";
|
|
1123
1123
|
}];
|
|
1124
1124
|
readonly stateMutability: "nonpayable";
|
|
1125
|
-
}], "
|
|
1125
|
+
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
1126
1126
|
totalSupply: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
|
|
1127
1127
|
readonly type: "constructor";
|
|
1128
1128
|
readonly inputs: readonly [{
|
|
@@ -31771,7 +31771,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31771
31771
|
__typename: "UserOption";
|
|
31772
31772
|
id: string;
|
|
31773
31773
|
strikeTick: number;
|
|
31774
|
-
entryTick: number;
|
|
31775
31774
|
startTick: number;
|
|
31776
31775
|
fullyExercised: boolean;
|
|
31777
31776
|
owner?: {
|
|
@@ -31803,7 +31802,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31803
31802
|
__typename: "UserOption";
|
|
31804
31803
|
id: string;
|
|
31805
31804
|
strikeTick: number;
|
|
31806
|
-
entryTick: number;
|
|
31807
31805
|
startTick: number;
|
|
31808
31806
|
fullyExercised: boolean;
|
|
31809
31807
|
owner?: {
|
|
@@ -31834,7 +31832,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31834
31832
|
__typename: "UserOption";
|
|
31835
31833
|
id: string;
|
|
31836
31834
|
strikeTick: number;
|
|
31837
|
-
entryTick: number;
|
|
31838
31835
|
startTick: number;
|
|
31839
31836
|
fullyExercised: boolean;
|
|
31840
31837
|
owner?: {
|
|
@@ -31888,7 +31885,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31888
31885
|
__typename: "UserOption";
|
|
31889
31886
|
id: string;
|
|
31890
31887
|
strikeTick: number;
|
|
31891
|
-
entryTick: number;
|
|
31892
31888
|
startTick: number;
|
|
31893
31889
|
fullyExercised: boolean;
|
|
31894
31890
|
owner?: {
|
|
@@ -31920,7 +31916,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31920
31916
|
__typename: "UserOption";
|
|
31921
31917
|
id: string;
|
|
31922
31918
|
strikeTick: number;
|
|
31923
|
-
entryTick: number;
|
|
31924
31919
|
startTick: number;
|
|
31925
31920
|
fullyExercised: boolean;
|
|
31926
31921
|
owner?: {
|
|
@@ -31951,7 +31946,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31951
31946
|
__typename: "UserOption";
|
|
31952
31947
|
id: string;
|
|
31953
31948
|
strikeTick: number;
|
|
31954
|
-
entryTick: number;
|
|
31955
31949
|
startTick: number;
|
|
31956
31950
|
fullyExercised: boolean;
|
|
31957
31951
|
owner?: {
|
|
@@ -32005,7 +31999,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32005
31999
|
__typename: "UserOption";
|
|
32006
32000
|
id: string;
|
|
32007
32001
|
strikeTick: number;
|
|
32008
|
-
entryTick: number;
|
|
32009
32002
|
startTick: number;
|
|
32010
32003
|
fullyExercised: boolean;
|
|
32011
32004
|
owner?: {
|
|
@@ -32037,7 +32030,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32037
32030
|
__typename: "UserOption";
|
|
32038
32031
|
id: string;
|
|
32039
32032
|
strikeTick: number;
|
|
32040
|
-
entryTick: number;
|
|
32041
32033
|
startTick: number;
|
|
32042
32034
|
fullyExercised: boolean;
|
|
32043
32035
|
owner?: {
|
|
@@ -32068,7 +32060,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32068
32060
|
__typename: "UserOption";
|
|
32069
32061
|
id: string;
|
|
32070
32062
|
strikeTick: number;
|
|
32071
|
-
entryTick: number;
|
|
32072
32063
|
startTick: number;
|
|
32073
32064
|
fullyExercised: boolean;
|
|
32074
32065
|
owner?: {
|
|
@@ -32122,7 +32113,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32122
32113
|
__typename: "UserOption";
|
|
32123
32114
|
id: string;
|
|
32124
32115
|
strikeTick: number;
|
|
32125
|
-
entryTick: number;
|
|
32126
32116
|
startTick: number;
|
|
32127
32117
|
fullyExercised: boolean;
|
|
32128
32118
|
owner?: {
|
|
@@ -32154,7 +32144,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32154
32144
|
__typename: "UserOption";
|
|
32155
32145
|
id: string;
|
|
32156
32146
|
strikeTick: number;
|
|
32157
|
-
entryTick: number;
|
|
32158
32147
|
startTick: number;
|
|
32159
32148
|
fullyExercised: boolean;
|
|
32160
32149
|
owner?: {
|
|
@@ -32185,7 +32174,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32185
32174
|
__typename: "UserOption";
|
|
32186
32175
|
id: string;
|
|
32187
32176
|
strikeTick: number;
|
|
32188
|
-
entryTick: number;
|
|
32189
32177
|
startTick: number;
|
|
32190
32178
|
fullyExercised: boolean;
|
|
32191
32179
|
owner?: {
|
|
@@ -32239,7 +32227,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32239
32227
|
__typename: "UserOption";
|
|
32240
32228
|
id: string;
|
|
32241
32229
|
strikeTick: number;
|
|
32242
|
-
entryTick: number;
|
|
32243
32230
|
startTick: number;
|
|
32244
32231
|
fullyExercised: boolean;
|
|
32245
32232
|
owner?: {
|
|
@@ -32271,7 +32258,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32271
32258
|
__typename: "UserOption";
|
|
32272
32259
|
id: string;
|
|
32273
32260
|
strikeTick: number;
|
|
32274
|
-
entryTick: number;
|
|
32275
32261
|
startTick: number;
|
|
32276
32262
|
fullyExercised: boolean;
|
|
32277
32263
|
owner?: {
|
|
@@ -32302,7 +32288,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32302
32288
|
__typename: "UserOption";
|
|
32303
32289
|
id: string;
|
|
32304
32290
|
strikeTick: number;
|
|
32305
|
-
entryTick: number;
|
|
32306
32291
|
startTick: number;
|
|
32307
32292
|
fullyExercised: boolean;
|
|
32308
32293
|
owner?: {
|
|
@@ -32356,7 +32341,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32356
32341
|
__typename: "UserOption";
|
|
32357
32342
|
id: string;
|
|
32358
32343
|
strikeTick: number;
|
|
32359
|
-
entryTick: number;
|
|
32360
32344
|
startTick: number;
|
|
32361
32345
|
fullyExercised: boolean;
|
|
32362
32346
|
owner?: {
|
|
@@ -32388,7 +32372,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32388
32372
|
__typename: "UserOption";
|
|
32389
32373
|
id: string;
|
|
32390
32374
|
strikeTick: number;
|
|
32391
|
-
entryTick: number;
|
|
32392
32375
|
startTick: number;
|
|
32393
32376
|
fullyExercised: boolean;
|
|
32394
32377
|
owner?: {
|
|
@@ -32419,7 +32402,6 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32419
32402
|
__typename: "UserOption";
|
|
32420
32403
|
id: string;
|
|
32421
32404
|
strikeTick: number;
|
|
32422
|
-
entryTick: number;
|
|
32423
32405
|
startTick: number;
|
|
32424
32406
|
fullyExercised: boolean;
|
|
32425
32407
|
owner?: {
|
|
@@ -32474,7 +32456,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32474
32456
|
__typename: "UserOption";
|
|
32475
32457
|
id: string;
|
|
32476
32458
|
strikeTick: number;
|
|
32477
|
-
entryTick: number;
|
|
32478
32459
|
startTick: number;
|
|
32479
32460
|
fullyExercised: boolean;
|
|
32480
32461
|
owner?: {
|
|
@@ -32506,7 +32487,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32506
32487
|
__typename: "UserOption";
|
|
32507
32488
|
id: string;
|
|
32508
32489
|
strikeTick: number;
|
|
32509
|
-
entryTick: number;
|
|
32510
32490
|
startTick: number;
|
|
32511
32491
|
fullyExercised: boolean;
|
|
32512
32492
|
owner?: {
|
|
@@ -32537,7 +32517,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32537
32517
|
__typename: "UserOption";
|
|
32538
32518
|
id: string;
|
|
32539
32519
|
strikeTick: number;
|
|
32540
|
-
entryTick: number;
|
|
32541
32520
|
startTick: number;
|
|
32542
32521
|
fullyExercised: boolean;
|
|
32543
32522
|
owner?: {
|
|
@@ -32591,7 +32570,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32591
32570
|
__typename: "UserOption";
|
|
32592
32571
|
id: string;
|
|
32593
32572
|
strikeTick: number;
|
|
32594
|
-
entryTick: number;
|
|
32595
32573
|
startTick: number;
|
|
32596
32574
|
fullyExercised: boolean;
|
|
32597
32575
|
owner?: {
|
|
@@ -32623,7 +32601,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32623
32601
|
__typename: "UserOption";
|
|
32624
32602
|
id: string;
|
|
32625
32603
|
strikeTick: number;
|
|
32626
|
-
entryTick: number;
|
|
32627
32604
|
startTick: number;
|
|
32628
32605
|
fullyExercised: boolean;
|
|
32629
32606
|
owner?: {
|
|
@@ -32654,7 +32631,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32654
32631
|
__typename: "UserOption";
|
|
32655
32632
|
id: string;
|
|
32656
32633
|
strikeTick: number;
|
|
32657
|
-
entryTick: number;
|
|
32658
32634
|
startTick: number;
|
|
32659
32635
|
fullyExercised: boolean;
|
|
32660
32636
|
owner?: {
|
|
@@ -32708,7 +32684,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32708
32684
|
__typename: "UserOption";
|
|
32709
32685
|
id: string;
|
|
32710
32686
|
strikeTick: number;
|
|
32711
|
-
entryTick: number;
|
|
32712
32687
|
startTick: number;
|
|
32713
32688
|
fullyExercised: boolean;
|
|
32714
32689
|
owner?: {
|
|
@@ -32740,7 +32715,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32740
32715
|
__typename: "UserOption";
|
|
32741
32716
|
id: string;
|
|
32742
32717
|
strikeTick: number;
|
|
32743
|
-
entryTick: number;
|
|
32744
32718
|
startTick: number;
|
|
32745
32719
|
fullyExercised: boolean;
|
|
32746
32720
|
owner?: {
|
|
@@ -32771,7 +32745,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32771
32745
|
__typename: "UserOption";
|
|
32772
32746
|
id: string;
|
|
32773
32747
|
strikeTick: number;
|
|
32774
|
-
entryTick: number;
|
|
32775
32748
|
startTick: number;
|
|
32776
32749
|
fullyExercised: boolean;
|
|
32777
32750
|
owner?: {
|
|
@@ -32825,7 +32798,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32825
32798
|
__typename: "UserOption";
|
|
32826
32799
|
id: string;
|
|
32827
32800
|
strikeTick: number;
|
|
32828
|
-
entryTick: number;
|
|
32829
32801
|
startTick: number;
|
|
32830
32802
|
fullyExercised: boolean;
|
|
32831
32803
|
owner?: {
|
|
@@ -32857,7 +32829,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32857
32829
|
__typename: "UserOption";
|
|
32858
32830
|
id: string;
|
|
32859
32831
|
strikeTick: number;
|
|
32860
|
-
entryTick: number;
|
|
32861
32832
|
startTick: number;
|
|
32862
32833
|
fullyExercised: boolean;
|
|
32863
32834
|
owner?: {
|
|
@@ -32888,7 +32859,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32888
32859
|
__typename: "UserOption";
|
|
32889
32860
|
id: string;
|
|
32890
32861
|
strikeTick: number;
|
|
32891
|
-
entryTick: number;
|
|
32892
32862
|
startTick: number;
|
|
32893
32863
|
fullyExercised: boolean;
|
|
32894
32864
|
owner?: {
|
|
@@ -32942,7 +32912,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32942
32912
|
__typename: "UserOption";
|
|
32943
32913
|
id: string;
|
|
32944
32914
|
strikeTick: number;
|
|
32945
|
-
entryTick: number;
|
|
32946
32915
|
startTick: number;
|
|
32947
32916
|
fullyExercised: boolean;
|
|
32948
32917
|
owner?: {
|
|
@@ -32974,7 +32943,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32974
32943
|
__typename: "UserOption";
|
|
32975
32944
|
id: string;
|
|
32976
32945
|
strikeTick: number;
|
|
32977
|
-
entryTick: number;
|
|
32978
32946
|
startTick: number;
|
|
32979
32947
|
fullyExercised: boolean;
|
|
32980
32948
|
owner?: {
|
|
@@ -33005,7 +32973,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33005
32973
|
__typename: "UserOption";
|
|
33006
32974
|
id: string;
|
|
33007
32975
|
strikeTick: number;
|
|
33008
|
-
entryTick: number;
|
|
33009
32976
|
startTick: number;
|
|
33010
32977
|
fullyExercised: boolean;
|
|
33011
32978
|
owner?: {
|
|
@@ -33059,7 +33026,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33059
33026
|
__typename: "UserOption";
|
|
33060
33027
|
id: string;
|
|
33061
33028
|
strikeTick: number;
|
|
33062
|
-
entryTick: number;
|
|
33063
33029
|
startTick: number;
|
|
33064
33030
|
fullyExercised: boolean;
|
|
33065
33031
|
owner?: {
|
|
@@ -33091,7 +33057,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33091
33057
|
__typename: "UserOption";
|
|
33092
33058
|
id: string;
|
|
33093
33059
|
strikeTick: number;
|
|
33094
|
-
entryTick: number;
|
|
33095
33060
|
startTick: number;
|
|
33096
33061
|
fullyExercised: boolean;
|
|
33097
33062
|
owner?: {
|
|
@@ -33122,7 +33087,6 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33122
33087
|
__typename: "UserOption";
|
|
33123
33088
|
id: string;
|
|
33124
33089
|
strikeTick: number;
|
|
33125
|
-
entryTick: number;
|
|
33126
33090
|
startTick: number;
|
|
33127
33091
|
fullyExercised: boolean;
|
|
33128
33092
|
owner?: {
|
|
@@ -33177,7 +33141,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33177
33141
|
__typename: "UserOption";
|
|
33178
33142
|
id: string;
|
|
33179
33143
|
strikeTick: number;
|
|
33180
|
-
entryTick: number;
|
|
33181
33144
|
startTick: number;
|
|
33182
33145
|
fullyExercised: boolean;
|
|
33183
33146
|
owner?: {
|
|
@@ -33209,7 +33172,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33209
33172
|
__typename: "UserOption";
|
|
33210
33173
|
id: string;
|
|
33211
33174
|
strikeTick: number;
|
|
33212
|
-
entryTick: number;
|
|
33213
33175
|
startTick: number;
|
|
33214
33176
|
fullyExercised: boolean;
|
|
33215
33177
|
owner?: {
|
|
@@ -33240,7 +33202,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33240
33202
|
__typename: "UserOption";
|
|
33241
33203
|
id: string;
|
|
33242
33204
|
strikeTick: number;
|
|
33243
|
-
entryTick: number;
|
|
33244
33205
|
startTick: number;
|
|
33245
33206
|
fullyExercised: boolean;
|
|
33246
33207
|
owner?: {
|
|
@@ -33294,7 +33255,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33294
33255
|
__typename: "UserOption";
|
|
33295
33256
|
id: string;
|
|
33296
33257
|
strikeTick: number;
|
|
33297
|
-
entryTick: number;
|
|
33298
33258
|
startTick: number;
|
|
33299
33259
|
fullyExercised: boolean;
|
|
33300
33260
|
owner?: {
|
|
@@ -33326,7 +33286,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33326
33286
|
__typename: "UserOption";
|
|
33327
33287
|
id: string;
|
|
33328
33288
|
strikeTick: number;
|
|
33329
|
-
entryTick: number;
|
|
33330
33289
|
startTick: number;
|
|
33331
33290
|
fullyExercised: boolean;
|
|
33332
33291
|
owner?: {
|
|
@@ -33357,7 +33316,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33357
33316
|
__typename: "UserOption";
|
|
33358
33317
|
id: string;
|
|
33359
33318
|
strikeTick: number;
|
|
33360
|
-
entryTick: number;
|
|
33361
33319
|
startTick: number;
|
|
33362
33320
|
fullyExercised: boolean;
|
|
33363
33321
|
owner?: {
|
|
@@ -33411,7 +33369,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33411
33369
|
__typename: "UserOption";
|
|
33412
33370
|
id: string;
|
|
33413
33371
|
strikeTick: number;
|
|
33414
|
-
entryTick: number;
|
|
33415
33372
|
startTick: number;
|
|
33416
33373
|
fullyExercised: boolean;
|
|
33417
33374
|
owner?: {
|
|
@@ -33443,7 +33400,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33443
33400
|
__typename: "UserOption";
|
|
33444
33401
|
id: string;
|
|
33445
33402
|
strikeTick: number;
|
|
33446
|
-
entryTick: number;
|
|
33447
33403
|
startTick: number;
|
|
33448
33404
|
fullyExercised: boolean;
|
|
33449
33405
|
owner?: {
|
|
@@ -33474,7 +33430,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33474
33430
|
__typename: "UserOption";
|
|
33475
33431
|
id: string;
|
|
33476
33432
|
strikeTick: number;
|
|
33477
|
-
entryTick: number;
|
|
33478
33433
|
startTick: number;
|
|
33479
33434
|
fullyExercised: boolean;
|
|
33480
33435
|
owner?: {
|
|
@@ -33528,7 +33483,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33528
33483
|
__typename: "UserOption";
|
|
33529
33484
|
id: string;
|
|
33530
33485
|
strikeTick: number;
|
|
33531
|
-
entryTick: number;
|
|
33532
33486
|
startTick: number;
|
|
33533
33487
|
fullyExercised: boolean;
|
|
33534
33488
|
owner?: {
|
|
@@ -33560,7 +33514,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33560
33514
|
__typename: "UserOption";
|
|
33561
33515
|
id: string;
|
|
33562
33516
|
strikeTick: number;
|
|
33563
|
-
entryTick: number;
|
|
33564
33517
|
startTick: number;
|
|
33565
33518
|
fullyExercised: boolean;
|
|
33566
33519
|
owner?: {
|
|
@@ -33591,7 +33544,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33591
33544
|
__typename: "UserOption";
|
|
33592
33545
|
id: string;
|
|
33593
33546
|
strikeTick: number;
|
|
33594
|
-
entryTick: number;
|
|
33595
33547
|
startTick: number;
|
|
33596
33548
|
fullyExercised: boolean;
|
|
33597
33549
|
owner?: {
|
|
@@ -33645,7 +33597,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33645
33597
|
__typename: "UserOption";
|
|
33646
33598
|
id: string;
|
|
33647
33599
|
strikeTick: number;
|
|
33648
|
-
entryTick: number;
|
|
33649
33600
|
startTick: number;
|
|
33650
33601
|
fullyExercised: boolean;
|
|
33651
33602
|
owner?: {
|
|
@@ -33677,7 +33628,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33677
33628
|
__typename: "UserOption";
|
|
33678
33629
|
id: string;
|
|
33679
33630
|
strikeTick: number;
|
|
33680
|
-
entryTick: number;
|
|
33681
33631
|
startTick: number;
|
|
33682
33632
|
fullyExercised: boolean;
|
|
33683
33633
|
owner?: {
|
|
@@ -33708,7 +33658,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33708
33658
|
__typename: "UserOption";
|
|
33709
33659
|
id: string;
|
|
33710
33660
|
strikeTick: number;
|
|
33711
|
-
entryTick: number;
|
|
33712
33661
|
startTick: number;
|
|
33713
33662
|
fullyExercised: boolean;
|
|
33714
33663
|
owner?: {
|
|
@@ -33762,7 +33711,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33762
33711
|
__typename: "UserOption";
|
|
33763
33712
|
id: string;
|
|
33764
33713
|
strikeTick: number;
|
|
33765
|
-
entryTick: number;
|
|
33766
33714
|
startTick: number;
|
|
33767
33715
|
fullyExercised: boolean;
|
|
33768
33716
|
owner?: {
|
|
@@ -33794,7 +33742,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33794
33742
|
__typename: "UserOption";
|
|
33795
33743
|
id: string;
|
|
33796
33744
|
strikeTick: number;
|
|
33797
|
-
entryTick: number;
|
|
33798
33745
|
startTick: number;
|
|
33799
33746
|
fullyExercised: boolean;
|
|
33800
33747
|
owner?: {
|
|
@@ -33825,7 +33772,6 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33825
33772
|
__typename: "UserOption";
|
|
33826
33773
|
id: string;
|
|
33827
33774
|
strikeTick: number;
|
|
33828
|
-
entryTick: number;
|
|
33829
33775
|
startTick: number;
|
|
33830
33776
|
fullyExercised: boolean;
|
|
33831
33777
|
owner?: {
|
|
@@ -33927,7 +33873,16 @@ declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query0.
|
|
|
33927
33873
|
}, unknown>;
|
|
33928
33874
|
//#endregion
|
|
33929
33875
|
//#region src/hooks/options/useOptionTimeline.d.ts
|
|
33930
|
-
type
|
|
33876
|
+
type OptionEvent = ReturnType<typeof useOptionTimeline>['data'][number];
|
|
33877
|
+
type MintOptionEvent = Extract<OptionEvent, {
|
|
33878
|
+
type: 'mint';
|
|
33879
|
+
}>;
|
|
33880
|
+
type ExerciseOptionEvent = Extract<OptionEvent, {
|
|
33881
|
+
type: 'exercise';
|
|
33882
|
+
}>;
|
|
33883
|
+
type Extend = Extract<OptionEvent, {
|
|
33884
|
+
type: 'extend';
|
|
33885
|
+
}>;
|
|
33931
33886
|
declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
33932
33887
|
error: Error;
|
|
33933
33888
|
isError: true;
|
|
@@ -33957,12 +33912,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
33957
33912
|
id: string;
|
|
33958
33913
|
optionType: 0 | 1;
|
|
33959
33914
|
strikeTick: number;
|
|
33960
|
-
|
|
33961
|
-
expiresAt: Date;
|
|
33915
|
+
price: bigint;
|
|
33962
33916
|
premium: bigint;
|
|
33963
33917
|
protocolFee: bigint;
|
|
33964
33918
|
liquidities: bigint[];
|
|
33965
33919
|
timestamp: Date;
|
|
33920
|
+
expiresAt: Date;
|
|
33966
33921
|
blockNumber: bigint;
|
|
33967
33922
|
transactionHash: string;
|
|
33968
33923
|
};
|
|
@@ -33970,9 +33925,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
33970
33925
|
type: "exercise";
|
|
33971
33926
|
data: {
|
|
33972
33927
|
id: string;
|
|
33973
|
-
liquidities: bigint[];
|
|
33974
|
-
currentTick: number;
|
|
33975
33928
|
payout: bigint;
|
|
33929
|
+
price: bigint;
|
|
33930
|
+
liquidities: bigint[];
|
|
33976
33931
|
timestamp: Date;
|
|
33977
33932
|
blockNumber: bigint;
|
|
33978
33933
|
transactionHash: string;
|
|
@@ -33983,7 +33938,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
33983
33938
|
id: string;
|
|
33984
33939
|
premium: bigint;
|
|
33985
33940
|
protocolFee: bigint;
|
|
33986
|
-
|
|
33941
|
+
price: bigint;
|
|
33987
33942
|
addedDuration: bigint;
|
|
33988
33943
|
timestamp: Date;
|
|
33989
33944
|
blockNumber: bigint;
|
|
@@ -33997,12 +33952,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
33997
33952
|
id: string;
|
|
33998
33953
|
optionType: 0 | 1;
|
|
33999
33954
|
strikeTick: number;
|
|
34000
|
-
|
|
34001
|
-
expiresAt: Date;
|
|
33955
|
+
price: bigint;
|
|
34002
33956
|
premium: bigint;
|
|
34003
33957
|
protocolFee: bigint;
|
|
34004
33958
|
liquidities: bigint[];
|
|
34005
33959
|
timestamp: Date;
|
|
33960
|
+
expiresAt: Date;
|
|
34006
33961
|
blockNumber: bigint;
|
|
34007
33962
|
transactionHash: string;
|
|
34008
33963
|
};
|
|
@@ -34010,9 +33965,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34010
33965
|
type: "exercise";
|
|
34011
33966
|
data: {
|
|
34012
33967
|
id: string;
|
|
34013
|
-
liquidities: bigint[];
|
|
34014
|
-
currentTick: number;
|
|
34015
33968
|
payout: bigint;
|
|
33969
|
+
price: bigint;
|
|
33970
|
+
liquidities: bigint[];
|
|
34016
33971
|
timestamp: Date;
|
|
34017
33972
|
blockNumber: bigint;
|
|
34018
33973
|
transactionHash: string;
|
|
@@ -34023,7 +33978,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34023
33978
|
id: string;
|
|
34024
33979
|
premium: bigint;
|
|
34025
33980
|
protocolFee: bigint;
|
|
34026
|
-
|
|
33981
|
+
price: bigint;
|
|
34027
33982
|
addedDuration: bigint;
|
|
34028
33983
|
timestamp: Date;
|
|
34029
33984
|
blockNumber: bigint;
|
|
@@ -34036,12 +33991,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34036
33991
|
id: string;
|
|
34037
33992
|
optionType: 0 | 1;
|
|
34038
33993
|
strikeTick: number;
|
|
34039
|
-
|
|
34040
|
-
expiresAt: Date;
|
|
33994
|
+
price: bigint;
|
|
34041
33995
|
premium: bigint;
|
|
34042
33996
|
protocolFee: bigint;
|
|
34043
33997
|
liquidities: bigint[];
|
|
34044
33998
|
timestamp: Date;
|
|
33999
|
+
expiresAt: Date;
|
|
34045
34000
|
blockNumber: bigint;
|
|
34046
34001
|
transactionHash: string;
|
|
34047
34002
|
};
|
|
@@ -34049,9 +34004,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34049
34004
|
type: "exercise";
|
|
34050
34005
|
data: {
|
|
34051
34006
|
id: string;
|
|
34052
|
-
liquidities: bigint[];
|
|
34053
|
-
currentTick: number;
|
|
34054
34007
|
payout: bigint;
|
|
34008
|
+
price: bigint;
|
|
34009
|
+
liquidities: bigint[];
|
|
34055
34010
|
timestamp: Date;
|
|
34056
34011
|
blockNumber: bigint;
|
|
34057
34012
|
transactionHash: string;
|
|
@@ -34062,7 +34017,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34062
34017
|
id: string;
|
|
34063
34018
|
premium: bigint;
|
|
34064
34019
|
protocolFee: bigint;
|
|
34065
|
-
|
|
34020
|
+
price: bigint;
|
|
34066
34021
|
addedDuration: bigint;
|
|
34067
34022
|
timestamp: Date;
|
|
34068
34023
|
blockNumber: bigint;
|
|
@@ -34098,12 +34053,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34098
34053
|
id: string;
|
|
34099
34054
|
optionType: 0 | 1;
|
|
34100
34055
|
strikeTick: number;
|
|
34101
|
-
|
|
34102
|
-
expiresAt: Date;
|
|
34056
|
+
price: bigint;
|
|
34103
34057
|
premium: bigint;
|
|
34104
34058
|
protocolFee: bigint;
|
|
34105
34059
|
liquidities: bigint[];
|
|
34106
34060
|
timestamp: Date;
|
|
34061
|
+
expiresAt: Date;
|
|
34107
34062
|
blockNumber: bigint;
|
|
34108
34063
|
transactionHash: string;
|
|
34109
34064
|
};
|
|
@@ -34111,9 +34066,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34111
34066
|
type: "exercise";
|
|
34112
34067
|
data: {
|
|
34113
34068
|
id: string;
|
|
34114
|
-
liquidities: bigint[];
|
|
34115
|
-
currentTick: number;
|
|
34116
34069
|
payout: bigint;
|
|
34070
|
+
price: bigint;
|
|
34071
|
+
liquidities: bigint[];
|
|
34117
34072
|
timestamp: Date;
|
|
34118
34073
|
blockNumber: bigint;
|
|
34119
34074
|
transactionHash: string;
|
|
@@ -34124,7 +34079,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34124
34079
|
id: string;
|
|
34125
34080
|
premium: bigint;
|
|
34126
34081
|
protocolFee: bigint;
|
|
34127
|
-
|
|
34082
|
+
price: bigint;
|
|
34128
34083
|
addedDuration: bigint;
|
|
34129
34084
|
timestamp: Date;
|
|
34130
34085
|
blockNumber: bigint;
|
|
@@ -34138,12 +34093,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34138
34093
|
id: string;
|
|
34139
34094
|
optionType: 0 | 1;
|
|
34140
34095
|
strikeTick: number;
|
|
34141
|
-
|
|
34142
|
-
expiresAt: Date;
|
|
34096
|
+
price: bigint;
|
|
34143
34097
|
premium: bigint;
|
|
34144
34098
|
protocolFee: bigint;
|
|
34145
34099
|
liquidities: bigint[];
|
|
34146
34100
|
timestamp: Date;
|
|
34101
|
+
expiresAt: Date;
|
|
34147
34102
|
blockNumber: bigint;
|
|
34148
34103
|
transactionHash: string;
|
|
34149
34104
|
};
|
|
@@ -34151,9 +34106,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34151
34106
|
type: "exercise";
|
|
34152
34107
|
data: {
|
|
34153
34108
|
id: string;
|
|
34154
|
-
liquidities: bigint[];
|
|
34155
|
-
currentTick: number;
|
|
34156
34109
|
payout: bigint;
|
|
34110
|
+
price: bigint;
|
|
34111
|
+
liquidities: bigint[];
|
|
34157
34112
|
timestamp: Date;
|
|
34158
34113
|
blockNumber: bigint;
|
|
34159
34114
|
transactionHash: string;
|
|
@@ -34164,7 +34119,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34164
34119
|
id: string;
|
|
34165
34120
|
premium: bigint;
|
|
34166
34121
|
protocolFee: bigint;
|
|
34167
|
-
|
|
34122
|
+
price: bigint;
|
|
34168
34123
|
addedDuration: bigint;
|
|
34169
34124
|
timestamp: Date;
|
|
34170
34125
|
blockNumber: bigint;
|
|
@@ -34177,12 +34132,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34177
34132
|
id: string;
|
|
34178
34133
|
optionType: 0 | 1;
|
|
34179
34134
|
strikeTick: number;
|
|
34180
|
-
|
|
34181
|
-
expiresAt: Date;
|
|
34135
|
+
price: bigint;
|
|
34182
34136
|
premium: bigint;
|
|
34183
34137
|
protocolFee: bigint;
|
|
34184
34138
|
liquidities: bigint[];
|
|
34185
34139
|
timestamp: Date;
|
|
34140
|
+
expiresAt: Date;
|
|
34186
34141
|
blockNumber: bigint;
|
|
34187
34142
|
transactionHash: string;
|
|
34188
34143
|
};
|
|
@@ -34190,9 +34145,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34190
34145
|
type: "exercise";
|
|
34191
34146
|
data: {
|
|
34192
34147
|
id: string;
|
|
34193
|
-
liquidities: bigint[];
|
|
34194
|
-
currentTick: number;
|
|
34195
34148
|
payout: bigint;
|
|
34149
|
+
price: bigint;
|
|
34150
|
+
liquidities: bigint[];
|
|
34196
34151
|
timestamp: Date;
|
|
34197
34152
|
blockNumber: bigint;
|
|
34198
34153
|
transactionHash: string;
|
|
@@ -34203,7 +34158,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34203
34158
|
id: string;
|
|
34204
34159
|
premium: bigint;
|
|
34205
34160
|
protocolFee: bigint;
|
|
34206
|
-
|
|
34161
|
+
price: bigint;
|
|
34207
34162
|
addedDuration: bigint;
|
|
34208
34163
|
timestamp: Date;
|
|
34209
34164
|
blockNumber: bigint;
|
|
@@ -34239,12 +34194,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34239
34194
|
id: string;
|
|
34240
34195
|
optionType: 0 | 1;
|
|
34241
34196
|
strikeTick: number;
|
|
34242
|
-
|
|
34243
|
-
expiresAt: Date;
|
|
34197
|
+
price: bigint;
|
|
34244
34198
|
premium: bigint;
|
|
34245
34199
|
protocolFee: bigint;
|
|
34246
34200
|
liquidities: bigint[];
|
|
34247
34201
|
timestamp: Date;
|
|
34202
|
+
expiresAt: Date;
|
|
34248
34203
|
blockNumber: bigint;
|
|
34249
34204
|
transactionHash: string;
|
|
34250
34205
|
};
|
|
@@ -34252,9 +34207,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34252
34207
|
type: "exercise";
|
|
34253
34208
|
data: {
|
|
34254
34209
|
id: string;
|
|
34255
|
-
liquidities: bigint[];
|
|
34256
|
-
currentTick: number;
|
|
34257
34210
|
payout: bigint;
|
|
34211
|
+
price: bigint;
|
|
34212
|
+
liquidities: bigint[];
|
|
34258
34213
|
timestamp: Date;
|
|
34259
34214
|
blockNumber: bigint;
|
|
34260
34215
|
transactionHash: string;
|
|
@@ -34265,7 +34220,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34265
34220
|
id: string;
|
|
34266
34221
|
premium: bigint;
|
|
34267
34222
|
protocolFee: bigint;
|
|
34268
|
-
|
|
34223
|
+
price: bigint;
|
|
34269
34224
|
addedDuration: bigint;
|
|
34270
34225
|
timestamp: Date;
|
|
34271
34226
|
blockNumber: bigint;
|
|
@@ -34279,12 +34234,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34279
34234
|
id: string;
|
|
34280
34235
|
optionType: 0 | 1;
|
|
34281
34236
|
strikeTick: number;
|
|
34282
|
-
|
|
34283
|
-
expiresAt: Date;
|
|
34237
|
+
price: bigint;
|
|
34284
34238
|
premium: bigint;
|
|
34285
34239
|
protocolFee: bigint;
|
|
34286
34240
|
liquidities: bigint[];
|
|
34287
34241
|
timestamp: Date;
|
|
34242
|
+
expiresAt: Date;
|
|
34288
34243
|
blockNumber: bigint;
|
|
34289
34244
|
transactionHash: string;
|
|
34290
34245
|
};
|
|
@@ -34292,9 +34247,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34292
34247
|
type: "exercise";
|
|
34293
34248
|
data: {
|
|
34294
34249
|
id: string;
|
|
34295
|
-
liquidities: bigint[];
|
|
34296
|
-
currentTick: number;
|
|
34297
34250
|
payout: bigint;
|
|
34251
|
+
price: bigint;
|
|
34252
|
+
liquidities: bigint[];
|
|
34298
34253
|
timestamp: Date;
|
|
34299
34254
|
blockNumber: bigint;
|
|
34300
34255
|
transactionHash: string;
|
|
@@ -34305,7 +34260,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34305
34260
|
id: string;
|
|
34306
34261
|
premium: bigint;
|
|
34307
34262
|
protocolFee: bigint;
|
|
34308
|
-
|
|
34263
|
+
price: bigint;
|
|
34309
34264
|
addedDuration: bigint;
|
|
34310
34265
|
timestamp: Date;
|
|
34311
34266
|
blockNumber: bigint;
|
|
@@ -34318,12 +34273,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34318
34273
|
id: string;
|
|
34319
34274
|
optionType: 0 | 1;
|
|
34320
34275
|
strikeTick: number;
|
|
34321
|
-
|
|
34322
|
-
expiresAt: Date;
|
|
34276
|
+
price: bigint;
|
|
34323
34277
|
premium: bigint;
|
|
34324
34278
|
protocolFee: bigint;
|
|
34325
34279
|
liquidities: bigint[];
|
|
34326
34280
|
timestamp: Date;
|
|
34281
|
+
expiresAt: Date;
|
|
34327
34282
|
blockNumber: bigint;
|
|
34328
34283
|
transactionHash: string;
|
|
34329
34284
|
};
|
|
@@ -34331,9 +34286,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34331
34286
|
type: "exercise";
|
|
34332
34287
|
data: {
|
|
34333
34288
|
id: string;
|
|
34334
|
-
liquidities: bigint[];
|
|
34335
|
-
currentTick: number;
|
|
34336
34289
|
payout: bigint;
|
|
34290
|
+
price: bigint;
|
|
34291
|
+
liquidities: bigint[];
|
|
34337
34292
|
timestamp: Date;
|
|
34338
34293
|
blockNumber: bigint;
|
|
34339
34294
|
transactionHash: string;
|
|
@@ -34344,7 +34299,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34344
34299
|
id: string;
|
|
34345
34300
|
premium: bigint;
|
|
34346
34301
|
protocolFee: bigint;
|
|
34347
|
-
|
|
34302
|
+
price: bigint;
|
|
34348
34303
|
addedDuration: bigint;
|
|
34349
34304
|
timestamp: Date;
|
|
34350
34305
|
blockNumber: bigint;
|
|
@@ -34380,12 +34335,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34380
34335
|
id: string;
|
|
34381
34336
|
optionType: 0 | 1;
|
|
34382
34337
|
strikeTick: number;
|
|
34383
|
-
|
|
34384
|
-
expiresAt: Date;
|
|
34338
|
+
price: bigint;
|
|
34385
34339
|
premium: bigint;
|
|
34386
34340
|
protocolFee: bigint;
|
|
34387
34341
|
liquidities: bigint[];
|
|
34388
34342
|
timestamp: Date;
|
|
34343
|
+
expiresAt: Date;
|
|
34389
34344
|
blockNumber: bigint;
|
|
34390
34345
|
transactionHash: string;
|
|
34391
34346
|
};
|
|
@@ -34393,9 +34348,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34393
34348
|
type: "exercise";
|
|
34394
34349
|
data: {
|
|
34395
34350
|
id: string;
|
|
34396
|
-
liquidities: bigint[];
|
|
34397
|
-
currentTick: number;
|
|
34398
34351
|
payout: bigint;
|
|
34352
|
+
price: bigint;
|
|
34353
|
+
liquidities: bigint[];
|
|
34399
34354
|
timestamp: Date;
|
|
34400
34355
|
blockNumber: bigint;
|
|
34401
34356
|
transactionHash: string;
|
|
@@ -34406,7 +34361,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34406
34361
|
id: string;
|
|
34407
34362
|
premium: bigint;
|
|
34408
34363
|
protocolFee: bigint;
|
|
34409
|
-
|
|
34364
|
+
price: bigint;
|
|
34410
34365
|
addedDuration: bigint;
|
|
34411
34366
|
timestamp: Date;
|
|
34412
34367
|
blockNumber: bigint;
|
|
@@ -34420,12 +34375,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34420
34375
|
id: string;
|
|
34421
34376
|
optionType: 0 | 1;
|
|
34422
34377
|
strikeTick: number;
|
|
34423
|
-
|
|
34424
|
-
expiresAt: Date;
|
|
34378
|
+
price: bigint;
|
|
34425
34379
|
premium: bigint;
|
|
34426
34380
|
protocolFee: bigint;
|
|
34427
34381
|
liquidities: bigint[];
|
|
34428
34382
|
timestamp: Date;
|
|
34383
|
+
expiresAt: Date;
|
|
34429
34384
|
blockNumber: bigint;
|
|
34430
34385
|
transactionHash: string;
|
|
34431
34386
|
};
|
|
@@ -34433,9 +34388,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34433
34388
|
type: "exercise";
|
|
34434
34389
|
data: {
|
|
34435
34390
|
id: string;
|
|
34436
|
-
liquidities: bigint[];
|
|
34437
|
-
currentTick: number;
|
|
34438
34391
|
payout: bigint;
|
|
34392
|
+
price: bigint;
|
|
34393
|
+
liquidities: bigint[];
|
|
34439
34394
|
timestamp: Date;
|
|
34440
34395
|
blockNumber: bigint;
|
|
34441
34396
|
transactionHash: string;
|
|
@@ -34446,7 +34401,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34446
34401
|
id: string;
|
|
34447
34402
|
premium: bigint;
|
|
34448
34403
|
protocolFee: bigint;
|
|
34449
|
-
|
|
34404
|
+
price: bigint;
|
|
34450
34405
|
addedDuration: bigint;
|
|
34451
34406
|
timestamp: Date;
|
|
34452
34407
|
blockNumber: bigint;
|
|
@@ -34459,12 +34414,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34459
34414
|
id: string;
|
|
34460
34415
|
optionType: 0 | 1;
|
|
34461
34416
|
strikeTick: number;
|
|
34462
|
-
|
|
34463
|
-
expiresAt: Date;
|
|
34417
|
+
price: bigint;
|
|
34464
34418
|
premium: bigint;
|
|
34465
34419
|
protocolFee: bigint;
|
|
34466
34420
|
liquidities: bigint[];
|
|
34467
34421
|
timestamp: Date;
|
|
34422
|
+
expiresAt: Date;
|
|
34468
34423
|
blockNumber: bigint;
|
|
34469
34424
|
transactionHash: string;
|
|
34470
34425
|
};
|
|
@@ -34472,9 +34427,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34472
34427
|
type: "exercise";
|
|
34473
34428
|
data: {
|
|
34474
34429
|
id: string;
|
|
34475
|
-
liquidities: bigint[];
|
|
34476
|
-
currentTick: number;
|
|
34477
34430
|
payout: bigint;
|
|
34431
|
+
price: bigint;
|
|
34432
|
+
liquidities: bigint[];
|
|
34478
34433
|
timestamp: Date;
|
|
34479
34434
|
blockNumber: bigint;
|
|
34480
34435
|
transactionHash: string;
|
|
@@ -34485,7 +34440,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34485
34440
|
id: string;
|
|
34486
34441
|
premium: bigint;
|
|
34487
34442
|
protocolFee: bigint;
|
|
34488
|
-
|
|
34443
|
+
price: bigint;
|
|
34489
34444
|
addedDuration: bigint;
|
|
34490
34445
|
timestamp: Date;
|
|
34491
34446
|
blockNumber: bigint;
|
|
@@ -34521,12 +34476,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34521
34476
|
id: string;
|
|
34522
34477
|
optionType: 0 | 1;
|
|
34523
34478
|
strikeTick: number;
|
|
34524
|
-
|
|
34525
|
-
expiresAt: Date;
|
|
34479
|
+
price: bigint;
|
|
34526
34480
|
premium: bigint;
|
|
34527
34481
|
protocolFee: bigint;
|
|
34528
34482
|
liquidities: bigint[];
|
|
34529
34483
|
timestamp: Date;
|
|
34484
|
+
expiresAt: Date;
|
|
34530
34485
|
blockNumber: bigint;
|
|
34531
34486
|
transactionHash: string;
|
|
34532
34487
|
};
|
|
@@ -34534,9 +34489,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34534
34489
|
type: "exercise";
|
|
34535
34490
|
data: {
|
|
34536
34491
|
id: string;
|
|
34537
|
-
liquidities: bigint[];
|
|
34538
|
-
currentTick: number;
|
|
34539
34492
|
payout: bigint;
|
|
34493
|
+
price: bigint;
|
|
34494
|
+
liquidities: bigint[];
|
|
34540
34495
|
timestamp: Date;
|
|
34541
34496
|
blockNumber: bigint;
|
|
34542
34497
|
transactionHash: string;
|
|
@@ -34547,7 +34502,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34547
34502
|
id: string;
|
|
34548
34503
|
premium: bigint;
|
|
34549
34504
|
protocolFee: bigint;
|
|
34550
|
-
|
|
34505
|
+
price: bigint;
|
|
34551
34506
|
addedDuration: bigint;
|
|
34552
34507
|
timestamp: Date;
|
|
34553
34508
|
blockNumber: bigint;
|
|
@@ -34561,12 +34516,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34561
34516
|
id: string;
|
|
34562
34517
|
optionType: 0 | 1;
|
|
34563
34518
|
strikeTick: number;
|
|
34564
|
-
|
|
34565
|
-
expiresAt: Date;
|
|
34519
|
+
price: bigint;
|
|
34566
34520
|
premium: bigint;
|
|
34567
34521
|
protocolFee: bigint;
|
|
34568
34522
|
liquidities: bigint[];
|
|
34569
34523
|
timestamp: Date;
|
|
34524
|
+
expiresAt: Date;
|
|
34570
34525
|
blockNumber: bigint;
|
|
34571
34526
|
transactionHash: string;
|
|
34572
34527
|
};
|
|
@@ -34574,9 +34529,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34574
34529
|
type: "exercise";
|
|
34575
34530
|
data: {
|
|
34576
34531
|
id: string;
|
|
34577
|
-
liquidities: bigint[];
|
|
34578
|
-
currentTick: number;
|
|
34579
34532
|
payout: bigint;
|
|
34533
|
+
price: bigint;
|
|
34534
|
+
liquidities: bigint[];
|
|
34580
34535
|
timestamp: Date;
|
|
34581
34536
|
blockNumber: bigint;
|
|
34582
34537
|
transactionHash: string;
|
|
@@ -34587,7 +34542,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34587
34542
|
id: string;
|
|
34588
34543
|
premium: bigint;
|
|
34589
34544
|
protocolFee: bigint;
|
|
34590
|
-
|
|
34545
|
+
price: bigint;
|
|
34591
34546
|
addedDuration: bigint;
|
|
34592
34547
|
timestamp: Date;
|
|
34593
34548
|
blockNumber: bigint;
|
|
@@ -34600,12 +34555,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34600
34555
|
id: string;
|
|
34601
34556
|
optionType: 0 | 1;
|
|
34602
34557
|
strikeTick: number;
|
|
34603
|
-
|
|
34604
|
-
expiresAt: Date;
|
|
34558
|
+
price: bigint;
|
|
34605
34559
|
premium: bigint;
|
|
34606
34560
|
protocolFee: bigint;
|
|
34607
34561
|
liquidities: bigint[];
|
|
34608
34562
|
timestamp: Date;
|
|
34563
|
+
expiresAt: Date;
|
|
34609
34564
|
blockNumber: bigint;
|
|
34610
34565
|
transactionHash: string;
|
|
34611
34566
|
};
|
|
@@ -34613,9 +34568,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34613
34568
|
type: "exercise";
|
|
34614
34569
|
data: {
|
|
34615
34570
|
id: string;
|
|
34616
|
-
liquidities: bigint[];
|
|
34617
|
-
currentTick: number;
|
|
34618
34571
|
payout: bigint;
|
|
34572
|
+
price: bigint;
|
|
34573
|
+
liquidities: bigint[];
|
|
34619
34574
|
timestamp: Date;
|
|
34620
34575
|
blockNumber: bigint;
|
|
34621
34576
|
transactionHash: string;
|
|
@@ -34626,7 +34581,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34626
34581
|
id: string;
|
|
34627
34582
|
premium: bigint;
|
|
34628
34583
|
protocolFee: bigint;
|
|
34629
|
-
|
|
34584
|
+
price: bigint;
|
|
34630
34585
|
addedDuration: bigint;
|
|
34631
34586
|
timestamp: Date;
|
|
34632
34587
|
blockNumber: bigint;
|
|
@@ -34662,12 +34617,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34662
34617
|
id: string;
|
|
34663
34618
|
optionType: 0 | 1;
|
|
34664
34619
|
strikeTick: number;
|
|
34665
|
-
|
|
34666
|
-
expiresAt: Date;
|
|
34620
|
+
price: bigint;
|
|
34667
34621
|
premium: bigint;
|
|
34668
34622
|
protocolFee: bigint;
|
|
34669
34623
|
liquidities: bigint[];
|
|
34670
34624
|
timestamp: Date;
|
|
34625
|
+
expiresAt: Date;
|
|
34671
34626
|
blockNumber: bigint;
|
|
34672
34627
|
transactionHash: string;
|
|
34673
34628
|
};
|
|
@@ -34675,9 +34630,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34675
34630
|
type: "exercise";
|
|
34676
34631
|
data: {
|
|
34677
34632
|
id: string;
|
|
34678
|
-
liquidities: bigint[];
|
|
34679
|
-
currentTick: number;
|
|
34680
34633
|
payout: bigint;
|
|
34634
|
+
price: bigint;
|
|
34635
|
+
liquidities: bigint[];
|
|
34681
34636
|
timestamp: Date;
|
|
34682
34637
|
blockNumber: bigint;
|
|
34683
34638
|
transactionHash: string;
|
|
@@ -34688,7 +34643,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34688
34643
|
id: string;
|
|
34689
34644
|
premium: bigint;
|
|
34690
34645
|
protocolFee: bigint;
|
|
34691
|
-
|
|
34646
|
+
price: bigint;
|
|
34692
34647
|
addedDuration: bigint;
|
|
34693
34648
|
timestamp: Date;
|
|
34694
34649
|
blockNumber: bigint;
|
|
@@ -34702,12 +34657,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34702
34657
|
id: string;
|
|
34703
34658
|
optionType: 0 | 1;
|
|
34704
34659
|
strikeTick: number;
|
|
34705
|
-
|
|
34706
|
-
expiresAt: Date;
|
|
34660
|
+
price: bigint;
|
|
34707
34661
|
premium: bigint;
|
|
34708
34662
|
protocolFee: bigint;
|
|
34709
34663
|
liquidities: bigint[];
|
|
34710
34664
|
timestamp: Date;
|
|
34665
|
+
expiresAt: Date;
|
|
34711
34666
|
blockNumber: bigint;
|
|
34712
34667
|
transactionHash: string;
|
|
34713
34668
|
};
|
|
@@ -34715,9 +34670,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34715
34670
|
type: "exercise";
|
|
34716
34671
|
data: {
|
|
34717
34672
|
id: string;
|
|
34718
|
-
liquidities: bigint[];
|
|
34719
|
-
currentTick: number;
|
|
34720
34673
|
payout: bigint;
|
|
34674
|
+
price: bigint;
|
|
34675
|
+
liquidities: bigint[];
|
|
34721
34676
|
timestamp: Date;
|
|
34722
34677
|
blockNumber: bigint;
|
|
34723
34678
|
transactionHash: string;
|
|
@@ -34728,7 +34683,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34728
34683
|
id: string;
|
|
34729
34684
|
premium: bigint;
|
|
34730
34685
|
protocolFee: bigint;
|
|
34731
|
-
|
|
34686
|
+
price: bigint;
|
|
34732
34687
|
addedDuration: bigint;
|
|
34733
34688
|
timestamp: Date;
|
|
34734
34689
|
blockNumber: bigint;
|
|
@@ -34741,12 +34696,12 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34741
34696
|
id: string;
|
|
34742
34697
|
optionType: 0 | 1;
|
|
34743
34698
|
strikeTick: number;
|
|
34744
|
-
|
|
34745
|
-
expiresAt: Date;
|
|
34699
|
+
price: bigint;
|
|
34746
34700
|
premium: bigint;
|
|
34747
34701
|
protocolFee: bigint;
|
|
34748
34702
|
liquidities: bigint[];
|
|
34749
34703
|
timestamp: Date;
|
|
34704
|
+
expiresAt: Date;
|
|
34750
34705
|
blockNumber: bigint;
|
|
34751
34706
|
transactionHash: string;
|
|
34752
34707
|
};
|
|
@@ -34754,9 +34709,9 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34754
34709
|
type: "exercise";
|
|
34755
34710
|
data: {
|
|
34756
34711
|
id: string;
|
|
34757
|
-
liquidities: bigint[];
|
|
34758
|
-
currentTick: number;
|
|
34759
34712
|
payout: bigint;
|
|
34713
|
+
price: bigint;
|
|
34714
|
+
liquidities: bigint[];
|
|
34760
34715
|
timestamp: Date;
|
|
34761
34716
|
blockNumber: bigint;
|
|
34762
34717
|
transactionHash: string;
|
|
@@ -34767,7 +34722,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34767
34722
|
id: string;
|
|
34768
34723
|
premium: bigint;
|
|
34769
34724
|
protocolFee: bigint;
|
|
34770
|
-
|
|
34725
|
+
price: bigint;
|
|
34771
34726
|
addedDuration: bigint;
|
|
34772
34727
|
timestamp: Date;
|
|
34773
34728
|
blockNumber: bigint;
|
|
@@ -36356,21 +36311,25 @@ declare const getCurrentPrice: (poolAddress: string) => Promise<PriceData>;
|
|
|
36356
36311
|
//#endregion
|
|
36357
36312
|
//#region src/lib/liquidityUtils.d.ts
|
|
36358
36313
|
declare const PRICE_PRECISION: bigint;
|
|
36359
|
-
declare const
|
|
36314
|
+
declare const getPriceAtSqrtPriceX96: (sqrtPriceX96: bigint) => bigint;
|
|
36315
|
+
declare const getSqrtPriceX96AtPrice: (price: bigint) => JSBI;
|
|
36360
36316
|
declare const getPriceAtTick: (tick: number) => bigint;
|
|
36361
36317
|
declare const getTickAtPrice: (price: bigint) => number;
|
|
36362
36318
|
declare const getNearestValidStrikeTick: (optionType: "CALL" | "PUT", optionAssetIsToken0: boolean, tickSpacing: number, currentTick: number, strikeTick?: number) => number;
|
|
36363
36319
|
declare const roundTickDown: (tick: number, spacing: number) => number;
|
|
36364
36320
|
declare const roundTickUp: (tick: number, spacing: number) => number;
|
|
36365
|
-
declare const token0ToToken1: (amount0: bigint,
|
|
36366
|
-
declare const token1ToToken0: (amount1: bigint,
|
|
36321
|
+
declare const token0ToToken1: (amount0: bigint, price: bigint) => bigint;
|
|
36322
|
+
declare const token1ToToken0: (amount1: bigint, price: bigint) => bigint;
|
|
36323
|
+
declare const token0ToToken1AtTick: (amount0: bigint, tick: number) => bigint;
|
|
36324
|
+
declare const token1ToToken0AtTick: (amount1: bigint, tick: number) => bigint;
|
|
36367
36325
|
declare const getAmountsFromLiquidity: (tickLower: number, tickUpper: number, liquidity: bigint, currentTick: number) => [bigint, bigint];
|
|
36368
36326
|
declare const liquiditiesToAmount0: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
36369
36327
|
declare const liquiditiesToAmount1: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
36370
|
-
declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number,
|
|
36328
|
+
declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number, price: bigint, tickSpacing: number) => bigint[];
|
|
36371
36329
|
//#endregion
|
|
36372
36330
|
//#region src/lib/optionUtils.d.ts
|
|
36373
36331
|
declare const getPayoutAtTick: (option: OptionData, liquidities: bigint[], tick: number, tickSpacing: number, optionAssetIsToken0: boolean) => bigint;
|
|
36332
|
+
declare const getPayoutAtPrice: (option: OptionData, liquidities: bigint[], price: bigint, tickSpacing: number, optionAssetIsToken0: boolean) => bigint;
|
|
36374
36333
|
//#endregion
|
|
36375
36334
|
//#region src/hooks/pool/useCurrentPrice.d.ts
|
|
36376
36335
|
declare const useCurrentPrice: (poolAddr?: Address) => {
|
|
@@ -62524,5 +62483,5 @@ declare const useApproval: () => {
|
|
|
62524
62483
|
reset: () => void;
|
|
62525
62484
|
};
|
|
62526
62485
|
//#endregion
|
|
62527
|
-
export {
|
|
62528
|
-
//# sourceMappingURL=client-
|
|
62486
|
+
export { useOptionTimeline as $, roundTickUp as A, TimelockMarketData as At, useSetOperatorPerms as B, getPriceAtTick as C, useActiveUserOptions as Ct, liquiditiesToAmount1 as D, useTimelockConfig as Dt, liquiditiesToAmount0 as E, useCurrentMarket as Et, PriceData as F, getUniswapMathLens as Ft, useUserPerps as G, useOperatorPerms as H, PriceDataPoint as I, swappers as It, useMintPerp as J, usePerpsOperator as K, PriceResolution as L, timelockLenses as Lt, token0ToToken1AtTick as M, getErc20 as Mt, token1ToToken0 as N, getTimelockLens as Nt, liquiditiesToAmounts as O, TimelockLens as Ot, token1ToToken0AtTick as P, getTimelockMarket as Pt, OptionEvent as Q, getCurrentPrice as R, uniswapMathLenses as Rt, getPriceAtSqrtPriceX96 as S, OptionData as St, getTickAtPrice as T, TimelockProvider as Tt, useActiveUserPerps as U, useUserOperators as V, useClosedUserPerps as W, Extend as X, ExerciseOptionEvent as Y, MintOptionEvent as Z, getPayoutAtPrice as _, wrapPrice as _t, batchGetAmountsFromLiquidity as a, Amount as at, getAmountsFromLiquidity as b, useMarketData as bt, useLiquidityBlocks as c, formatCondensed as ct, usePriceAtTick as d, scaleAmount as dt, useExtendOption as et, usePriceSqrtPriceX96 as f, scalePrice as ft, useCurrentPrice as g, wrapAmountUnscaled as gt, useCurrentTick as h, wrapAmount as ht, useVaultData as i, useMaxPositionSize as it, token0ToToken1 as j, UniswapMathLens as jt, roundTickDown as k, TimelockMarket as kt, useBurnLiquidity as l, formatUSD as lt, usePoolData as m, unscalePrice as mt, useLens as n, useOptionPnl as nt, useMintLiquidity as o, EMPTY_ARRAY as ot, UniswapPoolData as p, unscaleAmount as pt, useClosePerp as q, useVaultTVL as r, useMintOption as rt, LiquidityBlockData as s, formatAmount as st, useApproval as t, useOptionPremium as tt, usePriceHistory as u, formatVagueAmount as ut, getPayoutAtTick as v, wrapPriceUnscaled as vt, getSqrtPriceX96AtPrice as w, useClosedUserOptions as wt, getNearestValidStrikeTick as x, useExerciseOption as xt, PRICE_PRECISION as y, zero as yt, getPriceHistory as z };
|
|
62487
|
+
//# sourceMappingURL=client-B05FmAOu.d.cts.map
|