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

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 (208) 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 +711 -93
  15. package/dist/cjs/contracts/abi.js +903 -111
  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 +35 -13
  33. package/dist/cjs/models/TeeOffer.js +117 -45
  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 +5 -38
  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 +11 -3
  81. package/dist/cjs/types/Offer.js +10 -2
  82. package/dist/cjs/types/OfferVersion.d.ts +13 -0
  83. package/dist/cjs/types/OfferVersion.js +9 -0
  84. package/dist/cjs/types/Order.d.ts +7 -2
  85. package/dist/cjs/types/Order.js +3 -1
  86. package/dist/cjs/types/SlotInfo.d.ts +1 -0
  87. package/dist/cjs/types/Superpro.d.ts +2 -1
  88. package/dist/cjs/types/Superpro.js +2 -1
  89. package/dist/cjs/types/TeeOfferInfo.d.ts +2 -1
  90. package/dist/cjs/types/index.d.ts +1 -0
  91. package/dist/cjs/types/index.js +2 -1
  92. package/dist/cjs/types/storage/StorageAccess.d.ts +3 -3
  93. package/dist/cjs/utils/CryptoKeysTransformer.d.ts +7 -1
  94. package/dist/cjs/utils/CryptoKeysTransformer.js +66 -7
  95. package/dist/cjs/utils/NonceTracker.js +1 -1
  96. package/dist/cjs/utils/helper.d.ts +7 -1
  97. package/dist/cjs/utils/helper.js +87 -2
  98. package/dist/cjs/utils/helpers/OrderArgsHelper.d.ts +16 -0
  99. package/dist/cjs/utils/helpers/OrderArgsHelper.js +59 -0
  100. package/dist/cjs/utils/helpers/index.d.ts +2 -0
  101. package/dist/cjs/utils/helpers/index.js +3 -1
  102. package/dist/cjs/utils/helpers/uploadObjectToStorage.d.ts +13 -0
  103. package/dist/cjs/utils/helpers/uploadObjectToStorage.js +55 -0
  104. package/dist/mjs/RIGenerator.d.ts +1 -0
  105. package/dist/mjs/RIGenerator.js +2 -1
  106. package/dist/mjs/TIIGenerator.d.ts +2 -1
  107. package/dist/mjs/TIIGenerator.js +13 -3
  108. package/dist/mjs/TeeInputGeneratorBase.d.ts +1 -1
  109. package/dist/mjs/TeeInputGeneratorBase.js +20 -32
  110. package/dist/mjs/analytics/eventProviders/BrowserEventProvider.d.ts +1 -0
  111. package/dist/mjs/analytics/eventProviders/BrowserEventProvider.js +3 -3
  112. package/dist/mjs/analytics/transports/AxiosTransport.js +1 -1
  113. package/dist/mjs/config.d.ts +0 -1
  114. package/dist/mjs/config.js +1 -2
  115. package/dist/mjs/constants.d.ts +5 -4
  116. package/dist/mjs/constants.js +30 -6
  117. package/dist/mjs/contracts/abi.d.ts +711 -93
  118. package/dist/mjs/contracts/abi.js +903 -111
  119. package/dist/mjs/crypto/index.d.ts +1 -0
  120. package/dist/mjs/crypto/index.js +2 -1
  121. package/dist/mjs/errors/base.error.d.ts +3 -0
  122. package/dist/mjs/errors/base.error.js +15 -0
  123. package/dist/mjs/errors/index.d.ts +2 -0
  124. package/dist/mjs/errors/index.js +3 -0
  125. package/dist/mjs/errors/not-found.error.d.ts +3 -0
  126. package/dist/mjs/errors/not-found.error.js +4 -0
  127. package/dist/mjs/errors/utils.d.ts +1 -0
  128. package/dist/mjs/errors/utils.js +18 -0
  129. package/dist/mjs/index.d.ts +8 -1
  130. package/dist/mjs/index.js +8 -2
  131. package/dist/mjs/models/Offer.d.ts +40 -4
  132. package/dist/mjs/models/Offer.js +116 -12
  133. package/dist/mjs/models/Provider.js +1 -1
  134. package/dist/mjs/models/TCB.js +13 -5
  135. package/dist/mjs/models/TeeOffer.d.ts +35 -13
  136. package/dist/mjs/models/TeeOffer.js +113 -41
  137. package/dist/mjs/proto/TRI.d.ts +39 -4
  138. package/dist/mjs/proto/TRI.js +18 -1
  139. package/dist/mjs/providers/storage/IStorageProvider.d.ts +1 -1
  140. package/dist/mjs/providers/storage/S3StorageProvider.d.ts +8 -7
  141. package/dist/mjs/providers/storage/S3StorageProvider.js +77 -38
  142. package/dist/mjs/providers/storage/StorageAdapter.d.ts +9 -7
  143. package/dist/mjs/providers/storage/StorageAdapter.js +27 -29
  144. package/dist/mjs/providers/storage/StorageContentWriter.d.ts +2 -2
  145. package/dist/mjs/providers/storage/StorageContentWriter.js +5 -5
  146. package/dist/mjs/providers/storage/StorageKeyValueAdapter.d.ts +8 -5
  147. package/dist/mjs/providers/storage/StorageKeyValueAdapter.js +30 -16
  148. package/dist/mjs/providers/storage/StorjAdapter.d.ts +5 -4
  149. package/dist/mjs/providers/storage/StorjAdapter.js +15 -9
  150. package/dist/mjs/providers/storage/StorjCredentialsManager.d.ts +24 -0
  151. package/dist/mjs/providers/storage/StorjCredentialsManager.js +82 -0
  152. package/dist/mjs/providers/storage/StorjStorageProvider.js +2 -2
  153. package/dist/mjs/providers/storage/fs-storage-provider.d.ts +19 -0
  154. package/dist/mjs/providers/storage/fs-storage-provider.js +113 -0
  155. package/dist/mjs/providers/storage/getStorageProvider.js +4 -1
  156. package/dist/mjs/providers/storage/parseStorageCredentials.d.ts +5 -0
  157. package/dist/mjs/providers/storage/parseStorageCredentials.js +17 -0
  158. package/dist/mjs/providers/storage/types.d.ts +22 -0
  159. package/dist/mjs/staticModels/LoaderSecretsPublicKeys.js +4 -4
  160. package/dist/mjs/staticModels/LoaderSessions.d.ts +2 -2
  161. package/dist/mjs/staticModels/LoaderSessions.js +6 -6
  162. package/dist/mjs/staticModels/OfferResources.d.ts +2 -1
  163. package/dist/mjs/staticModels/OfferResources.js +25 -9
  164. package/dist/mjs/staticModels/OffersStorageAllocated.d.ts +1 -2
  165. package/dist/mjs/staticModels/OffersStorageAllocated.js +11 -11
  166. package/dist/mjs/staticModels/OffersStorageRequests.js +5 -4
  167. package/dist/mjs/staticModels/Orders.js +3 -2
  168. package/dist/mjs/staticModels/SecretRequests.d.ts +2 -2
  169. package/dist/mjs/staticModels/SecretRequests.js +20 -11
  170. package/dist/mjs/staticModels/TeeOffers.d.ts +0 -2
  171. package/dist/mjs/staticModels/TeeOffers.js +5 -38
  172. package/dist/mjs/store.js +2 -2
  173. package/dist/mjs/tee/QuoteParser.d.ts +61 -6
  174. package/dist/mjs/tee/QuoteParser.js +245 -28
  175. package/dist/mjs/tee/QuoteValidator.d.ts +11 -0
  176. package/dist/mjs/tee/QuoteValidator.js +119 -30
  177. package/dist/mjs/tee/TeeBlockVerifier.d.ts +3 -4
  178. package/dist/mjs/tee/TeeBlockVerifier.js +2 -8
  179. package/dist/mjs/tee/errors.d.ts +6 -3
  180. package/dist/mjs/tee/errors.js +7 -4
  181. package/dist/mjs/tee/types.d.ts +50 -9
  182. package/dist/mjs/tee/types.js +28 -2
  183. package/dist/mjs/types/DistributedSecretStorage.d.ts +7 -0
  184. package/dist/mjs/types/Offer.d.ts +11 -3
  185. package/dist/mjs/types/Offer.js +9 -1
  186. package/dist/mjs/types/OfferVersion.d.ts +13 -0
  187. package/dist/mjs/types/OfferVersion.js +6 -0
  188. package/dist/mjs/types/Order.d.ts +7 -2
  189. package/dist/mjs/types/Order.js +3 -1
  190. package/dist/mjs/types/SlotInfo.d.ts +1 -0
  191. package/dist/mjs/types/Superpro.d.ts +2 -1
  192. package/dist/mjs/types/Superpro.js +2 -1
  193. package/dist/mjs/types/TeeOfferInfo.d.ts +2 -1
  194. package/dist/mjs/types/index.d.ts +1 -0
  195. package/dist/mjs/types/index.js +2 -1
  196. package/dist/mjs/types/storage/StorageAccess.d.ts +3 -3
  197. package/dist/mjs/utils/CryptoKeysTransformer.d.ts +7 -1
  198. package/dist/mjs/utils/CryptoKeysTransformer.js +66 -7
  199. package/dist/mjs/utils/NonceTracker.js +1 -1
  200. package/dist/mjs/utils/helper.d.ts +7 -1
  201. package/dist/mjs/utils/helper.js +80 -1
  202. package/dist/mjs/utils/helpers/OrderArgsHelper.d.ts +16 -0
  203. package/dist/mjs/utils/helpers/OrderArgsHelper.js +52 -0
  204. package/dist/mjs/utils/helpers/index.d.ts +2 -0
  205. package/dist/mjs/utils/helpers/index.js +3 -1
  206. package/dist/mjs/utils/helpers/uploadObjectToStorage.d.ts +13 -0
  207. package/dist/mjs/utils/helpers/uploadObjectToStorage.js +48 -0
  208. 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";
