timelock-sdk 0.0.58 → 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.
@@ -1954,7 +1954,11 @@ const optionsMarketAbi = [
1954
1954
  }
1955
1955
  ],
1956
1956
  outputs: [{
1957
- name: "totalPremium",
1957
+ name: "premium",
1958
+ type: "uint256",
1959
+ internalType: "uint256"
1960
+ }, {
1961
+ name: "protocolFee",
1958
1962
  type: "uint256",
1959
1963
  internalType: "uint256"
1960
1964
  }],
@@ -2000,11 +2004,6 @@ const optionsMarketAbi = [
2000
2004
  type: "address",
2001
2005
  internalType: "address"
2002
2006
  },
2003
- {
2004
- name: "extendable",
2005
- type: "bool",
2006
- internalType: "bool"
2007
- },
2008
2007
  {
2009
2008
  name: "optionType",
2010
2009
  type: "uint8",
@@ -2024,13 +2023,12 @@ const optionsMarketAbi = [
2024
2023
  name: "expiresAt",
2025
2024
  type: "uint32",
2026
2025
  internalType: "uint32"
2027
- },
2028
- {
2029
- name: "liquidities",
2030
- type: "uint128[]",
2031
- internalType: "uint128[]"
2032
2026
  }
2033
2027
  ]
2028
+ }, {
2029
+ name: "",
2030
+ type: "uint128[]",
2031
+ internalType: "uint128[]"
2034
2032
  }],
2035
2033
  stateMutability: "view"
2036
2034
  },
@@ -2055,7 +2053,7 @@ const optionsMarketAbi = [
2055
2053
  internalType: "int24"
2056
2054
  },
2057
2055
  {
2058
- name: "liquidities",
2056
+ name: "liquiditys",
2059
2057
  type: "uint128[]",
2060
2058
  internalType: "uint128[]"
2061
2059
  },
@@ -2094,50 +2092,6 @@ const optionsMarketAbi = [
2094
2092
  ],
2095
2093
  stateMutability: "view"
2096
2094
  },
2097
- {
2098
- type: "function",
2099
- name: "maxDuration",
2100
- inputs: [],
2101
- outputs: [{
2102
- name: "",
2103
- type: "uint32",
2104
- internalType: "uint32"
2105
- }],
2106
- stateMutability: "view"
2107
- },
2108
- {
2109
- type: "function",
2110
- name: "maxOptionAmount",
2111
- inputs: [],
2112
- outputs: [{
2113
- name: "",
2114
- type: "uint256",
2115
- internalType: "uint256"
2116
- }],
2117
- stateMutability: "view"
2118
- },
2119
- {
2120
- type: "function",
2121
- name: "minDuration",
2122
- inputs: [],
2123
- outputs: [{
2124
- name: "",
2125
- type: "uint32",
2126
- internalType: "uint32"
2127
- }],
2128
- stateMutability: "view"
2129
- },
2130
- {
2131
- type: "function",
2132
- name: "minOptionAmount",
2133
- inputs: [],
2134
- outputs: [{
2135
- name: "",
2136
- type: "uint256",
2137
- internalType: "uint256"
2138
- }],
2139
- stateMutability: "view"
2140
- },
2141
2095
  {
2142
2096
  type: "function",
2143
2097
  name: "mintOption",
@@ -2167,11 +2121,6 @@ const optionsMarketAbi = [
2167
2121
  type: "uint256",
2168
2122
  internalType: "uint256"
2169
2123
  },
2170
- {
2171
- name: "extendable",
2172
- type: "bool",
2173
- internalType: "bool"
2174
- },
2175
2124
  {
2176
2125
  name: "refTick",
2177
2126
  type: "int24",
@@ -2190,13 +2139,33 @@ const optionsMarketAbi = [
2190
2139
  internalType: "uint256"
2191
2140
  },
2192
2141
  {
2193
- name: "totalPremium",
2142
+ name: "premium",
2143
+ type: "uint256",
2144
+ internalType: "uint256"
2145
+ },
2146
+ {
2147
+ name: "protocolFee",
2194
2148
  type: "uint256",
2195
2149
  internalType: "uint256"
2196
2150
  }
2197
2151
  ],
2198
2152
  stateMutability: "nonpayable"
2199
2153
  },
