timelock-sdk 0.0.92 → 0.0.94
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-CGZEauft.d.ts → client-BanYHaNs.d.cts} +209 -865
- package/dist/{client-DJzkUajw.d.cts → client-S6cJb7ZQ.d.ts} +442 -1098
- package/dist/client.cjs +13 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +13 -2
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
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-B_cHjOOB.cjs";
|
|
2
2
|
import * as viem0 from "viem";
|
|
3
3
|
import { Address, Client, GetContractReturnType, PublicClient } from "viem";
|
|
4
|
-
import Big from "big.js";
|
|
5
4
|
import React, { ReactNode } from "react";
|
|
6
|
-
import
|
|
5
|
+
import "graphql";
|
|
7
6
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
8
7
|
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
9
8
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
10
|
-
import "graphql";
|
|
11
9
|
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
10
|
+
import Big from "big.js";
|
|
12
11
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
13
12
|
|
|
14
13
|
//#region src/generated/graphql.d.ts
|
|
@@ -34957,866 +34956,211 @@ declare const usePerpsOperator: () => {
|
|
|
34957
34956
|
};
|
|
34958
34957
|
//#endregion
|
|
34959
34958
|
//#region src/hooks/operators/useOperatorPerps.d.ts
|
|
34960
|
-
declare const useOperatorPerms: (
|
|
34961
|
-
|
|
34962
|
-
|
|
34963
|
-
|
|
34964
|
-
|
|
34965
|
-
|
|
34966
|
-
|
|
34967
|
-
|
|
34968
|
-
|
|
34969
|
-
|
|
34970
|
-
|
|
34971
|
-
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
-
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
-
|
|
35004
|
-
|
|
35005
|
-
|
|
35006
|
-
|
|
35007
|
-
|
|
35008
|
-
|
|
35009
|
-
|
|
35010
|
-
|
|
35011
|
-
|
|
35012
|
-
|
|
35013
|
-
|
|
35014
|
-
|
|
35015
|
-
|
|
35016
|
-
|
|
35017
|
-
|
|
35018
|
-
|
|
35019
|
-
|
|
35020
|
-
|
|
35021
|
-
|
|
35022
|
-
|
|
35023
|
-
|
|
35024
|
-
|
|
35025
|
-
|
|
35026
|
-
|
|
35027
|
-
}
|
|
35028
|
-
|
|
35029
|
-
|
|
35030
|
-
|
|
35031
|
-
|
|
35032
|
-
|
|
35033
|
-
|
|
35034
|
-
|
|
35035
|
-
|
|
35036
|
-
|
|
35037
|
-
|
|
35038
|
-
|
|
35039
|
-
|
|
35040
|
-
|
|
35041
|
-
|
|
35042
|
-
|
|
35043
|
-
|
|
35044
|
-
|
|
35045
|
-
|
|
35046
|
-
|
|
35047
|
-
|
|
35048
|
-
|
|
35049
|
-
|
|
35050
|
-
|
|
35051
|
-
readonly
|
|
35052
|
-
|
|
35053
|
-
readonly
|
|
35054
|
-
|
|
35055
|
-
|
|
35056
|
-
|
|
35057
|
-
|
|
35058
|
-
|
|
35059
|
-
|
|
35060
|
-
|
|
35061
|
-
|
|
35062
|
-
|
|
35063
|
-
|
|
35064
|
-
|
|
35065
|
-
|
|
35066
|
-
|
|
35067
|
-
|
|
35068
|
-
|
|
35069
|
-
|
|
35070
|
-
|
|
35071
|
-
|
|
35072
|
-
|
|
35073
|
-
|
|
35074
|
-
|
|
35075
|
-
|
|
35076
|
-
|
|
35077
|
-
|
|
35078
|
-
|
|
35079
|
-
|
|
35080
|
-
|
|
35081
|
-
|
|
35082
|
-
|
|
35083
|
-
|
|
35084
|
-
|
|
35085
|
-
readonly
|
|
35086
|
-
|
|
35087
|
-
readonly
|
|
35088
|
-
|
|
35089
|
-
|
|
35090
|
-
|
|
35091
|
-
|
|
35092
|
-
|
|
35093
|
-
|
|
35094
|
-
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35103
|
-
|
|
35104
|
-
|
|
35105
|
-
|
|
35106
|
-
|
|
35107
|
-
|
|
35108
|
-
|
|
35109
|
-
|
|
35110
|
-
|
|
35111
|
-
|
|
35112
|
-
|
|
35113
|
-
|
|
35114
|
-
|
|
35115
|
-
|
|
35116
|
-
|
|
35117
|
-
|
|
35118
|
-
|
|
35119
|
-
|
|
35120
|
-
|
|
35121
|
-
readonly
|
|
35122
|
-
|
|
35123
|
-
|
|
35124
|
-
|
|
35125
|
-
|
|
35126
|
-
|
|
35127
|
-
|
|
35128
|
-
|
|
35129
|
-
|
|
35130
|
-
|
|
35131
|
-
|
|
35132
|
-
|
|
35133
|
-
|
|
35134
|
-
|
|
35135
|
-
|
|
35136
|
-
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
|
|
35146
|
-
|
|
35147
|
-
|
|
35148
|
-
|
|
35149
|
-
|
|
35150
|
-
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
|
|
35154
|
-
|
|
35155
|
-
|
|
35156
|
-
|
|
35157
|
-
|
|
35158
|
-
|
|
35159
|
-
|
|
35160
|
-
|
|
35161
|
-
|
|
35162
|
-
|
|
35163
|
-
|
|
35164
|
-
|
|
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]>;
|
|
34959
|
+
declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, operatorAddr?: Address) => {
|
|
34960
|
+
error: viem0.ReadContractErrorType;
|
|
34961
|
+
isError: true;
|
|
34962
|
+
isPending: false;
|
|
34963
|
+
isLoading: false;
|
|
34964
|
+
isLoadingError: false;
|
|
34965
|
+
isRefetchError: true;
|
|
34966
|
+
isSuccess: false;
|
|
34967
|
+
isPlaceholderData: false;
|
|
34968
|
+
status: "error";
|
|
34969
|
+
dataUpdatedAt: number;
|
|
34970
|
+
errorUpdatedAt: number;
|
|
34971
|
+
failureCount: number;
|
|
34972
|
+
failureReason: viem0.ReadContractErrorType | null;
|
|
34973
|
+
errorUpdateCount: number;
|
|
34974
|
+
isFetched: boolean;
|
|
34975
|
+
isFetchedAfterMount: boolean;
|
|
34976
|
+
isFetching: boolean;
|
|
34977
|
+
isInitialLoading: boolean;
|
|
34978
|
+
isPaused: boolean;
|
|
34979
|
+
isRefetching: boolean;
|
|
34980
|
+
isStale: boolean;
|
|
34981
|
+
isEnabled: boolean;
|
|
34982
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem0.ReadContractErrorType>>;
|
|
34983
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34984
|
+
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
34985
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
34986
|
+
data: {
|
|
34987
|
+
canExtend: boolean;
|
|
34988
|
+
canExercise: boolean;
|
|
34989
|
+
canTransfer: boolean;
|
|
34990
|
+
canMint: boolean;
|
|
34991
|
+
spendingApproval: bigint;
|
|
34992
|
+
} | undefined;
|
|
34993
|
+
} | {
|
|
34994
|
+
error: null;
|
|
34995
|
+
isError: false;
|
|
34996
|
+
isPending: false;
|
|
34997
|
+
isLoading: false;
|
|
34998
|
+
isLoadingError: false;
|
|
34999
|
+
isRefetchError: false;
|
|
35000
|
+
isSuccess: true;
|
|
35001
|
+
isPlaceholderData: false;
|
|
35002
|
+
status: "success";
|
|
35003
|
+
dataUpdatedAt: number;
|
|
35004
|
+
errorUpdatedAt: number;
|
|
35005
|
+
failureCount: number;
|
|
35006
|
+
failureReason: viem0.ReadContractErrorType | null;
|
|
35007
|
+
errorUpdateCount: number;
|
|
35008
|
+
isFetched: boolean;
|
|
35009
|
+
isFetchedAfterMount: boolean;
|
|
35010
|
+
isFetching: boolean;
|
|
35011
|
+
isInitialLoading: boolean;
|
|
35012
|
+
isPaused: boolean;
|
|
35013
|
+
isRefetching: boolean;
|
|
35014
|
+
isStale: boolean;
|
|
35015
|
+
isEnabled: boolean;
|
|
35016
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem0.ReadContractErrorType>>;
|
|
35017
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35018
|
+
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35019
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35020
|
+
data: {
|
|
35021
|
+
canExtend: boolean;
|
|
35022
|
+
canExercise: boolean;
|
|
35023
|
+
canTransfer: boolean;
|
|
35024
|
+
canMint: boolean;
|
|
35025
|
+
spendingApproval: bigint;
|
|
35026
|
+
} | undefined;
|
|
35027
|
+
} | {
|
|
35028
|
+
error: viem0.ReadContractErrorType;
|
|
35029
|
+
isError: true;
|
|
35030
|
+
isPending: false;
|
|
35031
|
+
isLoading: false;
|
|
35032
|
+
isLoadingError: true;
|
|
35033
|
+
isRefetchError: false;
|
|
35034
|
+
isSuccess: false;
|
|
35035
|
+
isPlaceholderData: false;
|
|
35036
|
+
status: "error";
|
|
35037
|
+
dataUpdatedAt: number;
|
|
35038
|
+
errorUpdatedAt: number;
|
|
35039
|
+
failureCount: number;
|
|
35040
|
+
failureReason: viem0.ReadContractErrorType | null;
|
|
35041
|
+
errorUpdateCount: number;
|
|
35042
|
+
isFetched: boolean;
|
|
35043
|
+
isFetchedAfterMount: boolean;
|
|
35044
|
+
isFetching: boolean;
|
|
35045
|
+
isInitialLoading: boolean;
|
|
35046
|
+
isPaused: boolean;
|
|
35047
|
+
isRefetching: boolean;
|
|
35048
|
+
isStale: boolean;
|
|
35049
|
+
isEnabled: boolean;
|
|
35050
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem0.ReadContractErrorType>>;
|
|
35051
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35052
|
+
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35053
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35054
|
+
data: {
|
|
35055
|
+
canExtend: boolean;
|
|
35056
|
+
canExercise: boolean;
|
|
35057
|
+
canTransfer: boolean;
|
|
35058
|
+
canMint: boolean;
|
|
35059
|
+
spendingApproval: bigint;
|
|
35060
|
+
} | undefined;
|
|
35061
|
+
} | {
|
|
35062
|
+
error: null;
|
|
35063
|
+
isError: false;
|
|
35064
|
+
isPending: true;
|
|
35065
|
+
isLoading: true;
|
|
35066
|
+
isLoadingError: false;
|
|
35067
|
+
isRefetchError: false;
|
|
35068
|
+
isSuccess: false;
|
|
35069
|
+
isPlaceholderData: false;
|
|
35070
|
+
status: "pending";
|
|
35071
|
+
dataUpdatedAt: number;
|
|
35072
|
+
errorUpdatedAt: number;
|
|
35073
|
+
failureCount: number;
|
|
35074
|
+
failureReason: viem0.ReadContractErrorType | null;
|
|
35075
|
+
errorUpdateCount: number;
|
|
35076
|
+
isFetched: boolean;
|
|
35077
|
+
isFetchedAfterMount: boolean;
|
|
35078
|
+
isFetching: boolean;
|
|
35079
|
+
isInitialLoading: boolean;
|
|
35080
|
+
isPaused: boolean;
|
|
35081
|
+
isRefetching: boolean;
|
|
35082
|
+
isStale: boolean;
|
|
35083
|
+
isEnabled: boolean;
|
|
35084
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem0.ReadContractErrorType>>;
|
|
35085
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35086
|
+
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35087
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35088
|
+
data: {
|
|
35089
|
+
canExtend: boolean;
|
|
35090
|
+
canExercise: boolean;
|
|
35091
|
+
canTransfer: boolean;
|
|
35092
|
+
canMint: boolean;
|
|
35093
|
+
spendingApproval: bigint;
|
|
35094
|
+
} | undefined;
|
|
35095
|
+
} | {
|
|
35096
|
+
error: null;
|
|
35097
|
+
isError: false;
|
|
35098
|
+
isPending: true;
|
|
35099
|
+
isLoadingError: false;
|
|
35100
|
+
isRefetchError: false;
|
|
35101
|
+
isSuccess: false;
|
|
35102
|
+
isPlaceholderData: false;
|
|
35103
|
+
status: "pending";
|
|
35104
|
+
dataUpdatedAt: number;
|
|
35105
|
+
errorUpdatedAt: number;
|
|
35106
|
+
failureCount: number;
|
|
35107
|
+
failureReason: viem0.ReadContractErrorType | null;
|
|
35108
|
+
errorUpdateCount: number;
|
|
35109
|
+
isFetched: boolean;
|
|
35110
|
+
isFetchedAfterMount: boolean;
|
|
35111
|
+
isFetching: boolean;
|
|
35112
|
+
isLoading: boolean;
|
|
35113
|
+
isInitialLoading: boolean;
|
|
35114
|
+
isPaused: boolean;
|
|
35115
|
+
isRefetching: boolean;
|
|
35116
|
+
isStale: boolean;
|
|
35117
|
+
isEnabled: boolean;
|
|
35118
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem0.ReadContractErrorType>>;
|
|
35119
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35120
|
+
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35121
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35122
|
+
data: {
|
|
35123
|
+
canExtend: boolean;
|
|
35124
|
+
canExercise: boolean;
|
|
35125
|
+
canTransfer: boolean;
|
|
35126
|
+
canMint: boolean;
|
|
35127
|
+
spendingApproval: bigint;
|
|
35128
|
+
} | undefined;
|
|
35129
|
+
} | {
|
|
35130
|
+
isError: false;
|
|
35131
|
+
error: null;
|
|
35132
|
+
isPending: false;
|
|
35133
|
+
isLoading: false;
|
|
35134
|
+
isLoadingError: false;
|
|
35135
|
+
isRefetchError: false;
|
|
35136
|
+
isSuccess: true;
|
|
35137
|
+
isPlaceholderData: true;
|
|
35138
|
+
status: "success";
|
|
35139
|
+
dataUpdatedAt: number;
|
|
35140
|
+
errorUpdatedAt: number;
|
|
35141
|
+
failureCount: number;
|
|
35142
|
+
failureReason: viem0.ReadContractErrorType | null;
|
|
35143
|
+
errorUpdateCount: number;
|
|
35144
|
+
isFetched: boolean;
|
|
35145
|
+
isFetchedAfterMount: boolean;
|
|
35146
|
+
isFetching: boolean;
|
|
35147
|
+
isInitialLoading: boolean;
|
|
35148
|
+
isPaused: boolean;
|
|
35149
|
+
isRefetching: boolean;
|
|
35150
|
+
isStale: boolean;
|
|
35151
|
+
isEnabled: boolean;
|
|
35152
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem0.ReadContractErrorType>>;
|
|
35153
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35154
|
+
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35155
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35156
|
+
data: {
|
|
35157
|
+
canExtend: boolean;
|
|
35158
|
+
canExercise: boolean;
|
|
35159
|
+
canTransfer: boolean;
|
|
35160
|
+
canMint: boolean;
|
|
35161
|
+
spendingApproval: bigint;
|
|
35162
|
+
} | undefined;
|
|
35163
|
+
};
|
|
35820
35164
|
//#endregion
|
|
35821
35165
|
//#region src/hooks/operators/useUserOperators.d.ts
|
|
35822
35166
|
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
@@ -62578,4 +61922,4 @@ declare const useApproval: () => {
|
|
|
62578
61922
|
};
|
|
62579
61923
|
//#endregion
|
|
62580
61924
|
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-
|
|
61925
|
+
//# sourceMappingURL=client-BanYHaNs.d.cts.map
|