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