2154
+ {
2155
+ type: "function",
2156
+ name: "multicall",
2157
+ inputs: [{
2158
+ name: "data",
2159
+ type: "bytes[]",
2160
+ internalType: "bytes[]"
2161
+ }],
2162
+ outputs: [{
2163
+ name: "results",
2164
+ type: "bytes[]",
2165
+ internalType: "bytes[]"
2166
+ }],
2167
+ stateMutability: "nonpayable"
2168
+ },
2200
2169
  {
2201
2170
  type: "function",
2202
2171
  name: "nextOptionId",
@@ -2208,6 +2177,37 @@ const optionsMarketAbi = [
2208
2177
  }],
2209
2178
  stateMutability: "view"
2210
2179
  },
2180
+ {
2181
+ type: "function",
2182
+ name: "operatorPerms",
2183
+ inputs: [{
2184
+ name: "",
2185
+ type: "address",
2186
+ internalType: "address"
2187
+ }, {
2188
+ name: "",
2189
+ type: "address",
2190
+ internalType: "address"
2191
+ }],
2192
+ outputs: [
2193
+ {
2194
+ name: "canExtend",
2195
+ type: "bool",
2196
+ internalType: "bool"
2197
+ },
2198
+ {
2199
+ name: "canExercise",
2200
+ type: "bool",
2201
+ internalType: "bool"
2202
+ },
2203
+ {
2204
+ name: "canTransfer",
2205
+ type: "bool",
2206
+ internalType: "bool"
2207
+ }
2208
+ ],
2209
+ stateMutability: "view"
2210
+ },
2211
2211
  {
2212
2212
  type: "function",
2213
2213
  name: "optionAsset",
@@ -2281,6 +2281,34 @@ const optionsMarketAbi = [
2281
2281
  outputs: [],
2282
2282
  stateMutability: "nonpayable"
2283
2283
  },
2284
+ {
2285
+ type: "function",
2286
+ name: "setOperatorPerms",
2287
+ inputs: [
2288
+ {
2289
+ name: "operator",
2290
+ type: "address",
2291
+ internalType: "address"
2292
+ },
2293
+ {
2294
+ name: "canExtend",
2295
+ type: "bool",
2296
+ internalType: "bool"
2297
+ },
2298
+ {
2299
+ name: "canExercise",
2300
+ type: "bool",
2301
+ internalType: "bool"
2302
+ },
2303
+ {
2304
+ name: "canTransfer",
2305
+ type: "bool",
2306
+ internalType: "bool"
2307
+ }
2308
+ ],
2309
+ outputs: [],
2310
+ stateMutability: "nonpayable"
2311
+ },
2284
2312
  {
2285
2313
  type: "function",
2286
2314
  name: "tickSpacing",
@@ -2314,6 +2342,21 @@ const optionsMarketAbi = [
2314
2342
  }],
2315
2343
  stateMutability: "view"
2316
2344
  },
