timelock-sdk 0.0.59 → 0.0.61

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.
@@ -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: "liquidities",
2055
+ name: "liquiditys",
2062
2056
  type: "uint128[]",
2063
2057
  internalType: "uint128[]"
2064
2058
  },
@@ -2097,54 +2091,15 @@ 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",
2147
2097
  inputs: [
2098
+ {
2099
+ name: "owner",
2100
+ type: "address",
2101
+ internalType: "address"
2102
+ },
2148
2103
  {
2149
2104
  name: "optionType",
2150
2105
  type: "uint8",
@@ -2170,11 +2125,6 @@ const optionsMarketAbi = [
2170
2125
  type: "uint256",
2171
2126
  internalType: "uint256"
2172
2127
  },
2173
- {
2174
- name: "extendable",
2175
- type: "bool",
2176
- internalType: "bool"
2177
- },
2178
2128
  {
2179
2129
  name: "refTick",
2180
2130
  type: "int24",
@@ -2205,6 +2155,21 @@ const optionsMarketAbi = [
2205
2155
  ],
2206
2156
  stateMutability: "nonpayable"
2207
2157
  },
2158
+ {
2159
+ type: "function",
2160
+ name: "multicall",
2161
+ inputs: [{
2162
+ name: "data",
2163
+ type: "bytes[]",
2164
+ internalType: "bytes[]"
2165
+ }],
2166
+ outputs: [{
2167
+ name: "results",
2168
+ type: "bytes[]",
2169
+ internalType: "bytes[]"
2170
+ }],
2171
+ stateMutability: "nonpayable"
2172
+ },
2208
2173
  {
2209
2174
  type: "function",
2210
2175
  name: "nextOptionId",
@@ -2216,6 +2181,47 @@ const optionsMarketAbi = [
2216
2181
  }],
2217
2182
  stateMutability: "view"
2218
2183
  },
2184
+ {
2185
+ type: "function",
2186
+ name: "operatorPerms",
2187
+ inputs: [{
2188
+ name: "",
2189
+ type: "address",
2190
+ internalType: "address"
2191
+ }, {
2192
+ name: "",
2193
+ type: "address",
2194
+ internalType: "address"
2195
+ }],
2196
+ outputs: [
2197
+ {
2198
+ name: "canExtend",
2199
+ type: "bool",
2200
+ internalType: "bool"
2201
+ },
2202
+ {
2203
+ name: "canExercise",
2204
+ type: "bool",
2205
+ internalType: "bool"
2206
+ },
2207
+ {
2208
+ name: "canTransfer",
2209
+ type: "bool",
2210
+ internalType: "bool"
2211
+ },
2212
+ {
2213
+ name: "canMint",
2214
+ type: "bool",
2215
+ internalType: "bool"
2216
+ },
2217
+ {
2218
+ name: "spendingApproval",
2219
+ type: "uint256",
2220
+ internalType: "uint256"
2221
+ }
2222
+ ],
2223
+ stateMutability: "view"
2224
+ },
2219
2225
  {
2220
2226
  type: "function",
2221
2227
  name: "optionAsset",
@@ -2289,6 +2295,44 @@ const optionsMarketAbi = [
2289
2295
  outputs: [],
2290
2296
  stateMutability: "nonpayable"
2291
2297
  },
2298
+ {
2299
+ type: "function",
2300
+ name: "setOperatorPerms",
2301
+ inputs: [
2302
+ {
2303
+ name: "operator",
2304
+ type: "address",
2305
+ internalType: "address"
2306
+ },
2307
+ {
2308
+ name: "canExtend",
2309
+ type: "bool",
2310
+ internalType: "bool"
2311
+ },
2312
+ {
2313
+ name: "canExercise",
2314
+ type: "bool",
2315
+ internalType: "bool"
2316
+ },
2317
+ {
2318
+ name: "canTransfer",
2319
+ type: "bool",
2320
+ internalType: "bool"
2321
+ },
2322
+ {
2323
+ name: "canMint",
2324
+ type: "bool",
2325
+ internalType: "bool"
2326
+ },
2327
+ {
2328
+ name: "spendingApproval",
2329
+ type: "uint256",
2330
+ internalType: "uint256"
2331
+ }
2332
+ ],
2333
+ outputs: [],
2334
+ stateMutability: "nonpayable"
2335
+ },
2292
2336
  {
2293
2337
  type: "function",
2294
2338
  name: "tickSpacing",
@@ -2322,6 +2366,21 @@ const optionsMarketAbi = [
2322
2366
  }],
2323
2367
  stateMutability: "view"
2324
2368
  },
2369
+ {
2370
+ type: "function",
2371
+ name: "transferOption",
2372
+ inputs: [{
2373
+ name: "optionId",
2374
+ type: "uint256",
2375
+ internalType: "uint256"
2376
+ }, {
2377
+ name: "to",
2378
+ type: "address",
2379
+ internalType: "address"
2380
+ }],
2381
+ outputs: [],
2382
+ stateMutability: "nonpayable"
2383
+ },
2325
2384
  {
2326
2385
  type: "function",
2327
2386
  name: "transferOwnership",
@@ -2358,42 +2417,55 @@ const optionsMarketAbi = [
2358
2417
  },
2359
2418
  {
2360
2419
  type: "function",
2361
- name: "updateBounds",
2420
+ name: "vault",
2421
+ inputs: [],
2422
+ outputs: [{
2423
+ name: "",
2424
+ type: "address",
2425
+ internalType: "contract ITimelockVault"
2426
+ }],
2427
+ stateMutability: "view"
2428
+ },
2429
+ {
2430
+ type: "event",
2431
+ name: "AddressesUpdated",
2362
2432
  inputs: [
2363
2433
  {
2364
- name: "_minOptionAmount",
2365
- type: "uint256",
2366
- internalType: "uint256"
2367
- },
2368
- {
2369
- name: "_maxOptionAmount",
2370
- type: "uint256",
2371
- internalType: "uint256"
2434
+ name: "optionPricing",
2435
+ type: "address",
2436
+ indexed: false,
2437
+ internalType: "contract IOptionPricing"
2372
2438
  },
2373
2439
  {
2374
- name: "_minDuration",
2375
- type: "uint32",
2376
- internalType: "uint32"
2440
+ name: "feeStrategy",
2441
+ type: "address",
2442
+ indexed: false,
2443
+ internalType: "contract IFeeStrategy"
2377
2444
  },
2378
2445
  {
2379
- name: "_maxDuration",
2380
- type: "uint32",
2381
- internalType: "uint32"
2446
+ name: "feeRecipient",
2447
+ type: "address",
2448
+ indexed: false,
2449
+ internalType: "address"
2382
2450
  }
2383
2451
  ],
2384
- outputs: [],
2385
- stateMutability: "nonpayable"
2452
+ anonymous: false
2386
2453
  },
2387
2454
  {
2388
- type: "function",
2389
- name: "vault",
2390
- inputs: [],
2391
- outputs: [{
2392
- name: "",
2393
- type: "address",
2394
- internalType: "contract ITimelockVault"
2455
+ type: "event",
2456
+ name: "EmergencyWithdraw",
2457
+ inputs: [{
2458
+ name: "tokens",
2459
+ type: "address[]",
2460
+ indexed: false,
2461
+ internalType: "contract IERC20[]"
2462
+ }, {
2463
+ name: "balances",
2464
+ type: "uint256[]",
2465
+ indexed: false,
2466
+ internalType: "uint256[]"
2395
2467
  }],
2396
- stateMutability: "view"
2468
+ anonymous: false
2397
2469
  },
2398
2470
  {
2399
2471
  type: "event",
@@ -2405,12 +2477,6 @@ const optionsMarketAbi = [
2405
2477
  indexed: true,
2406
2478
  internalType: "uint256"
2407
2479
  },
2408
- {
2409
- name: "owner",
2410
- type: "address",
2411
- indexed: true,
2412
- internalType: "address"
2413
- },
2414
2480
  {
2415
2481
  name: "liquidities",
2416
2482
  type: "uint128[]",
@@ -2442,12 +2508,6 @@ const optionsMarketAbi = [
2442
2508
  indexed: true,
2443
2509
  internalType: "uint256"
2444
2510
  },
2445
- {
2446
- name: "owner",
2447
- type: "address",
2448
- indexed: true,
2449
- internalType: "address"
2450
- },
2451
2511
  {
2452
2512
  name: "premium",
2453
2513
  type: "uint256",
@@ -2475,22 +2535,6 @@ const optionsMarketAbi = [
2475
2535
  ],
2476
2536
  anonymous: false
2477
2537
  },
2478
- {
2479
- type: "event",
2480
- name: "FeesWithdrawn",
2481
- inputs: [{
2482
- name: "fees0",
2483
- type: "uint256",
2484
- indexed: false,
2485
- internalType: "uint256"
2486
- }, {
2487
- name: "fees1",
2488
- type: "uint256",
2489
- indexed: false,
2490
- internalType: "uint256"
2491
- }],
2492
- anonymous: false
2493
- },
2494
2538
  {
2495
2539
  type: "event",
2496
2540
  name: "MintOption",
@@ -2502,7 +2546,7 @@ const optionsMarketAbi = [
2502
2546
  internalType: "uint256"
2503
2547
  },
2504
2548
  {
2505
- name: "buyer",
2549
+ name: "owner",
2506
2550
  type: "address",
2507
2551
  indexed: true,
2508
2552
  internalType: "address"
@@ -2533,15 +2577,15 @@ const optionsMarketAbi = [
2533
2577
  },
2534
2578
  {
2535
2579
  name: "premium",
2536
- type: "uint128",
2580
+ type: "uint256",
2537
2581
  indexed: false,
2538
- internalType: "uint128"
2582
+ internalType: "uint256"
2539
2583
  },
2540
2584
  {
2541
2585
  name: "protocolFee",
2542
- type: "uint128",
2586
+ type: "uint256",
2543
2587
  indexed: false,
2544
- internalType: "uint128"
2588
+ internalType: "uint256"
2545
2589
  },
2546
2590
  {
2547
2591
  name: "liquidities",
@@ -2568,14 +2612,83 @@ const optionsMarketAbi = [
2568
2612
  }],
2569
2613
  anonymous: false
2570
2614
  },
2615
+ {
2616
+ type: "event",
2617
+ name: "TransferOption",
2618
+ inputs: [{
2619
+ name: "optionId",
2620
+ type: "uint256",
2621
+ indexed: true,
2622
+ internalType: "uint256"
2623
+ }, {
2624
+ name: "to",
2625
+ type: "address",
2626
+ indexed: true,
2627
+ internalType: "address"
2628
+ }],
2629
+ anonymous: false
2630
+ },
2631
+ {
2632
+ type: "event",
2633
+ name: "UpdateOperatorPerms",
2634
+ inputs: [
2635
+ {
2636
+ name: "owner",
2637
+ type: "address",
2638
+ indexed: true,
2639
+ internalType: "address"
2640
+ },
2641
+ {
2642
+ name: "operator",
2643
+ type: "address",
2644
+ indexed: true,
2645
+ internalType: "address"
2646
+ },
2647
+ {
2648
+ name: "canExtend",
2649
+ type: "bool",
2650
+ indexed: false,
2651
+ internalType: "bool"
2652
+ },
2653
+ {
2654
+ name: "canExercise",
2655
+ type: "bool",
2656
+ indexed: false,
2657
+ internalType: "bool"
2658
+ },
2659
+ {
2660
+ name: "canTransfer",
2661
+ type: "bool",
2662
+ indexed: false,
2663
+ internalType: "bool"
2664
+ },
2665
+ {
2666
+ name: "canMint",
2667
+ type: "bool",
2668
+ indexed: false,
2669
+ internalType: "bool"
2670
+ },
2671
+ {
2672
+ name: "spendingApproval",
2673
+ type: "uint256",
2674
+ indexed: false,
2675
+ internalType: "uint256"
2676
+ }
2677
+ ],
2678
+ anonymous: false
2679
+ },
2571
2680
  {
2572
2681
  type: "error",
2573
- name: "AmountOutOfBounds",
2574
- inputs: []
2682
+ name: "AddressEmptyCode",
2683
+ inputs: [{
2684
+ name: "target",
2685
+ type: "address",
2686
+ internalType: "address"
2687
+ }]
2575
2688
  },
2576
2689
  {
2577
2690
  type: "error",
2578
- name: "DurationOutOfBounds",
2691
+ name: "FailedCall",
2579
2692
  inputs: []
2580
2693
  },
2581
2694
  {
@@ -2583,11 +2696,21 @@ const optionsMarketAbi = [
2583
2696
  name: "InsufficientLiquidity",
2584
2697
  inputs: []
2585
2698
  },
2699
+ {
2700
+ type: "error",
2701
+ name: "InvalidAmount",
2702
+ inputs: []
2703
+ },
2586
2704
  {
2587
2705
  type: "error",
2588
2706
  name: "InvalidArrayLength",
2589
2707
  inputs: []
2590
2708
  },
2709
+ {
2710
+ type: "error",
2711
+ name: "InvalidDuration",
2712
+ inputs: []
2713
+ },
2591
2714
  {
2592
2715
  type: "error",
2593
2716
  name: "InvalidOptionType",
@@ -2606,6 +2729,11 @@ const optionsMarketAbi = [
2606
2729
  internalType: "int24"
2607
2730
  }]
2608
2731
  },
2732
+ {
2733
+ type: "error",
2734
+ name: "NotAuthorized",
2735
+ inputs: []
2736
+ },
2609
2737
  {
2610
2738
  type: "error",
2611
2739
  name: "NotEnoughPayout",
@@ -2613,7 +2741,7 @@ const optionsMarketAbi = [
2613
2741
  },
2614
2742
  {
2615
2743
  type: "error",
2616
- name: "NotOptionOwner",
2744
+ name: "OperatorBlacklisted",
2617
2745
  inputs: []
2618
2746
  },
2619
2747
  {
@@ -2687,4 +2815,4 @@ const optionsMarketAbi = [
2687
2815
 
2688
2816
  //#endregion
2689
2817
  export { erc20Abi as i, uniswapMathLensAbi as n, lensAbi as r, optionsMarketAbi as t };
2690
- //# sourceMappingURL=optionsMarket-DlorOgXd.js.map
2818
+ //# sourceMappingURL=optionsMarket-DD4CWMqv.js.map