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.
@@ -1953,7 +1953,11 @@ const optionsMarketAbi = [
1953
1953
  }
1954
1954
  ],
1955
1955
  outputs: [{
1956
- name: "totalPremium",
1956
+ name: "premium",
1957
+ type: "uint256",
1958
+ internalType: "uint256"
1959
+ }, {
1960
+ name: "protocolFee",
1957
1961
  type: "uint256",
1958
1962
  internalType: "uint256"
1959
1963
  }],
@@ -1999,11 +2003,6 @@ const optionsMarketAbi = [
1999
2003
  type: "address",
2000
2004
  internalType: "address"
2001
2005
  },
2002
- {
2003
- name: "extendable",
2004
- type: "bool",
2005
- internalType: "bool"
2006
- },
2007
2006
  {
2008
2007
  name: "optionType",
2009
2008
  type: "uint8",
@@ -2023,13 +2022,12 @@ const optionsMarketAbi = [
2023
2022
  name: "expiresAt",
2024
2023
  type: "uint32",
2025
2024
  internalType: "uint32"
2026
- },
2027
- {
2028
- name: "liquidities",
2029
- type: "uint128[]",
2030
- internalType: "uint128[]"
2031
2025
  }
2032
2026
  ]
2027
+ }, {
2028
+ name: "",
2029
+ type: "uint128[]",
2030
+ internalType: "uint128[]"
2033
2031
  }],
2034
2032
  stateMutability: "view"
2035
2033
  },
@@ -2054,7 +2052,7 @@ const optionsMarketAbi = [
2054
2052
  internalType: "int24"
2055
2053
  },
2056
2054
  {
2057
- name: "liquidities",
2055
+ name: "liquiditys",
2058
2056
  type: "uint128[]",
2059
2057
  internalType: "uint128[]"
2060
2058
  },
@@ -2093,50 +2091,6 @@ const optionsMarketAbi = [
2093
2091
  ],
2094
2092
  stateMutability: "view"
2095
2093
  },
2096
- {
2097
- type: "function",
2098
- name: "maxDuration",
2099
- inputs: [],
2100
- outputs: [{
2101
- name: "",
2102
- type: "uint32",
2103
- internalType: "uint32"
2104
- }],
2105
- stateMutability: "view"
2106
- },
2107
- {
2108
- type: "function",
2109
- name: "maxOptionAmount",
2110
- inputs: [],
2111
- outputs: [{
2112
- name: "",
2113
- type: "uint256",
2114
- internalType: "uint256"
2115
- }],
2116
- stateMutability: "view"
2117
- },
2118
- {
2119
- type: "function",
2120
- name: "minDuration",
2121
- inputs: [],
2122
- outputs: [{
2123
- name: "",
2124
- type: "uint32",
2125
- internalType: "uint32"
2126
- }],
2127
- stateMutability: "view"
2128
- },
2129
- {
2130
- type: "function",
2131
- name: "minOptionAmount",
2132
- inputs: [],
2133
- outputs: [{
2134
- name: "",
2135
- type: "uint256",
2136
- internalType: "uint256"
2137
- }],
2138
- stateMutability: "view"
2139
- },
2140
2094
  {
2141
2095
  type: "function",
2142
2096
  name: "mintOption",
@@ -2166,11 +2120,6 @@ const optionsMarketAbi = [
2166
2120
  type: "uint256",
2167
2121
  internalType: "uint256"
2168
2122
  },
2169
- {
2170
- name: "extendable",
2171
- type: "bool",
2172
- internalType: "bool"
2173
- },
2174
2123
  {
2175
2124
  name: "refTick",
2176
2125
  type: "int24",
@@ -2189,13 +2138,33 @@ const optionsMarketAbi = [
2189
2138
  internalType: "uint256"
2190
2139
  },
2191
2140
  {
2192
- name: "totalPremium",
2141
+ name: "premium",
2142
+ type: "uint256",
2143
+ internalType: "uint256"
2144
+ },
2145
+ {
2146
+ name: "protocolFee",
2193
2147
  type: "uint256",
2194
2148
  internalType: "uint256"
2195
2149
  }
2196
2150
  ],
2197
2151
  stateMutability: "nonpayable"
2198
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
+ },
2199
2168
  {
2200
2169
  type: "function",
2201
2170
  name: "nextOptionId",
@@ -2207,6 +2176,37 @@ const optionsMarketAbi = [
2207
2176
  }],
