@super-protocol/sdk-js 2.2.0-beta.81 → 2.2.0-beta.83

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.
Files changed (43) hide show
  1. package/dist/cjs/TIIGenerator.js +2 -2
  2. package/dist/cjs/TeeInputGeneratorBase.d.ts +1 -1
  3. package/dist/cjs/TeeInputGeneratorBase.js +5 -5
  4. package/dist/cjs/contracts/abi.d.ts +365 -136
  5. package/dist/cjs/contracts/abi.js +6714 -6418
  6. package/dist/cjs/models/Offer.d.ts +23 -1
  7. package/dist/cjs/models/Offer.js +68 -4
  8. package/dist/cjs/models/TeeOffer.d.ts +23 -1
  9. package/dist/cjs/models/TeeOffer.js +68 -5
  10. package/dist/cjs/providers/storage/IStorageProvider.d.ts +1 -1
  11. package/dist/cjs/providers/storage/S3StorageProvider.d.ts +1 -1
  12. package/dist/cjs/providers/storage/S3StorageProvider.js +47 -21
  13. package/dist/cjs/types/Offer.d.ts +4 -3
  14. package/dist/cjs/types/OfferVersion.d.ts +13 -0
  15. package/dist/cjs/types/OfferVersion.js +9 -0
  16. package/dist/cjs/types/Order.d.ts +6 -2
  17. package/dist/cjs/types/Order.js +3 -1
  18. package/dist/cjs/types/TeeOfferInfo.d.ts +1 -1
  19. package/dist/cjs/types/index.d.ts +1 -0
  20. package/dist/cjs/types/index.js +2 -1
  21. package/dist/cjs/utils/helpers/OrderArgsHelper.js +18 -8
  22. package/dist/mjs/TIIGenerator.js +2 -2
  23. package/dist/mjs/TeeInputGeneratorBase.d.ts +1 -1
  24. package/dist/mjs/TeeInputGeneratorBase.js +5 -5
  25. package/dist/mjs/contracts/abi.d.ts +365 -136
  26. package/dist/mjs/contracts/abi.js +6714 -6418
  27. package/dist/mjs/models/Offer.d.ts +23 -1
  28. package/dist/mjs/models/Offer.js +68 -4
  29. package/dist/mjs/models/TeeOffer.d.ts +23 -1
  30. package/dist/mjs/models/TeeOffer.js +68 -5
  31. package/dist/mjs/providers/storage/IStorageProvider.d.ts +1 -1
  32. package/dist/mjs/providers/storage/S3StorageProvider.d.ts +1 -1
  33. package/dist/mjs/providers/storage/S3StorageProvider.js +47 -21
  34. package/dist/mjs/types/Offer.d.ts +4 -3
  35. package/dist/mjs/types/OfferVersion.d.ts +13 -0
  36. package/dist/mjs/types/OfferVersion.js +6 -0
  37. package/dist/mjs/types/Order.d.ts +6 -2
  38. package/dist/mjs/types/Order.js +3 -1
  39. package/dist/mjs/types/TeeOfferInfo.d.ts +1 -1
  40. package/dist/mjs/types/index.d.ts +1 -0
  41. package/dist/mjs/types/index.js +2 -1
  42. package/dist/mjs/utils/helpers/OrderArgsHelper.js +18 -8
  43. package/package.json +1 -1
