@super-protocol/sdk-js 2.2.0-beta.9 → 2.2.0-beta.90

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 (206) hide show
  1. package/dist/cjs/RIGenerator.d.ts +1 -0
  2. package/dist/cjs/RIGenerator.js +2 -1
  3. package/dist/cjs/TIIGenerator.d.ts +2 -1
  4. package/dist/cjs/TIIGenerator.js +13 -3
  5. package/dist/cjs/TeeInputGeneratorBase.d.ts +1 -1
  6. package/dist/cjs/TeeInputGeneratorBase.js +20 -32
  7. package/dist/cjs/analytics/eventProviders/BrowserEventProvider.d.ts +1 -0
  8. package/dist/cjs/analytics/eventProviders/BrowserEventProvider.js +3 -3
  9. package/dist/cjs/analytics/transports/AxiosTransport.js +1 -1
  10. package/dist/cjs/config.d.ts +0 -1
  11. package/dist/cjs/config.js +1 -2
  12. package/dist/cjs/constants.d.ts +5 -4
  13. package/dist/cjs/constants.js +31 -7
  14. package/dist/cjs/contracts/abi.d.ts +698 -120
  15. package/dist/cjs/contracts/abi.js +890 -150
  16. package/dist/cjs/crypto/index.d.ts +1 -0
  17. package/dist/cjs/crypto/index.js +16 -1
  18. package/dist/cjs/errors/base.error.d.ts +3 -0
  19. package/dist/cjs/errors/base.error.js +19 -0
  20. package/dist/cjs/errors/index.d.ts +2 -0
  21. package/dist/cjs/errors/index.js +8 -0
  22. package/dist/cjs/errors/not-found.error.d.ts +3 -0
  23. package/dist/cjs/errors/not-found.error.js +8 -0
  24. package/dist/cjs/errors/utils.d.ts +1 -0
  25. package/dist/cjs/errors/utils.js +25 -0
  26. package/dist/cjs/index.d.ts +8 -1
  27. package/dist/cjs/index.js +15 -2
  28. package/dist/cjs/models/Offer.d.ts +40 -4
  29. package/dist/cjs/models/Offer.js +115 -11
  30. package/dist/cjs/models/Provider.js +1 -1
  31. package/dist/cjs/models/TCB.js +13 -5
  32. package/dist/cjs/models/TeeOffer.d.ts +26 -14
  33. package/dist/cjs/models/TeeOffer.js +79 -42
  34. package/dist/cjs/proto/TRI.d.ts +39 -4
  35. package/dist/cjs/proto/TRI.js +18 -1
  36. package/dist/cjs/providers/storage/IStorageProvider.d.ts +1 -1
  37. package/dist/cjs/providers/storage/S3StorageProvider.d.ts +8 -7
  38. package/dist/cjs/providers/storage/S3StorageProvider.js +80 -38
  39. package/dist/cjs/providers/storage/StorageAdapter.d.ts +9 -7
  40. package/dist/cjs/providers/storage/StorageAdapter.js +27 -29
  41. package/dist/cjs/providers/storage/StorageContentWriter.d.ts +2 -2
  42. package/dist/cjs/providers/storage/StorageContentWriter.js +5 -5
  43. package/dist/cjs/providers/storage/StorageKeyValueAdapter.d.ts +8 -5
  44. package/dist/cjs/providers/storage/StorageKeyValueAdapter.js +30 -16
  45. package/dist/cjs/providers/storage/StorjAdapter.d.ts +5 -4
  46. package/dist/cjs/providers/storage/StorjAdapter.js +15 -9
  47. package/dist/cjs/providers/storage/StorjCredentialsManager.d.ts +24 -0
  48. package/dist/cjs/providers/storage/StorjCredentialsManager.js +86 -0
  49. package/dist/cjs/providers/storage/StorjStorageProvider.js +2 -2
  50. package/dist/cjs/providers/storage/fs-storage-provider.d.ts +19 -0
  51. package/dist/cjs/providers/storage/fs-storage-provider.js +143 -0
  52. package/dist/cjs/providers/storage/getStorageProvider.js +4 -1
  53. package/dist/cjs/providers/storage/parseStorageCredentials.d.ts +5 -0
  54. package/dist/cjs/providers/storage/parseStorageCredentials.js +21 -0
  55. package/dist/cjs/providers/storage/types.d.ts +22 -0
  56. package/dist/cjs/staticModels/LoaderSecretsPublicKeys.js +3 -3
  57. package/dist/cjs/staticModels/LoaderSessions.d.ts +2 -2
  58. package/dist/cjs/staticModels/LoaderSessions.js +5 -5
  59. package/dist/cjs/staticModels/OfferResources.d.ts +2 -1
  60. package/dist/cjs/staticModels/OfferResources.js +24 -8
  61. package/dist/cjs/staticModels/OffersStorageAllocated.d.ts +1 -2
  62. package/dist/cjs/staticModels/OffersStorageAllocated.js +10 -10
  63. package/dist/cjs/staticModels/OffersStorageRequests.js +4 -3
  64. package/dist/cjs/staticModels/Orders.js +3 -2
  65. package/dist/cjs/staticModels/SecretRequests.d.ts +2 -2
  66. package/dist/cjs/staticModels/SecretRequests.js +19 -10
  67. package/dist/cjs/staticModels/TeeOffers.d.ts +0 -2
  68. package/dist/cjs/staticModels/TeeOffers.js +2 -33
  69. package/dist/cjs/tee/QuoteParser.d.ts +61 -6
  70. package/dist/cjs/tee/QuoteParser.js +248 -29
  71. package/dist/cjs/tee/QuoteValidator.d.ts +11 -0
  72. package/dist/cjs/tee/QuoteValidator.js +119 -30
  73. package/dist/cjs/tee/TeeBlockVerifier.d.ts +3 -4
  74. package/dist/cjs/tee/TeeBlockVerifier.js +2 -8
  75. package/dist/cjs/tee/errors.d.ts +6 -3
  76. package/dist/cjs/tee/errors.js +9 -5
  77. package/dist/cjs/tee/types.d.ts +50 -9
  78. package/dist/cjs/tee/types.js +32 -1
  79. package/dist/cjs/types/DistributedSecretStorage.d.ts +7 -0
  80. package/dist/cjs/types/Offer.d.ts +4 -3
  81. package/dist/cjs/types/OfferVersion.d.ts +13 -0
  82. package/dist/cjs/types/OfferVersion.js +9 -0
  83. package/dist/cjs/types/Order.d.ts +7 -2
  84. package/dist/cjs/types/Order.js +3 -1
  85. package/dist/cjs/types/SlotInfo.d.ts +1 -0
  86. package/dist/cjs/types/Superpro.d.ts +2 -1
  87. package/dist/cjs/types/Superpro.js +2 -1
  88. package/dist/cjs/types/TeeOfferInfo.d.ts +0 -1
  89. package/dist/cjs/types/index.d.ts +1 -0
  90. package/dist/cjs/types/index.js +2 -1
  91. package/dist/cjs/types/storage/StorageAccess.d.ts +3 -3
  92. package/dist/cjs/utils/CryptoKeysTransformer.d.ts +7 -1
  93. package/dist/cjs/utils/CryptoKeysTransformer.js +66 -7
  94. package/dist/cjs/utils/NonceTracker.js +1 -1
  95. package/dist/cjs/utils/helper.d.ts +7 -1
  96. package/dist/cjs/utils/helper.js +87 -2
  97. package/dist/cjs/utils/helpers/OrderArgsHelper.d.ts +16 -0
  98. package/dist/cjs/utils/helpers/OrderArgsHelper.js +59 -0
  99. package/dist/cjs/utils/helpers/index.d.ts +2 -0
  100. package/dist/cjs/utils/helpers/index.js +3 -1
  101. package/dist/cjs/utils/helpers/uploadObjectToStorage.d.ts +13 -0
  102. package/dist/cjs/utils/helpers/uploadObjectToStorage.js +55 -0
  103. package/dist/mjs/RIGenerator.d.ts +1 -0
  104. package/dist/mjs/RIGenerator.js +2 -1
  105. package/dist/mjs/TIIGenerator.d.ts +2 -1
  106. package/dist/mjs/TIIGenerator.js +13 -3
  107. package/dist/mjs/TeeInputGeneratorBase.d.ts +1 -1
  108. package/dist/mjs/TeeInputGeneratorBase.js +20 -32
  109. package/dist/mjs/analytics/eventProviders/BrowserEventProvider.d.ts +1 -0
  110. package/dist/mjs/analytics/eventProviders/BrowserEventProvider.js +3 -3
  111. package/dist/mjs/analytics/transports/AxiosTransport.js +1 -1
  112. package/dist/mjs/config.d.ts +0 -1
  113. package/dist/mjs/config.js +1 -2
  114. package/dist/mjs/constants.d.ts +5 -4
  115. package/dist/mjs/constants.js +30 -6
  116. package/dist/mjs/contracts/abi.d.ts +698 -120
  117. package/dist/mjs/contracts/abi.js +890 -150
  118. package/dist/mjs/crypto/index.d.ts +1 -0
  119. package/dist/mjs/crypto/index.js +2 -1
  120. package/dist/mjs/errors/base.error.d.ts +3 -0
  121. package/dist/mjs/errors/base.error.js +15 -0
  122. package/dist/mjs/errors/index.d.ts +2 -0
  123. package/dist/mjs/errors/index.js +3 -0
  124. package/dist/mjs/errors/not-found.error.d.ts +3 -0
  125. package/dist/mjs/errors/not-found.error.js +4 -0
  126. package/dist/mjs/errors/utils.d.ts +1 -0
  127. package/dist/mjs/errors/utils.js +18 -0
  128. package/dist/mjs/index.d.ts +8 -1
  129. package/dist/mjs/index.js +8 -2
  130. package/dist/mjs/models/Offer.d.ts +40 -4
  131. package/dist/mjs/models/Offer.js +116 -12
  132. package/dist/mjs/models/Provider.js +1 -1
  133. package/dist/mjs/models/TCB.js +13 -5
  134. package/dist/mjs/models/TeeOffer.d.ts +26 -14
  135. package/dist/mjs/models/TeeOffer.js +80 -43
  136. package/dist/mjs/proto/TRI.d.ts +39 -4
  137. package/dist/mjs/proto/TRI.js +18 -1
  138. package/dist/mjs/providers/storage/IStorageProvider.d.ts +1 -1
  139. package/dist/mjs/providers/storage/S3StorageProvider.d.ts +8 -7
  140. package/dist/mjs/providers/storage/S3StorageProvider.js +77 -38
  141. package/dist/mjs/providers/storage/StorageAdapter.d.ts +9 -7
  142. package/dist/mjs/providers/storage/StorageAdapter.js +27 -29
  143. package/dist/mjs/providers/storage/StorageContentWriter.d.ts +2 -2
  144. package/dist/mjs/providers/storage/StorageContentWriter.js +5 -5
  145. package/dist/mjs/providers/storage/StorageKeyValueAdapter.d.ts +8 -5
  146. package/dist/mjs/providers/storage/StorageKeyValueAdapter.js +30 -16
  147. package/dist/mjs/providers/storage/StorjAdapter.d.ts +5 -4
  148. package/dist/mjs/providers/storage/StorjAdapter.js +15 -9
  149. package/dist/mjs/providers/storage/StorjCredentialsManager.d.ts +24 -0
  150. package/dist/mjs/providers/storage/StorjCredentialsManager.js +82 -0
  151. package/dist/mjs/providers/storage/StorjStorageProvider.js +2 -2
  152. package/dist/mjs/providers/storage/fs-storage-provider.d.ts +19 -0
  153. package/dist/mjs/providers/storage/fs-storage-provider.js +113 -0
  154. package/dist/mjs/providers/storage/getStorageProvider.js +4 -1
  155. package/dist/mjs/providers/storage/parseStorageCredentials.d.ts +5 -0
  156. package/dist/mjs/providers/storage/parseStorageCredentials.js +17 -0
  157. package/dist/mjs/providers/storage/types.d.ts +22 -0
  158. package/dist/mjs/staticModels/LoaderSecretsPublicKeys.js +4 -4
  159. package/dist/mjs/staticModels/LoaderSessions.d.ts +2 -2
  160. package/dist/mjs/staticModels/LoaderSessions.js +6 -6
  161. package/dist/mjs/staticModels/OfferResources.d.ts +2 -1
  162. package/dist/mjs/staticModels/OfferResources.js +25 -9
  163. package/dist/mjs/staticModels/OffersStorageAllocated.d.ts +1 -2
  164. package/dist/mjs/staticModels/OffersStorageAllocated.js +11 -11
  165. package/dist/mjs/staticModels/OffersStorageRequests.js +5 -4
  166. package/dist/mjs/staticModels/Orders.js +3 -2
  167. package/dist/mjs/staticModels/SecretRequests.d.ts +2 -2
  168. package/dist/mjs/staticModels/SecretRequests.js +20 -11
  169. package/dist/mjs/staticModels/TeeOffers.d.ts +0 -2
  170. package/dist/mjs/staticModels/TeeOffers.js +2 -33
  171. package/dist/mjs/store.js +2 -2
  172. package/dist/mjs/tee/QuoteParser.d.ts +61 -6
  173. package/dist/mjs/tee/QuoteParser.js +245 -28
  174. package/dist/mjs/tee/QuoteValidator.d.ts +11 -0
  175. package/dist/mjs/tee/QuoteValidator.js +119 -30
  176. package/dist/mjs/tee/TeeBlockVerifier.d.ts +3 -4
  177. package/dist/mjs/tee/TeeBlockVerifier.js +2 -8
  178. package/dist/mjs/tee/errors.d.ts +6 -3
  179. package/dist/mjs/tee/errors.js +7 -4
  180. package/dist/mjs/tee/types.d.ts +50 -9
  181. package/dist/mjs/tee/types.js +28 -2
  182. package/dist/mjs/types/DistributedSecretStorage.d.ts +7 -0
  183. package/dist/mjs/types/Offer.d.ts +4 -3
  184. package/dist/mjs/types/OfferVersion.d.ts +13 -0
  185. package/dist/mjs/types/OfferVersion.js +6 -0
  186. package/dist/mjs/types/Order.d.ts +7 -2
  187. package/dist/mjs/types/Order.js +3 -1
  188. package/dist/mjs/types/SlotInfo.d.ts +1 -0
  189. package/dist/mjs/types/Superpro.d.ts +2 -1
  190. package/dist/mjs/types/Superpro.js +2 -1
  191. package/dist/mjs/types/TeeOfferInfo.d.ts +0 -1
  192. package/dist/mjs/types/index.d.ts +1 -0
  193. package/dist/mjs/types/index.js +2 -1
  194. package/dist/mjs/types/storage/StorageAccess.d.ts +3 -3
  195. package/dist/mjs/utils/CryptoKeysTransformer.d.ts +7 -1
  196. package/dist/mjs/utils/CryptoKeysTransformer.js +66 -7
  197. package/dist/mjs/utils/NonceTracker.js +1 -1
  198. package/dist/mjs/utils/helper.d.ts +7 -1
  199. package/dist/mjs/utils/helper.js +80 -1
  200. package/dist/mjs/utils/helpers/OrderArgsHelper.d.ts +16 -0
  201. package/dist/mjs/utils/helpers/OrderArgsHelper.js +52 -0
  202. package/dist/mjs/utils/helpers/index.d.ts +2 -0
  203. package/dist/mjs/utils/helpers/index.js +3 -1
  204. package/dist/mjs/utils/helpers/uploadObjectToStorage.d.ts +13 -0
  205. package/dist/mjs/utils/helpers/uploadObjectToStorage.js +48 -0
  206. package/package.json +4 -4