@@ -1543,6 +1555,10 @@ export declare const abi: readonly [{
1543
1555
  readonly internalType: "bool";
1544
1556
  readonly name: "enabled";
1545
1557
  readonly type: "bool";
1558
+ }, {
1559
+ readonly internalType: "enum TeeOfferSubtype";
1560
+ readonly name: "subtype";
1561
+ readonly type: "uint8";
1546
1562
  }];
1547
1563
  readonly name: "createTeeOffer";
1548
1564
  readonly outputs: readonly [];
@@ -1623,9 +1639,13 @@ export declare const abi: readonly [{
1623
1639
  readonly internalType: "enum OfferType[]";
1624
1640
  readonly name: "types";
1625
1641
  readonly type: "uint8[]";
1642
+ }, {
1643
+ readonly internalType: "uint64[]";
1644
+ readonly name: "versions";
1645
+ readonly type: "uint64[]";
1626
1646
  }];
1627
- readonly internalType: "struct ValueOfferInitialRestrictions";
1628
- readonly name: "initRestrictions";
1647
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
1648
+ readonly name: "restrictionsSpecification";
1629
1649
  readonly type: "tuple";
1630
1650
  }, {
1631
1651
  readonly internalType: "bytes32";
@@ -1640,6 +1660,20 @@ export declare const abi: readonly [{
1640
1660
  readonly outputs: readonly [];
1641
1661
  readonly stateMutability: "nonpayable";
1642
1662
  readonly type: "function";
1663
+ }, {
1664
+ readonly inputs: readonly [{
1665
+ readonly internalType: "uint256";
1666
+ readonly name: "offerId";
1667
+ readonly type: "uint256";
1668
+ }, {
1669
+ readonly internalType: "uint64";
1670
+ readonly name: "version";
1671
+ readonly type: "uint64";
1672
+ }];
1673
+ readonly name: "deleteOfferVersion";
1674
+ readonly outputs: readonly [];
1675
+ readonly stateMutability: "nonpayable";
1676
+ readonly type: "function";
1643
1677
  }, {
1644
1678
  readonly inputs: readonly [{
1645
1679
  readonly internalType: "uint256";
@@ -1688,6 +1722,33 @@ export declare const abi: readonly [{
1688
1722
  readonly outputs: readonly [];
1689
1723
  readonly stateMutability: "nonpayable";
1690
1724
  readonly type: "function";
1725
+ }, {
1726
+ readonly inputs: readonly [{
1727
+ readonly internalType: "uint256";
1728
+ readonly name: "offerId";
1729
+ readonly type: "uint256";
1730
+ }, {
1731
+ readonly internalType: "uint64";
1732
+ readonly name: "newVersion";
1733
+ readonly type: "uint64";
1734
+ }, {
1735
+ readonly components: readonly [{
1736
+ readonly internalType: "string";
1737
+ readonly name: "mrenclave";
1738
+ readonly type: "string";
1739
+ }, {
1740
+ readonly internalType: "string";
1741
+ readonly name: "mrsigner";
1742
+ readonly type: "string";
1743
+ }];
1744
+ readonly internalType: "struct OfferVersionInfo";
1745
+ readonly name: "newVersionInfo";
1746
+ readonly type: "tuple";
1747
+ }];
1748
+ readonly name: "setOfferNewVersion";
1749
+ readonly outputs: readonly [];
1750
+ readonly stateMutability: "nonpayable";
1751
+ readonly type: "function";
1691
1752
  }, {
1692
1753
  readonly inputs: readonly [{
1693
1754
  readonly internalType: "uint256";
@@ -1724,6 +1785,10 @@ export declare const abi: readonly [{
1724
1785
  readonly internalType: "uint64";
1725
1786
  readonly name: "gpuCores";
1726
1787
  readonly type: "uint64";
1788
+ }, {
1789
+ readonly internalType: "uint64";
1790
+ readonly name: "vram";
1791
+ readonly type: "uint64";
1727
1792
  }];
1728
1793
  readonly internalType: "struct SlotInfo";
1729
1794
  readonly name: "newSlotInfo";
@@ -1766,7 +1831,7 @@ export declare const abi: readonly [{
1766
1831
  readonly type: "string";
1767
1832
  }, {
1768
1833
  readonly internalType: "string";
1769
- readonly name: "tlb";
1834
+ readonly name: "tlb_DEPRECATED";
1770
1835
  readonly type: "string";
1771
1836
  }, {
1772
1837
  readonly internalType: "string";
@@ -1787,11 +1852,11 @@ export declare const abi: readonly [{
1787
1852
  readonly name: "offerId";
1788
1853
  readonly type: "uint256";
1789
1854
  }, {
1790
- readonly internalType: "string";
1791
- readonly name: "tlb";
1792
- readonly type: "string";
1855
+ readonly internalType: "enum TeeOfferSubtype";
1856
+ readonly name: "newSubtype";
1857
+ readonly type: "uint8";
1793
1858
  }];
1794
- readonly name: "setTeeOfferTlb";
1859
+ readonly name: "setTeeOfferSubtype";
1795
1860
  readonly outputs: readonly [];
1796
1861
  readonly stateMutability: "nonpayable";
1797
1862
  readonly type: "function";
@@ -1861,6 +1926,16 @@ export declare const abi: readonly [{
1861
1926
  readonly internalType: "struct ValueOfferInfo";
1862
1927
  readonly name: "newInfo";
1863
1928
  readonly type: "tuple";
1929
+ }];
1930
+ readonly name: "setValueOfferInfo";
1931
+ readonly outputs: readonly [];
1932
+ readonly stateMutability: "nonpayable";
1933
+ readonly type: "function";
1934
+ }, {
1935
+ readonly inputs: readonly [{
1936
+ readonly internalType: "uint256";
1937
+ readonly name: "offerId";
1938
+ readonly type: "uint256";
1864
1939
  }, {
1865
1940
  readonly components: readonly [{
1866
1941
  readonly internalType: "uint256[]";
@@ -1870,12 +1945,16 @@ export declare const abi: readonly [{
1870
1945
  readonly internalType: "enum OfferType[]";
1871
1946
  readonly name: "types";
1872
1947
  readonly type: "uint8[]";
1948
+ }, {
1949
+ readonly internalType: "uint64[]";
1950
+ readonly name: "versions";
1951
+ readonly type: "uint64[]";
1873
1952
  }];
1874
- readonly internalType: "struct ValueOfferInitialRestrictions";
1875
- readonly name: "newRestrictions";
1953
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
1954
+ readonly name: "newSpecification";
1876
1955
  readonly type: "tuple";
1877
1956
  }];
1878
- readonly name: "setValueOfferInfo";
1957
+ readonly name: "setValueOfferRestrictionsSpecification";
1879
1958
  readonly outputs: readonly [];
1880
1959
  readonly stateMutability: "nonpayable";
1881
1960
  readonly type: "function";
@@ -1918,7 +1997,7 @@ export declare const abi: readonly [{
1918
1997
  readonly type: "string";
1919
1998
  }, {
1920
1999
  readonly internalType: "string";
1921
- readonly name: "tlb";
2000
+ readonly name: "tlb_DEPRECATED";
1922
2001
  readonly type: "string";
1923
2002
  }, {
1924
2003
  readonly internalType: "string";
@@ -1932,6 +2011,10 @@ export declare const abi: readonly [{
1932
2011
  readonly internalType: "bool";
1933
2012
  readonly name: "enabled";
1934
2013
  readonly type: "bool";
2014
+ }, {
2015
+ readonly internalType: "enum TeeOfferSubtype";
2016
+ readonly name: "subtype";
2017
+ readonly type: "uint8";
1935
2018
  }];
1936
2019
  readonly internalType: "struct TeeOfferData[]";
1937
2020
  readonly name: "";
@@ -2049,29 +2132,6 @@ export declare const abi: readonly [{
2049
2132
  }];
2050
2133
  readonly stateMutability: "view";
2051
2134
  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
2135
  }, {
2076
2136
  readonly inputs: readonly [{
2077
2137
  readonly internalType: "uint256";
@@ -2161,6 +2221,33 @@ export declare const abi: readonly [{
2161
2221
  }];
2162
2222
  readonly stateMutability: "view";
2163
2223
  readonly type: "function";
2224
+ }, {
2225
+ readonly inputs: readonly [{
2226
+ readonly internalType: "uint256";
2227
+ readonly name: "offerId";
2228
+ readonly type: "uint256";
2229
+ }];
2230
+ readonly name: "getOfferRestrictionsSpecification";
2231
+ readonly outputs: readonly [{
2232
+ readonly components: readonly [{
2233
+ readonly internalType: "uint256[]";
2234
+ readonly name: "offers";
2235
+ readonly type: "uint256[]";
2236
+ }, {
2237
+ readonly internalType: "enum OfferType[]";
2238
+ readonly name: "types";
2239
+ readonly type: "uint8[]";
2240
+ }, {
2241
+ readonly internalType: "uint64[]";
2242
+ readonly name: "versions";
2243
+ readonly type: "uint64[]";
2244
+ }];
2245
+ readonly internalType: "struct ValueOfferRestrictionsSpecification";
2246
+ readonly name: "";
2247
+ readonly type: "tuple";
2248
+ }];
2249
+ readonly stateMutability: "view";
2250
+ readonly type: "function";
2164
2251
  }, {
2165
2252
  readonly inputs: readonly [{
2166
2253
  readonly internalType: "uint256";
@@ -2175,6 +2262,60 @@ export declare const abi: readonly [{
2175
2262
  }];
2176
2263
  readonly stateMutability: "view";
2177
2264
  readonly type: "function";
2265
+ }, {
2266
+ readonly inputs: readonly [{
2267
+ readonly internalType: "uint256";
2268
+ readonly name: "offerId";
2269
+ readonly type: "uint256";
2270
+ }, {
2271
+ readonly internalType: "uint64";
2272
+ readonly name: "version";
2273
+ readonly type: "uint64";
2274
+ }];
2275
+ readonly name: "getOfferVersion";
2276
+ readonly outputs: readonly [{
2277
+ readonly components: readonly [{
2278
+ readonly internalType: "uint64";
2279
+ readonly name: "version";
2280
+ readonly type: "uint64";
2281
+ }, {
2282
+ readonly components: readonly [{
2283
+ readonly internalType: "string";
2284
+ readonly name: "mrenclave";
2285
+ readonly type: "string";
2286
+ }, {
2287
+ readonly internalType: "string";
2288
+ readonly name: "mrsigner";
2289
+ readonly type: "string";
2290
+ }];
2291
+ readonly internalType: "struct OfferVersionInfo";
2292
+ readonly name: "info";
2293
+ readonly type: "tuple";
2294
+ }, {
2295
+ readonly internalType: "enum OfferVersionStatus";
2296
+ readonly name: "status";
2297
+ readonly type: "uint8";
2298
+ }];
2299
+ readonly internalType: "struct OfferVersion";
2300
+ readonly name: "";
2301
+ readonly type: "tuple";
2302
+ }];
2303
+ readonly stateMutability: "view";
2304
+ readonly type: "function";
2305
+ }, {
2306
+ readonly inputs: readonly [{
2307
+ readonly internalType: "uint256";
2308
+ readonly name: "offerId";
2309
+ readonly type: "uint256";
2310
+ }];
2311
+ readonly name: "getOfferVersionsCount";
2312
+ readonly outputs: readonly [{
2313
+ readonly internalType: "uint256";
2314
+ readonly name: "";
2315
+ readonly type: "uint256";
2316
+ }];
2317
+ readonly stateMutability: "view";
2318
+ readonly type: "function";
2178
2319
  }, {
2179
2320
  readonly inputs: readonly [{
2180
2321
  readonly internalType: "enum OfferType";
@@ -2234,7 +2375,7 @@ export declare const abi: readonly [{
2234
2375
  readonly type: "string";
2235
2376
  }, {
2236
2377
  readonly internalType: "string";
2237
- readonly name: "tlb";
2378
+ readonly name: "tlb_DEPRECATED";
2238
2379
  readonly type: "string";
2239
2380
  }, {
2240
2381
  readonly internalType: "string";
@@ -2248,6 +2389,10 @@ export declare const abi: readonly [{
2248
2389
  readonly internalType: "bool";
2249
2390
  readonly name: "enabled";
2250
2391
  readonly type: "bool";
2392
+ }, {
2393
+ readonly internalType: "enum TeeOfferSubtype";
2394
+ readonly name: "subtype";
2395
+ readonly type: "uint8";
2251
2396
  }];
2252
2397
  readonly internalType: "struct TeeOfferData";
2253
2398
  readonly name: "ret";
@@ -2279,6 +2424,10 @@ export declare const abi: readonly [{
2279
2424
  readonly internalType: "uint64";
2280
2425
  readonly name: "gpuCores";
2281
2426
  readonly type: "uint64";
2427
+ }, {
2428
+ readonly internalType: "uint64";
2429
+ readonly name: "vram";
2430
+ readonly type: "uint64";
2282
2431
  }];
2283
2432
  readonly internalType: "struct SlotInfo";
2284
2433
  readonly name: "";
@@ -2301,11 +2450,11 @@ export declare const abi: readonly [{
2301
2450
  readonly name: "offerId";
2302
2451
  readonly type: "uint256";
2303
2452
  }];
2304
- readonly name: "getTeeOfferLastTlbAddedTime";
2453
+ readonly name: "getTeeOfferSubtype";
2305
2454
  readonly outputs: readonly [{
2306
- readonly internalType: "uint256";
2455
+ readonly internalType: "enum TeeOfferSubtype";
2307
2456
  readonly name: "";
2308
- readonly type: "uint256";
2457
+ readonly type: "uint8";
2309
2458
  }];
2310
2459
  readonly stateMutability: "view";
2311
2460
  readonly type: "function";
@@ -2411,6 +2560,32 @@ export declare const abi: readonly [{
2411
2560
  }];
2412
2561
  readonly stateMutability: "view";
2413
2562
  readonly type: "function";
2563
+ }, {
2564
+ readonly inputs: readonly [{
2565
+ readonly internalType: "uint256";
2566
+ readonly name: "firstId";
2567
+ readonly type: "uint256";
2568
+ }, {
2569
+ readonly internalType: "uint64";
2570
+ readonly name: "firstVersion";
2571
+ readonly type: "uint64";
2572
+ }, {
2573
+ readonly internalType: "uint256";
2574
+ readonly name: "secondId";
2575
+ readonly type: "uint256";
2576
+ }, {
2577
+ readonly internalType: "uint64";
2578
+ readonly name: "secondVersion";
2579
+ readonly type: "uint64";
2580
+ }];
2581
+ readonly name: "isMagicallySameOfferVersion";
2582
+ readonly outputs: readonly [{
2583
+ readonly internalType: "bool";
2584
+ readonly name: "";
2585
+ readonly type: "bool";
2586
+ }];
2587
+ readonly stateMutability: "pure";
2588
+ readonly type: "function";
2414
2589
  }, {
2415
2590
  readonly inputs: readonly [{
2416
2591
  readonly internalType: "uint256";
@@ -2498,6 +2673,10 @@ export declare const abi: readonly [{
2498
2673
  readonly internalType: "uint256";
2499
2674
  readonly name: "otherOfferId";
2500
2675
  readonly type: "uint256";
2676
+ }, {
2677
+ readonly internalType: "uint64";
2678
+ readonly name: "otherOfferVersion";
2679
+ readonly type: "uint64";
2501
2680
  }];
2502
2681
  readonly name: "isOfferRestrictionsPermitOtherOffer";
2503
2682
  readonly outputs: readonly [{
@@ -2507,6 +2686,24 @@ export declare const abi: readonly [{
2507
2686
  }];
2508
2687
  readonly stateMutability: "view";
2509
2688
  readonly type: "function";
2689
+ }, {
2690
+ readonly inputs: readonly [{
2691
+ readonly internalType: "uint256";
2692
+ readonly name: "offerId";
2693
+ readonly type: "uint256";
2694
+ }, {
2695
+ readonly internalType: "uint64";
2696
+ readonly name: "version";
2697
+ readonly type: "uint64";
2698
+ }];
2699
+ readonly name: "isOfferVersionAvailable";
2700
+ readonly outputs: readonly [{
2701
+ readonly internalType: "bool";
2702
+ readonly name: "";
2703
+ readonly type: "bool";
2704
+ }];
2705
+ readonly stateMutability: "view";
2706
+ readonly type: "function";
2510
2707
  }, {
2511
2708
  readonly inputs: readonly [{
2512
2709
  readonly internalType: "uint256";
@@ -2713,6 +2910,10 @@ export declare const abi: readonly [{
2713
2910
  readonly internalType: "uint256";
2714
2911
  readonly name: "maxPriceSlippage";
2715
2912
  readonly type: "uint256";
2913
+ }, {
2914
+ readonly internalType: "uint64";
2915
+ readonly name: "offerVersion";
2916
+ readonly type: "uint64";
2716
2917
  }];
2717
2918
  readonly internalType: "struct OrderInfo";
2718
2919
  readonly name: "info";
@@ -2741,12 +2942,20 @@ export declare const abi: readonly [{
2741
2942
  }, {
2742
2943
  readonly components: readonly [{
2743
2944
  readonly internalType: "uint256[]";
2744
- readonly name: "inputOffers";
2945
+ readonly name: "inputOffersIds";
2745
2946
  readonly type: "uint256[]";
2746
2947
  }, {
2747
2948
  readonly internalType: "uint256";
2748
- readonly name: "outputOffer";
2949
+ readonly name: "outputOfferId";
2749
2950
  readonly type: "uint256";
2951
+ }, {
2952
+ readonly internalType: "uint64[]";
2953
+ readonly name: "inputOffersVersions";
2954
+ readonly type: "uint64[]";
2955
+ }, {
2956
+ readonly internalType: "uint64";
2957
+ readonly name: "outputOfferVersion";
2958
+ readonly type: "uint64";
2750
2959
  }];
2751
2960
  readonly internalType: "struct OrderArgs";
2752
2961
  readonly name: "args";
@@ -2806,6 +3015,10 @@ export declare const abi: readonly [{
2806
3015
  readonly internalType: "uint256";
2807
3016
  readonly name: "maxPriceSlippage";
2808
3017
  readonly type: "uint256";
3018
+ }, {
3019
+ readonly internalType: "uint64";
3020
+ readonly name: "offerVersion";
3021
+ readonly type: "uint64";
2809
3022
  }];
2810
3023
  readonly internalType: "struct OrderInfo";
2811
3024
  readonly name: "info";
@@ -2834,12 +3047,20 @@ export declare const abi: readonly [{
2834
3047
  }, {
2835
3048
  readonly components: readonly [{
2836
3049
  readonly internalType: "uint256[]";
2837
- readonly name: "inputOffers";
3050
+ readonly name: "inputOffersIds";
2838
3051
  readonly type: "uint256[]";
2839
3052
  }, {
2840
3053
  readonly internalType: "uint256";
2841
- readonly name: "outputOffer";
3054
+ readonly name: "outputOfferId";
2842
3055
  readonly type: "uint256";
3056
+ }, {
3057
+ readonly internalType: "uint64[]";
3058
+ readonly name: "inputOffersVersions";
3059
+ readonly type: "uint64[]";
3060
+ }, {
3061
+ readonly internalType: "uint64";
3062
+ readonly name: "outputOfferVersion";
3063
+ readonly type: "uint64";
2843
3064
  }];
2844
3065
  readonly internalType: "struct OrderArgs";
2845
3066
  readonly name: "args";
@@ -2899,6 +3120,10 @@ export declare const abi: readonly [{
2899
3120
  readonly internalType: "uint256";
2900
3121
  readonly name: "maxPriceSlippage";
2901
3122
  readonly type: "uint256";
3123
+ }, {
3124
+ readonly internalType: "uint64";
3125
+ readonly name: "offerVersion";
3126
+ readonly type: "uint64";
2902
3127
  }];
2903
3128
  readonly internalType: "struct OrderInfo";
2904
3129
  readonly name: "suborderInfo";
@@ -2927,12 +3152,20 @@ export declare const abi: readonly [{
2927
3152
  }, {
2928
3153
  readonly components: readonly [{
2929
3154
  readonly internalType: "uint256[]";
2930
- readonly name: "inputOffers";
3155
+ readonly name: "inputOffersIds";
2931
3156
  readonly type: "uint256[]";
2932
3157
  }, {
2933
3158
  readonly internalType: "uint256";
2934
- readonly name: "outputOffer";
3159
+ readonly name: "outputOfferId";
2935
3160
  readonly type: "uint256";
3161
+ }, {
3162
+ readonly internalType: "uint64[]";
3163
+ readonly name: "inputOffersVersions";
3164
+ readonly type: "uint64[]";
3165
+ }, {
3166
+ readonly internalType: "uint64";
3167
+ readonly name: "outputOfferVersion";
3168
+ readonly type: "uint64";
2936
3169
  }];
2937
3170
  readonly internalType: "struct OrderArgs";
2938
3171
  readonly name: "suborderArgs";
@@ -3001,6 +3234,10 @@ export declare const abi: readonly [{
3001
3234
  readonly internalType: "uint256";
3002
3235
  readonly name: "maxPriceSlippage";
3003
3236
  readonly type: "uint256";
3237
+ }, {
3238
+ readonly internalType: "uint64";
3239
+ readonly name: "offerVersion";
3240
+ readonly type: "uint64";
3004
3241
  }];
3005
3242
  readonly internalType: "struct OrderInfo";
3006
3243
  readonly name: "suborderInfo";
@@ -3029,12 +3266,20 @@ export declare const abi: readonly [{
3029
3266
  }, {
3030
3267
  readonly components: readonly [{
3031
3268
  readonly internalType: "uint256[]";
3032
- readonly name: "inputOffers";
3269
+ readonly name: "inputOffersIds";
3033
3270
  readonly type: "uint256[]";
3034
3271
  }, {
3035
3272
  readonly internalType: "uint256";
3036
- readonly name: "outputOffer";
3273
+ readonly name: "outputOfferId";
3037
3274
  readonly type: "uint256";
3275
+ }, {
3276
+ readonly internalType: "uint64[]";
3277
+ readonly name: "inputOffersVersions";
3278
+ readonly type: "uint64[]";
3279
+ }, {
3280
+ readonly internalType: "uint64";
3281
+ readonly name: "outputOfferVersion";
3282
+ readonly type: "uint64";
3038
3283
  }];
3039
3284
  readonly internalType: "struct OrderArgs";
3040
3285
  readonly name: "suborderArgs";
@@ -3141,6 +3386,24 @@ export declare const abi: readonly [{
3141
3386
  }];
3142
3387
  readonly name: "OrderProfitUnlocked";
3143
3388
  readonly type: "event";
3389
+ }, {
3390
+ readonly inputs: readonly [{
3391
+ readonly internalType: "uint256";
3392
+ readonly name: "orderId";
3393
+ readonly type: "uint256";
3394
+ }, {
3395
+ readonly internalType: "uint256";
3396
+ readonly name: "amount";
3397
+ readonly type: "uint256";
3398
+ }];
3399
+ readonly name: "debitOrderDepositByApp";
3400
+ readonly outputs: readonly [{
3401
+ readonly internalType: "uint256";
3402
+ readonly name: "";
3403
+ readonly type: "uint256";
3404
+ }];
3405
+ readonly stateMutability: "nonpayable";
3406
+ readonly type: "function";
3144
3407
  }, {
3145
3408
  readonly inputs: readonly [{
3146
3409
  readonly internalType: "uint256";
@@ -3639,11 +3902,11 @@ export declare const abi: readonly [{
3639
3902
  readonly name: "subOfferId";
3640
3903
  readonly type: "uint256";
3641
3904
  }, {
3642
- readonly internalType: "enum OfferGroup";
3643
- readonly name: "subOfferGroup";
3644
- readonly type: "uint8";
3905
+ readonly internalType: "uint64";
3906
+ readonly name: "subOfferVersion";
3907
+ readonly type: "uint64";
3645
3908
  }];
3646
- readonly name: "checkOrderRestrictions";
3909
+ readonly name: "checkParentOrderArgsCompliesWithSubOfferRestrictions";
3647
3910
  readonly outputs: readonly [];
3648
3911
  readonly stateMutability: "view";
3649
3912
  readonly type: "function";
@@ -3733,6 +3996,10 @@ export declare const abi: readonly [{
3733
3996
  readonly internalType: "uint256";
3734
3997
  readonly name: "maxPriceSlippage";
3735
3998
  readonly type: "uint256";
3999
+ }, {
4000
+ readonly internalType: "uint64";
4001
+ readonly name: "offerVersion";
4002
+ readonly type: "uint64";
3736
4003
  }];
3737
4004
  readonly internalType: "struct OrderInfo";
3738
4005
  readonly name: "";
@@ -3763,12 +4030,20 @@ export declare const abi: readonly [{
3763
4030
  readonly outputs: readonly [{
3764
4031
  readonly components: readonly [{
3765
4032
  readonly internalType: "uint256[]";
3766
- readonly name: "inputOffers";
4033
+ readonly name: "inputOffersIds";
3767
4034
  readonly type: "uint256[]";
3768
4035
  }, {
3769
4036
  readonly internalType: "uint256";
3770
- readonly name: "outputOffer";
4037
+ readonly name: "outputOfferId";
3771
4038
  readonly type: "uint256";
4039
+ }, {
4040
+ readonly internalType: "uint64[]";
4041
+ readonly name: "inputOffersVersions";
4042
+ readonly type: "uint64[]";
4043
+ }, {
4044
+ readonly internalType: "uint64";
4045
+ readonly name: "outputOfferVersion";
4046
+ readonly type: "uint64";
3772
4047
  }];
3773
4048
  readonly internalType: "struct OrderArgs";
3774
4049
  readonly name: "";
@@ -3776,6 +4051,20 @@ export declare const abi: readonly [{
3776
4051
  }];
3777
4052
  readonly stateMutability: "view";
3778
4053
  readonly type: "function";
4054
+ }, {
4055
+ readonly inputs: readonly [{
4056
+ readonly internalType: "uint256";
4057
+ readonly name: "orderId";
4058
+ readonly type: "uint256";
4059
+ }];
4060
+ readonly name: "getOrderConsumer";
4061
+ readonly outputs: readonly [{
4062
+ readonly internalType: "address";
4063
+ readonly name: "";
4064
+ readonly type: "address";
4065
+ }];
4066
+ readonly stateMutability: "view";
4067
+ readonly type: "function";
3779
4068
  }, {
3780
4069
  readonly inputs: readonly [{
3781
4070
  readonly internalType: "uint256";
@@ -3930,6 +4219,10 @@ export declare const abi: readonly [{
3930
4219
  readonly internalType: "uint64";
3931
4220
  readonly name: "gpuCores";
3932
4221
  readonly type: "uint64";
4222
+ }, {
4223
+ readonly internalType: "uint64";
4224
+ readonly name: "vram";
4225
+ readonly type: "uint64";
3933
4226
  }];
3934
4227
  readonly internalType: "struct SlotInfo";
3935
4228
  readonly name: "";
@@ -5088,8 +5381,22 @@ export declare const abi: readonly [{
5088
5381
  readonly type: "string";
5089
5382
  }];
5090
5383
  readonly internalType: "struct OptionInfo";
5091
- readonly name: "info";
5384
+ readonly name: "newInfo";
5092
5385
  readonly type: "tuple";
5386
+ }];
5387
+ readonly name: "updateOptionInfo";
5388
+ readonly outputs: readonly [];
5389
+ readonly stateMutability: "nonpayable";
5390
+ readonly type: "function";
5391
+ }, {
5392
+ readonly inputs: readonly [{
5393
+ readonly internalType: "uint256";
5394
+ readonly name: "teeOfferId";
5395
+ readonly type: "uint256";
5396
+ }, {
5397
+ readonly internalType: "uint256";
5398
+ readonly name: "optionId";
5399
+ readonly type: "uint256";
5093
5400
  }, {
5094
5401
  readonly components: readonly [{
5095
5402
  readonly internalType: "enum PriceType";
@@ -5109,10 +5416,10 @@ export declare const abi: readonly [{
5109
5416
  readonly type: "uint64";
5110
5417
  }];
5111
5418
  readonly internalType: "struct SlotUsage";
5112
- readonly name: "usage";
5419
+ readonly name: "newUsage";
5113
5420
  readonly type: "tuple";
5114
5421
  }];
5115
- readonly name: "updateOption";
5422
+ readonly name: "updateOptionUsage";
5116
5423
  readonly outputs: readonly [];
5117
5424
  readonly stateMutability: "nonpayable";
5118
5425
  readonly type: "function";
@@ -5197,6 +5504,10 @@ export declare const abi: readonly [{
5197
5504
  readonly internalType: "uint64";
5198
5505
  readonly name: "gpuCores";
5199
5506
  readonly type: "uint64";
5507
+ }, {
5508
+ readonly internalType: "uint64";
5509
+ readonly name: "vram";
5510
+ readonly type: "uint64";
5200
5511
  }];
5201
5512
  readonly internalType: "struct SlotInfo";
5202
5513
  readonly name: "info";
@@ -5284,6 +5595,10 @@ export declare const abi: readonly [{
5284
5595
  readonly internalType: "uint64";
5285
5596
  readonly name: "gpuCores";
5286
5597
  readonly type: "uint64";
5598
+ }, {
5599
+ readonly internalType: "uint64";
5600
+ readonly name: "vram";
5601
+ readonly type: "uint64";
5287
5602
  }];
5288
5603
  readonly internalType: "struct SlotInfo";
5289
5604
  readonly name: "info";
@@ -5353,6 +5668,10 @@ export declare const abi: readonly [{
5353
5668
  readonly internalType: "uint64";
5354
5669
  readonly name: "gpuCores";
5355
5670
  readonly type: "uint64";
5671
+ }, {
5672
+ readonly internalType: "uint64";
5673
+ readonly name: "vram";
5674
+ readonly type: "uint64";
5356
5675
  }];
5357
5676
  readonly internalType: "struct SlotInfo";
5358
5677
  readonly name: "info";
@@ -5453,10 +5772,28 @@ export declare const abi: readonly [{
5453
5772
  readonly internalType: "uint64";
5454
5773
  readonly name: "gpuCores";
5455
5774
  readonly type: "uint64";
5775
+ }, {
5776
+ readonly internalType: "uint64";
5777
+ readonly name: "vram";
5778
+ readonly type: "uint64";
5456
5779
  }];
5457
5780
  readonly internalType: "struct SlotInfo";
5458
- readonly name: "info";
5781
+ readonly name: "newInfo";
5459
5782
  readonly type: "tuple";
5783
+ }];
5784
+ readonly name: "updateTeeOfferSlotInfo";
5785
+ readonly outputs: readonly [];
5786
+ readonly stateMutability: "nonpayable";
5787
+ readonly type: "function";
5788
+ }, {
5789
+ readonly inputs: readonly [{
5790
+ readonly internalType: "uint256";
5791
+ readonly name: "teeOfferId";
5792
+ readonly type: "uint256";
5793
+ }, {
5794
+ readonly internalType: "uint256";
5795
+ readonly name: "slotId";
5796
+ readonly type: "uint256";
5460
5797
  }, {
5461
5798
  readonly components: readonly [{
5462
5799
  readonly internalType: "enum PriceType";
@@ -5476,10 +5813,10 @@ export declare const abi: readonly [{
5476
5813
  readonly type: "uint64";
5477
5814
  }];
5478
5815
  readonly internalType: "struct SlotUsage";
5479
- readonly name: "usage";
5816
+ readonly name: "newUsage";
5480
5817
  readonly type: "tuple";
5481
5818
  }];
5482
- readonly name: "updateTeeOfferSlot";
5819
+ readonly name: "updateTeeOfferSlotUsage";
5483
5820
  readonly outputs: readonly [];
5484
5821
  readonly stateMutability: "nonpayable";
5485
5822
  readonly type: "function";
@@ -5557,7 +5894,7 @@ export declare const abi: readonly [{
5557
5894
  readonly name: "teeOfferId";
5558
5895
  readonly type: "uint256";
5559
5896
  }];
5560
- readonly name: "confisacateAllRewards";
5897
+ readonly name: "confiscateAllRewards";
5561
5898
  readonly outputs: readonly [];
5562
5899
  readonly stateMutability: "nonpayable";
5563
5900
  readonly type: "function";
@@ -5782,6 +6119,10 @@ export declare const abi: readonly [{
5782
6119
  readonly internalType: "uint64";
5783
6120
  readonly name: "gpuCores";
5784
6121
  readonly type: "uint64";
6122
+ }, {
6123
+ readonly internalType: "uint64";
6124
+ readonly name: "vram";
6125
+ readonly type: "uint64";
5785
6126
  }];
5786
6127
  readonly internalType: "struct SlotInfo";
5787
6128
  readonly name: "info";
@@ -5882,6 +6223,10 @@ export declare const abi: readonly [{
5882
6223
  readonly internalType: "uint64";
5883
6224
  readonly name: "gpuCores";
5884
6225
  readonly type: "uint64";
6226
+ }, {
6227
+ readonly internalType: "uint64";
6228
+ readonly name: "vram";
6229
+ readonly type: "uint64";
5885
6230
  }];
5886
6231
  readonly internalType: "struct SlotInfo";
5887
6232
  readonly name: "info";
@@ -5960,6 +6305,10 @@ export declare const abi: readonly [{
5960
6305
  readonly internalType: "uint64";
5961
6306
  readonly name: "gpuCores";
5962
6307
  readonly type: "uint64";
6308
+ }, {
6309
+ readonly internalType: "uint64";
6310
+ readonly name: "vram";
6311
+ readonly type: "uint64";
5963
6312
  }];
5964
6313
  readonly internalType: "struct SlotInfo";
5965
6314
  readonly name: "info";
@@ -6069,10 +6418,28 @@ export declare const abi: readonly [{
6069
6418
  readonly internalType: "uint64";
6070
6419
  readonly name: "gpuCores";
6071
6420
  readonly type: "uint64";
6421
+ }, {
6422
+ readonly internalType: "uint64";
6423
+ readonly name: "vram";
6424
+ readonly type: "uint64";
6072
6425
  }];
6073
6426
  readonly internalType: "struct SlotInfo";
6074
- readonly name: "info";
6427
+ readonly name: "newInfo";
6075
6428
  readonly type: "tuple";
6429
+ }];
6430
+ readonly name: "updateValueOfferSlotInfo";
6431
+ readonly outputs: readonly [];
6432
+ readonly stateMutability: "nonpayable";
6433
+ readonly type: "function";
6434
+ }, {
6435
+ readonly inputs: readonly [{
6436
+ readonly internalType: "uint256";
6437
+ readonly name: "offerId";
6438
+ readonly type: "uint256";
6439
+ }, {
6440
+ readonly internalType: "uint256";
6441
+ readonly name: "slotId";
6442
+ readonly type: "uint256";
6076
6443
  }, {
6077
6444
  readonly components: readonly [{
6078
6445
  readonly internalType: "string";
@@ -6080,8 +6447,22 @@ export declare const abi: readonly [{
6080
6447
  readonly type: "string";
6081
6448
  }];
6082
6449
  readonly internalType: "struct OptionInfo";
6083
- readonly name: "option";
6450
+ readonly name: "newOption";
6084
6451
  readonly type: "tuple";
6452
+ }];
6453
+ readonly name: "updateValueOfferSlotOption";
6454
+ readonly outputs: readonly [];
6455
+ readonly stateMutability: "nonpayable";
6456
+ readonly type: "function";
6457
+ }, {
6458
+ readonly inputs: readonly [{
6459
+ readonly internalType: "uint256";
6460
+ readonly name: "offerId";
6461
+ readonly type: "uint256";
6462
+ }, {
6463
+ readonly internalType: "uint256";
6464
+ readonly name: "slotId";
6465
+ readonly type: "uint256";
6085
6466
  }, {
6086
6467
  readonly components: readonly [{
6087
6468
  readonly internalType: "enum PriceType";
@@ -6101,10 +6482,10 @@ export declare const abi: readonly [{
6101
6482
  readonly type: "uint64";
6102
6483
  }];
6103
6484
  readonly internalType: "struct SlotUsage";
6104
- readonly name: "usage";
6485
+ readonly name: "newUsage";
6105
6486
  readonly type: "tuple";
6106
6487
  }];
6107
- readonly name: "updateValueOfferSlot";
6488
+ readonly name: "updateValueOfferSlotUsage";
6108
6489
  readonly outputs: readonly [];
6109
6490
  readonly stateMutability: "nonpayable";
6110
6491
  readonly type: "function";
@@ -6152,6 +6533,10 @@ export declare const abi: readonly [{
6152
6533
  readonly internalType: "uint256";
6153
6534
  readonly name: "maxPriceSlippage";
6154
6535
  readonly type: "uint256";
6536
+ }, {
6537
+ readonly internalType: "uint64";
6538
+ readonly name: "offerVersion";
6539
+ readonly type: "uint64";
6155
6540
  }];
6156
6541
  readonly internalType: "struct OrderInfo";
6157
6542
  readonly name: "parentOrderInfo";
@@ -6180,12 +6565,20 @@ export declare const abi: readonly [{
6180
6565
  }, {
6181
6566
  readonly components: readonly [{
6182
6567
  readonly internalType: "uint256[]";
6183
- readonly name: "inputOffers";
6568
+ readonly name: "inputOffersIds";
6184
6569
  readonly type: "uint256[]";
6185
6570
  }, {
6186
6571
  readonly internalType: "uint256";
6187
- readonly name: "outputOffer";
6572
+ readonly name: "outputOfferId";
6188
6573
  readonly type: "uint256";
6574
+ }, {
6575
+ readonly internalType: "uint64[]";
6576
+ readonly name: "inputOffersVersions";
6577
+ readonly type: "uint64[]";
6578
+ }, {
6579
+ readonly internalType: "uint64";
6580
+ readonly name: "outputOfferVersion";
6581
+ readonly type: "uint64";
6189
6582
  }];
6190
6583
  readonly internalType: "struct OrderArgs";
6191
6584
  readonly name: "parentOrderArgs";
@@ -6227,6 +6620,10 @@ export declare const abi: readonly [{
6227
6620
  readonly internalType: "uint256";
6228
6621
  readonly name: "maxPriceSlippage";
6229
6622
  readonly type: "uint256";
6623
+ }, {
6624
+ readonly internalType: "uint64";
6625
+ readonly name: "offerVersion";
6626
+ readonly type: "uint64";
6230
6627
  }];
6231
6628
  readonly internalType: "struct OrderInfo[]";
6232
6629
  readonly name: "subOrdersInfos";
@@ -6255,12 +6652,20 @@ export declare const abi: readonly [{
6255
6652
  }, {
6256
6653
  readonly components: readonly [{
6257
6654
  readonly internalType: "uint256[]";
6258
- readonly name: "inputOffers";
6655
+ readonly name: "inputOffersIds";
6259
6656
  readonly type: "uint256[]";
6260
6657
  }, {
6261
6658
  readonly internalType: "uint256";
6262
- readonly name: "outputOffer";
6659
+ readonly name: "outputOfferId";
6263
6660
  readonly type: "uint256";
6661
+ }, {
6662
+ readonly internalType: "uint64[]";
6663
+ readonly name: "inputOffersVersions";
6664
+ readonly type: "uint64[]";
6665
+ }, {
6666
+ readonly internalType: "uint64";
6667
+ readonly name: "outputOfferVersion";
6668
+ readonly type: "uint64";
6264
6669
  }];
6265
6670
  readonly internalType: "struct OrderArgs[]";
6266
6671
  readonly name: "subOrdersArgs";
@@ -6675,16 +7080,6 @@ export declare const abi: readonly [{
6675
7080
  }];
6676
7081
  readonly name: "LoaderSessionKeyUpdated";
6677
7082
  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
7083
  }, {
6689
7084
  readonly inputs: readonly [];
6690
7085
  readonly name: "getDisabledLoaders";
@@ -6753,6 +7148,16 @@ export declare const abi: readonly [{
6753
7148
  }];
6754
7149
  readonly stateMutability: "view";
6755
7150
  readonly type: "function";
7151
+ }, {
7152
+ readonly inputs: readonly [{
7153
+ readonly internalType: "uint256";
7154
+ readonly name: "teeOfferId";
7155
+ readonly type: "uint256";
7156
+ }];
7157
+ readonly name: "removeLoaderKeys";
7158
+ readonly outputs: readonly [];
7159
+ readonly stateMutability: "nonpayable";
7160
+ readonly type: "function";
6756
7161
  }, {
6757
7162
  readonly inputs: readonly [{
6758
7163
  readonly components: readonly [{
@@ -6955,11 +7360,7 @@ export declare const abi: readonly [{
6955
7360
  readonly type: "uint32";
6956
7361
  }];
6957
7362
  readonly name: "createResourceOrder";
6958
- readonly outputs: readonly [{
6959
- readonly internalType: "uint256";
6960
- readonly name: "orderId";
6961
- readonly type: "uint256";
6962
- }];
7363
+ readonly outputs: readonly [];
6963
7364
  readonly stateMutability: "nonpayable";
6964
7365
  readonly type: "function";
6965
7366
  }, {
@@ -7035,6 +7436,18 @@ export declare const abi: readonly [{
7035
7436
  readonly internalType: "string";
7036
7437
  readonly name: "signedEncryptedData";
7037
7438
  readonly type: "string";
7439
+ }, {
7440
+ readonly internalType: "enum OfferType";
7441
+ readonly name: "offerType";
7442
+ readonly type: "uint8";
7443
+ }, {
7444
+ readonly internalType: "string";
7445
+ readonly name: "solutionHash";
7446
+ readonly type: "string";
7447
+ }, {
7448
+ readonly internalType: "bool";
7449
+ readonly name: "previousDataCopied";
7450
+ readonly type: "bool";
7038
7451
  }];
7039
7452
  readonly internalType: "struct OfferResource";
7040
7453
  readonly name: "";
@@ -7045,14 +7458,10 @@ export declare const abi: readonly [{
7045
7458
  }, {
7046
7459
  readonly inputs: readonly [{
7047
7460
  readonly internalType: "uint256";
7048
- readonly name: "offerId";
7461
+ readonly name: "teeOfferIssuerId";
7049
7462
  readonly type: "uint256";
7050
- }, {
7051
- readonly internalType: "uint64";
7052
- readonly name: "version";
7053
- readonly type: "uint64";
7054
7463
  }];
7055
- readonly name: "getOfferResourcesByOfferVersion";
7464
+ readonly name: "getOfferResourcesByIssuerId";
7056
7465
  readonly outputs: readonly [{
7057
7466
  readonly components: readonly [{
7058
7467
  readonly internalType: "uint256";
@@ -7107,6 +7516,18 @@ export declare const abi: readonly [{
7107
7516
  readonly internalType: "string";
7108
7517
  readonly name: "signedEncryptedData";
7109
7518
  readonly type: "string";
7519
+ }, {
7520
+ readonly internalType: "enum OfferType";
7521
+ readonly name: "offerType";
7522
+ readonly type: "uint8";
7523
+ }, {
7524
+ readonly internalType: "string";
7525
+ readonly name: "solutionHash";
7526
+ readonly type: "string";
7527
+ }, {
7528
+ readonly internalType: "bool";
7529
+ readonly name: "previousDataCopied";
7530
+ readonly type: "bool";
7110
7531
  }];
7111
7532
  readonly internalType: "struct OfferResource[]";
7112
7533
  readonly name: "";
@@ -7117,10 +7538,10 @@ export declare const abi: readonly [{
7117
7538
  }, {
7118
7539
  readonly inputs: readonly [{
7119
7540
  readonly internalType: "uint256";
7120
- readonly name: "teeOfferIssuerId";
7541
+ readonly name: "teeKeeperId";
7121
7542
  readonly type: "uint256";
7122
7543
  }];
7123
- readonly name: "getOfferResourcesByIssuerId";
7544
+ readonly name: "getOfferResourcesByKeeperId";
7124
7545
  readonly outputs: readonly [{
7125
7546
  readonly components: readonly [{
7126
7547
  readonly internalType: "uint256";
@@ -7175,6 +7596,18 @@ export declare const abi: readonly [{
7175
7596
  readonly internalType: "string";
7176
7597
  readonly name: "signedEncryptedData";
7177
7598
  readonly type: "string";
7599
+ }, {
7600
+ readonly internalType: "enum OfferType";
7601
+ readonly name: "offerType";
7602
+ readonly type: "uint8";
7603
+ }, {
7604
+ readonly internalType: "string";
7605
+ readonly name: "solutionHash";
7606
+ readonly type: "string";
7607
+ }, {
7608
+ readonly internalType: "bool";
7609
+ readonly name: "previousDataCopied";
7610
+ readonly type: "bool";
7178
7611
  }];
7179
7612
  readonly internalType: "struct OfferResource[]";
7180
7613
  readonly name: "";
@@ -7185,10 +7618,14 @@ export declare const abi: readonly [{
7185
7618
  }, {
7186
7619
  readonly inputs: readonly [{
7187
7620
  readonly internalType: "uint256";
7188
- readonly name: "teeKeeperId";
7621
+ readonly name: "offerId";
7189
7622
  readonly type: "uint256";
7623
+ }, {
7624
+ readonly internalType: "uint64";
7625
+ readonly name: "version";
7626
+ readonly type: "uint64";
7190
7627
  }];
7191
- readonly name: "getOfferResourcesByKeeperId";
7628
+ readonly name: "getOfferResourcesByOfferVersion";
7192
7629
  readonly outputs: readonly [{
7193
7630
  readonly components: readonly [{
7194
7631
  readonly internalType: "uint256";
@@ -7243,6 +7680,18 @@ export declare const abi: readonly [{
7243
7680
  readonly internalType: "string";
7244
7681
  readonly name: "signedEncryptedData";
7245
7682
  readonly type: "string";
7683
+ }, {
7684
+ readonly internalType: "enum OfferType";
7685
+ readonly name: "offerType";
7686
+ readonly type: "uint8";
7687
+ }, {
7688
+ readonly internalType: "string";
7689
+ readonly name: "solutionHash";
7690
+ readonly type: "string";
7691
+ }, {
7692
+ readonly internalType: "bool";
7693
+ readonly name: "previousDataCopied";
7694
+ readonly type: "bool";
7246
7695
  }];
7247
7696
  readonly internalType: "struct OfferResource[]";
7248
7697
  readonly name: "";
@@ -7264,6 +7713,104 @@ export declare const abi: readonly [{
7264
7713
  }];
7265
7714
  readonly stateMutability: "view";
7266
7715
  readonly type: "function";
7716
+ }, {
7717
+ readonly inputs: readonly [{
7718
+ readonly internalType: "uint256";
7719
+ readonly name: "offerId";
7720
+ readonly type: "uint256";
7721
+ }, {
7722
+ readonly internalType: "uint32";
7723
+ readonly name: "offerVersion";
7724
+ readonly type: "uint32";
7725
+ }];
7726
+ readonly name: "getReplicationFactorFulfilled";
7727
+ readonly outputs: readonly [{
7728
+ readonly internalType: "uint32";
7729
+ readonly name: "";
7730
+ readonly type: "uint32";
7731
+ }];
7732
+ readonly stateMutability: "view";
7733
+ readonly type: "function";
7734
+ }, {
7735
+ readonly inputs: readonly [{
7736
+ readonly components: readonly [{
7737
+ readonly internalType: "uint256";
7738
+ readonly name: "offerId";
7739
+ readonly type: "uint256";
7740
+ }, {
7741
+ readonly internalType: "uint256";
7742
+ readonly name: "teeOfferIssuerId";
7743
+ readonly type: "uint256";
7744
+ }, {
7745
+ readonly internalType: "uint256";
7746
+ readonly name: "teeOfferKeeperId";
7747
+ readonly type: "uint256";
7748
+ }, {
7749
+ readonly internalType: "uint256";
7750
+ readonly name: "storageOrderId";
7751
+ readonly type: "uint256";
7752
+ }, {
7753
+ readonly internalType: "uint64";
7754
+ readonly name: "offerVersion";
7755
+ readonly type: "uint64";
7756
+ }, {
7757
+ readonly internalType: "uint32";
7758
+ readonly name: "timestamp";
7759
+ readonly type: "uint32";
7760
+ }, {
7761
+ readonly internalType: "uint32";
7762
+ readonly name: "signedTime";
7763
+ readonly type: "uint32";
7764
+ }, {
7765
+ readonly components: readonly [{
7766
+ readonly internalType: "string";
7767
+ readonly name: "der";
7768
+ readonly type: "string";
7769
+ }, {
7770
+ readonly internalType: "bytes32";
7771
+ readonly name: "r";
7772
+ readonly type: "bytes32";
7773
+ }, {
7774
+ readonly internalType: "bytes32";
7775
+ readonly name: "s";
7776
+ readonly type: "bytes32";
7777
+ }, {
7778
+ readonly internalType: "uint8";
7779
+ readonly name: "v";
7780
+ readonly type: "uint8";
7781
+ }];
7782
+ readonly internalType: "struct Signature";
7783
+ readonly name: "signature";
7784
+ readonly type: "tuple";
7785
+ }, {
7786
+ readonly internalType: "string";
7787
+ readonly name: "signedEncryptedData";
7788
+ readonly type: "string";
7789
+ }, {
7790
+ readonly internalType: "enum OfferType";
7791
+ readonly name: "offerType";
7792
+ readonly type: "uint8";
7793
+ }, {
7794
+ readonly internalType: "string";
7795
+ readonly name: "solutionHash";
7796
+ readonly type: "string";
7797
+ }, {
7798
+ readonly internalType: "bool";
7799
+ readonly name: "previousDataCopied";
7800
+ readonly type: "bool";
7801
+ }];
7802
+ readonly internalType: "struct OfferResource";
7803
+ readonly name: "resource";
7804
+ readonly type: "tuple";
7805
+ }, {
7806
+ readonly internalType: "uint32";
7807
+ readonly name: "n";
7808
+ readonly type: "uint32";
7809
+ }];
7810
+ readonly name: "incrementReplicationFactor";
7811
+ readonly outputs: readonly [];
7812
+ readonly stateMutability: "nonpayable";
7813
+ readonly type: "function";
7267
7814
  }, {
7268
7815
  readonly inputs: readonly [{
7269
7816
  readonly components: readonly [{
@@ -7319,6 +7866,18 @@ export declare const abi: readonly [{
7319
7866
  readonly internalType: "string";
7320
7867
  readonly name: "signedEncryptedData";
7321
7868
  readonly type: "string";
7869
+ }, {
7870
+ readonly internalType: "enum OfferType";
7871
+ readonly name: "offerType";
7872
+ readonly type: "uint8";
7873
+ }, {
7874
+ readonly internalType: "string";
7875
+ readonly name: "solutionHash";
7876
+ readonly type: "string";
7877
+ }, {
7878
+ readonly internalType: "bool";
7879
+ readonly name: "previousDataCopied";
7880
+ readonly type: "bool";
7322
7881
  }];
7323
7882
  readonly internalType: "struct OfferResource";
7324
7883
  readonly name: "resource";
@@ -7356,6 +7915,14 @@ export declare const abi: readonly [{
7356
7915
  readonly internalType: "uint32";
7357
7916
  readonly name: "timestamp";
7358
7917
  readonly type: "uint32";
7918
+ }, {
7919
+ readonly internalType: "uint64";
7920
+ readonly name: "offerVersion";
7921
+ readonly type: "uint64";
7922
+ }, {
7923
+ readonly internalType: "uint256";
7924
+ readonly name: "offerId";
7925
+ readonly type: "uint256";
7359
7926
  }];
7360
7927
  readonly internalType: "struct OfferStorageAllocated";
7361
7928
  readonly name: "";
@@ -7363,6 +7930,45 @@ export declare const abi: readonly [{
7363
7930
  }];
7364
7931
  readonly stateMutability: "view";
7365
7932
  readonly type: "function";
7933
+ }, {
7934
+ readonly inputs: readonly [{
7935
+ readonly internalType: "uint256";
7936
+ readonly name: "teeOfferIssurId";
7937
+ readonly type: "uint256";
7938
+ }];
7939
+ readonly name: "getStorageOrdersAllocatedByIssuer";
7940
+ readonly outputs: readonly [{
7941
+ readonly components: readonly [{
7942
+ readonly internalType: "uint256";
7943
+ readonly name: "teeOfferIssuerId";
7944
+ readonly type: "uint256";
7945
+ }, {
7946
+ readonly internalType: "uint256";
7947
+ readonly name: "storageOrderId";
7948
+ readonly type: "uint256";
7949
+ }, {
7950
+ readonly internalType: "uint32";
7951
+ readonly name: "distributionReplicationFactor";
7952
+ readonly type: "uint32";
7953
+ }, {
7954
+ readonly internalType: "uint32";
7955
+ readonly name: "timestamp";
7956
+ readonly type: "uint32";
7957
+ }, {
7958
+ readonly internalType: "uint64";
7959
+ readonly name: "offerVersion";
7960
+ readonly type: "uint64";
7961
+ }, {
7962
+ readonly internalType: "uint256";
7963
+ readonly name: "offerId";
7964
+ readonly type: "uint256";
7965
+ }];
7966
+ readonly internalType: "struct OfferStorageAllocated[]";
7967
+ readonly name: "";
7968
+ readonly type: "tuple[]";
7969
+ }];
7970
+ readonly stateMutability: "view";
7971
+ readonly type: "function";
7366
7972
  }, {
7367
7973
  readonly anonymous: false;
7368
7974
  readonly inputs: readonly [{
@@ -7470,6 +8076,10 @@ export declare const abi: readonly [{
7470
8076
  readonly internalType: "uint32";
7471
8077
  readonly name: "timestamp";
7472
8078
  readonly type: "uint32";
8079
+ }, {
8080
+ readonly internalType: "bool";
8081
+ readonly name: "copyPreviousData";
8082
+ readonly type: "bool";
7473
8083
  }];
7474
8084
  readonly internalType: "struct OfferStorageRequest[]";
7475
8085
  readonly name: "";
@@ -7525,6 +8135,10 @@ export declare const abi: readonly [{
7525
8135
  readonly internalType: "uint32";
7526
8136
  readonly name: "timestamp";
7527
8137
  readonly type: "uint32";
8138
+ }, {
8139
+ readonly internalType: "bool";
8140
+ readonly name: "copyPreviousData";
8141
+ readonly type: "bool";
7528
8142
  }];
7529
8143
  readonly internalType: "struct OfferStorageRequest";
7530
8144
  readonly name: "";
@@ -7570,6 +8184,10 @@ export declare const abi: readonly [{
7570
8184
  readonly internalType: "uint32";
7571
8185
  readonly name: "timestamp";
7572
8186
  readonly type: "uint32";
8187
+ }, {
8188
+ readonly internalType: "bool";
8189
+ readonly name: "copyPreviousData";
8190
+ readonly type: "bool";
7573
8191
  }];
7574
8192
  readonly internalType: "struct OfferStorageRequest";
7575
8193
  readonly name: "request";