timelock-sdk 0.0.91 → 0.0.92

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.
@@ -4,10 +4,11 @@ import { Address, Client, GetContractReturnType, PublicClient } from "viem";
4
4
  import React, { ReactNode } from "react";
5
5
  import "graphql";
6
6
  import { GraphQLClient, RequestOptions } from "graphql-request";
7
- import * as _tanstack_react_query0 from "@tanstack/react-query";
7
+ import * as _tanstack_react_query3 from "@tanstack/react-query";
8
8
  import { NonUndefinedGuard } from "@tanstack/react-query";
9
9
  import * as _tanstack_query_core0 from "@tanstack/query-core";
10
10
  import Big from "big.js";
11
+ import * as wagmi0 from "wagmi";
11
12
  import * as _wagmi_core0 from "@wagmi/core";
12
13
 
13
14
  //#region src/generated/graphql.d.ts
@@ -33960,7 +33961,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
33960
33961
  };
33961
33962
  //#endregion
33962
33963
  //#region src/hooks/options/useExerciseOption.d.ts
33963
- declare const useExerciseOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
33964
+ declare const useExerciseOption: (marketAddr?: Address) => _tanstack_react_query3.UseMutationResult<`0x${string}`, Error, {
33964
33965
  option: OptionData;
33965
33966
  liquidities: readonly bigint[];
33966
33967
  }, unknown>;
@@ -34016,7 +34017,7 @@ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?:
34016
34017
  };
34017
34018
  //#endregion
34018
34019
  //#region src/hooks/options/useMintOption.d.ts
34019
- declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
34020
+ declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query3.UseMutationResult<`0x${string}`, Error, {
34020
34021
  optionType: "CALL" | "PUT";
34021
34022
  amount: bigint;
34022
34023
  duration: number;
@@ -34041,7 +34042,7 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
34041
34042
  };
34042
34043
  //#endregion
34043
34044
  //#region src/hooks/options/useExtendOption.d.ts
34044
- declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
34045
+ declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query3.UseMutationResult<`0x${string}`, Error, {
34045
34046
  option: OptionData;
34046
34047
  duration: number;
34047
34048
  }, unknown>;
@@ -34897,7 +34898,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
34897
34898
  };
34898
34899
  //#endregion
34899
34900
  //#region src/hooks/perps/useMintPerp.d.ts