@@ -873,6 +873,10 @@ export declare const abi: readonly [{
873
873
  readonly internalType: "uint256";
874
874
  readonly name: "teeOfferId";
875
875
  readonly type: "uint256";
876
+ }, {
877
+ readonly internalType: "bytes32";
878
+ readonly name: "newDeviceId";
879
+ readonly type: "bytes32";
876
880
  }];
877
881
  readonly name: "initializeTcb";
878
882
  readonly outputs: readonly [];
@@ -897,6 +901,10 @@ export declare const abi: readonly [{
897
901
  readonly internalType: "uint256";
898
902
  readonly name: "teeOfferId";
899
903
  readonly type: "uint256";
904
+ }, {
905
+ readonly internalType: "bytes32";
906
+ readonly name: "deviceId";
907
+ readonly type: "bytes32";
900
908
  }];
901
909
  readonly name: "isTcbCreationAvailable";
902
910
  readonly outputs: readonly [{
@@ -1495,7 +1503,7 @@ export declare const abi: readonly [{
1495
1503
  readonly type: "string";
1496
1504
  }, {
1497
1505
  readonly internalType: "string";
1498
- readonly name: "tlb";
1506
+ readonly name: "tlb_DEPRECATED";
1499
1507
  readonly type: "string";
1500
1508
  }, {
1501
1509
  readonly internalType: "string";
@@ -1522,6 +1530,10 @@ export declare const abi: readonly [{
1522
1530
  readonly internalType: "uint64";
1523
1531
  readonly name: "gpuCores";
1524
1532
  readonly type: "uint64";
1533
+ }, {
1534
+ readonly internalType: "uint64";
1535
+ readonly name: "vram";
1536
+ readonly type: "uint64";
1525
1537
  }];
1526
1538
  readonly internalType: "struct SlotInfo";
1527
1539
  readonly name: "slotInfo";
@@ -1623,9 +1635,13 @@ export declare const abi: readonly [{
1623
1635
  readonly internalType: "enum OfferType[]";
1624
1636
  readonly name: "types";
1625
1637
  readonly type: "uint8[]";
1638
+ }, {
1639
+ readonly internalType: "uint64[]";
1640
+ readonly name: "versions";
1641
+ readonly type: "uint64[]";
1626
1642
  }];
1627
- readonly internalType: "struct ValueOfferInitialRestrictions";
1628
- readonly name: "initRestrictions";
1643
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
1644
+ readonly name: "restrictionsSpecification";
1629
1645
  readonly type: "tuple";
1630
1646
  }, {
1631
1647
  readonly internalType: "bytes32";
@@ -1640,6 +1656,20 @@ export declare const abi: readonly [{
1640
1656
  readonly outputs: readonly [];
1641
1657
  readonly stateMutability: "nonpayable";
1642
1658
  readonly type: "function";
1659
+ }, {
1660
+ readonly inputs: readonly [{
1661
+ readonly internalType: "uint256";
1662
+ readonly name: "offerId";
1663
+ readonly type: "uint256";
1664
+ }, {
1665
+ readonly internalType: "uint64";
1666
+ readonly name: "version";
1667
+ readonly type: "uint64";
1668
+ }];
1669
+ readonly name: "deleteOfferVersion";
1670
+ readonly outputs: readonly [];
1671
+ readonly stateMutability: "nonpayable";
1672
+ readonly type: "function";
1643
1673
  }, {
1644
1674
  readonly inputs: readonly [{
1645
1675
  readonly internalType: "uint256";
@@ -1688,6 +1718,33 @@ export declare const abi: readonly [{
1688
1718
  readonly outputs: readonly [];
1689
1719
  readonly stateMutability: "nonpayable";
1690
1720
  readonly type: "function";
1721
+ }, {
1722
+ readonly inputs: readonly [{
1723
+ readonly internalType: "uint256";
1724
+ readonly name: "offerId";
1725
+ readonly type: "uint256";
1726
+ }, {
1727
+ readonly internalType: "uint64";
1728
+ readonly name: "newVersion";
1729
+ readonly type: "uint64";
1730
+ }, {
1731
+ readonly components: readonly [{
1732
+ readonly internalType: "string";
1733
+ readonly name: "mrenclave";
1734
+ readonly type: "string";
1735
+ }, {
1736
+ readonly internalType: "string";
1737
+ readonly name: "mrsigner";
1738
+ readonly type: "string";
1739
+ }];
1740
+ readonly internalType: "struct OfferVersionInfo";
1741
+ readonly name: "newVersionInfo";
1742
+ readonly type: "tuple";
1743
+ }];
1744
+ readonly name: "setOfferNewVersion";
1745
+ readonly outputs: readonly [];
1746
+ readonly stateMutability: "nonpayable";
1747
+ readonly type: "function";
1691
1748
  }, {
1692
1749
  readonly inputs: readonly [{
1693
1750
  readonly internalType: "uint256";
@@ -1724,6 +1781,10 @@ export declare const abi: readonly [{
1724
1781
  readonly internalType: "uint64";
1725
1782
  readonly name: "gpuCores";
1726
1783
  readonly type: "uint64";
1784
+ }, {
1785
+ readonly internalType: "uint64";
1786
+ readonly name: "vram";
1787
+ readonly type: "uint64";
1727
1788
  }];
1728
1789
  readonly internalType: "struct SlotInfo";
1729
1790
  readonly name: "newSlotInfo";
@@ -1766,7 +1827,7 @@ export declare const abi: readonly [{
1766
1827
  readonly type: "string";
1767
1828
  }, {
1768
1829
  readonly internalType: "string";
1769
- readonly name: "tlb";
1830
+ readonly name: "tlb_DEPRECATED";
1770
1831
  readonly type: "string";
1771
1832
  }, {
1772
1833
  readonly internalType: "string";
@@ -1781,20 +1842,6 @@ export declare const abi: readonly [{
1781
1842
  readonly outputs: readonly [];
1782
1843
  readonly stateMutability: "nonpayable";
1783
1844
  readonly type: "function";
1784
- }, {
1785
- readonly inputs: readonly [{
1786
- readonly internalType: "uint256";
1787
- readonly name: "offerId";
1788
- readonly type: "uint256";
1789
- }, {
1790
- readonly internalType: "string";
1791
- readonly name: "tlb";
1792
- readonly type: "string";
1793
- }];
1794
- readonly name: "setTeeOfferTlb";
1795
- readonly outputs: readonly [];
1796
- readonly stateMutability: "nonpayable";
1797
- readonly type: "function";
1798
1845
  }, {
1799
1846
  readonly inputs: readonly [{
1800
1847
  readonly internalType: "uint256";
@@ -1861,6 +1908,16 @@ export declare const abi: readonly [{
1861
1908
  readonly internalType: "struct ValueOfferInfo";
1862
1909
  readonly name: "newInfo";
1863
1910
  readonly type: "tuple";
1911
+ }];
1912
+ readonly name: "setValueOfferInfo";
1913
+ readonly outputs: readonly [];
1914
+ readonly stateMutability: "nonpayable";
1915
+ readonly type: "function";
1916
+ }, {
1917
+ readonly inputs: readonly [{
1918
+ readonly internalType: "uint256";
1919
+ readonly name: "offerId";
1920
+ readonly type: "uint256";
1864
1921
  }, {
1865
1922
  readonly components: readonly [{
1866
1923
  readonly internalType: "uint256[]";
@@ -1870,12 +1927,16 @@ export declare const abi: readonly [{
1870
1927
  readonly internalType: "enum OfferType[]";
1871
1928
  readonly name: "types";
1872
1929
  readonly type: "uint8[]";
1930
+ }, {
1931
+ readonly internalType: "uint64[]";
1932
+ readonly name: "versions";
1933
+ readonly type: "uint64[]";
1873
1934
  }];
1874
- readonly internalType: "struct ValueOfferInitialRestrictions";
1875
- readonly name: "newRestrictions";
1935
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
1936
+ readonly name: "newSpecification";
1876
1937
  readonly type: "tuple";
1877
1938
  }];
1878
- readonly name: "setValueOfferInfo";
1939
+ readonly name: "setValueOfferRestrictionsSpecification";
1879
1940
  readonly outputs: readonly [];
1880
1941
  readonly stateMutability: "nonpayable";
1881
1942
  readonly type: "function";
@@ -1918,7 +1979,7 @@ export declare const abi: readonly [{
1918
1979
  readonly type: "string";
1919
1980
  }, {
1920
1981
  readonly internalType: "string";
1921
- readonly name: "tlb";
1982
+ readonly name: "tlb_DEPRECATED";
1922
1983
  readonly type: "string";
1923
1984
  }, {
1924
1985
  readonly internalType: "string";
@@ -2049,29 +2110,6 @@ export declare const abi: readonly [{
2049
2110
  }];
2050
2111
  readonly stateMutability: "view";
2051
2112
  readonly type: "function";
2052
- }, {
2053
- readonly inputs: readonly [{
2054
- readonly internalType: "uint256";
2055
- readonly name: "offerId";
2056
- readonly type: "uint256";
2057
- }];
2058
- readonly name: "getOfferInitialRestrictions";
2059
- readonly outputs: readonly [{
2060
- readonly components: readonly [{
2061
- readonly internalType: "uint256[]";
2062
- readonly name: "offers";
2063
- readonly type: "uint256[]";
2064
- }, {
2065
- readonly internalType: "enum OfferType[]";
2066
- readonly name: "types";
2067
- readonly type: "uint8[]";
2068
- }];
2069
- readonly internalType: "struct ValueOfferInitialRestrictions";
2070
- readonly name: "ret";
2071
- readonly type: "tuple";
2072
- }];
2073
- readonly stateMutability: "view";
2074
- readonly type: "function";
2075
2113
  }, {
2076
2114
  readonly inputs: readonly [{
2077
2115
  readonly internalType: "uint256";
@@ -2161,6 +2199,33 @@ export declare const abi: readonly [{
2161
2199
  }];
2162
2200
  readonly stateMutability: "view";
2163
2201
  readonly type: "function";
2202
+ }, {
2203
+ readonly inputs: readonly [{
2204
+ readonly internalType: "uint256";
2205
+ readonly name: "offerId";
2206
+ readonly type: "uint256";
2207
+ }];
2208
+ readonly name: "getOfferRestrictionsSpecification";
2209
+ readonly outputs: readonly [{
2210
+ readonly components: readonly [{
2211
+ readonly internalType: "uint256[]";
2212
+ readonly name: "offers";
2213
+ readonly type: "uint256[]";
2214
+ }, {
2215
+ readonly internalType: "enum OfferType[]";
2216
+ readonly name: "types";
2217
+ readonly type: "uint8[]";
2218
+ }, {
2219
+ readonly internalType: "uint64[]";
2220
+ readonly name: "versions";
2221
+ readonly type: "uint64[]";
2222
+ }];
2223
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
2224
+ readonly name: "";
2225
+ readonly type: "tuple";
2226
+ }];
2227
+ readonly stateMutability: "view";
2228
+ readonly type: "function";
2164
2229
  }, {
2165
2230
  readonly inputs: readonly [{
2166
2231
  readonly internalType: "uint256";
@@ -2175,6 +2240,60 @@ export declare const abi: readonly [{
2175
2240
  }];
2176
2241
  readonly stateMutability: "view";
2177
2242
  readonly type: "function";
2243
+ }, {
2244
+ readonly inputs: readonly [{
2245
+ readonly internalType: "uint256";
2246
+ readonly name: "offerId";
2247
+ readonly type: "uint256";
2248
+ }, {
2249
+ readonly internalType: "uint64";
2250
+ readonly name: "version";
2251
+ readonly type: "uint64";
2252
+ }];
2253
+ readonly name: "getOfferVersion";
2254
+ readonly outputs: readonly [{
2255
+ readonly components: readonly [{
2256
+ readonly internalType: "uint64";
2257
+ readonly name: "version";
2258
+ readonly type: "uint64";
2259
+ }, {
2260
+ readonly components: readonly [{
2261
+ readonly internalType: "string";
2262
+ readonly name: "mrenclave";
2263
+ readonly type: "string";
2264
+ }, {
2265
+ readonly internalType: "string";
2266
+ readonly name: "mrsigner";
2267
+ readonly type: "string";
2268
+ }];
2269
+ readonly internalType: "struct OfferVersionInfo";
2270
+ readonly name: "info";
2271
+ readonly type: "tuple";
2272
+ }, {
2273
+ readonly internalType: "enum OfferVersionStatus";
2274
+ readonly name: "status";
2275
+ readonly type: "uint8";
2276
+ }];
2277
+ readonly internalType: "struct OfferVersion";
2278
+ readonly name: "";
2279
+ readonly type: "tuple";
2280
+ }];
2281
+ readonly stateMutability: "view";
2282
+ readonly type: "function";
2283
+ }, {
2284
+ readonly inputs: readonly [{
2285
+ readonly internalType: "uint256";
2286
+ readonly name: "offerId";
2287
+ readonly type: "uint256";
2288
+ }];
2289
+ readonly name: "getOfferVersionsCount";
2290
+ readonly outputs: readonly [{
2291
+ readonly internalType: "uint256";
2292
+ readonly name: "";
2293
+ readonly type: "uint256";
2294
+ }];
2295
+ readonly stateMutability: "view";
2296
+ readonly type: "function";
2178
2297
  }, {
2179
2298
  readonly inputs: readonly [{
2180
2299
  readonly internalType: "enum OfferType";
@@ -2234,7 +2353,7 @@ export declare const abi: readonly [{
2234
2353
  readonly type: "string";
2235
2354
  }, {
2236
2355
  readonly internalType: "string";
2237
- readonly name: "tlb";
2356
+ readonly name: "tlb_DEPRECATED";
2238
2357
  readonly type: "string";
2239
2358
  }, {
2240
2359
  readonly internalType: "string";
@@ -2279,6 +2398,10 @@ export declare const abi: readonly [{
2279
2398
  readonly internalType: "uint64";
2280
2399
  readonly name: "gpuCores";
2281
2400
  readonly type: "uint64";
2401
+ }, {
2402
+ readonly internalType: "uint64";
2403
+ readonly name: "vram";
2404
+ readonly type: "uint64";
2282
2405
  }];
2283
2406
  readonly internalType: "struct SlotInfo";
2284
2407
  readonly name: "";
@@ -2295,20 +2418,6 @@ export declare const abi: readonly [{
2295
2418
  }];
2296
2419
  readonly stateMutability: "view";
2297
2420
  readonly type: "function";
2298
- }, {
2299
- readonly inputs: readonly [{
2300
- readonly internalType: "uint256";
2301
- readonly name: "offerId";
2302
- readonly type: "uint256";
2303
- }];
2304
- readonly name: "getTeeOfferLastTlbAddedTime";
2305
- readonly outputs: readonly [{
2306
- readonly internalType: "uint256";
2307
- readonly name: "";
2308
- readonly type: "uint256";
2309
- }];
2310
- readonly stateMutability: "view";
2311
- readonly type: "function";
2312
2421
  }, {
2313
2422
  readonly inputs: readonly [{
2314
2423
  readonly internalType: "uint256";
@@ -2411,6 +2520,32 @@ export declare const abi: readonly [{
2411
2520
  }];
2412
2521
  readonly stateMutability: "view";
2413
2522
  readonly type: "function";
2523
+ }, {
2524
+ readonly inputs: readonly [{
2525
+ readonly internalType: "uint256";
2526
+ readonly name: "firstId";
2527
+ readonly type: "uint256";
2528
+ }, {
2529
+ readonly internalType: "uint64";
2530
+ readonly name: "firstVersion";
2531
+ readonly type: "uint64";
2532
+ }, {
2533
+ readonly internalType: "uint256";
2534
+ readonly name: "secondId";
2535
+ readonly type: "uint256";
2536
+ }, {
2537
+ readonly internalType: "uint64";
2538
+ readonly name: "secondVersion";
2539
+ readonly type: "uint64";
2540
+ }];
2541
+ readonly name: "isMagicallySameOfferVersion";
2542
+ readonly outputs: readonly [{
2543
+ readonly internalType: "bool";
2544
+ readonly name: "";
2545
+ readonly type: "bool";
2546
+ }];
2547
+ readonly stateMutability: "pure";
2548
+ readonly type: "function";
2414
2549
  }, {
2415
2550
  readonly inputs: readonly [{
2416
2551
  readonly internalType: "uint256";
@@ -2498,6 +2633,10 @@ export declare const abi: readonly [{
2498
2633
  readonly internalType: "uint256";
2499
2634
  readonly name: "otherOfferId";
2500
2635
  readonly type: "uint256";
2636
+ }, {
2637
+ readonly internalType: "uint64";
2638
+ readonly name: "otherOfferVersion";
2639
+ readonly type: "uint64";
2501
2640
  }];
2502
2641
  readonly name: "isOfferRestrictionsPermitOtherOffer";
2503
2642
  readonly outputs: readonly [{
@@ -2507,6 +2646,24 @@ export declare const abi: readonly [{
2507
2646
  }];
2508
2647
  readonly stateMutability: "view";
2509
2648
  readonly type: "function";
2649
+ }, {
2650
+ readonly inputs: readonly [{
2651
+ readonly internalType: "uint256";
2652
+ readonly name: "offerId";
2653
+ readonly type: "uint256";
2654
+ }, {
2655
+ readonly internalType: "uint64";
2656
+ readonly name: "version";
2657
+ readonly type: "uint64";
2658
+ }];
2659
+ readonly name: "isOfferVersionAvailable";
2660
+ readonly outputs: readonly [{
2661
+ readonly internalType: "bool";
2662
+ readonly name: "";
2663
+ readonly type: "bool";
2664
+ }];
2665
+ readonly stateMutability: "view";
2666
+ readonly type: "function";
2510
2667
  }, {
2511
2668
  readonly inputs: readonly [{
2512
2669
  readonly internalType: "uint256";
@@ -2713,6 +2870,10 @@ export declare const abi: readonly [{
2713
2870
  readonly internalType: "uint256";
2714
2871
  readonly name: "maxPriceSlippage";
2715
2872
  readonly type: "uint256";
2873
+ }, {
2874
+ readonly internalType: "uint64";
2875
+ readonly name: "offerVersion";
2876
+ readonly type: "uint64";
2716
2877
  }];
2717
2878
  readonly internalType: "struct OrderInfo";
2718
2879
  readonly name: "info";
@@ -2741,12 +2902,20 @@ export declare const abi: readonly [{
2741
2902
  }, {
2742
2903
  readonly components: readonly [{
2743
2904
  readonly internalType: "uint256[]";
2744
- readonly name: "inputOffers";
2905
+ readonly name: "inputOffersIds";
2745
2906
  readonly type: "uint256[]";
2746
2907
  }, {
2747
2908
  readonly internalType: "uint256";
2748
- readonly name: "outputOffer";
2909
+ readonly name: "outputOfferId";
2749
2910
  readonly type: "uint256";
2911
+ }, {
2912
+ readonly internalType: "uint64[]";
2913
+ readonly name: "inputOffersVersions";
2914
+ readonly type: "uint64[]";
2915
+ }, {
2916
+ readonly internalType: "uint64";
2917
+ readonly name: "outputOfferVersion";
2918
+ readonly type: "uint64";
2750
2919
  }];
2751
2920
  readonly internalType: "struct OrderArgs";
2752
2921
  readonly name: "args";
@@ -2806,6 +2975,10 @@ export declare const abi: readonly [{
2806
2975
  readonly internalType: "uint256";
2807
2976
  readonly name: "maxPriceSlippage";
2808
2977
  readonly type: "uint256";
2978
+ }, {
2979
+ readonly internalType: "uint64";
2980
+ readonly name: "offerVersion";
2981
+ readonly type: "uint64";
2809
2982
  }];
2810
2983
  readonly internalType: "struct OrderInfo";
2811
2984
  readonly name: "info";
@@ -2834,12 +3007,20 @@ export declare const abi: readonly [{
2834
3007
  }, {
2835
3008
  readonly components: readonly [{
2836
3009
  readonly internalType: "uint256[]";
2837
- readonly name: "inputOffers";
3010
+ readonly name: "inputOffersIds";
2838
3011
  readonly type: "uint256[]";
2839
3012
  }, {
2840
3013
  readonly internalType: "uint256";
2841
- readonly name: "outputOffer";
3014
+ readonly name: "outputOfferId";
2842
3015
  readonly type: "uint256";
3016
+ }, {
3017
+ readonly internalType: "uint64[]";
3018
+ readonly name: "inputOffersVersions";
3019
+ readonly type: "uint64[]";
3020
+ }, {
3021
+ readonly internalType: "uint64";
3022
+ readonly name: "outputOfferVersion";
3023
+ readonly type: "uint64";
2843
3024
  }];
2844
3025
  readonly internalType: "struct OrderArgs";
2845
3026
  readonly name: "args";
@@ -2899,6 +3080,10 @@ export declare const abi: readonly [{
2899
3080
  readonly internalType: "uint256";
2900
3081
  readonly name: "maxPriceSlippage";
2901
3082
  readonly type: "uint256";
3083
+ }, {
3084
+ readonly internalType: "uint64";
3085
+ readonly name: "offerVersion";
3086
+ readonly type: "uint64";
2902
3087
  }];
2903
3088
  readonly internalType: "struct OrderInfo";
2904
3089
  readonly name: "suborderInfo";
@@ -2927,12 +3112,20 @@ export declare const abi: readonly [{
2927
3112
  }, {
2928
3113
  readonly components: readonly [{
2929
3114
  readonly internalType: "uint256[]";
2930
- readonly name: "inputOffers";
3115
+ readonly name: "inputOffersIds";
2931
3116
  readonly type: "uint256[]";
2932
3117
  }, {
2933
3118
  readonly internalType: "uint256";
2934
- readonly name: "outputOffer";
3119
+ readonly name: "outputOfferId";
2935
3120
  readonly type: "uint256";
3121
+ }, {
3122
+ readonly internalType: "uint64[]";
3123
+ readonly name: "inputOffersVersions";
3124
+ readonly type: "uint64[]";
3125
+ }, {
3126
+ readonly internalType: "uint64";
3127
+ readonly name: "outputOfferVersion";
3128
+ readonly type: "uint64";
2936
3129
  }];
2937
3130
  readonly internalType: "struct OrderArgs";
2938
3131
  readonly name: "suborderArgs";
@@ -3001,6 +3194,10 @@ export declare const abi: readonly [{
3001
3194
  readonly internalType: "uint256";
3002
3195
  readonly name: "maxPriceSlippage";
3003
3196
  readonly type: "uint256";
3197
+ }, {
3198
+ readonly internalType: "uint64";
3199
+ readonly name: "offerVersion";
3200
+ readonly type: "uint64";
3004
3201
  }];
3005
3202
  readonly internalType: "struct OrderInfo";
3006
3203
  readonly name: "suborderInfo";
@@ -3029,12 +3226,20 @@ export declare const abi: readonly [{
3029
3226
  }, {
3030
3227
  readonly components: readonly [{
3031
3228
  readonly internalType: "uint256[]";
3032
- readonly name: "inputOffers";
3229
+ readonly name: "inputOffersIds";
3033
3230
  readonly type: "uint256[]";
3034
3231
  }, {
3035
3232
  readonly internalType: "uint256";
3036
- readonly name: "outputOffer";
3233
+ readonly name: "outputOfferId";
3037
3234
  readonly type: "uint256";
3235
+ }, {
3236
+ readonly internalType: "uint64[]";
3237
+ readonly name: "inputOffersVersions";
3238
+ readonly type: "uint64[]";
3239
+ }, {
3240
+ readonly internalType: "uint64";
3241
+ readonly name: "outputOfferVersion";
3242
+ readonly type: "uint64";
3038
3243
  }];
3039
3244
  readonly internalType: "struct OrderArgs";
3040
3245
  readonly name: "suborderArgs";
@@ -3146,12 +3351,30 @@ export declare const abi: readonly [{
3146
3351
  readonly internalType: "uint256";
3147
3352
  readonly name: "orderId";
3148
3353
  readonly type: "uint256";
3149
- }];
3150
- readonly name: "isOrderProfitAvailable";
3151
- readonly outputs: readonly [{
3152
- readonly internalType: "bool";
3153
- readonly name: "available";
3154
- readonly type: "bool";
3354
+ }, {
3355
+ readonly internalType: "uint256";
3356
+ readonly name: "amount";
3357
+ readonly type: "uint256";
3358
+ }];
3359
+ readonly name: "debitOrderDepositByApp";
3360
+ readonly outputs: readonly [{
3361
+ readonly internalType: "uint256";
3362
+ readonly name: "";
3363
+ readonly type: "uint256";
3364
+ }];
3365
+ readonly stateMutability: "nonpayable";
3366
+ readonly type: "function";
3367
+ }, {
3368
+ readonly inputs: readonly [{
3369
+ readonly internalType: "uint256";
3370
+ readonly name: "orderId";
3371
+ readonly type: "uint256";
3372
+ }];
3373
+ readonly name: "isOrderProfitAvailable";
3374
+ readonly outputs: readonly [{
3375
+ readonly internalType: "bool";
3376
+ readonly name: "available";
3377
+ readonly type: "bool";
3155
3378
  }, {
3156
3379
  readonly internalType: "uint256";
3157
3380
  readonly name: "profit";
@@ -3639,11 +3862,11 @@ export declare const abi: readonly [{
3639
3862
  readonly name: "subOfferId";
3640
3863
  readonly type: "uint256";
3641
3864
  }, {
3642
- readonly internalType: "enum OfferGroup";
3643
- readonly name: "subOfferGroup";
3644
- readonly type: "uint8";
3865
+ readonly internalType: "uint64";
3866
+ readonly name: "subOfferVersion";
3867
+ readonly type: "uint64";
3645
3868
  }];
3646
- readonly name: "checkOrderRestrictions";
3869
+ readonly name: "checkParentOrderArgsCompliesWithSubOfferRestrictions";
3647
3870
  readonly outputs: readonly [];
3648
3871
  readonly stateMutability: "view";
3649
3872
  readonly type: "function";
@@ -3733,6 +3956,10 @@ export declare const abi: readonly [{
3733
3956
  readonly internalType: "uint256";
3734
3957
  readonly name: "maxPriceSlippage";
3735
3958
  readonly type: "uint256";
3959
+ }, {
3960
+ readonly internalType: "uint64";
3961
+ readonly name: "offerVersion";
3962
+ readonly type: "uint64";
3736
3963
  }];
3737
3964
  readonly internalType: "struct OrderInfo";
3738
3965
  readonly name: "";
@@ -3763,12 +3990,20 @@ export declare const abi: readonly [{
3763
3990
  readonly outputs: readonly [{
3764
3991
  readonly components: readonly [{
3765
3992
  readonly internalType: "uint256[]";
3766
- readonly name: "inputOffers";
3993
+ readonly name: "inputOffersIds";
3767
3994
  readonly type: "uint256[]";
3768
3995
  }, {
3769
3996
  readonly internalType: "uint256";
3770
- readonly name: "outputOffer";
3997
+ readonly name: "outputOfferId";
3771
3998
  readonly type: "uint256";
3999
+ }, {
4000
+ readonly internalType: "uint64[]";
4001
+ readonly name: "inputOffersVersions";
4002
+ readonly type: "uint64[]";
4003
+ }, {
4004
+ readonly internalType: "uint64";
4005
+ readonly name: "outputOfferVersion";
4006
+ readonly type: "uint64";
3772
4007
  }];
3773
4008
  readonly internalType: "struct OrderArgs";
3774
4009
  readonly name: "";
@@ -3776,6 +4011,20 @@ export declare const abi: readonly [{
3776
4011
  }];
3777
4012
  readonly stateMutability: "view";
3778
4013
  readonly type: "function";
4014
+ }, {
4015
+ readonly inputs: readonly [{
4016
+ readonly internalType: "uint256";
4017
+ readonly name: "orderId";
4018
+ readonly type: "uint256";
4019
+ }];
4020
+ readonly name: "getOrderConsumer";
4021
+ readonly outputs: readonly [{
4022
+ readonly internalType: "address";
4023
+ readonly name: "";
4024
+ readonly type: "address";
4025
+ }];
4026
+ readonly stateMutability: "view";
4027
+ readonly type: "function";
3779
4028
  }, {
3780
4029
  readonly inputs: readonly [{
3781
4030
  readonly internalType: "uint256";
@@ -3930,6 +4179,10 @@ export declare const abi: readonly [{
3930
4179
  readonly internalType: "uint64";
3931
4180
  readonly name: "gpuCores";
3932
4181
  readonly type: "uint64";
4182
+ }, {
4183
+ readonly internalType: "uint64";
4184
+ readonly name: "vram";
4185
+ readonly type: "uint64";
3933
4186
  }];
3934
4187
  readonly internalType: "struct SlotInfo";
3935
4188
  readonly name: "";
@@ -5088,8 +5341,22 @@ export declare const abi: readonly [{
5088
5341
  readonly type: "string";
5089
5342
  }];
5090
5343
  readonly internalType: "struct OptionInfo";
5091
- readonly name: "info";
5344
+ readonly name: "newInfo";
5092
5345
  readonly type: "tuple";
5346
+ }];
5347
+ readonly name: "updateOptionInfo";
5348
+ readonly outputs: readonly [];
5349
+ readonly stateMutability: "nonpayable";
5350
+ readonly type: "function";
5351
+ }, {
5352
+ readonly inputs: readonly [{
5353
+ readonly internalType: "uint256";
5354
+ readonly name: "teeOfferId";
5355
+ readonly type: "uint256";
5356
+ }, {
5357
+ readonly internalType: "uint256";
5358
+ readonly name: "optionId";
5359
+ readonly type: "uint256";
5093
5360
  }, {
5094
5361
  readonly components: readonly [{
5095
5362
  readonly internalType: "enum PriceType";
@@ -5109,10 +5376,10 @@ export declare const abi: readonly [{
5109
5376
  readonly type: "uint64";
5110
5377
  }];
5111
5378
  readonly internalType: "struct SlotUsage";
5112
- readonly name: "usage";
5379
+ readonly name: "newUsage";
5113
5380
  readonly type: "tuple";
5114
5381
  }];
5115
- readonly name: "updateOption";
5382
+ readonly name: "updateOptionUsage";
5116
5383
  readonly outputs: readonly [];
5117
5384
  readonly stateMutability: "nonpayable";
5118
5385
  readonly type: "function";
@@ -5197,6 +5464,10 @@ export declare const abi: readonly [{
5197
5464
  readonly internalType: "uint64";
5198
5465
  readonly name: "gpuCores";
5199
5466
  readonly type: "uint64";
5467
+ }, {
5468
+ readonly internalType: "uint64";
5469
+ readonly name: "vram";
5470
+ readonly type: "uint64";
5200
5471
  }];
5201
5472
  readonly internalType: "struct SlotInfo";
5202
5473
  readonly name: "info";
@@ -5284,6 +5555,10 @@ export declare const abi: readonly [{
5284
5555
  readonly internalType: "uint64";
5285
5556
  readonly name: "gpuCores";
5286
5557
  readonly type: "uint64";
5558
+ }, {
5559
+ readonly internalType: "uint64";
5560
+ readonly name: "vram";
5561
+ readonly type: "uint64";
5287
5562
  }];
5288
5563
  readonly internalType: "struct SlotInfo";
5289
5564
  readonly name: "info";
@@ -5353,6 +5628,10 @@ export declare const abi: readonly [{
5353
5628
  readonly internalType: "uint64";
5354
5629
  readonly name: "gpuCores";
5355
5630
  readonly type: "uint64";
5631
+ }, {
5632
+ readonly internalType: "uint64";
5633
+ readonly name: "vram";
5634
+ readonly type: "uint64";
5356
5635
  }];
5357
5636
  readonly internalType: "struct SlotInfo";
5358
5637
  readonly name: "info";
@@ -5453,10 +5732,28 @@ export declare const abi: readonly [{
5453
5732
  readonly internalType: "uint64";
5454
5733
  readonly name: "gpuCores";
5455
5734
  readonly type: "uint64";
5735
+ }, {
5736
+ readonly internalType: "uint64";
5737
+ readonly name: "vram";
5738
+ readonly type: "uint64";
5456
5739
  }];
5457
5740
  readonly internalType: "struct SlotInfo";
5458
- readonly name: "info";
5741
+ readonly name: "newInfo";
5459
5742
  readonly type: "tuple";
5743
+ }];
5744
+ readonly name: "updateTeeOfferSlotInfo";
5745
+ readonly outputs: readonly [];
5746
+ readonly stateMutability: "nonpayable";
5747
+ readonly type: "function";
5748
+ }, {
5749
+ readonly inputs: readonly [{
5750
+ readonly internalType: "uint256";
5751
+ readonly name: "teeOfferId";
5752
+ readonly type: "uint256";
5753
+ }, {
5754
+ readonly internalType: "uint256";
5755
+ readonly name: "slotId";
5756
+ readonly type: "uint256";
5460
5757
  }, {
5461
5758
  readonly components: readonly [{
5462
5759
  readonly internalType: "enum PriceType";
@@ -5476,10 +5773,10 @@ export declare const abi: readonly [{
5476
5773
  readonly type: "uint64";
5477
5774
  }];
5478
5775
  readonly internalType: "struct SlotUsage";
5479
- readonly name: "usage";
5776
+ readonly name: "newUsage";
5480
5777
  readonly type: "tuple";
5481
5778
  }];
5482
- readonly name: "updateTeeOfferSlot";
5779
+ readonly name: "updateTeeOfferSlotUsage";
5483
5780
  readonly outputs: readonly [];
5484
5781
  readonly stateMutability: "nonpayable";
5485
5782
  readonly type: "function";
@@ -5557,7 +5854,7 @@ export declare const abi: readonly [{
5557
5854
  readonly name: "teeOfferId";
5558
5855
  readonly type: "uint256";
5559
5856
  }];
5560
- readonly name: "confisacateAllRewards";
5857
+ readonly name: "confiscateAllRewards";
5561
5858
  readonly outputs: readonly [];
5562
5859
  readonly stateMutability: "nonpayable";
5563
5860
  readonly type: "function";
@@ -5782,6 +6079,10 @@ export declare const abi: readonly [{
5782
6079
  readonly internalType: "uint64";
5783
6080
  readonly name: "gpuCores";
5784
6081
  readonly type: "uint64";
6082
+ }, {
6083
+ readonly internalType: "uint64";
6084
+ readonly name: "vram";
6085
+ readonly type: "uint64";
5785
6086
  }];
5786
6087
  readonly internalType: "struct SlotInfo";
5787
6088
  readonly name: "info";
@@ -5882,6 +6183,10 @@ export declare const abi: readonly [{
5882
6183
  readonly internalType: "uint64";
5883
6184
  readonly name: "gpuCores";
5884
6185
  readonly type: "uint64";
6186
+ }, {
6187
+ readonly internalType: "uint64";
6188
+ readonly name: "vram";
6189
+ readonly type: "uint64";
5885
6190
  }];
5886
6191
  readonly internalType: "struct SlotInfo";
5887
6192
  readonly name: "info";
@@ -5960,6 +6265,10 @@ export declare const abi: readonly [{
5960
6265
  readonly internalType: "uint64";
5961
6266
  readonly name: "gpuCores";
5962
6267
  readonly type: "uint64";
6268
+ }, {
6269
+ readonly internalType: "uint64";
6270
+ readonly name: "vram";
6271
+ readonly type: "uint64";
5963
6272
  }];
5964
6273
  readonly internalType: "struct SlotInfo";
5965
6274
  readonly name: "info";
@@ -6069,10 +6378,28 @@ export declare const abi: readonly [{
6069
6378
  readonly internalType: "uint64";
6070
6379
  readonly name: "gpuCores";
6071
6380
  readonly type: "uint64";
6381
+ }, {
6382
+ readonly internalType: "uint64";
6383
+ readonly name: "vram";
6384
+ readonly type: "uint64";
6072
6385
  }];
6073
6386
  readonly internalType: "struct SlotInfo";
6074
- readonly name: "info";
6387
+ readonly name: "newInfo";
6075
6388
  readonly type: "tuple";
6389
+ }];
6390
+ readonly name: "updateValueOfferSlotInfo";
6391
+ readonly outputs: readonly [];
6392
+ readonly stateMutability: "nonpayable";
6393
+ readonly type: "function";
6394
+ }, {
6395
+ readonly inputs: readonly [{
6396
+ readonly internalType: "uint256";
6397
+ readonly name: "offerId";
6398
+ readonly type: "uint256";
6399
+ }, {
6400
+ readonly internalType: "uint256";
6401
+ readonly name: "slotId";
6402
+ readonly type: "uint256";
6076
6403
  }, {
6077
6404
  readonly components: readonly [{
6078
6405
  readonly internalType: "string";
@@ -6080,8 +6407,22 @@ export declare const abi: readonly [{
6080
6407
  readonly type: "string";
6081
6408
  }];
6082
6409
  readonly internalType: "struct OptionInfo";
6083
- readonly name: "option";
6410
+ readonly name: "newOption";
6084
6411
  readonly type: "tuple";
6412
+ }];
6413
+ readonly name: "updateValueOfferSlotOption";
6414
+ readonly outputs: readonly [];
6415
+ readonly stateMutability: "nonpayable";
6416
+ readonly type: "function";
6417
+ }, {
6418
+ readonly inputs: readonly [{
6419
+ readonly internalType: "uint256";
6420
+ readonly name: "offerId";
6421
+ readonly type: "uint256";
6422
+ }, {
6423
+ readonly internalType: "uint256";
6424
+ readonly name: "slotId";
6425
+ readonly type: "uint256";
6085
6426
  }, {
6086
6427
  readonly components: readonly [{
6087
6428
  readonly internalType: "enum PriceType";
@@ -6101,10 +6442,10 @@ export declare const abi: readonly [{
6101
6442
  readonly type: "uint64";
6102
6443
  }];
6103
6444
  readonly internalType: "struct SlotUsage";
6104
- readonly name: "usage";
6445
+ readonly name: "newUsage";
6105
6446
  readonly type: "tuple";
6106
6447
  }];
6107
- readonly name: "updateValueOfferSlot";
6448
+ readonly name: "updateValueOfferSlotUsage";
6108
6449
  readonly outputs: readonly [];
6109
6450
  readonly stateMutability: "nonpayable";
6110
6451
  readonly type: "function";
@@ -6152,6 +6493,10 @@ export declare const abi: readonly [{
6152
6493
  readonly internalType: "uint256";
6153
6494
  readonly name: "maxPriceSlippage";
6154
6495
  readonly type: "uint256";
6496
+ }, {
6497
+ readonly internalType: "uint64";
6498
+ readonly name: "offerVersion";
6499
+ readonly type: "uint64";
6155
6500
  }];
6156
6501
  readonly internalType: "struct OrderInfo";
6157
6502
  readonly name: "parentOrderInfo";
@@ -6180,12 +6525,20 @@ export declare const abi: readonly [{
6180
6525
  }, {
6181
6526
  readonly components: readonly [{
6182
6527
  readonly internalType: "uint256[]";
6183
- readonly name: "inputOffers";
6528
+ readonly name: "inputOffersIds";
6184
6529
  readonly type: "uint256[]";
6185
6530
  }, {
6186
6531
  readonly internalType: "uint256";
6187
- readonly name: "outputOffer";
6532
+ readonly name: "outputOfferId";
6188
6533
  readonly type: "uint256";
6534
+ }, {
6535
+ readonly internalType: "uint64[]";
6536
+ readonly name: "inputOffersVersions";
6537
+ readonly type: "uint64[]";
6538
+ }, {
6539
+ readonly internalType: "uint64";
6540
+ readonly name: "outputOfferVersion";
6541
+ readonly type: "uint64";
6189
6542
  }];
6190
6543
  readonly internalType: "struct OrderArgs";
6191
6544
  readonly name: "parentOrderArgs";
@@ -6227,6 +6580,10 @@ export declare const abi: readonly [{
6227
6580
  readonly internalType: "uint256";
6228
6581
  readonly name: "maxPriceSlippage";
6229
6582
  readonly type: "uint256";
6583
+ }, {
6584
+ readonly internalType: "uint64";
6585
+ readonly name: "offerVersion";
6586
+ readonly type: "uint64";
6230
6587
  }];
6231
6588
  readonly internalType: "struct OrderInfo[]";
6232
6589
  readonly name: "subOrdersInfos";
@@ -6255,12 +6612,20 @@ export declare const abi: readonly [{
6255
6612
  }, {
6256
6613
  readonly components: readonly [{
6257
6614
  readonly internalType: "uint256[]";
6258
- readonly name: "inputOffers";
6615
+ readonly name: "inputOffersIds";
6259
6616
  readonly type: "uint256[]";
6260
6617
  }, {
6261
6618
  readonly internalType: "uint256";
6262
- readonly name: "outputOffer";
6619
+ readonly name: "outputOfferId";
6263
6620
  readonly type: "uint256";
6621
+ }, {
6622
+ readonly internalType: "uint64[]";
6623
+ readonly name: "inputOffersVersions";
6624
+ readonly type: "uint64[]";
6625
+ }, {
6626
+ readonly internalType: "uint64";
6627
+ readonly name: "outputOfferVersion";
6628
+ readonly type: "uint64";
6264
6629
  }];
6265
6630
  readonly internalType: "struct OrderArgs[]";
6266
6631
  readonly name: "subOrdersArgs";
@@ -6675,16 +7040,6 @@ export declare const abi: readonly [{
6675
7040
  }];
6676
7041
  readonly name: "LoaderSessionKeyUpdated";
6677
7042
  readonly type: "event";
6678
- }, {
6679
- readonly inputs: readonly [{
6680
- readonly internalType: "uint256";
6681
- readonly name: "teeOfferId";
6682
- readonly type: "uint256";
6683
- }];
6684
- readonly name: "disableLoader";
6685
- readonly outputs: readonly [];
6686
- readonly stateMutability: "nonpayable";
6687
- readonly type: "function";
6688
7043
  }, {
6689
7044
  readonly inputs: readonly [];
6690
7045
  readonly name: "getDisabledLoaders";
@@ -6753,6 +7108,16 @@ export declare const abi: readonly [{
6753
7108
  }];
6754
7109
  readonly stateMutability: "view";
6755
7110
  readonly type: "function";
7111
+ }, {
7112
+ readonly inputs: readonly [{
7113
+ readonly internalType: "uint256";
7114
+ readonly name: "teeOfferId";
7115
+ readonly type: "uint256";
7116
+ }];
7117
+ readonly name: "removeLoaderKeys";
7118
+ readonly outputs: readonly [];
7119
+ readonly stateMutability: "nonpayable";
7120
+ readonly type: "function";
6756
7121
  }, {
6757
7122
  readonly inputs: readonly [{
6758
7123
  readonly components: readonly [{
@@ -6955,11 +7320,7 @@ export declare const abi: readonly [{
6955
7320
  readonly type: "uint32";
6956
7321
  }];
6957
7322
  readonly name: "createResourceOrder";
6958
- readonly outputs: readonly [{
6959
- readonly internalType: "uint256";
6960
- readonly name: "orderId";
6961
- readonly type: "uint256";
6962
- }];
7323
+ readonly outputs: readonly [];
6963
7324
  readonly stateMutability: "nonpayable";
6964
7325
  readonly type: "function";
6965
7326
  }, {
@@ -7035,6 +7396,18 @@ export declare const abi: readonly [{
7035
7396
  readonly internalType: "string";
7036
7397
  readonly name: "signedEncryptedData";
7037
7398
  readonly type: "string";
7399
+ }, {
7400
+ readonly internalType: "enum OfferType";
7401
+ readonly name: "offerType";
7402
+ readonly type: "uint8";
7403
+ }, {
7404
+ readonly internalType: "string";
7405
+ readonly name: "solutionHash";
7406
+ readonly type: "string";
7407
+ }, {
7408
+ readonly internalType: "bool";
7409
+ readonly name: "previousDataCopied";
7410
+ readonly type: "bool";
7038
7411
  }];
7039
7412
  readonly internalType: "struct OfferResource";
7040
7413
  readonly name: "";
@@ -7045,14 +7418,10 @@ export declare const abi: readonly [{
7045
7418
  }, {
7046
7419
  readonly inputs: readonly [{
7047
7420
  readonly internalType: "uint256";
7048
- readonly name: "offerId";
7421
+ readonly name: "teeOfferIssuerId";
7049
7422
  readonly type: "uint256";
7050
- }, {
7051
- readonly internalType: "uint64";
7052
- readonly name: "version";
7053
- readonly type: "uint64";
7054
7423
  }];
7055
- readonly name: "getOfferResourcesByOfferVersion";
7424
+ readonly name: "getOfferResourcesByIssuerId";
7056
7425
  readonly outputs: readonly [{
7057
7426
  readonly components: readonly [{
7058
7427
  readonly internalType: "uint256";
@@ -7107,6 +7476,18 @@ export declare const abi: readonly [{
7107
7476
  readonly internalType: "string";
7108
7477
  readonly name: "signedEncryptedData";
7109
7478
  readonly type: "string";
7479
+ }, {
7480
+ readonly internalType: "enum OfferType";
7481
+ readonly name: "offerType";
7482
+ readonly type: "uint8";
7483
+ }, {
7484
+ readonly internalType: "string";
7485
+ readonly name: "solutionHash";
7486
+ readonly type: "string";
7487
+ }, {
7488
+ readonly internalType: "bool";
7489
+ readonly name: "previousDataCopied";
7490
+ readonly type: "bool";
7110
7491
  }];
7111
7492
  readonly internalType: "struct OfferResource[]";
7112
7493
  readonly name: "";
@@ -7117,10 +7498,10 @@ export declare const abi: readonly [{
7117
7498
  }, {
7118
7499
  readonly inputs: readonly [{
7119
7500
  readonly internalType: "uint256";
7120
- readonly name: "teeOfferIssuerId";
7501
+ readonly name: "teeKeeperId";
7121
7502
  readonly type: "uint256";
7122
7503
  }];
7123
- readonly name: "getOfferResourcesByIssuerId";
7504
+ readonly name: "getOfferResourcesByKeeperId";
7124
7505
  readonly outputs: readonly [{
7125
7506
  readonly components: readonly [{
7126
7507
  readonly internalType: "uint256";
@@ -7175,6 +7556,18 @@ export declare const abi: readonly [{
7175
7556
  readonly internalType: "string";
7176
7557
  readonly name: "signedEncryptedData";
7177
7558
  readonly type: "string";
7559
+ }, {
7560
+ readonly internalType: "enum OfferType";
7561
+ readonly name: "offerType";
7562
+ readonly type: "uint8";
7563
+ }, {
7564
+ readonly internalType: "string";
7565
+ readonly name: "solutionHash";
7566
+ readonly type: "string";
7567
+ }, {
7568
+ readonly internalType: "bool";
7569
+ readonly name: "previousDataCopied";
7570
+ readonly type: "bool";
7178
7571
  }];
7179
7572
  readonly internalType: "struct OfferResource[]";
7180
7573
  readonly name: "";
@@ -7185,10 +7578,14 @@ export declare const abi: readonly [{
7185
7578
  }, {
7186
7579
  readonly inputs: readonly [{
7187
7580
  readonly internalType: "uint256";
7188
- readonly name: "teeKeeperId";
7581
+ readonly name: "offerId";
7189
7582
  readonly type: "uint256";
7583
+ }, {
7584
+ readonly internalType: "uint64";
7585
+ readonly name: "version";
7586
+ readonly type: "uint64";
7190
7587
  }];
7191
- readonly name: "getOfferResourcesByKeeperId";
7588
+ readonly name: "getOfferResourcesByOfferVersion";
7192
7589
  readonly outputs: readonly [{
7193
7590
  readonly components: readonly [{
7194
7591
  readonly internalType: "uint256";
@@ -7243,6 +7640,18 @@ export declare const abi: readonly [{
7243
7640
  readonly internalType: "string";
7244
7641
  readonly name: "signedEncryptedData";
7245
7642
  readonly type: "string";
7643
+ }, {
7644
+ readonly internalType: "enum OfferType";
7645
+ readonly name: "offerType";
7646
+ readonly type: "uint8";
7647
+ }, {
7648
+ readonly internalType: "string";
7649
+ readonly name: "solutionHash";
7650
+ readonly type: "string";
7651
+ }, {
7652
+ readonly internalType: "bool";
7653
+ readonly name: "previousDataCopied";
7654
+ readonly type: "bool";
7246
7655
  }];
7247
7656
  readonly internalType: "struct OfferResource[]";
7248
7657
  readonly name: "";
@@ -7264,6 +7673,24 @@ export declare const abi: readonly [{
7264
7673
  }];
7265
7674
  readonly stateMutability: "view";
7266
7675
  readonly type: "function";
7676
+ }, {
7677
+ readonly inputs: readonly [{
7678
+ readonly internalType: "uint256";
7679
+ readonly name: "offerId";
7680
+ readonly type: "uint256";
7681
+ }, {
7682
+ readonly internalType: "uint32";
7683
+ readonly name: "offerVersion";
7684
+ readonly type: "uint32";
7685
+ }];
7686
+ readonly name: "getReplicationFactorFulfilled";
7687
+ readonly outputs: readonly [{
7688
+ readonly internalType: "uint32";
7689
+ readonly name: "";
7690
+ readonly type: "uint32";
7691
+ }];
7692
+ readonly stateMutability: "view";
7693
+ readonly type: "function";
7267
7694
  }, {
7268
7695
  readonly inputs: readonly [{
7269
7696
  readonly components: readonly [{
@@ -7319,6 +7746,98 @@ export declare const abi: readonly [{
7319
7746
  readonly internalType: "string";
7320
7747
  readonly name: "signedEncryptedData";
7321
7748
  readonly type: "string";
7749
+ }, {
7750
+ readonly internalType: "enum OfferType";
7751
+ readonly name: "offerType";
7752
+ readonly type: "uint8";
7753
+ }, {
7754
+ readonly internalType: "string";
7755
+ readonly name: "solutionHash";
7756
+ readonly type: "string";
7757
+ }, {
7758
+ readonly internalType: "bool";
7759
+ readonly name: "previousDataCopied";
7760
+ readonly type: "bool";
7761
+ }];
7762
+ readonly internalType: "struct OfferResource";
7763
+ readonly name: "resource";
7764
+ readonly type: "tuple";
7765
+ }, {
7766
+ readonly internalType: "uint32";
7767
+ readonly name: "n";
7768
+ readonly type: "uint32";
7769
+ }];
7770
+ readonly name: "incrementReplicationFactor";
7771
+ readonly outputs: readonly [];
7772
+ readonly stateMutability: "nonpayable";
7773
+ readonly type: "function";
7774
+ }, {
7775
+ readonly inputs: readonly [{
7776
+ readonly components: readonly [{
7777
+ readonly internalType: "uint256";
7778
+ readonly name: "offerId";
7779
+ readonly type: "uint256";
7780
+ }, {
7781
+ readonly internalType: "uint256";
7782
+ readonly name: "teeOfferIssuerId";
7783
+ readonly type: "uint256";
7784
+ }, {
7785
+ readonly internalType: "uint256";
7786
+ readonly name: "teeOfferKeeperId";
7787
+ readonly type: "uint256";
7788
+ }, {
7789
+ readonly internalType: "uint256";
7790
+ readonly name: "storageOrderId";
7791
+ readonly type: "uint256";
7792
+ }, {
7793
+ readonly internalType: "uint64";
7794
+ readonly name: "offerVersion";
7795
+ readonly type: "uint64";
7796
+ }, {
7797
+ readonly internalType: "uint32";
7798
+ readonly name: "timestamp";
7799
+ readonly type: "uint32";
7800
+ }, {
7801
+ readonly internalType: "uint32";
7802
+ readonly name: "signedTime";
7803
+ readonly type: "uint32";
7804
+ }, {
7805
+ readonly components: readonly [{
7806
+ readonly internalType: "string";
7807
+ readonly name: "der";
7808
+ readonly type: "string";
7809
+ }, {
7810
+ readonly internalType: "bytes32";
7811
+ readonly name: "r";
7812
+ readonly type: "bytes32";
7813
+ }, {
7814
+ readonly internalType: "bytes32";
7815
+ readonly name: "s";
7816
+ readonly type: "bytes32";
7817
+ }, {
7818
+ readonly internalType: "uint8";
7819
+ readonly name: "v";
7820
+ readonly type: "uint8";
7821
+ }];
7822
+ readonly internalType: "struct Signature";
7823
+ readonly name: "signature";
7824
+ readonly type: "tuple";
7825
+ }, {
7826
+ readonly internalType: "string";
7827
+ readonly name: "signedEncryptedData";
7828
+ readonly type: "string";
7829
+ }, {
7830
+ readonly internalType: "enum OfferType";
7831
+ readonly name: "offerType";
7832
+ readonly type: "uint8";
7833
+ }, {
7834
+ readonly internalType: "string";
7835
+ readonly name: "solutionHash";
7836
+ readonly type: "string";
7837
+ }, {
7838
+ readonly internalType: "bool";
7839
+ readonly name: "previousDataCopied";
7840
+ readonly type: "bool";
7322
7841
  }];
7323
7842
  readonly internalType: "struct OfferResource";
7324
7843
  readonly name: "resource";
@@ -7356,6 +7875,14 @@ export declare const abi: readonly [{
7356
7875
  readonly internalType: "uint32";
7357
7876
  readonly name: "timestamp";
7358
7877
  readonly type: "uint32";
7878
+ }, {
7879
+ readonly internalType: "uint64";
7880
+ readonly name: "offerVersion";
7881
+ readonly type: "uint64";
7882
+ }, {
7883
+ readonly internalType: "uint256";
7884
+ readonly name: "offerId";
7885
+ readonly type: "uint256";
7359
7886
  }];
7360
7887
  readonly internalType: "struct OfferStorageAllocated";
7361
7888
  readonly name: "";
@@ -7363,6 +7890,45 @@ export declare const abi: readonly [{
7363
7890
  }];
7364
7891
  readonly stateMutability: "view";
7365
7892
  readonly type: "function";
7893
+ }, {
7894
+ readonly inputs: readonly [{
7895
+ readonly internalType: "uint256";
7896
+ readonly name: "teeOfferIssurId";
7897
+ readonly type: "uint256";
7898
+ }];
7899
+ readonly name: "getStorageOrdersAllocatedByIssuer";
7900
+ readonly outputs: readonly [{
7901
+ readonly components: readonly [{
7902
+ readonly internalType: "uint256";
7903
+ readonly name: "teeOfferIssuerId";
7904
+ readonly type: "uint256";
7905
+ }, {
7906
+ readonly internalType: "uint256";
7907
+ readonly name: "storageOrderId";
7908
+ readonly type: "uint256";
7909
+ }, {
7910
+ readonly internalType: "uint32";
7911
+ readonly name: "distributionReplicationFactor";
7912
+ readonly type: "uint32";
7913
+ }, {
7914
+ readonly internalType: "uint32";
7915
+ readonly name: "timestamp";
7916
+ readonly type: "uint32";
7917
+ }, {
7918
+ readonly internalType: "uint64";
7919
+ readonly name: "offerVersion";
7920
+ readonly type: "uint64";
7921
+ }, {
7922
+ readonly internalType: "uint256";
7923
+ readonly name: "offerId";
7924
+ readonly type: "uint256";
7925
+ }];
7926
+ readonly internalType: "struct OfferStorageAllocated[]";
7927
+ readonly name: "";
7928
+ readonly type: "tuple[]";
7929
+ }];
7930
+ readonly stateMutability: "view";
7931
+ readonly type: "function";
7366
7932
  }, {
7367
7933
  readonly anonymous: false;
7368
7934
  readonly inputs: readonly [{
@@ -7470,6 +8036,10 @@ export declare const abi: readonly [{
7470
8036
  readonly internalType: "uint32";
7471
8037
  readonly name: "timestamp";
7472
8038
  readonly type: "uint32";
8039
+ }, {
8040
+ readonly internalType: "bool";
8041
+ readonly name: "copyPreviousData";
8042
+ readonly type: "bool";
7473
8043
  }];
7474
8044
  readonly internalType: "struct OfferStorageRequest[]";
7475
8045
  readonly name: "";
@@ -7525,6 +8095,10 @@ export declare const abi: readonly [{
7525
8095
  readonly internalType: "uint32";
7526
8096
  readonly name: "timestamp";
7527
8097
  readonly type: "uint32";
8098
+ }, {
8099
+ readonly internalType: "bool";
8100
+ readonly name: "copyPreviousData";
8101
+ readonly type: "bool";
7528
8102
  }];
7529
8103
  readonly internalType: "struct OfferStorageRequest";
7530
8104
  readonly name: "";
@@ -7570,6 +8144,10 @@ export declare const abi: readonly [{
7570
8144
  readonly internalType: "uint32";
7571
8145
  readonly name: "timestamp";
7572
8146
  readonly type: "uint32";
8147
+ }, {
8148
+ readonly internalType: "bool";
8149
+ readonly name: "copyPreviousData";
8150
+ readonly type: "bool";
7573
8151
  }];
7574
8152
  readonly internalType: "struct OfferStorageRequest";
7575
8153
  readonly name: "request";