timelock-sdk 0.0.59 → 0.0.60
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/abis.cjs +1 -1
- package/dist/abis.d.cts +1 -1
- package/dist/abis.d.ts +1 -1
- package/dist/abis.js +1 -1
- package/dist/client.cjs +2 -3
- 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 +2 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-BSxG0QvH.d.ts → index-Ct8jAxHT.d.ts} +2 -2
- package/dist/{index-CrA0YbZT.d.cts → index-DgBdLHRl.d.cts} +2 -2
- package/dist/{numberUtils-DmIl8J2d.js → numberUtils-DYkWKQ5v.js} +3 -3
- package/dist/{numberUtils-DmIl8J2d.js.map → numberUtils-DYkWKQ5v.js.map} +1 -1
- package/dist/{numberUtils-kfuUM90a.cjs → numberUtils-DaQ_5dq6.cjs} +3 -3
- package/dist/{numberUtils-kfuUM90a.cjs.map → numberUtils-DaQ_5dq6.cjs.map} +1 -1
- package/dist/{optionsMarket-DlorOgXd.js → optionsMarket-BW3qSfsm.js} +210 -108
- package/dist/{optionsMarket-DlorOgXd.js.map → optionsMarket-BW3qSfsm.js.map} +1 -1
- package/dist/{optionsMarket-DR-asJJa.cjs → optionsMarket-C5z_ZrhG.cjs} +210 -108
- package/dist/{optionsMarket-DR-asJJa.cjs.map → optionsMarket-C5z_ZrhG.cjs.map} +1 -1
- package/dist/package.cjs +2 -2
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/dist/{uniswapMathLens-nYgMLuOt.d.ts → uniswapMathLens-DS1i63oR.d.ts} +184 -96
- package/dist/{uniswapMathLens-CVpKNF0-.d.cts → uniswapMathLens-Dd_BqyEk.d.cts} +184 -96
- package/package.json +1 -1
|
@@ -2003,11 +2003,6 @@ const optionsMarketAbi = [
|
|
|
2003
2003
|
type: "address",
|
|
2004
2004
|
internalType: "address"
|
|
2005
2005
|
},
|
|
2006
|
-
{
|
|
2007
|
-
name: "extendable",
|
|
2008
|
-
type: "bool",
|
|
2009
|
-
internalType: "bool"
|
|
2010
|
-
},
|
|
2011
2006
|
{
|
|
2012
2007
|
name: "optionType",
|
|
2013
2008
|
type: "uint8",
|
|
@@ -2027,13 +2022,12 @@ const optionsMarketAbi = [
|
|
|
2027
2022
|
name: "expiresAt",
|
|
2028
2023
|
type: "uint32",
|
|
2029
2024
|
internalType: "uint32"
|
|
2030
|
-
},
|
|
2031
|
-
{
|
|
2032
|
-
name: "liquidities",
|
|
2033
|
-
type: "uint128[]",
|
|
2034
|
-
internalType: "uint128[]"
|
|
2035
2025
|
}
|
|
2036
2026
|
]
|
|
2027
|
+
}, {
|
|
2028
|
+
name: "",
|
|
2029
|
+
type: "uint128[]",
|
|
2030
|
+
internalType: "uint128[]"
|
|
2037
2031
|
}],
|
|
2038
2032
|
stateMutability: "view"
|
|
2039
2033
|
},
|
|
@@ -2058,7 +2052,7 @@ const optionsMarketAbi = [
|
|
|
2058
2052
|
internalType: "int24"
|
|
2059
2053
|
},
|
|
2060
2054
|
{
|
|
2061
|
-
name: "
|
|
2055
|
+
name: "liquiditys",
|
|
2062
2056
|
type: "uint128[]",
|
|
2063
2057
|
internalType: "uint128[]"
|
|
2064
2058
|
},
|
|
@@ -2097,50 +2091,6 @@ const optionsMarketAbi = [
|
|
|
2097
2091
|
],
|
|
2098
2092
|
stateMutability: "view"
|
|
2099
2093
|
},
|
|
2100
|
-
{
|
|
2101
|
-
type: "function",
|
|
2102
|
-
name: "maxDuration",
|
|
2103
|
-
inputs: [],
|
|
2104
|
-
outputs: [{
|
|
2105
|
-
name: "",
|
|
2106
|
-
type: "uint32",
|
|
2107
|
-
internalType: "uint32"
|
|
2108
|
-
}],
|
|
2109
|
-
stateMutability: "view"
|
|
2110
|
-
},
|
|
2111
|
-
{
|
|
2112
|
-
type: "function",
|
|
2113
|
-
name: "maxOptionAmount",
|
|
2114
|
-
inputs: [],
|
|
2115
|
-
outputs: [{
|
|
2116
|
-
name: "",
|
|
2117
|
-
type: "uint256",
|
|
2118
|
-
internalType: "uint256"
|
|
2119
|
-
}],
|
|
2120
|
-
stateMutability: "view"
|
|
2121
|
-
},
|
|
2122
|
-
{
|
|
2123
|
-
type: "function",
|
|
2124
|
-
name: "minDuration",
|
|
2125
|
-
inputs: [],
|
|
2126
|
-
outputs: [{
|
|
2127
|
-
name: "",
|
|
2128
|
-
type: "uint32",
|
|
2129
|
-
internalType: "uint32"
|
|
2130
|
-
}],
|
|
2131
|
-
stateMutability: "view"
|
|
2132
|
-
},
|
|
2133
|
-
{
|
|
2134
|
-
type: "function",
|
|
2135
|
-
name: "minOptionAmount",
|
|
2136
|
-
inputs: [],
|
|
2137
|
-
outputs: [{
|
|
2138
|
-
name: "",
|
|
2139
|
-
type: "uint256",
|
|
2140
|
-
internalType: "uint256"
|
|
2141
|
-
}],
|
|
2142
|
-
stateMutability: "view"
|
|
2143
|
-
},
|
|
2144
2094
|
{
|
|
2145
2095
|
type: "function",
|
|
2146
2096
|
name: "mintOption",
|
|
@@ -2170,11 +2120,6 @@ const optionsMarketAbi = [
|
|
|
2170
2120
|
type: "uint256",
|
|
2171
2121
|
internalType: "uint256"
|
|
2172
2122
|
},
|
|
2173
|
-
{
|
|
2174
|
-
name: "extendable",
|
|
2175
|
-
type: "bool",
|
|
2176
|
-
internalType: "bool"
|
|
2177
|
-
},
|
|
2178
2123
|
{
|
|
2179
2124
|
name: "refTick",
|
|
2180
2125
|
type: "int24",
|
|
@@ -2205,6 +2150,21 @@ const optionsMarketAbi = [
|
|
|
2205
2150
|
],
|
|
2206
2151
|
stateMutability: "nonpayable"
|
|
2207
2152
|
},
|
|
2153
|
+
{
|
|
2154
|
+
type: "function",
|
|
2155
|
+
name: "multicall",
|
|
2156
|
+
inputs: [{
|
|
2157
|
+
name: "data",
|
|
2158
|
+
type: "bytes[]",
|
|
2159
|
+
internalType: "bytes[]"
|
|
2160
|
+
}],
|
|
2161
|
+
outputs: [{
|
|
2162
|
+
name: "results",
|
|
2163
|
+
type: "bytes[]",
|
|
2164
|
+
internalType: "bytes[]"
|
|
2165
|
+
}],
|
|
2166
|
+
stateMutability: "nonpayable"
|
|
2167
|
+
},
|
|
2208
2168
|
{
|
|
2209
2169
|
type: "function",
|
|
2210
2170
|
name: "nextOptionId",
|
|
@@ -2216,6 +2176,37 @@ const optionsMarketAbi = [
|
|
|
2216
2176
|
}],
|
|
2217
2177
|
stateMutability: "view"
|
|
2218
2178
|
},
|
|
2179
|
+
{
|
|
2180
|
+
type: "function",
|
|
2181
|
+
name: "operatorPerms",
|
|
2182
|
+
inputs: [{
|
|
2183
|
+
name: "",
|
|
2184
|
+
type: "address",
|
|
2185
|
+
internalType: "address"
|
|
2186
|
+
}, {
|
|
2187
|
+
name: "",
|
|
2188
|
+
type: "address",
|
|
2189
|
+
internalType: "address"
|
|
2190
|
+
}],
|
|
2191
|
+
outputs: [
|
|
2192
|
+
{
|
|
2193
|
+
name: "canExtend",
|
|
2194
|
+
type: "bool",
|
|
2195
|
+
internalType: "bool"
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
name: "canExercise",
|
|
2199
|
+
type: "bool",
|
|
2200
|
+
internalType: "bool"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
name: "canTransfer",
|
|
2204
|
+
type: "bool",
|
|
2205
|
+
internalType: "bool"
|
|
2206
|
+
}
|
|
2207
|
+
],
|
|
2208
|
+
stateMutability: "view"
|
|
2209
|
+
},
|
|
2219
2210
|
{
|
|
2220
2211
|
type: "function",
|
|
2221
2212
|
name: "optionAsset",
|
|
@@ -2289,6 +2280,34 @@ const optionsMarketAbi = [
|
|
|
2289
2280
|
outputs: [],
|
|
2290
2281
|
stateMutability: "nonpayable"
|
|
2291
2282
|
},
|
|
2283
|
+
{
|
|
2284
|
+
type: "function",
|
|
2285
|
+
name: "setOperatorPerms",
|
|
2286
|
+
inputs: [
|
|
2287
|
+
{
|
|
2288
|
+
name: "operator",
|
|
2289
|
+
type: "address",
|
|
2290
|
+
internalType: "address"
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
name: "canExtend",
|
|
2294
|
+
type: "bool",
|
|
2295
|
+
internalType: "bool"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
name: "canExercise",
|
|
2299
|
+
type: "bool",
|
|
2300
|
+
internalType: "bool"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
name: "canTransfer",
|
|
2304
|
+
type: "bool",
|
|
2305
|
+
internalType: "bool"
|
|
2306
|
+
}
|
|
2307
|
+
],
|
|
2308
|
+
outputs: [],
|
|
2309
|
+
stateMutability: "nonpayable"
|
|
2310
|
+
},
|
|
2292
2311
|
{
|
|
2293
2312
|
type: "function",
|
|
2294
2313
|
name: "tickSpacing",
|
|
@@ -2322,6 +2341,21 @@ const optionsMarketAbi = [
|
|
|
2322
2341
|
}],
|
|
2323
2342
|
stateMutability: "view"
|
|
2324
2343
|
},
|
|
2344
|
+
{
|
|
2345
|
+
type: "function",
|
|
2346
|
+
name: "transferOption",
|
|
2347
|
+
inputs: [{
|
|
2348
|
+
name: "optionId",
|
|
2349
|
+
type: "uint256",
|
|
2350
|
+
internalType: "uint256"
|
|
2351
|
+
}, {
|
|
2352
|
+
name: "to",
|
|
2353
|
+
type: "address",
|
|
2354
|
+
internalType: "address"
|
|
2355
|
+
}],
|
|
2356
|
+
outputs: [],
|
|
2357
|
+
stateMutability: "nonpayable"
|
|
2358
|
+
},
|
|
2325
2359
|
{
|
|
2326
2360
|
type: "function",
|
|
2327
2361
|
name: "transferOwnership",
|
|
@@ -2358,42 +2392,55 @@ const optionsMarketAbi = [
|
|
|
2358
2392
|
},
|
|
2359
2393
|
{
|
|
2360
2394
|
type: "function",
|
|
2361
|
-
name: "
|
|
2395
|
+
name: "vault",
|
|
2396
|
+
inputs: [],
|
|
2397
|
+
outputs: [{
|
|
2398
|
+
name: "",
|
|
2399
|
+
type: "address",
|
|
2400
|
+
internalType: "contract ITimelockVault"
|
|
2401
|
+
}],
|
|
2402
|
+
stateMutability: "view"
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
type: "event",
|
|
2406
|
+
name: "AddressesUpdated",
|
|
2362
2407
|
inputs: [
|
|
2363
2408
|
{
|
|
2364
|
-
name: "
|
|
2365
|
-
type: "
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
{
|
|
2369
|
-
name: "_maxOptionAmount",
|
|
2370
|
-
type: "uint256",
|
|
2371
|
-
internalType: "uint256"
|
|
2409
|
+
name: "optionPricing",
|
|
2410
|
+
type: "address",
|
|
2411
|
+
indexed: false,
|
|
2412
|
+
internalType: "contract IOptionPricing"
|
|
2372
2413
|
},
|
|
2373
2414
|
{
|
|
2374
|
-
name: "
|
|
2375
|
-
type: "
|
|
2376
|
-
|
|
2415
|
+
name: "feeStrategy",
|
|
2416
|
+
type: "address",
|
|
2417
|
+
indexed: false,
|
|
2418
|
+
internalType: "contract IFeeStrategy"
|
|
2377
2419
|
},
|
|
2378
2420
|
{
|
|
2379
|
-
name: "
|
|
2380
|
-
type: "
|
|
2381
|
-
|
|
2421
|
+
name: "feeRecipient",
|
|
2422
|
+
type: "address",
|
|
2423
|
+
indexed: false,
|
|
2424
|
+
internalType: "address"
|
|
2382
2425
|
}
|
|
2383
2426
|
],
|
|
2384
|
-
|
|
2385
|
-
stateMutability: "nonpayable"
|
|
2427
|
+
anonymous: false
|
|
2386
2428
|
},
|
|
2387
2429
|
{
|
|
2388
|
-
type: "
|
|
2389
|
-
name: "
|
|
2390
|
-
inputs: [
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
internalType: "contract
|
|
2430
|
+
type: "event",
|
|
2431
|
+
name: "EmergencyWithdraw",
|
|
2432
|
+
inputs: [{
|
|
2433
|
+
name: "tokens",
|
|
2434
|
+
type: "address[]",
|
|
2435
|
+
indexed: false,
|
|
2436
|
+
internalType: "contract IERC20[]"
|
|
2437
|
+
}, {
|
|
2438
|
+
name: "balances",
|
|
2439
|
+
type: "uint256[]",
|
|
2440
|
+
indexed: false,
|
|
2441
|
+
internalType: "uint256[]"
|
|
2395
2442
|
}],
|
|
2396
|
-
|
|
2443
|
+
anonymous: false
|
|
2397
2444
|
},
|
|
2398
2445
|
{
|
|
2399
2446
|
type: "event",
|
|
@@ -2405,12 +2452,6 @@ const optionsMarketAbi = [
|
|
|
2405
2452
|
indexed: true,
|
|
2406
2453
|
internalType: "uint256"
|
|
2407
2454
|
},
|
|
2408
|
-
{
|
|
2409
|
-
name: "owner",
|
|
2410
|
-
type: "address",
|
|
2411
|
-
indexed: true,
|
|
2412
|
-
internalType: "address"
|
|
2413
|
-
},
|
|
2414
2455
|
{
|
|
2415
2456
|
name: "liquidities",
|
|
2416
2457
|
type: "uint128[]",
|
|
@@ -2442,12 +2483,6 @@ const optionsMarketAbi = [
|
|
|
2442
2483
|
indexed: true,
|
|
2443
2484
|
internalType: "uint256"
|
|
2444
2485
|
},
|
|
2445
|
-
{
|
|
2446
|
-
name: "owner",
|
|
2447
|
-
type: "address",
|
|
2448
|
-
indexed: true,
|
|
2449
|
-
internalType: "address"
|
|
2450
|
-
},
|
|
2451
2486
|
{
|
|
2452
2487
|
name: "premium",
|
|
2453
2488
|
type: "uint256",
|
|
@@ -2502,7 +2537,7 @@ const optionsMarketAbi = [
|
|
|
2502
2537
|
internalType: "uint256"
|
|
2503
2538
|
},
|
|
2504
2539
|
{
|
|
2505
|
-
name: "
|
|
2540
|
+
name: "owner",
|
|
2506
2541
|
type: "address",
|
|
2507
2542
|
indexed: true,
|
|
2508
2543
|
internalType: "address"
|
|
@@ -2533,15 +2568,15 @@ const optionsMarketAbi = [
|
|
|
2533
2568
|
},
|
|
2534
2569
|
{
|
|
2535
2570
|
name: "premium",
|
|
2536
|
-
type: "
|
|
2571
|
+
type: "uint256",
|
|
2537
2572
|
indexed: false,
|
|
2538
|
-
internalType: "
|
|
2573
|
+
internalType: "uint256"
|
|
2539
2574
|
},
|
|
2540
2575
|
{
|
|
2541
2576
|
name: "protocolFee",
|
|
2542
|
-
type: "
|
|
2577
|
+
type: "uint256",
|
|
2543
2578
|
indexed: false,
|
|
2544
|
-
internalType: "
|
|
2579
|
+
internalType: "uint256"
|
|
2545
2580
|
},
|
|
2546
2581
|
{
|
|
2547
2582
|
name: "liquidities",
|
|
@@ -2568,14 +2603,71 @@ const optionsMarketAbi = [
|
|
|
2568
2603
|
}],
|
|
2569
2604
|
anonymous: false
|
|
2570
2605
|
},
|
|
2606
|
+
{
|
|
2607
|
+
type: "event",
|
|
2608
|
+
name: "TransferOption",
|
|
2609
|
+
inputs: [{
|
|
2610
|
+
name: "optionId",
|
|
2611
|
+
type: "uint256",
|
|
2612
|
+
indexed: true,
|
|
2613
|
+
internalType: "uint256"
|
|
2614
|
+
}, {
|
|
2615
|
+
name: "to",
|
|
2616
|
+
type: "address",
|
|
2617
|
+
indexed: true,
|
|
2618
|
+
internalType: "address"
|
|
2619
|
+
}],
|
|
2620
|
+
anonymous: false
|
|
2621
|
+
},
|
|
2622
|
+
{
|
|
2623
|
+
type: "event",
|
|
2624
|
+
name: "UpdateOperatorPerms",
|
|
2625
|
+
inputs: [
|
|
2626
|
+
{
|
|
2627
|
+
name: "owner",
|
|
2628
|
+
type: "address",
|
|
2629
|
+
indexed: true,
|
|
2630
|
+
internalType: "address"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
name: "operator",
|
|
2634
|
+
type: "address",
|
|
2635
|
+
indexed: true,
|
|
2636
|
+
internalType: "address"
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
name: "canExtend",
|
|
2640
|
+
type: "bool",
|
|
2641
|
+
indexed: false,
|
|
2642
|
+
internalType: "bool"
|
|
2643
|
+
},
|
|
2644
|
+
{
|
|
2645
|
+
name: "canExercise",
|
|
2646
|
+
type: "bool",
|
|
2647
|
+
indexed: false,
|
|
2648
|
+
internalType: "bool"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
name: "canTransfer",
|
|
2652
|
+
type: "bool",
|
|
2653
|
+
indexed: false,
|
|
2654
|
+
internalType: "bool"
|
|
2655
|
+
}
|
|
2656
|
+
],
|
|
2657
|
+
anonymous: false
|
|
2658
|
+
},
|
|
2571
2659
|
{
|
|
2572
2660
|
type: "error",
|
|
2573
|
-
name: "
|
|
2574
|
-
inputs: [
|
|
2661
|
+
name: "AddressEmptyCode",
|
|
2662
|
+
inputs: [{
|
|
2663
|
+
name: "target",
|
|
2664
|
+
type: "address",
|
|
2665
|
+
internalType: "address"
|
|
2666
|
+
}]
|
|
2575
2667
|
},
|
|
2576
2668
|
{
|
|
2577
2669
|
type: "error",
|
|
2578
|
-
name: "
|
|
2670
|
+
name: "FailedCall",
|
|
2579
2671
|
inputs: []
|
|
2580
2672
|
},
|
|
2581
2673
|
{
|
|
@@ -2583,11 +2675,21 @@ const optionsMarketAbi = [
|
|
|
2583
2675
|
name: "InsufficientLiquidity",
|
|
2584
2676
|
inputs: []
|
|
2585
2677
|
},
|
|
2678
|
+
{
|
|
2679
|
+
type: "error",
|
|
2680
|
+
name: "InvalidAmount",
|
|
2681
|
+
inputs: []
|
|
2682
|
+
},
|
|
2586
2683
|
{
|
|
2587
2684
|
type: "error",
|
|
2588
2685
|
name: "InvalidArrayLength",
|
|
2589
2686
|
inputs: []
|
|
2590
2687
|
},
|
|
2688
|
+
{
|
|
2689
|
+
type: "error",
|
|
2690
|
+
name: "InvalidDuration",
|
|
2691
|
+
inputs: []
|
|
2692
|
+
},
|
|
2591
2693
|
{
|
|
2592
2694
|
type: "error",
|
|
2593
2695
|
name: "InvalidOptionType",
|
|
@@ -2608,12 +2710,12 @@ const optionsMarketAbi = [
|
|
|
2608
2710
|
},
|
|
2609
2711
|
{
|
|
2610
2712
|
type: "error",
|
|
2611
|
-
name: "
|
|
2713
|
+
name: "NotAuthorized",
|
|
2612
2714
|
inputs: []
|
|
2613
2715
|
},
|
|
2614
2716
|
{
|
|
2615
2717
|
type: "error",
|
|
2616
|
-
name: "
|
|
2718
|
+
name: "NotEnoughPayout",
|
|
2617
2719
|
inputs: []
|
|
2618
2720
|
},
|
|
2619
2721
|
{
|
|
@@ -2687,4 +2789,4 @@ const optionsMarketAbi = [
|
|
|
2687
2789
|
|
|
2688
2790
|
//#endregion
|
|
2689
2791
|
export { erc20Abi as i, uniswapMathLensAbi as n, lensAbi as r, optionsMarketAbi as t };
|
|
2690
|
-
//# sourceMappingURL=optionsMarket-
|
|
2792
|
+
//# sourceMappingURL=optionsMarket-BW3qSfsm.js.map
|