2345
+ {
2346
+ type: "function",
2347
+ name: "transferOption",
2348
+ inputs: [{
2349
+ name: "optionId",
2350
+ type: "uint256",
2351
+ internalType: "uint256"
2352
+ }, {
2353
+ name: "to",
2354
+ type: "address",
2355
+ internalType: "address"
2356
+ }],
2357
+ outputs: [],
2358
+ stateMutability: "nonpayable"
2359
+ },
2317
2360
  {
2318
2361
  type: "function",
2319
2362
  name: "transferOwnership",
@@ -2350,42 +2393,55 @@ const optionsMarketAbi = [
2350
2393
  },
2351
2394
  {
2352
2395
  type: "function",
2353
- name: "updateBounds",
2396
+ name: "vault",
2397
+ inputs: [],
2398
+ outputs: [{
2399
+ name: "",
2400
+ type: "address",
2401
+ internalType: "contract ITimelockVault"
2402
+ }],
2403
+ stateMutability: "view"
2404
+ },
2405
+ {
2406
+ type: "event",
2407
+ name: "AddressesUpdated",
2354
2408
  inputs: [
2355
2409
  {
2356
- name: "_minOptionAmount",
2357
- type: "uint256",
2358
- internalType: "uint256"
2359
- },
2360
- {
2361
- name: "_maxOptionAmount",
2362
- type: "uint256",
2363
- internalType: "uint256"
2410
+ name: "optionPricing",
2411
+ type: "address",
2412
+ indexed: false,
2413
+ internalType: "contract IOptionPricing"
2364
2414
  },
2365
2415
  {
2366
- name: "_minDuration",
2367
- type: "uint32",
2368
- internalType: "uint32"
2416
+ name: "feeStrategy",
2417
+ type: "address",
2418
+ indexed: false,
2419
+ internalType: "contract IFeeStrategy"
2369
2420
  },
2370
2421
  {
2371
- name: "_maxDuration",
2372
- type: "uint32",
2373
- internalType: "uint32"
2422
+ name: "feeRecipient",
2423
+ type: "address",
2424
+ indexed: false,
2425
+ internalType: "address"
2374
2426
  }
2375
2427
  ],
2376
- outputs: [],
2377
- stateMutability: "nonpayable"
2428
+ anonymous: false
2378
2429
  },
2379
2430
  {
2380
- type: "function",
2381
- name: "vault",
2382
- inputs: [],
2383
- outputs: [{
2384
- name: "",
2385
- type: "address",
2386
- internalType: "contract ITimelockVault"
2431
+ type: "event",
2432
+ name: "EmergencyWithdraw",
2433
+ inputs: [{
2434
+ name: "tokens",
2435
+ type: "address[]",
2436
+ indexed: false,
2437
+ internalType: "contract IERC20[]"
2438
+ }, {
2439
+ name: "balances",
2440
+ type: "uint256[]",
2441
+ indexed: false,
2442
+ internalType: "uint256[]"
2387
2443
  }],
2388
- stateMutability: "view"
2444
+ anonymous: false
2389
2445
  },
2390
2446
  {
2391
2447
  type: "event",
@@ -2397,12 +2453,6 @@ const optionsMarketAbi = [
2397
2453
  indexed: true,
2398
2454
  internalType: "uint256"
2399
2455
  },
2400
- {
2401
- name: "owner",
2402
- type: "address",
2403
- indexed: true,
2404
- internalType: "address"
2405
- },
2406
2456
  {
2407
2457
  name: "liquidities",
2408
2458
  type: "uint128[]",
@@ -2435,19 +2485,25 @@ const optionsMarketAbi = [
2435
2485
  internalType: "uint256"
2436
2486
  },
2437
2487
  {
2438
- name: "owner",
2439
- type: "address",
2440
- indexed: true,
2441
- internalType: "address"
2488
+ name: "premium",
2489
+ type: "uint256",
2490
+ indexed: false,
2491
+ internalType: "uint256"
2442
2492
  },
2443
2493
  {
2444
- name: "premium",
2494
+ name: "protocolFee",
2445
2495
  type: "uint256",
2446
2496
  indexed: false,
2447
2497
  internalType: "uint256"
2448
2498
  },
2449
2499
  {
2450
- name: "newExpiresAt",
2500
+ name: "currentTick",
2501
+ type: "int24",
2502
+ indexed: false,
2503
+ internalType: "int24"
2504
+ },
2505
+ {
2506
+ name: "addedDuration",
2451
2507
  type: "uint32",
2452
2508
  indexed: false,
2453
2509
  internalType: "uint32"
@@ -2482,7 +2538,7 @@ const optionsMarketAbi = [
2482
2538
  internalType: "uint256"
2483
2539
  },
2484
2540
  {
2485
- name: "buyer",
2541
+ name: "owner",
2486
2542
  type: "address",
2487
2543
  indexed: true,
2488
2544
  internalType: "address"
@@ -2513,15 +2569,15 @@ const optionsMarketAbi = [
2513
2569
  },
2514
2570
  {
2515
2571
  name: "premium",
2516
- type: "uint128",
2572
+ type: "uint256",
2517
2573
  indexed: false,
2518
- internalType: "uint128"
2574
+ internalType: "uint256"
2519
2575
  },
2520
2576
  {
2521
2577
  name: "protocolFee",
2522
- type: "uint128",
2578
+ type: "uint256",
2523
2579
  indexed: false,
2524
- internalType: "uint128"
2580
+ internalType: "uint256"
2525
2581
  },
2526
2582
  {
2527
2583
  name: "liquidities",
@@ -2548,14 +2604,71 @@ const optionsMarketAbi = [
2548
2604
  }],
2549
2605
  anonymous: false
2550
2606
  },
2607
+ {
2608
+ type: "event",
2609
+ name: "TransferOption",
2610
+ inputs: [{
2611
+ name: "optionId",
2612
+ type: "uint256",
2613
+ indexed: true,
2614
+ internalType: "uint256"
2615
+ }, {
2616
+ name: "to",
2617
+ type: "address",
2618
+ indexed: true,
2619
+ internalType: "address"
2620
+ }],
2621
+ anonymous: false
2622
+ },
2623
+ {
2624
+ type: "event",
2625
+ name: "UpdateOperatorPerms",
2626
+ inputs: [
2627
+ {
2628
+ name: "owner",
2629
+ type: "address",
2630
+ indexed: true,
2631
+ internalType: "address"
2632
+ },
2633
+ {
2634
+ name: "operator",
2635
+ type: "address",
2636
+ indexed: true,
2637
+ internalType: "address"
2638
+ },
2639
+ {
2640
+ name: "canExtend",
2641
+ type: "bool",
2642
+ indexed: false,
2643
+ internalType: "bool"
2644
+ },
2645
+ {
2646
+ name: "canExercise",
2647
+ type: "bool",
2648
+ indexed: false,
2649
+ internalType: "bool"
2650
+ },
2651
+ {
2652
+ name: "canTransfer",
2653
+ type: "bool",
2654
+ indexed: false,
2655
+ internalType: "bool"
2656
+ }
2657
+ ],
2658
+ anonymous: false
2659
+ },
2551
2660
  {
2552
2661
  type: "error",
2553
- name: "AmountOutOfBounds",
2554
- inputs: []
2662
+ name: "AddressEmptyCode",
2663
+ inputs: [{
2664
+ name: "target",
2665
+ type: "address",
2666
+ internalType: "address"
2667
+ }]
2555
2668
  },
2556
2669
  {
2557
2670
  type: "error",
2558
- name: "DurationOutOfBounds",
2671
+ name: "FailedCall",
2559
2672
  inputs: []
2560
2673
  },
2561
2674
  {
@@ -2563,11 +2676,21 @@ const optionsMarketAbi = [
2563
2676
  name: "InsufficientLiquidity",
2564
2677
  inputs: []
2565
2678
  },
2679
+ {
2680
+ type: "error",
2681
+ name: "InvalidAmount",
2682
+ inputs: []
2683
+ },
2566
2684
  {
2567
2685
  type: "error",
2568
2686
  name: "InvalidArrayLength",
2569
2687
  inputs: []
2570
2688
  },
2689
+ {
2690
+ type: "error",
2691
+ name: "InvalidDuration",
2692
+ inputs: []
2693
+ },
2571
2694
  {
2572
2695
  type: "error",
2573
2696
  name: "InvalidOptionType",
@@ -2586,6 +2709,11 @@ const optionsMarketAbi = [
2586
2709
  internalType: "int24"
2587
2710
  }]
2588
2711
  },
2712
+ {
2713
+ type: "error",
2714
+ name: "NotAuthorized",
2715
+ inputs: []
2716
+ },
2589
2717
  {
2590
2718
  type: "error",
2591
2719
  name: "NotEnoughPayout",
@@ -2593,7 +2721,7 @@ const optionsMarketAbi = [
2593
2721
  },
2594
2722
  {
2595
2723
  type: "error",
2596
- name: "NotOptionOwner",
2724
+ name: "OptionExpired",
2597
2725
  inputs: []
2598
2726
  },
2599
2727
  {
@@ -2685,4 +2813,4 @@ Object.defineProperty(exports, 'uniswapMathLensAbi', {
2685
2813
  return uniswapMathLensAbi;
2686
2814
  }
2687
2815
  });
2688
- //# sourceMappingURL=optionsMarket-k4C_Yx7a.cjs.map
2816
+ //# sourceMappingURL=optionsMarket-C5z_ZrhG.cjs.map