@@ -1503,7 +1503,7 @@ export declare const abi: readonly [{
1503
1503
  readonly type: "string";
1504
1504
  }, {
1505
1505
  readonly internalType: "string";
1506
- readonly name: "tlb";
1506
+ readonly name: "tlb_DEPRECATED";
1507
1507
  readonly type: "string";
1508
1508
  }, {
1509
1509
  readonly internalType: "string";
@@ -1530,10 +1530,6 @@ export declare const abi: readonly [{
1530
1530
  readonly internalType: "uint64";
1531
1531
  readonly name: "gpuCores";
1532
1532
  readonly type: "uint64";
1533
- }, {
1534
- readonly internalType: "uint64";
1535
- readonly name: "vram";
1536
- readonly type: "uint64";
1537
1533
  }];
1538
1534
  readonly internalType: "struct SlotInfo";
1539
1535
  readonly name: "slotInfo";
@@ -1635,9 +1631,13 @@ export declare const abi: readonly [{
1635
1631
  readonly internalType: "enum OfferType[]";
1636
1632
  readonly name: "types";
1637
1633
  readonly type: "uint8[]";
1634
+ }, {
1635
+ readonly internalType: "uint64[]";
1636
+ readonly name: "versions";
1637
+ readonly type: "uint64[]";
1638
1638
  }];
1639
- readonly internalType: "struct ValueOfferInitialRestrictions";
1640
- readonly name: "initRestrictions";
1639
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
1640
+ readonly name: "restrictionsSpecification";
1641
1641
  readonly type: "tuple";
1642
1642
  }, {
1643
1643
  readonly internalType: "bytes32";
@@ -1652,6 +1652,20 @@ export declare const abi: readonly [{
1652
1652
  readonly outputs: readonly [];
1653
1653
  readonly stateMutability: "nonpayable";
1654
1654
  readonly type: "function";
1655
+ }, {
1656
+ readonly inputs: readonly [{
1657
+ readonly internalType: "uint256";
1658
+ readonly name: "offerId";
1659
+ readonly type: "uint256";
1660
+ }, {
1661
+ readonly internalType: "uint64";
1662
+ readonly name: "version";
1663
+ readonly type: "uint64";
1664
+ }];
1665
+ readonly name: "deleteOfferVersion";
1666
+ readonly outputs: readonly [];
1667
+ readonly stateMutability: "nonpayable";
1668
+ readonly type: "function";
1655
1669
  }, {
1656
1670
  readonly inputs: readonly [{
1657
1671
  readonly internalType: "uint256";
@@ -1700,6 +1714,33 @@ export declare const abi: readonly [{
1700
1714
  readonly outputs: readonly [];
1701
1715
  readonly stateMutability: "nonpayable";
1702
1716
  readonly type: "function";
1717
+ }, {
1718
+ readonly inputs: readonly [{
1719
+ readonly internalType: "uint256";
1720
+ readonly name: "offerId";
1721
+ readonly type: "uint256";
1722
+ }, {
1723
+ readonly internalType: "uint64";
1724
+ readonly name: "newVersion";
1725
+ readonly type: "uint64";
1726
+ }, {
1727
+ readonly components: readonly [{
1728
+ readonly internalType: "string";
1729
+ readonly name: "mrenclave";
1730
+ readonly type: "string";
1731
+ }, {
1732
+ readonly internalType: "string";
1733
+ readonly name: "mrsigner";
1734
+ readonly type: "string";
1735
+ }];
1736
+ readonly internalType: "struct OfferVersionInfo";
1737
+ readonly name: "newVersionInfo";
1738
+ readonly type: "tuple";
1739
+ }];
1740
+ readonly name: "setOfferNewVersion";
1741
+ readonly outputs: readonly [];
1742
+ readonly stateMutability: "nonpayable";
1743
+ readonly type: "function";
1703
1744
  }, {
1704
1745
  readonly inputs: readonly [{
1705
1746
  readonly internalType: "uint256";
@@ -1736,10 +1777,6 @@ export declare const abi: readonly [{
1736
1777
  readonly internalType: "uint64";
1737
1778
  readonly name: "gpuCores";
1738
1779
  readonly type: "uint64";
1739
- }, {
1740
- readonly internalType: "uint64";
1741
- readonly name: "vram";
1742
- readonly type: "uint64";
1743
1780
  }];
1744
1781
  readonly internalType: "struct SlotInfo";
1745
1782
  readonly name: "newSlotInfo";
@@ -1782,7 +1819,7 @@ export declare const abi: readonly [{
1782
1819
  readonly type: "string";
1783
1820
  }, {
1784
1821
  readonly internalType: "string";
1785
- readonly name: "tlb";
1822
+ readonly name: "tlb_DEPRECATED";
1786
1823
  readonly type: "string";
1787
1824
  }, {
1788
1825
  readonly internalType: "string";
@@ -1797,20 +1834,6 @@ export declare const abi: readonly [{
1797
1834
  readonly outputs: readonly [];
1798
1835
  readonly stateMutability: "nonpayable";
1799
1836
  readonly type: "function";
1800
- }, {
1801
- readonly inputs: readonly [{
1802
- readonly internalType: "uint256";
1803
- readonly name: "offerId";
1804
- readonly type: "uint256";
1805
- }, {
1806
- readonly internalType: "string";
1807
- readonly name: "tlb";
1808
- readonly type: "string";
1809
- }];
1810
- readonly name: "setTeeOfferTlb";
1811
- readonly outputs: readonly [];
1812
- readonly stateMutability: "nonpayable";
1813
- readonly type: "function";
1814
1837
  }, {
1815
1838
  readonly inputs: readonly [{
1816
1839
  readonly internalType: "uint256";
@@ -1877,6 +1900,16 @@ export declare const abi: readonly [{
1877
1900
  readonly internalType: "struct ValueOfferInfo";
1878
1901
  readonly name: "newInfo";
1879
1902
  readonly type: "tuple";
1903
+ }];
1904
+ readonly name: "setValueOfferInfo";
1905
+ readonly outputs: readonly [];
1906
+ readonly stateMutability: "nonpayable";
1907
+ readonly type: "function";
1908
+ }, {
1909
+ readonly inputs: readonly [{
1910
+ readonly internalType: "uint256";
1911
+ readonly name: "offerId";
1912
+ readonly type: "uint256";
1880
1913
  }, {
1881
1914
  readonly components: readonly [{
1882
1915
  readonly internalType: "uint256[]";
@@ -1886,12 +1919,16 @@ export declare const abi: readonly [{
1886
1919
  readonly internalType: "enum OfferType[]";
1887
1920
  readonly name: "types";
1888
1921
  readonly type: "uint8[]";
1922
+ }, {
1923
+ readonly internalType: "uint64[]";
1924
+ readonly name: "versions";
1925
+ readonly type: "uint64[]";
1889
1926
  }];
1890
- readonly internalType: "struct ValueOfferInitialRestrictions";
1891
- readonly name: "newRestrictions";
1927
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
1928
+ readonly name: "newSpecification";
1892
1929
  readonly type: "tuple";
1893
1930
  }];
1894
- readonly name: "setValueOfferInfo";
1931
+ readonly name: "setValueOfferRestrictionsSpecification";
1895
1932
  readonly outputs: readonly [];
1896
1933
  readonly stateMutability: "nonpayable";
1897
1934
  readonly type: "function";
@@ -1934,7 +1971,7 @@ export declare const abi: readonly [{
1934
1971
  readonly type: "string";
1935
1972
  }, {
1936
1973
  readonly internalType: "string";
1937
- readonly name: "tlb";
1974
+ readonly name: "tlb_DEPRECATED";
1938
1975
  readonly type: "string";
1939
1976
  }, {
1940
1977
  readonly internalType: "string";
@@ -2065,29 +2102,6 @@ export declare const abi: readonly [{
2065
2102
  }];
2066
2103
  readonly stateMutability: "view";
2067
2104
  readonly type: "function";
2068
- }, {
2069
- readonly inputs: readonly [{
2070
- readonly internalType: "uint256";
2071
- readonly name: "offerId";
2072
- readonly type: "uint256";
2073
- }];
2074
- readonly name: "getOfferInitialRestrictions";
2075
- readonly outputs: readonly [{
2076
- readonly components: readonly [{
2077
- readonly internalType: "uint256[]";
2078
- readonly name: "offers";
2079
- readonly type: "uint256[]";
2080
- }, {
2081
- readonly internalType: "enum OfferType[]";
2082
- readonly name: "types";
2083
- readonly type: "uint8[]";
2084
- }];
2085
- readonly internalType: "struct ValueOfferInitialRestrictions";
2086
- readonly name: "ret";
2087
- readonly type: "tuple";
2088
- }];
2089
- readonly stateMutability: "view";
2090
- readonly type: "function";
2091
2105
  }, {
2092
2106
  readonly inputs: readonly [{
2093
2107
  readonly internalType: "uint256";
@@ -2177,6 +2191,33 @@ export declare const abi: readonly [{
2177
2191
  }];
2178
2192
  readonly stateMutability: "view";
2179
2193
  readonly type: "function";
2194
+ }, {
2195
+ readonly inputs: readonly [{
2196
+ readonly internalType: "uint256";
2197
+ readonly name: "offerId";
2198
+ readonly type: "uint256";
2199
+ }];
2200
+ readonly name: "getOfferRestrictionsSpecification";
2201
+ readonly outputs: readonly [{
2202
+ readonly components: readonly [{
2203
+ readonly internalType: "uint256[]";
2204
+ readonly name: "offers";
2205
+ readonly type: "uint256[]";
2206
+ }, {
2207
+ readonly internalType: "enum OfferType[]";
2208
+ readonly name: "types";
2209
+ readonly type: "uint8[]";
2210
+ }, {
2211
+ readonly internalType: "uint64[]";
2212
+ readonly name: "versions";
2213
+ readonly type: "uint64[]";
2214
+ }];
2215
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
2216
+ readonly name: "";
2217
+ readonly type: "tuple";
2218
+ }];
2219
+ readonly stateMutability: "view";
2220
+ readonly type: "function";
2180
2221
  }, {
2181
2222
  readonly inputs: readonly [{
2182
2223
  readonly internalType: "uint256";
@@ -2191,6 +2232,60 @@ export declare const abi: readonly [{
2191
2232
  }];
2192
2233
  readonly stateMutability: "view";
2193
2234
  readonly type: "function";
2235
+ }, {
2236
+ readonly inputs: readonly [{
2237
+ readonly internalType: "uint256";
2238
+ readonly name: "offerId";
2239
+ readonly type: "uint256";
2240
+ }, {
2241
+ readonly internalType: "uint64";
2242
+ readonly name: "version";
2243
+ readonly type: "uint64";
2244
+ }];
2245
+ readonly name: "getOfferVersion";
2246
+ readonly outputs: readonly [{
2247
+ readonly components: readonly [{
2248
+ readonly internalType: "uint64";
2249
+ readonly name: "version";
2250
+ readonly type: "uint64";
2251
+ }, {
2252
+ readonly components: readonly [{
2253
+ readonly internalType: "string";
2254
+ readonly name: "mrenclave";
2255
+ readonly type: "string";
2256
+ }, {
2257
+ readonly internalType: "string";
2258
+ readonly name: "mrsigner";
2259
+ readonly type: "string";
2260
+ }];
2261
+ readonly internalType: "struct OfferVersionInfo";
2262
+ readonly name: "info";
2263
+ readonly type: "tuple";
2264
+ }, {
2265
+ readonly internalType: "enum OfferVersionStatus";
2266
+ readonly name: "status";
2267
+ readonly type: "uint8";
2268
+ }];
2269
+ readonly internalType: "struct OfferVersion";
2270
+ readonly name: "";
2271
+ readonly type: "tuple";
2272
+ }];
2273
+ readonly stateMutability: "view";
2274
+ readonly type: "function";
2275
+ }, {
2276
+ readonly inputs: readonly [{
2277
+ readonly internalType: "uint256";
2278
+ readonly name: "offerId";
2279
+ readonly type: "uint256";
2280
+ }];
2281
+ readonly name: "getOfferVersionsCount";
2282
+ readonly outputs: readonly [{
2283
+ readonly internalType: "uint256";
2284
+ readonly name: "";
2285
+ readonly type: "uint256";
2286
+ }];
2287
+ readonly stateMutability: "view";
2288
+ readonly type: "function";
2194
2289
  }, {
2195
2290
  readonly inputs: readonly [{
2196
2291
  readonly internalType: "enum OfferType";
@@ -2250,7 +2345,7 @@ export declare const abi: readonly [{
2250
2345
  readonly type: "string";
2251
2346
  }, {
2252
2347
  readonly internalType: "string";
2253
- readonly name: "tlb";
2348
+ readonly name: "tlb_DEPRECATED";
2254
2349
  readonly type: "string";
2255
2350
  }, {
2256
2351
  readonly internalType: "string";
@@ -2295,10 +2390,6 @@ export declare const abi: readonly [{
2295
2390
  readonly internalType: "uint64";
2296
2391
  readonly name: "gpuCores";
2297
2392
  readonly type: "uint64";
2298
- }, {
2299
- readonly internalType: "uint64";
2300
- readonly name: "vram";
2301
- readonly type: "uint64";
2302
2393
  }];
2303
2394
  readonly internalType: "struct SlotInfo";
2304
2395
  readonly name: "";
@@ -2315,20 +2406,6 @@ export declare const abi: readonly [{
2315
2406
  }];
2316
2407
  readonly stateMutability: "view";
2317
2408
  readonly type: "function";
2318
- }, {
2319
- readonly inputs: readonly [{
2320
- readonly internalType: "uint256";
2321
- readonly name: "offerId";
2322
- readonly type: "uint256";
2323
- }];
2324
- readonly name: "getTeeOfferLastTlbAddedTime";
2325
- readonly outputs: readonly [{
2326
- readonly internalType: "uint256";
2327
- readonly name: "";
2328
- readonly type: "uint256";
2329
- }];
2330
- readonly stateMutability: "view";
2331
- readonly type: "function";
2332
2409
  }, {
2333
2410
  readonly inputs: readonly [{
2334
2411
  readonly internalType: "uint256";
@@ -2431,6 +2508,32 @@ export declare const abi: readonly [{
2431
2508
  }];
2432
2509
  readonly stateMutability: "view";
2433
2510
  readonly type: "function";
2511
+ }, {
2512
+ readonly inputs: readonly [{
2513
+ readonly internalType: "uint256";
2514
+ readonly name: "firstId";
2515
+ readonly type: "uint256";
2516
+ }, {
2517
+ readonly internalType: "uint64";
2518
+ readonly name: "firstVersion";
2519
+ readonly type: "uint64";
2520
+ }, {
2521
+ readonly internalType: "uint256";
2522
+ readonly name: "secondId";
2523
+ readonly type: "uint256";
2524
+ }, {
2525
+ readonly internalType: "uint64";
2526
+ readonly name: "secondVersion";
2527
+ readonly type: "uint64";
2528
+ }];
2529
+ readonly name: "isMagicallySameOfferVersion";
2530
+ readonly outputs: readonly [{
2531
+ readonly internalType: "bool";
2532
+ readonly name: "";
2533
+ readonly type: "bool";
2534
+ }];
2535
+ readonly stateMutability: "pure";
2536
+ readonly type: "function";
2434
2537
  }, {
2435
2538
  readonly inputs: readonly [{
2436
2539
  readonly internalType: "uint256";
@@ -2518,6 +2621,10 @@ export declare const abi: readonly [{
2518
2621
  readonly internalType: "uint256";
2519
2622
  readonly name: "otherOfferId";
2520
2623
  readonly type: "uint256";
2624
+ }, {
2625
+ readonly internalType: "uint64";
2626
+ readonly name: "otherOfferVersion";
2627
+ readonly type: "uint64";
2521
2628
  }];
2522
2629
  readonly name: "isOfferRestrictionsPermitOtherOffer";
2523
2630
  readonly outputs: readonly [{
@@ -2527,6 +2634,24 @@ export declare const abi: readonly [{
2527
2634
  }];
2528
2635
  readonly stateMutability: "view";
2529
2636
  readonly type: "function";
2637
+ }, {
2638
+ readonly inputs: readonly [{
2639
+ readonly internalType: "uint256";
2640
+ readonly name: "offerId";
2641
+ readonly type: "uint256";
2642
+ }, {
2643
+ readonly internalType: "uint64";
2644
+ readonly name: "version";
2645
+ readonly type: "uint64";
2646
+ }];
2647
+ readonly name: "isOfferVersionAvailable";
2648
+ readonly outputs: readonly [{
2649
+ readonly internalType: "bool";
2650
+ readonly name: "";
2651
+ readonly type: "bool";
2652
+ }];
2653
+ readonly stateMutability: "view";
2654
+ readonly type: "function";
2530
2655
  }, {
2531
2656
  readonly inputs: readonly [{
2532
2657
  readonly internalType: "uint256";
@@ -2733,6 +2858,10 @@ export declare const abi: readonly [{
2733
2858
  readonly internalType: "uint256";
2734
2859
  readonly name: "maxPriceSlippage";
2735
2860
  readonly type: "uint256";
2861
+ }, {
2862
+ readonly internalType: "uint64";
2863
+ readonly name: "offerVersion";
2864
+ readonly type: "uint64";
2736
2865
  }];
2737
2866
  readonly internalType: "struct OrderInfo";
2738
2867
  readonly name: "info";
@@ -2761,12 +2890,20 @@ export declare const abi: readonly [{
2761
2890
  }, {
2762
2891
  readonly components: readonly [{
2763
2892
  readonly internalType: "uint256[]";
2764
- readonly name: "inputOffers";
2893
+ readonly name: "inputOffersIds";
2765
2894
  readonly type: "uint256[]";
2766
2895
  }, {
2767
2896
  readonly internalType: "uint256";
2768
- readonly name: "outputOffer";
2897
+ readonly name: "outputOfferId";
2769
2898
  readonly type: "uint256";
2899
+ }, {
2900
+ readonly internalType: "uint64[]";
2901
+ readonly name: "inputOffersVersions";
2902
+ readonly type: "uint64[]";
2903
+ }, {
2904
+ readonly internalType: "uint64";
2905
+ readonly name: "outputOfferVersion";
2906
+ readonly type: "uint64";
2770
2907
  }];
2771
2908
  readonly internalType: "struct OrderArgs";
2772
2909
  readonly name: "args";
@@ -2826,6 +2963,10 @@ export declare const abi: readonly [{
2826
2963
  readonly internalType: "uint256";
2827
2964
  readonly name: "maxPriceSlippage";
2828
2965
  readonly type: "uint256";
2966
+ }, {
2967
+ readonly internalType: "uint64";
2968
+ readonly name: "offerVersion";
2969
+ readonly type: "uint64";
2829
2970
  }];
2830
2971
  readonly internalType: "struct OrderInfo";
2831
2972
  readonly name: "info";
@@ -2854,12 +2995,20 @@ export declare const abi: readonly [{
2854
2995
  }, {
2855
2996
  readonly components: readonly [{
2856
2997
  readonly internalType: "uint256[]";
2857
- readonly name: "inputOffers";
2998
+ readonly name: "inputOffersIds";
2858
2999
  readonly type: "uint256[]";
2859
3000
  }, {
2860
3001
  readonly internalType: "uint256";
2861
- readonly name: "outputOffer";
3002
+ readonly name: "outputOfferId";
2862
3003
  readonly type: "uint256";
3004
+ }, {
3005
+ readonly internalType: "uint64[]";
3006
+ readonly name: "inputOffersVersions";
3007
+ readonly type: "uint64[]";
3008
+ }, {
3009
+ readonly internalType: "uint64";
3010
+ readonly name: "outputOfferVersion";
3011
+ readonly type: "uint64";
2863
3012
  }];
2864
3013
  readonly internalType: "struct OrderArgs";
2865
3014
  readonly name: "args";
@@ -2919,6 +3068,10 @@ export declare const abi: readonly [{
2919
3068
  readonly internalType: "uint256";
2920
3069
  readonly name: "maxPriceSlippage";
2921
3070
  readonly type: "uint256";
3071
+ }, {
3072
+ readonly internalType: "uint64";
3073
+ readonly name: "offerVersion";
3074
+ readonly type: "uint64";
2922
3075
  }];
2923
3076
  readonly internalType: "struct OrderInfo";
2924
3077
  readonly name: "suborderInfo";
@@ -2947,12 +3100,20 @@ export declare const abi: readonly [{
2947
3100
  }, {
2948
3101
  readonly components: readonly [{
2949
3102
  readonly internalType: "uint256[]";
2950
- readonly name: "inputOffers";
3103
+ readonly name: "inputOffersIds";
2951
3104
  readonly type: "uint256[]";
2952
3105
  }, {
2953
3106
  readonly internalType: "uint256";
2954
- readonly name: "outputOffer";
3107
+ readonly name: "outputOfferId";
2955
3108
  readonly type: "uint256";
3109
+ }, {
3110
+ readonly internalType: "uint64[]";
3111
+ readonly name: "inputOffersVersions";
3112
+ readonly type: "uint64[]";
3113
+ }, {
3114
+ readonly internalType: "uint64";
3115
+ readonly name: "outputOfferVersion";
3116
+ readonly type: "uint64";
2956
3117
  }];
2957
3118
  readonly internalType: "struct OrderArgs";
2958
3119
  readonly name: "suborderArgs";
@@ -3021,6 +3182,10 @@ export declare const abi: readonly [{
3021
3182
  readonly internalType: "uint256";
3022
3183
  readonly name: "maxPriceSlippage";
3023
3184
  readonly type: "uint256";
3185
+ }, {
3186
+ readonly internalType: "uint64";
3187
+ readonly name: "offerVersion";
3188
+ readonly type: "uint64";
3024
3189
  }];
3025
3190
  readonly internalType: "struct OrderInfo";
3026
3191
  readonly name: "suborderInfo";
@@ -3049,12 +3214,20 @@ export declare const abi: readonly [{
3049
3214
  }, {
3050
3215
  readonly components: readonly [{
3051
3216
  readonly internalType: "uint256[]";
3052
- readonly name: "inputOffers";
3217
+ readonly name: "inputOffersIds";
3053
3218
  readonly type: "uint256[]";
3054
3219
  }, {
3055
3220
  readonly internalType: "uint256";
3056
- readonly name: "outputOffer";
3221
+ readonly name: "outputOfferId";
3057
3222
  readonly type: "uint256";
3223
+ }, {
3224
+ readonly internalType: "uint64[]";
3225
+ readonly name: "inputOffersVersions";
3226
+ readonly type: "uint64[]";
3227
+ }, {
3228
+ readonly internalType: "uint64";
3229
+ readonly name: "outputOfferVersion";
3230
+ readonly type: "uint64";
3058
3231
  }];
3059
3232
  readonly internalType: "struct OrderArgs";
3060
3233
  readonly name: "suborderArgs";
@@ -3677,11 +3850,11 @@ export declare const abi: readonly [{
3677
3850
  readonly name: "subOfferId";
3678
3851
  readonly type: "uint256";
3679
3852
  }, {
3680
- readonly internalType: "enum OfferGroup";
3681
- readonly name: "subOfferGroup";
3682
- readonly type: "uint8";
3853
+ readonly internalType: "uint64";
3854
+ readonly name: "subOfferVersion";
3855
+ readonly type: "uint64";
3683
3856
  }];
3684
- readonly name: "checkOrderRestrictions";
3857
+ readonly name: "checkParentOrderArgsCompliesWithSubOfferRestrictions";
3685
3858
  readonly outputs: readonly [];
3686
3859
  readonly stateMutability: "view";
3687
3860
  readonly type: "function";
@@ -3771,6 +3944,10 @@ export declare const abi: readonly [{
3771
3944
  readonly internalType: "uint256";
3772
3945
  readonly name: "maxPriceSlippage";
3773
3946
  readonly type: "uint256";
3947
+ }, {
3948
+ readonly internalType: "uint64";
3949
+ readonly name: "offerVersion";
3950
+ readonly type: "uint64";
3774
3951
  }];
3775
3952
  readonly internalType: "struct OrderInfo";
3776
3953
  readonly name: "";
@@ -3801,12 +3978,20 @@ export declare const abi: readonly [{
3801
3978
  readonly outputs: readonly [{
3802
3979
  readonly components: readonly [{
3803
3980
  readonly internalType: "uint256[]";
3804
- readonly name: "inputOffers";
3981
+ readonly name: "inputOffersIds";
3805
3982
  readonly type: "uint256[]";
3806
3983
  }, {
3807
3984
  readonly internalType: "uint256";
3808
- readonly name: "outputOffer";
3985
+ readonly name: "outputOfferId";
3809
3986
  readonly type: "uint256";
3987
+ }, {
3988
+ readonly internalType: "uint64[]";
3989
+ readonly name: "inputOffersVersions";
3990
+ readonly type: "uint64[]";
3991
+ }, {
3992
+ readonly internalType: "uint64";
3993
+ readonly name: "outputOfferVersion";
3994
+ readonly type: "uint64";
3810
3995
  }];
3811
3996
  readonly internalType: "struct OrderArgs";
3812
3997
  readonly name: "";
@@ -3982,10 +4167,6 @@ export declare const abi: readonly [{
3982
4167
  readonly internalType: "uint64";
3983
4168
  readonly name: "gpuCores";
3984
4169
  readonly type: "uint64";
3985
- }, {
3986
- readonly internalType: "uint64";
3987
- readonly name: "vram";
3988
- readonly type: "uint64";
3989
4170
  }];
3990
4171
  readonly internalType: "struct SlotInfo";
3991
4172
  readonly name: "";
@@ -5144,8 +5325,22 @@ export declare const abi: readonly [{
5144
5325
  readonly type: "string";
5145
5326
  }];
5146
5327
  readonly internalType: "struct OptionInfo";
5147
- readonly name: "info";
5328
+ readonly name: "newInfo";
5148
5329
  readonly type: "tuple";
5330
+ }];
5331
+ readonly name: "updateOptionInfo";
5332
+ readonly outputs: readonly [];
5333
+ readonly stateMutability: "nonpayable";
5334
+ readonly type: "function";
5335
+ }, {
5336
+ readonly inputs: readonly [{
5337
+ readonly internalType: "uint256";
5338
+ readonly name: "teeOfferId";
5339
+ readonly type: "uint256";
5340
+ }, {
5341
+ readonly internalType: "uint256";
5342
+ readonly name: "optionId";
5343
+ readonly type: "uint256";
5149
5344
  }, {
5150
5345
  readonly components: readonly [{
5151
5346
  readonly internalType: "enum PriceType";
@@ -5165,10 +5360,10 @@ export declare const abi: readonly [{
5165
5360
  readonly type: "uint64";
5166
5361
  }];
5167
5362
  readonly internalType: "struct SlotUsage";
5168
- readonly name: "usage";
5363
+ readonly name: "newUsage";
5169
5364
  readonly type: "tuple";
5170
5365
  }];
5171
- readonly name: "updateOption";
5366
+ readonly name: "updateOptionUsage";
5172
5367
  readonly outputs: readonly [];
5173
5368
  readonly stateMutability: "nonpayable";
5174
5369
  readonly type: "function";
@@ -5253,10 +5448,6 @@ export declare const abi: readonly [{
5253
5448
  readonly internalType: "uint64";
5254
5449
  readonly name: "gpuCores";
5255
5450
  readonly type: "uint64";
5256
- }, {
5257
- readonly internalType: "uint64";
5258
- readonly name: "vram";
5259
- readonly type: "uint64";
5260
5451
  }];
5261
5452
  readonly internalType: "struct SlotInfo";
5262
5453
  readonly name: "info";
@@ -5344,10 +5535,6 @@ export declare const abi: readonly [{
5344
5535
  readonly internalType: "uint64";
5345
5536
  readonly name: "gpuCores";
5346
5537
  readonly type: "uint64";
5347
- }, {
5348
- readonly internalType: "uint64";
5349
- readonly name: "vram";
5350
- readonly type: "uint64";
5351
5538
  }];
5352
5539
  readonly internalType: "struct SlotInfo";
5353
5540
  readonly name: "info";
@@ -5417,10 +5604,6 @@ export declare const abi: readonly [{
5417
5604
  readonly internalType: "uint64";
5418
5605
  readonly name: "gpuCores";
5419
5606
  readonly type: "uint64";
5420
- }, {
5421
- readonly internalType: "uint64";
5422
- readonly name: "vram";
5423
- readonly type: "uint64";
5424
5607
  }];
5425
5608
  readonly internalType: "struct SlotInfo";
5426
5609
  readonly name: "info";
@@ -5521,14 +5704,24 @@ export declare const abi: readonly [{
5521
5704
  readonly internalType: "uint64";
5522
5705
  readonly name: "gpuCores";
5523
5706
  readonly type: "uint64";
5524
- }, {
5525
- readonly internalType: "uint64";
5526
- readonly name: "vram";
5527
- readonly type: "uint64";
5528
5707
  }];
5529
5708
  readonly internalType: "struct SlotInfo";
5530
- readonly name: "info";
5709
+ readonly name: "newInfo";
5531
5710
  readonly type: "tuple";
5711
+ }];
5712
+ readonly name: "updateTeeOfferSlotInfo";
5713
+ readonly outputs: readonly [];
5714
+ readonly stateMutability: "nonpayable";
5715
+ readonly type: "function";
5716
+ }, {
5717
+ readonly inputs: readonly [{
5718
+ readonly internalType: "uint256";
5719
+ readonly name: "teeOfferId";
5720
+ readonly type: "uint256";
5721
+ }, {
5722
+ readonly internalType: "uint256";
5723
+ readonly name: "slotId";
5724
+ readonly type: "uint256";
5532
5725
  }, {
5533
5726
  readonly components: readonly [{
5534
5727
  readonly internalType: "enum PriceType";
@@ -5548,10 +5741,10 @@ export declare const abi: readonly [{
5548
5741
  readonly type: "uint64";
5549
5742
  }];
5550
5743
  readonly internalType: "struct SlotUsage";
5551
- readonly name: "usage";
5744
+ readonly name: "newUsage";
5552
5745
  readonly type: "tuple";
5553
5746
  }];
5554
- readonly name: "updateTeeOfferSlot";
5747
+ readonly name: "updateTeeOfferSlotUsage";
5555
5748
  readonly outputs: readonly [];
5556
5749
  readonly stateMutability: "nonpayable";
5557
5750
  readonly type: "function";
@@ -5854,10 +6047,6 @@ export declare const abi: readonly [{
5854
6047
  readonly internalType: "uint64";
5855
6048
  readonly name: "gpuCores";
5856
6049
  readonly type: "uint64";
5857
- }, {
5858
- readonly internalType: "uint64";
5859
- readonly name: "vram";
5860
- readonly type: "uint64";
5861
6050
  }];
5862
6051
  readonly internalType: "struct SlotInfo";
5863
6052
  readonly name: "info";
@@ -5958,10 +6147,6 @@ export declare const abi: readonly [{
5958
6147
  readonly internalType: "uint64";
5959
6148
  readonly name: "gpuCores";
5960
6149
  readonly type: "uint64";
5961
- }, {
5962
- readonly internalType: "uint64";
5963
- readonly name: "vram";
5964
- readonly type: "uint64";
5965
6150
  }];
5966
6151
  readonly internalType: "struct SlotInfo";
5967
6152
  readonly name: "info";
@@ -6040,10 +6225,6 @@ export declare const abi: readonly [{
6040
6225
  readonly internalType: "uint64";
6041
6226
  readonly name: "gpuCores";
6042
6227
  readonly type: "uint64";
6043
- }, {
6044
- readonly internalType: "uint64";
6045
- readonly name: "vram";
6046
- readonly type: "uint64";
6047
6228
  }];
6048
6229
  readonly internalType: "struct SlotInfo";
6049
6230
  readonly name: "info";
@@ -6153,14 +6334,24 @@ export declare const abi: readonly [{
6153
6334
  readonly internalType: "uint64";
6154
6335
  readonly name: "gpuCores";
6155
6336
  readonly type: "uint64";
6156
- }, {
6157
- readonly internalType: "uint64";
6158
- readonly name: "vram";
6159
- readonly type: "uint64";
6160
6337
  }];
6161
6338
  readonly internalType: "struct SlotInfo";
6162
- readonly name: "info";
6339
+ readonly name: "newInfo";
6163
6340
  readonly type: "tuple";
6341
+ }];
6342
+ readonly name: "updateValueOfferSlotInfo";
6343
+ readonly outputs: readonly [];
6344
+ readonly stateMutability: "nonpayable";
6345
+ readonly type: "function";
6346
+ }, {
6347
+ readonly inputs: readonly [{
6348
+ readonly internalType: "uint256";
6349
+ readonly name: "offerId";
6350
+ readonly type: "uint256";
6351
+ }, {
6352
+ readonly internalType: "uint256";
6353
+ readonly name: "slotId";
6354
+ readonly type: "uint256";
6164
6355
  }, {
6165
6356
  readonly components: readonly [{
6166
6357
  readonly internalType: "string";
@@ -6168,8 +6359,22 @@ export declare const abi: readonly [{
6168
6359
  readonly type: "string";
6169
6360
  }];
6170
6361
  readonly internalType: "struct OptionInfo";
6171
- readonly name: "option";
6362
+ readonly name: "newOption";
6172
6363
  readonly type: "tuple";
6364
+ }];
6365
+ readonly name: "updateValueOfferSlotOption";
6366
+ readonly outputs: readonly [];
6367
+ readonly stateMutability: "nonpayable";
6368
+ readonly type: "function";
6369
+ }, {
6370
+ readonly inputs: readonly [{
6371
+ readonly internalType: "uint256";
6372
+ readonly name: "offerId";
6373
+ readonly type: "uint256";
6374
+ }, {
6375
+ readonly internalType: "uint256";
6376
+ readonly name: "slotId";
6377
+ readonly type: "uint256";
6173
6378
  }, {
6174
6379
  readonly components: readonly [{
6175
6380
  readonly internalType: "enum PriceType";
@@ -6189,10 +6394,10 @@ export declare const abi: readonly [{
6189
6394
  readonly type: "uint64";
6190
6395
  }];
6191
6396
  readonly internalType: "struct SlotUsage";
6192
- readonly name: "usage";
6397
+ readonly name: "newUsage";
6193
6398
  readonly type: "tuple";
6194
6399
  }];
6195
- readonly name: "updateValueOfferSlot";
6400
+ readonly name: "updateValueOfferSlotUsage";
6196
6401
  readonly outputs: readonly [];
6197
6402
  readonly stateMutability: "nonpayable";
6198
6403
  readonly type: "function";
@@ -6240,6 +6445,10 @@ export declare const abi: readonly [{
6240
6445
  readonly internalType: "uint256";
6241
6446
  readonly name: "maxPriceSlippage";
6242
6447
  readonly type: "uint256";
6448
+ }, {
6449
+ readonly internalType: "uint64";
6450
+ readonly name: "offerVersion";
6451
+ readonly type: "uint64";
6243
6452
  }];
6244
6453
  readonly internalType: "struct OrderInfo";
6245
6454
  readonly name: "parentOrderInfo";
@@ -6268,12 +6477,20 @@ export declare const abi: readonly [{
6268
6477
  }, {
6269
6478
  readonly components: readonly [{
6270
6479
  readonly internalType: "uint256[]";
6271
- readonly name: "inputOffers";
6480
+ readonly name: "inputOffersIds";
6272
6481
  readonly type: "uint256[]";
6273
6482
  }, {
6274
6483
  readonly internalType: "uint256";
6275
- readonly name: "outputOffer";
6484
+ readonly name: "outputOfferId";
6276
6485
  readonly type: "uint256";
6486
+ }, {
6487
+ readonly internalType: "uint64[]";
6488
+ readonly name: "inputOffersVersions";
6489
+ readonly type: "uint64[]";
6490
+ }, {
6491
+ readonly internalType: "uint64";
6492
+ readonly name: "outputOfferVersion";
6493
+ readonly type: "uint64";
6277
6494
  }];
6278
6495
  readonly internalType: "struct OrderArgs";
6279
6496
  readonly name: "parentOrderArgs";
@@ -6315,6 +6532,10 @@ export declare const abi: readonly [{
6315
6532
  readonly internalType: "uint256";
6316
6533
  readonly name: "maxPriceSlippage";
6317
6534
  readonly type: "uint256";
6535
+ }, {
6536
+ readonly internalType: "uint64";
6537
+ readonly name: "offerVersion";
6538
+ readonly type: "uint64";
6318
6539
  }];
6319
6540
  readonly internalType: "struct OrderInfo[]";
6320
6541
  readonly name: "subOrdersInfos";
@@ -6343,12 +6564,20 @@ export declare const abi: readonly [{
6343
6564
  }, {
6344
6565
  readonly components: readonly [{
6345
6566
  readonly internalType: "uint256[]";
6346
- readonly name: "inputOffers";
6567
+ readonly name: "inputOffersIds";
6347
6568
  readonly type: "uint256[]";
6348
6569
  }, {
6349
6570
  readonly internalType: "uint256";
6350
- readonly name: "outputOffer";
6571
+ readonly name: "outputOfferId";
6351
6572
  readonly type: "uint256";
6573
+ }, {
6574
+ readonly internalType: "uint64[]";
6575
+ readonly name: "inputOffersVersions";
6576
+ readonly type: "uint64[]";
6577
+ }, {
6578
+ readonly internalType: "uint64";
6579
+ readonly name: "outputOfferVersion";
6580
+ readonly type: "uint64";
6352
6581
  }];
6353
6582
  readonly internalType: "struct OrderArgs[]";
6354
6583
  readonly name: "subOrdersArgs";