34900
- declare const useMintPerp: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, {
34901
+ declare const useMintPerp: (marketAddr?: Address) => _tanstack_react_query3.UseMutationResult<void, Error, {
34901
34902
  optionType: "CALL" | "PUT";
34902
34903
  amount: bigint;
34903
34904
  duration: number;
@@ -34944,7 +34945,7 @@ declare class PerpsOperator {
34944
34945
  }
34945
34946
  //#endregion
34946
34947
  //#region src/hooks/perps/useClosePerp.d.ts
34947
- declare const useClosePerp: () => _tanstack_react_query0.UseMutationResult<{
34948
+ declare const useClosePerp: () => _tanstack_react_query3.UseMutationResult<{
34948
34949
  txHash: string;
34949
34950
  optionId: bigint;
34950
34951
  }, Error, ExercisePerpBody, unknown>;
@@ -34955,6 +34956,868 @@ declare const usePerpsOperator: () => {
34955
34956
  address: `0x${string}` | undefined;
34956
34957
  };
34957
34958
  //#endregion
34959
+ //#region src/hooks/operators/useOperatorPerps.d.ts
34960
+ declare const useOperatorPerms: (operatorAddr?: Address, userAddr?: Address) => wagmi0.UseReadContractReturnType<readonly [{
34961
+ readonly type: "constructor";
34962
+ readonly inputs: readonly [{
34963
+ readonly name: "_vault";
34964
+ readonly type: "address";
34965
+ readonly internalType: "contract ITimelockVault";
34966
+ }, {
34967
+ readonly name: "_optionPricing";
34968
+ readonly type: "address";
34969
+ readonly internalType: "contract IOptionPricing";
34970
+ }, {
34971
+ readonly name: "_feeStrategy";
34972
+ readonly type: "address";
34973
+ readonly internalType: "contract IFeeStrategy";
34974
+ }, {
34975
+ readonly name: "_feeRecipient";
34976
+ readonly type: "address";
34977
+ readonly internalType: "address";
34978
+ }, {
34979
+ readonly name: "_guardian";
34980
+ readonly type: "address";
34981
+ readonly internalType: "contract TimelockGuardian";
34982
+ }, {
34983
+ readonly name: "_optionAssetIsToken0";
34984
+ readonly type: "bool";
34985
+ readonly internalType: "bool";
34986
+ }];
34987
+ readonly stateMutability: "nonpayable";
34988
+ }, {
34989
+ readonly type: "function";
34990
+ readonly name: "DUST_THRESHOLD";
34991
+ readonly inputs: readonly [];
34992
+ readonly outputs: readonly [{
34993
+ readonly name: "";
34994
+ readonly type: "uint256";
34995
+ readonly internalType: "uint256";
34996
+ }];
34997
+ readonly stateMutability: "view";
34998
+ }, {
34999
+ readonly type: "function";
35000
+ readonly name: "MAX_STEPS";
35001
+ readonly inputs: readonly [];
35002
+ readonly outputs: readonly [{
35003
+ readonly name: "";
35004
+ readonly type: "uint256";
35005
+ readonly internalType: "uint256";
35006
+ }];
35007
+ readonly stateMutability: "view";
35008
+ }, {
35009
+ readonly type: "function";
35010
+ readonly name: "calculatePremium";
35011
+ readonly inputs: readonly [{
35012
+ readonly name: "optionType";
35013
+ readonly type: "uint8";
35014
+ readonly internalType: "uint8";
35015
+ }, {
35016
+ readonly name: "optionAmount";
35017
+ readonly type: "uint256";
35018
+ readonly internalType: "uint256";
35019
+ }, {
35020
+ readonly name: "strikeTick";
35021
+ readonly type: "int24";
35022
+ readonly internalType: "int24";
35023
+ }, {
35024
+ readonly name: "addedDuration";
35025
+ readonly type: "uint32";
35026
+ readonly internalType: "uint32";
35027
+ }, {
35028
+ readonly name: "remainingDuration";
35029
+ readonly type: "uint32";
35030
+ readonly internalType: "uint32";
35031
+ }];
35032
+ readonly outputs: readonly [{
35033
+ readonly name: "premium";
35034
+ readonly type: "uint256";
35035
+ readonly internalType: "uint256";
35036
+ }, {
35037
+ readonly name: "protocolFee";
35038
+ readonly type: "uint256";
35039
+ readonly internalType: "uint256";
35040
+ }];
35041
+ readonly stateMutability: "view";
35042
+ }, {
35043
+ readonly type: "function";
35044
+ readonly name: "emergencyWithdraw";
35045
+ readonly inputs: readonly [{
35046
+ readonly name: "tokens";
35047
+ readonly type: "address[]";
35048
+ readonly internalType: "contract IERC20[]";
35049
+ }];
35050
+ readonly outputs: readonly [];
35051
+ readonly stateMutability: "nonpayable";
35052
+ }, {
35053
+ readonly type: "function";
35054
+ readonly name: "exerciseOption";
35055
+ readonly inputs: readonly [{
35056
+ readonly name: "optionId";
35057
+ readonly type: "uint256";
35058
+ readonly internalType: "uint256";
35059
+ }, {
35060
+ readonly name: "liquidities";
35061
+ readonly type: "uint128[]";
35062
+ readonly internalType: "uint128[]";
35063
+ }, {
35064
+ readonly name: "minPayout";
35065
+ readonly type: "uint256";
35066
+ readonly internalType: "uint256";
35067
+ }, {
35068
+ readonly name: "swapper";
35069
+ readonly type: "address";
35070
+ readonly internalType: "contract ISwapper";
35071
+ }, {
35072
+ readonly name: "swapperData";
35073
+ readonly type: "bytes";
35074
+ readonly internalType: "bytes";
35075
+ }, {
35076
+ readonly name: "refTick";
35077
+ readonly type: "int24";
35078
+ readonly internalType: "int24";
35079
+ }];
35080
+ readonly outputs: readonly [{
35081
+ readonly name: "payout";
35082
+ readonly type: "uint256";
35083
+ readonly internalType: "uint256";
35084
+ }];
35085
+ readonly stateMutability: "nonpayable";
35086
+ }, {
35087
+ readonly type: "function";
35088
+ readonly name: "extendOption";
35089
+ readonly inputs: readonly [{
35090
+ readonly name: "optionId";
35091
+ readonly type: "uint256";
35092
+ readonly internalType: "uint256";
35093
+ }, {
35094
+ readonly name: "addedDuration";
35095
+ readonly type: "uint32";
35096
+ readonly internalType: "uint32";
35097
+ }, {
35098
+ readonly name: "maxPremium";
35099
+ readonly type: "uint256";
35100
+ readonly internalType: "uint256";
35101
+ }];
35102
+ readonly outputs: readonly [{
35103
+ readonly name: "premium";
35104
+ readonly type: "uint256";
35105
+ readonly internalType: "uint256";
35106
+ }, {
35107
+ readonly name: "protocolFee";
35108
+ readonly type: "uint256";
35109
+ readonly internalType: "uint256";
35110
+ }];
35111
+ readonly stateMutability: "nonpayable";
35112
+ }, {
35113
+ readonly type: "function";
35114
+ readonly name: "feeRecipient";
35115
+ readonly inputs: readonly [];
35116
+ readonly outputs: readonly [{
35117
+ readonly name: "";
35118
+ readonly type: "address";
35119
+ readonly internalType: "address";
35120
+ }];
35121
+ readonly stateMutability: "view";
35122
+ }, {
35123
+ readonly type: "function";
35124
+ readonly name: "feeStrategy";
35125
+ readonly inputs: readonly [];
35126
+ readonly outputs: readonly [{
35127
+ readonly name: "";
35128
+ readonly type: "address";
35129
+ readonly internalType: "contract IFeeStrategy";
35130
+ }];
35131
+ readonly stateMutability: "view";
35132
+ }, {
35133
+ readonly type: "function";
35134
+ readonly name: "getOption";
35135
+ readonly inputs: readonly [{
35136
+ readonly name: "optionId";
35137
+ readonly type: "uint256";
35138
+ readonly internalType: "uint256";
35139
+ }];
35140
+ readonly outputs: readonly [{
35141
+ readonly name: "";
35142
+ readonly type: "tuple";
35143
+ readonly internalType: "struct TimelockOptionsMarket.OptionData";
35144
+ readonly components: readonly [{
35145
+ readonly name: "owner";
35146
+ readonly type: "address";
35147
+ readonly internalType: "address";
35148
+ }, {
35149
+ readonly name: "optionType";
35150
+ readonly type: "uint8";
35151
+ readonly internalType: "uint8";
35152
+ }, {
35153
+ readonly name: "strikeTick";
35154
+ readonly type: "int24";
35155
+ readonly internalType: "int24";
35156
+ }, {
35157
+ readonly name: "expiresAt";
35158
+ readonly type: "uint32";
35159
+ readonly internalType: "uint32";
35160
+ }];
35161
+ }, {
35162
+ readonly name: "";
35163
+ readonly type: "uint128[]";
35164
+ readonly internalType: "uint128[]";
35165
+ }];
35166
+ readonly stateMutability: "view";
35167
+ }, {
35168
+ readonly type: "function";
35169
+ readonly name: "guardian";
35170
+ readonly inputs: readonly [];
35171
+ readonly outputs: readonly [{
35172
+ readonly name: "";
35173
+ readonly type: "address";
35174
+ readonly internalType: "contract TimelockGuardian";
35175
+ }];
35176
+ readonly stateMutability: "view";
35177
+ }, {
35178
+ readonly type: "function";
35179
+ readonly name: "liquiditiesToAmounts";
35180
+ readonly inputs: readonly [{
35181
+ readonly name: "startTick";
35182
+ readonly type: "int24";
35183
+ readonly internalType: "int24";
35184
+ }, {
35185
+ readonly name: "liquiditys";
35186
+ readonly type: "uint128[]";
35187
+ readonly internalType: "uint128[]";
35188
+ }, {
35189
+ readonly name: "optionType";
35190
+ readonly type: "uint8";
35191
+ readonly internalType: "uint8";
35192
+ }];
35193
+ readonly outputs: readonly [{
35194
+ readonly name: "optionAssetToRepay";
35195
+ readonly type: "uint256";
35196
+ readonly internalType: "uint256";
35197
+ }, {
35198
+ readonly name: "payoutAssetToRepay";
35199
+ readonly type: "uint256";
35200
+ readonly internalType: "uint256";
35201
+ }, {
35202
+ readonly name: "optionAssetBorrowed";
35203
+ readonly type: "uint256";
35204
+ readonly internalType: "uint256";
35205
+ }, {
35206
+ readonly name: "payoutAssetBorrowed";
35207
+ readonly type: "uint256";
35208
+ readonly internalType: "uint256";
35209
+ }, {
35210
+ readonly name: "currentTick";
35211
+ readonly type: "int24";
35212
+ readonly internalType: "int24";
35213
+ }];
35214
+ readonly stateMutability: "view";
35215
+ }, {
35216
+ readonly type: "function";
35217
+ readonly name: "mintOption";
35218
+ readonly inputs: readonly [{
35219
+ readonly name: "owner";
35220
+ readonly type: "address";
35221
+ readonly internalType: "address";
35222
+ }, {
35223
+ readonly name: "optionType";
35224
+ readonly type: "uint8";
35225
+ readonly internalType: "uint8";
35226
+ }, {
35227
+ readonly name: "amount";
35228
+ readonly type: "uint256";
35229
+ readonly internalType: "uint256";
35230
+ }, {
35231
+ readonly name: "strikeTick";
35232
+ readonly type: "int24";
35233
+ readonly internalType: "int24";
35234
+ }, {
35235
+ readonly name: "duration";
35236
+ readonly type: "uint32";
35237
+ readonly internalType: "uint32";
35238
+ }, {
35239
+ readonly name: "maxPremium";
35240
+ readonly type: "uint256";
35241
+ readonly internalType: "uint256";
35242
+ }, {
35243
+ readonly name: "refTick";
35244
+ readonly type: "int24";
35245
+ readonly internalType: "int24";
35246
+ }];
35247
+ readonly outputs: readonly [{
35248
+ readonly name: "optionId";
35249
+ readonly type: "uint256";
35250
+ readonly internalType: "uint256";
35251
+ }, {
35252
+ readonly name: "finalAmount";
35253
+ readonly type: "uint256";
35254
+ readonly internalType: "uint256";
35255
+ }, {
35256
+ readonly name: "premium";
35257
+ readonly type: "uint256";
35258
+ readonly internalType: "uint256";
35259
+ }, {
35260
+ readonly name: "protocolFee";
35261
+ readonly type: "uint256";
35262
+ readonly internalType: "uint256";
35263
+ }];
35264
+ readonly stateMutability: "nonpayable";
35265
+ }, {
35266
+ readonly type: "function";
35267
+ readonly name: "multicall";
35268
+ readonly inputs: readonly [{
35269
+ readonly name: "data";
35270
+ readonly type: "bytes[]";
35271
+ readonly internalType: "bytes[]";
35272
+ }];
35273
+ readonly outputs: readonly [{
35274
+ readonly name: "results";
35275
+ readonly type: "bytes[]";
35276
+ readonly internalType: "bytes[]";
35277
+ }];
35278
+ readonly stateMutability: "nonpayable";
35279
+ }, {
35280
+ readonly type: "function";
35281
+ readonly name: "nextOptionId";
35282
+ readonly inputs: readonly [];
35283
+ readonly outputs: readonly [{
35284
+ readonly name: "";
35285
+ readonly type: "uint256";
35286
+ readonly internalType: "uint256";
35287
+ }];
35288
+ readonly stateMutability: "view";
35289
+ }, {
35290
+ readonly type: "function";
35291
+ readonly name: "operatorPerms";
35292
+ readonly inputs: readonly [{
35293
+ readonly name: "";
35294
+ readonly type: "address";
35295
+ readonly internalType: "address";
35296
+ }, {
35297
+ readonly name: "";
35298
+ readonly type: "address";
35299
+ readonly internalType: "address";
35300
+ }];
35301
+ readonly outputs: readonly [{
35302
+ readonly name: "canExtend";
35303
+ readonly type: "bool";
35304
+ readonly internalType: "bool";
35305
+ }, {
35306
+ readonly name: "canExercise";
35307
+ readonly type: "bool";
35308
+ readonly internalType: "bool";
35309
+ }, {
35310
+ readonly name: "canTransfer";
35311
+ readonly type: "bool";
35312
+ readonly internalType: "bool";
35313
+ }, {
35314
+ readonly name: "canMint";
35315
+ readonly type: "bool";
35316
+ readonly internalType: "bool";
35317
+ }, {
35318
+ readonly name: "spendingApproval";
35319
+ readonly type: "uint256";
35320
+ readonly internalType: "uint256";
35321
+ }];
35322
+ readonly stateMutability: "view";
35323
+ }, {
35324
+ readonly type: "function";
35325
+ readonly name: "optionAsset";
35326
+ readonly inputs: readonly [];
35327
+ readonly outputs: readonly [{
35328
+ readonly name: "";
35329
+ readonly type: "address";
35330
+ readonly internalType: "contract IERC20";
35331
+ }];
35332
+ readonly stateMutability: "view";
35333
+ }, {
35334
+ readonly type: "function";
35335
+ readonly name: "optionAssetIsToken0";
35336
+ readonly inputs: readonly [];
35337
+ readonly outputs: readonly [{
35338
+ readonly name: "";
35339
+ readonly type: "bool";
35340
+ readonly internalType: "bool";
35341
+ }];
35342
+ readonly stateMutability: "view";
35343
+ }, {
35344
+ readonly type: "function";
35345
+ readonly name: "optionPricing";
35346
+ readonly inputs: readonly [];
35347
+ readonly outputs: readonly [{
35348
+ readonly name: "";
35349
+ readonly type: "address";
35350
+ readonly internalType: "contract IOptionPricing";
35351
+ }];
35352
+ readonly stateMutability: "view";
35353
+ }, {
35354
+ readonly type: "function";
35355
+ readonly name: "owner";
35356
+ readonly inputs: readonly [];
35357
+ readonly outputs: readonly [{
35358
+ readonly name: "";
35359
+ readonly type: "address";
35360
+ readonly internalType: "address";
35361
+ }];
35362
+ readonly stateMutability: "view";
35363
+ }, {
35364
+ readonly type: "function";
35365
+ readonly name: "payoutAsset";
35366
+ readonly inputs: readonly [];
35367
+ readonly outputs: readonly [{
35368
+ readonly name: "";
35369
+ readonly type: "address";
35370
+ readonly internalType: "contract IERC20";
35371
+ }];
35372
+ readonly stateMutability: "view";
35373
+ }, {
35374
+ readonly type: "function";
35375
+ readonly name: "pool";
35376
+ readonly inputs: readonly [];
35377
+ readonly outputs: readonly [{
35378
+ readonly name: "";
35379
+ readonly type: "address";
35380
+ readonly internalType: "contract IUniswapV3Pool";
35381
+ }];
35382
+ readonly stateMutability: "view";
35383
+ }, {
35384
+ readonly type: "function";
35385
+ readonly name: "renounceOwnership";
35386
+ readonly inputs: readonly [];
35387
+ readonly outputs: readonly [];
35388
+ readonly stateMutability: "nonpayable";
35389
+ }, {
35390
+ readonly type: "function";
35391
+ readonly name: "setOperatorPerms";
35392
+ readonly inputs: readonly [{
35393
+ readonly name: "operator";
35394
+ readonly type: "address";
35395
+ readonly internalType: "address";
35396
+ }, {
35397
+ readonly name: "canExtend";
35398
+ readonly type: "bool";
35399
+ readonly internalType: "bool";
35400
+ }, {
35401
+ readonly name: "canExercise";
35402
+ readonly type: "bool";
35403
+ readonly internalType: "bool";
35404
+ }, {
35405
+ readonly name: "canTransfer";
35406
+ readonly type: "bool";
35407
+ readonly internalType: "bool";
35408
+ }, {
35409
+ readonly name: "canMint";
35410
+ readonly type: "bool";
35411
+ readonly internalType: "bool";
35412
+ }, {
35413
+ readonly name: "spendingApproval";
35414
+ readonly type: "uint256";
35415
+ readonly internalType: "uint256";
35416
+ }];
35417
+ readonly outputs: readonly [];
35418
+ readonly stateMutability: "nonpayable";
35419
+ }, {
35420
+ readonly type: "function";
35421
+ readonly name: "tickSpacing";
35422
+ readonly inputs: readonly [];
35423
+ readonly outputs: readonly [{
35424
+ readonly name: "";
35425
+ readonly type: "int24";
35426
+ readonly internalType: "int24";
35427
+ }];
35428
+ readonly stateMutability: "view";
35429
+ }, {
35430
+ readonly type: "function";
35431
+ readonly name: "token0";
35432
+ readonly inputs: readonly [];
35433
+ readonly outputs: readonly [{
35434
+ readonly name: "";
35435
+ readonly type: "address";
35436
+ readonly internalType: "contract IERC20";
35437
+ }];
35438
+ readonly stateMutability: "view";
35439
+ }, {
35440
+ readonly type: "function";
35441
+ readonly name: "token1";
35442
+ readonly inputs: readonly [];
35443
+ readonly outputs: readonly [{
35444
+ readonly name: "";
35445
+ readonly type: "address";
35446
+ readonly internalType: "contract IERC20";
35447
+ }];
35448
+ readonly stateMutability: "view";
35449
+ }, {
35450
+ readonly type: "function";
35451
+ readonly name: "transferOption";
35452
+ readonly inputs: readonly [{
35453
+ readonly name: "optionId";
35454
+ readonly type: "uint256";
35455
+ readonly internalType: "uint256";
35456
+ }, {
35457
+ readonly name: "to";
35458
+ readonly type: "address";
35459
+ readonly internalType: "address";
35460
+ }];
35461
+ readonly outputs: readonly [];
35462
+ readonly stateMutability: "nonpayable";
35463
+ }, {
35464
+ readonly type: "function";
35465
+ readonly name: "transferOwnership";
35466
+ readonly inputs: readonly [{
35467
+ readonly name: "newOwner";
35468
+ readonly type: "address";
35469
+ readonly internalType: "address";
35470
+ }];
35471
+ readonly outputs: readonly [];
35472
+ readonly stateMutability: "nonpayable";
35473
+ }, {
35474
+ readonly type: "function";
35475
+ readonly name: "updateAddresses";
35476
+ readonly inputs: readonly [{
35477
+ readonly name: "_optionPricing";
35478
+ readonly type: "address";
35479
+ readonly internalType: "contract IOptionPricing";
35480
+ }, {
35481
+ readonly name: "_feeStrategy";
35482
+ readonly type: "address";
35483
+ readonly internalType: "contract IFeeStrategy";
35484
+ }, {
35485
+ readonly name: "_feeRecipient";
35486
+ readonly type: "address";
35487
+ readonly internalType: "address";
35488
+ }];
35489
+ readonly outputs: readonly [];
35490
+ readonly stateMutability: "nonpayable";
35491
+ }, {
35492
+ readonly type: "function";
35493
+ readonly name: "vault";
35494
+ readonly inputs: readonly [];
35495
+ readonly outputs: readonly [{
35496
+ readonly name: "";
35497
+ readonly type: "address";
35498
+ readonly internalType: "contract ITimelockVault";
35499
+ }];
35500
+ readonly stateMutability: "view";
35501
+ }, {
35502
+ readonly type: "event";
35503
+ readonly name: "AddressesUpdated";
35504
+ readonly inputs: readonly [{
35505
+ readonly name: "optionPricing";
35506
+ readonly type: "address";
35507
+ readonly indexed: false;
35508
+ readonly internalType: "contract IOptionPricing";
35509
+ }, {
35510
+ readonly name: "feeStrategy";
35511
+ readonly type: "address";
35512
+ readonly indexed: false;
35513
+ readonly internalType: "contract IFeeStrategy";
35514
+ }, {
35515
+ readonly name: "feeRecipient";
35516
+ readonly type: "address";
35517
+ readonly indexed: false;
35518
+ readonly internalType: "address";
35519
+ }];
35520
+ readonly anonymous: false;
35521
+ }, {
35522
+ readonly type: "event";
35523
+ readonly name: "EmergencyWithdraw";
35524
+ readonly inputs: readonly [{
35525
+ readonly name: "tokens";
35526
+ readonly type: "address[]";
35527
+ readonly indexed: false;
35528
+ readonly internalType: "contract IERC20[]";
35529
+ }, {
35530
+ readonly name: "balances";
35531
+ readonly type: "uint256[]";
35532
+ readonly indexed: false;
35533
+ readonly internalType: "uint256[]";
35534
+ }];
35535
+ readonly anonymous: false;
35536
+ }, {
35537
+ readonly type: "event";
35538
+ readonly name: "ExerciseOption";
35539
+ readonly inputs: readonly [{
35540
+ readonly name: "optionId";
35541
+ readonly type: "uint256";
35542
+ readonly indexed: true;
35543
+ readonly internalType: "uint256";
35544
+ }, {
35545
+ readonly name: "liquidities";
35546
+ readonly type: "uint128[]";
35547
+ readonly indexed: false;
35548
+ readonly internalType: "uint128[]";
35549
+ }, {
35550
+ readonly name: "currentTick";
35551
+ readonly type: "int24";
35552
+ readonly indexed: false;
35553
+ readonly internalType: "int24";
35554
+ }, {
35555
+ readonly name: "payout";
35556
+ readonly type: "uint256";
35557
+ readonly indexed: false;
35558
+ readonly internalType: "uint256";
35559
+ }];
35560
+ readonly anonymous: false;
35561
+ }, {
35562
+ readonly type: "event";
35563
+ readonly name: "ExtendOption";
35564
+ readonly inputs: readonly [{
35565
+ readonly name: "optionId";
35566
+ readonly type: "uint256";
35567
+ readonly indexed: true;
35568
+ readonly internalType: "uint256";
35569
+ }, {
35570
+ readonly name: "premium";
35571
+ readonly type: "uint256";
35572
+ readonly indexed: false;
35573
+ readonly internalType: "uint256";
35574
+ }, {
35575
+ readonly name: "protocolFee";
35576
+ readonly type: "uint256";
35577
+ readonly indexed: false;
35578
+ readonly internalType: "uint256";
35579
+ }, {
35580
+ readonly name: "currentTick";
35581
+ readonly type: "int24";
35582
+ readonly indexed: false;
35583
+ readonly internalType: "int24";
35584
+ }, {
35585
+ readonly name: "addedDuration";
35586
+ readonly type: "uint32";
35587
+ readonly indexed: false;
35588
+ readonly internalType: "uint32";
35589
+ }];
35590
+ readonly anonymous: false;
35591
+ }, {
35592
+ readonly type: "event";
35593
+ readonly name: "MintOption";
35594
+ readonly inputs: readonly [{
35595
+ readonly name: "optionId";
35596
+ readonly type: "uint256";
35597
+ readonly indexed: true;
35598
+ readonly internalType: "uint256";
35599
+ }, {
35600
+ readonly name: "owner";
35601
+ readonly type: "address";
35602
+ readonly indexed: true;
35603
+ readonly internalType: "address";
35604
+ }, {
35605
+ readonly name: "optionType";
35606
+ readonly type: "uint8";
35607
+ readonly indexed: false;
35608
+ readonly internalType: "uint8";
35609
+ }, {
35610
+ readonly name: "strikeTick";
35611
+ readonly type: "int24";
35612
+ readonly indexed: false;
35613
+ readonly internalType: "int24";
35614
+ }, {
35615
+ readonly name: "currentTick";
35616
+ readonly type: "int24";
35617
+ readonly indexed: false;
35618
+ readonly internalType: "int24";
35619
+ }, {
35620
+ readonly name: "expiresAt";
35621
+ readonly type: "uint32";
35622
+ readonly indexed: false;
35623
+ readonly internalType: "uint32";
35624
+ }, {
35625
+ readonly name: "premium";
35626
+ readonly type: "uint256";
35627
+ readonly indexed: false;
35628
+ readonly internalType: "uint256";
35629
+ }, {
35630
+ readonly name: "protocolFee";
35631
+ readonly type: "uint256";
35632
+ readonly indexed: false;
35633
+ readonly internalType: "uint256";
35634
+ }, {
35635
+ readonly name: "liquidities";
35636
+ readonly type: "uint128[]";
35637
+ readonly indexed: false;
35638
+ readonly internalType: "uint128[]";
35639
+ }];
35640
+ readonly anonymous: false;
35641
+ }, {
35642
+ readonly type: "event";
35643
+ readonly name: "OwnershipTransferred";
35644
+ readonly inputs: readonly [{
35645
+ readonly name: "previousOwner";
35646
+ readonly type: "address";
35647
+ readonly indexed: true;
35648
+ readonly internalType: "address";
35649
+ }, {
35650
+ readonly name: "newOwner";
35651
+ readonly type: "address";
35652
+ readonly indexed: true;
35653
+ readonly internalType: "address";
35654
+ }];
35655
+ readonly anonymous: false;
35656
+ }, {
35657
+ readonly type: "event";
35658
+ readonly name: "TransferOption";
35659
+ readonly inputs: readonly [{
35660
+ readonly name: "optionId";
35661
+ readonly type: "uint256";
35662
+ readonly indexed: true;
35663
+ readonly internalType: "uint256";
35664
+ }, {
35665
+ readonly name: "to";
35666
+ readonly type: "address";
35667
+ readonly indexed: true;
35668
+ readonly internalType: "address";
35669
+ }];
35670
+ readonly anonymous: false;
35671
+ }, {
35672
+ readonly type: "event";
35673
+ readonly name: "UpdateOperatorPerms";
35674
+ readonly inputs: readonly [{
35675
+ readonly name: "owner";
35676
+ readonly type: "address";
35677
+ readonly indexed: true;
35678
+ readonly internalType: "address";
35679
+ }, {
35680
+ readonly name: "operator";
35681
+ readonly type: "address";
35682
+ readonly indexed: true;
35683
+ readonly internalType: "address";
35684
+ }, {
35685
+ readonly name: "canExtend";
35686
+ readonly type: "bool";
35687
+ readonly indexed: false;
35688
+ readonly internalType: "bool";
35689
+ }, {
35690
+ readonly name: "canExercise";
35691
+ readonly type: "bool";
35692
+ readonly indexed: false;
35693
+ readonly internalType: "bool";
35694
+ }, {
35695
+ readonly name: "canTransfer";
35696
+ readonly type: "bool";
35697
+ readonly indexed: false;
35698
+ readonly internalType: "bool";
35699
+ }, {
35700
+ readonly name: "canMint";
35701
+ readonly type: "bool";
35702
+ readonly indexed: false;
35703
+ readonly internalType: "bool";
35704
+ }, {
35705
+ readonly name: "spendingApproval";
35706
+ readonly type: "uint256";
35707
+ readonly indexed: false;
35708
+ readonly internalType: "uint256";
35709
+ }];
35710
+ readonly anonymous: false;
35711
+ }, {
35712
+ readonly type: "error";
35713
+ readonly name: "AddressEmptyCode";
35714
+ readonly inputs: readonly [{
35715
+ readonly name: "target";
35716
+ readonly type: "address";
35717
+ readonly internalType: "address";
35718
+ }];
35719
+ }, {
35720
+ readonly type: "error";
35721
+ readonly name: "FailedCall";
35722
+ readonly inputs: readonly [];
35723
+ }, {
35724
+ readonly type: "error";
35725
+ readonly name: "InsufficientLiquidity";
35726
+ readonly inputs: readonly [];
35727
+ }, {
35728
+ readonly type: "error";
35729
+ readonly name: "InvalidAmount";
35730
+ readonly inputs: readonly [];
35731
+ }, {
35732
+ readonly type: "error";
35733
+ readonly name: "InvalidArrayLength";
35734
+ readonly inputs: readonly [];
35735
+ }, {
35736
+ readonly type: "error";
35737
+ readonly name: "InvalidDuration";
35738
+ readonly inputs: readonly [];
35739
+ }, {
35740
+ readonly type: "error";
35741
+ readonly name: "InvalidOptionType";
35742
+ readonly inputs: readonly [];
35743
+ }, {
35744
+ readonly type: "error";
35745
+ readonly name: "InvalidTickRange";
35746
+ readonly inputs: readonly [{
35747
+ readonly name: "tickLower";
35748
+ readonly type: "int24";
35749
+ readonly internalType: "int24";
35750
+ }, {
35751
+ readonly name: "tickUpper";
35752
+ readonly type: "int24";
35753
+ readonly internalType: "int24";
35754
+ }];
35755
+ }, {
35756
+ readonly type: "error";
35757
+ readonly name: "NotAuthorized";
35758
+ readonly inputs: readonly [];
35759
+ }, {
35760
+ readonly type: "error";
35761
+ readonly name: "NotEnoughPayout";
35762
+ readonly inputs: readonly [];
35763
+ }, {
35764
+ readonly type: "error";
35765
+ readonly name: "OptionExpired";
35766
+ readonly inputs: readonly [];
35767
+ }, {
35768
+ readonly type: "error";
35769
+ readonly name: "OptionNotFound";
35770
+ readonly inputs: readonly [];
35771
+ }, {
35772
+ readonly type: "error";
35773
+ readonly name: "OwnableInvalidOwner";
35774
+ readonly inputs: readonly [{
35775
+ readonly name: "owner";
35776
+ readonly type: "address";
35777
+ readonly internalType: "address";
35778
+ }];
35779
+ }, {
35780
+ readonly type: "error";
35781
+ readonly name: "OwnableUnauthorizedAccount";
35782
+ readonly inputs: readonly [{
35783
+ readonly name: "account";
35784
+ readonly type: "address";
35785
+ readonly internalType: "address";
35786
+ }];
35787
+ }, {
35788
+ readonly type: "error";
35789
+ readonly name: "PremiumTooHigh";
35790
+ readonly inputs: readonly [];
35791
+ }, {
35792
+ readonly type: "error";
35793
+ readonly name: "ReentrancyGuardReentrantCall";
35794
+ readonly inputs: readonly [];
35795
+ }, {
35796
+ readonly type: "error";
35797
+ readonly name: "SafeERC20FailedOperation";
35798
+ readonly inputs: readonly [{
35799
+ readonly name: "token";
35800
+ readonly type: "address";
35801
+ readonly internalType: "address";
35802
+ }];
35803
+ }, {
35804
+ readonly type: "error";
35805
+ readonly name: "SwapFailed";
35806
+ readonly inputs: readonly [];
35807
+ }, {
35808
+ readonly type: "error";
35809
+ readonly name: "TradingPaused";
35810
+ readonly inputs: readonly [];
35811
+ }, {
35812
+ readonly type: "error";
35813
+ readonly name: "WithdrawNotAllowed";
35814
+ readonly inputs: readonly [];
35815
+ }, {
35816
+ readonly type: "error";
35817
+ readonly name: "ZeroAddress";
35818
+ readonly inputs: readonly [];
35819
+ }], "operatorPerms", [`0x${string}`, `0x${string}`], readonly [boolean, boolean, boolean, boolean, bigint]>;
35820
+ //#endregion
34958
35821
  //#region src/hooks/operators/useUserOperators.d.ts
34959
35822
  declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
34960
35823
  data: {
@@ -35355,7 +36218,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
35355
36218
  };
35356
36219
  //#endregion
35357
36220
  //#region src/hooks/operators/useSetOperatorPerms.d.ts
35358
- declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
36221
+ declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query3.UseMutationResult<`0x${string}`, Error, {
35359
36222
  operator: Address;
35360
36223
  canExtend: boolean;
35361
36224
  canExercise: boolean;
@@ -35431,7 +36294,7 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
35431
36294
  declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
35432
36295
  //#endregion
35433
36296
  //#region src/hooks/pool/usePriceHistory.d.ts
35434
- declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
36297
+ declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query3.UseQueryResult<PriceDataPoint[], Error>;
35435
36298
  //#endregion
35436
36299
  //#region src/hooks/vault/useBurnLiquidity.d.ts
35437
36300
  interface BurnPosition {
@@ -35814,7 +36677,7 @@ interface MintPositionParams {
35814
36677
  tickUpper: number;
35815
36678
  liquidity: bigint;
35816
36679
  }
35817
- declare const useMintLiquidity: (vaultAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
36680
+ declare const useMintLiquidity: (vaultAddr?: Address) => _tanstack_react_query3.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
35818
36681
  //#endregion
35819
36682
  //#region src/hooks/vault/useVaultData.d.ts
35820
36683
  declare const useVaultData: (vaultAddr?: Address) => {
@@ -61714,5 +62577,5 @@ declare const useApproval: () => {
61714
62577
  reset: () => void;
61715
62578
  };
61716
62579
  //#endregion
61717
- export { scalePrice as $, PriceDataPoint as A, useOptionTimeline as B, liquiditiesToAmount1 as C, timelockLenses as Ct, token0ToToken1 as D, roundTickUp as E, useUserOperators as F, useMaxPositionSize as G, useOptionPremium as H, usePerpsOperator as I, formatAmount as J, Amount as K, useClosePerp as L, getCurrentPrice as M, getPriceHistory as N, token1ToToken0 as O, useSetOperatorPerms as P, scaleAmount as Q, useMintPerp as R, liquiditiesToAmount0 as S, getUniswapMathLens as St, roundTickDown as T, useOptionPnl as U, useExtendOption as V, useMintOption as W, formatUSD as X, formatCondensed as Y, formatVagueAmount as Z, PRICE_PRECISION as _, TimelockMarketData as _t, batchGetAmountsFromLiquidity as a, wrapPriceUnscaled as at, getPriceAtTick as b, getTimelockLens as bt, useLiquidityBlocks as c, useExerciseOption as ct, usePriceAtTick as d, useClosedUserOptions as dt, unscaleAmount as et, UniswapPoolData as f, TimelockProvider as ft, getPayoutAtTick as g, TimelockMarket as gt, useCurrentPrice as h, TimelockLens as ht, useVaultData as i, wrapPrice as it, PriceResolution as j, PriceData as k, useBurnLiquidity as l, OptionData as lt, useCurrentTick as m, useTimelockConfig as mt, useLens as n, wrapAmount as nt, useMintLiquidity as o, zero as ot, usePoolData as p, useCurrentMarket as pt, EMPTY_ARRAY as q, useVaultTVL as r, wrapAmountUnscaled as rt, LiquidityBlockData as s, useMarketData as st, useApproval as t, unscalePrice as tt, usePriceHistory as u, useActiveUserOptions as ut, getAmountsFromLiquidity as v, UniswapMathLens as vt, liquiditiesToAmounts as w, uniswapMathLenses as wt, getTickAtPrice as x, getTimelockMarket as xt, getNearestValidStrikeTick as y, getErc20 as yt, OptionTimelineData as z };
61718
- //# sourceMappingURL=client-pWy70TUj.d.cts.map
62580
+ export { scaleAmount as $, PriceDataPoint as A, OptionTimelineData as B, liquiditiesToAmount1 as C, getUniswapMathLens as Ct, token0ToToken1 as D, roundTickUp as E, useUserOperators as F, useMintOption as G, useExtendOption as H, useOperatorPerms as I, EMPTY_ARRAY as J, useMaxPositionSize as K, usePerpsOperator as L, getCurrentPrice as M, getPriceHistory as N, token1ToToken0 as O, useSetOperatorPerms as P, formatVagueAmount as Q, useClosePerp as R, liquiditiesToAmount0 as S, getTimelockMarket as St, roundTickDown as T, uniswapMathLenses as Tt, useOptionPremium as U, useOptionTimeline as V, useOptionPnl as W, formatCondensed as X, formatAmount as Y, formatUSD as Z, PRICE_PRECISION as _, TimelockMarket as _t, batchGetAmountsFromLiquidity as a, wrapPrice as at, getPriceAtTick as b, getErc20 as bt, useLiquidityBlocks as c, useMarketData as ct, usePriceAtTick as d, useActiveUserOptions as dt, scalePrice as et, UniswapPoolData as f, useClosedUserOptions as ft, getPayoutAtTick as g, TimelockLens as gt, useCurrentPrice as h, useTimelockConfig as ht, useVaultData as i, wrapAmountUnscaled as it, PriceResolution as j, PriceData as k, useBurnLiquidity as l, useExerciseOption as lt, useCurrentTick as m, useCurrentMarket as mt, useLens as n, unscalePrice as nt, useMintLiquidity as o, wrapPriceUnscaled as ot, usePoolData as p, TimelockProvider as pt, Amount as q, useVaultTVL as r, wrapAmount as rt, LiquidityBlockData as s, zero as st, useApproval as t, unscaleAmount as tt, usePriceHistory as u, OptionData as ut, getAmountsFromLiquidity as v, TimelockMarketData as vt, liquiditiesToAmounts as w, timelockLenses as wt, getTickAtPrice as x, getTimelockLens as xt, getNearestValidStrikeTick as y, UniswapMathLens as yt, useMintPerp as z };
62581
+ //# sourceMappingURL=client-DJzkUajw.d.cts.map