2208
2177
  stateMutability: "view"
2209
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
+ },
2210
2210
  {
2211
2211
  type: "function",
2212
2212
  name: "optionAsset",
@@ -2280,6 +2280,34 @@ const optionsMarketAbi = [
2280
2280
  outputs: [],
2281
2281
  stateMutability: "nonpayable"
2282
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
+ },
2283
2311
  {
2284
2312
  type: "function",
2285
2313
  name: "tickSpacing",
@@ -2313,6 +2341,21 @@ const optionsMarketAbi = [
2313
2341
  }],
2314
2342
  stateMutability: "view"
2315
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
+ },
2316
2359
  {
2317
2360
  type: "function",
2318
2361
  name: "transferOwnership",
@@ -2349,42 +2392,55 @@ const optionsMarketAbi = [
2349
2392
  },
2350
2393
  {
2351
2394
  type: "function",
2352
- name: "updateBounds",
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",
2353
2407
  inputs: [
2354
2408
  {
2355
- name: "_minOptionAmount",
2356
- type: "uint256",
2357
- internalType: "uint256"
2358
- },
2359
- {
2360
- name: "_maxOptionAmount",
2361
- type: "uint256",
2362
- internalType: "uint256"
2409
+ name: "optionPricing",
2410
+ type: "address",
2411
+ indexed: false,
2412
+ internalType: "contract IOptionPricing"
2363
2413
  },
2364
2414
  {
2365
- name: "_minDuration",
2366
- type: "uint32",
2367
- internalType: "uint32"
2415
+ name: "feeStrategy",
2416
+ type: "address",
2417
+ indexed: false,
2418
+ internalType: "contract IFeeStrategy"
2368
2419
  },
2369
2420
  {
2370
- name: "_maxDuration",
2371
- type: "uint32",
2372
- internalType: "uint32"
2421
+ name: "feeRecipient",
2422
+ type: "address",
2423
+ indexed: false,
2424
+ internalType: "address"
2373
2425
  }
2374
2426
  ],
2375
- outputs: [],
2376
- stateMutability: "nonpayable"
2427
+ anonymous: false
2377
2428
  },
2378
2429
  {
2379
- type: "function",
2380
- name: "vault",
2381
- inputs: [],
2382
- outputs: [{
2383
- name: "",
2384
- type: "address",
2385
- internalType: "contract ITimelockVault"
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[]"
2386
2442
  }],
2387
- stateMutability: "view"
2443
+ anonymous: false
2388
2444
  },
2389
2445
  {
2390
2446
  type: "event",
@@ -2396,12 +2452,6 @@ const optionsMarketAbi = [
2396
2452
  indexed: true,
2397
2453
  internalType: "uint256"
2398
2454
  },
2399
- {
2400
- name: "owner",
2401
- type: "address",
2402
- indexed: true,
2403
- internalType: "address"
2404
- },
2405
2455
  {
2406
2456
  name: "liquidities",
2407
2457
  type: "uint128[]",
@@ -2434,19 +2484,25 @@ const optionsMarketAbi = [
2434
2484
  internalType: "uint256"
2435
2485
  },
2436
2486
  {
2437
- name: "owner",
2438
- type: "address",
2439
- indexed: true,
2440
- internalType: "address"
2487
+ name: "premium",
2488
+ type: "uint256",
2489
+ indexed: false,
2490
+ internalType: "uint256"
2441
2491
  },
2442
2492
  {
2443
- name: "premium",
2493
+ name: "protocolFee",
2444
2494
  type: "uint256",
2445
2495
  indexed: false,
2446
2496
  internalType: "uint256"
2447
2497
  },
2448
2498
  {
2449
- name: "newExpiresAt",
2499
+ name: "currentTick",
2500
+ type: "int24",
2501
+ indexed: false,
2502
+ internalType: "int24"
2503
+ },
2504
+ {
2505
+ name: "addedDuration",
2450
2506
  type: "uint32",
2451
2507
  indexed: false,
2452
2508
  internalType: "uint32"
@@ -2481,7 +2537,7 @@ const optionsMarketAbi = [
2481
2537
  internalType: "uint256"
2482
2538
  },
2483
2539
  {
2484
- name: "buyer",
2540
+ name: "owner",
2485
2541
  type: "address",
2486
2542
  indexed: true,
2487
2543
  internalType: "address"
@@ -2512,15 +2568,15 @@ const optionsMarketAbi = [
2512
2568
  },
2513
2569
  {
2514
2570
  name: "premium",
2515
- type: "uint128",
2571
+ type: "uint256",
2516
2572
  indexed: false,
2517
- internalType: "uint128"
2573
+ internalType: "uint256"
2518
2574
  },
2519
2575
  {
2520
2576
  name: "protocolFee",
2521
- type: "uint128",
2577
+ type: "uint256",
2522
2578
  indexed: false,
2523
- internalType: "uint128"
2579
+ internalType: "uint256"
2524
2580
  },
2525
2581
  {
2526
2582
  name: "liquidities",
@@ -2547,14 +2603,71 @@ const optionsMarketAbi = [
2547
2603
  }],
2548
2604
  anonymous: false
2549
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
+ },
2550
2659
  {
2551
2660
  type: "error",
2552
- name: "AmountOutOfBounds",
2553
- inputs: []
2661
+ name: "AddressEmptyCode",
2662
+ inputs: [{
2663
+ name: "target",
2664
+ type: "address",
2665
+ internalType: "address"
2666
+ }]
2554
2667
  },
2555
2668
  {
2556
2669
  type: "error",
2557
- name: "DurationOutOfBounds",
2670
+ name: "FailedCall",
2558
2671
  inputs: []
2559
2672
  },
2560
2673
  {
@@ -2562,11 +2675,21 @@ const optionsMarketAbi = [
2562
2675
  name: "InsufficientLiquidity",
2563
2676
  inputs: []
2564
2677
  },
2678
+ {
2679
+ type: "error",
2680
+ name: "InvalidAmount",
2681
+ inputs: []
2682
+ },
2565
2683
  {
2566
2684
  type: "error",
2567
2685
  name: "InvalidArrayLength",
2568
2686
  inputs: []
2569
2687
  },
2688
+ {
2689
+ type: "error",
2690
+ name: "InvalidDuration",
2691
+ inputs: []
2692
+ },
2570
2693
  {
2571
2694
  type: "error",
2572
2695
  name: "InvalidOptionType",
@@ -2585,6 +2708,11 @@ const optionsMarketAbi = [
2585
2708
  internalType: "int24"
2586
2709
  }]
2587
2710
  },
2711
+ {
2712
+ type: "error",
2713
+ name: "NotAuthorized",
2714
+ inputs: []
2715
+ },
2588
2716
  {
2589
2717
  type: "error",
2590
2718
  name: "NotEnoughPayout",
@@ -2592,7 +2720,7 @@ const optionsMarketAbi = [
2592
2720
  },
2593
2721
  {
2594
2722
  type: "error",
2595
- name: "NotOptionOwner",
2723
+ name: "OptionExpired",
2596
2724
  inputs: []
2597
2725
  },
2598
2726
  {
@@ -2661,4 +2789,4 @@ const optionsMarketAbi = [
2661
2789
 
2662
2790
  //#endregion
2663
2791
  export { erc20Abi as i, uniswapMathLensAbi as n, lensAbi as r, optionsMarketAbi as t };
2664
- //# sourceMappingURL=optionsMarket-gAjmVL6j.js.map
2792
+ //# sourceMappingURL=optionsMarket-BW3qSfsm.js.map