@super-protocol/sdk-js 2.2.0-beta.7 → 2.2.0-beta.71

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 (155) hide show
  1. package/dist/cjs/analytics/eventProviders/BrowserEventProvider.d.ts +1 -0
  2. package/dist/cjs/analytics/eventProviders/BrowserEventProvider.js +3 -3
  3. package/dist/cjs/config.d.ts +0 -1
  4. package/dist/cjs/config.js +1 -2
  5. package/dist/cjs/constants.d.ts +3 -4
  6. package/dist/cjs/constants.js +5 -7
  7. package/dist/cjs/contracts/abi.d.ts +279 -26
  8. package/dist/cjs/contracts/abi.js +357 -33
  9. package/dist/cjs/crypto/index.d.ts +1 -0
  10. package/dist/cjs/crypto/index.js +16 -1
  11. package/dist/cjs/errors/base.error.d.ts +3 -0
  12. package/dist/cjs/errors/base.error.js +19 -0
  13. package/dist/cjs/errors/index.d.ts +2 -0
  14. package/dist/cjs/errors/index.js +8 -0
  15. package/dist/cjs/errors/not-found.error.d.ts +3 -0
  16. package/dist/cjs/errors/not-found.error.js +8 -0
  17. package/dist/cjs/errors/utils.d.ts +1 -0
  18. package/dist/cjs/errors/utils.js +25 -0
  19. package/dist/cjs/index.d.ts +7 -1
  20. package/dist/cjs/index.js +14 -2
  21. package/dist/cjs/models/Offer.js +6 -4
  22. package/dist/cjs/models/TCB.js +13 -5
  23. package/dist/cjs/models/TeeOffer.d.ts +3 -3
  24. package/dist/cjs/models/TeeOffer.js +15 -12
  25. package/dist/cjs/providers/storage/S3StorageProvider.d.ts +7 -6
  26. package/dist/cjs/providers/storage/S3StorageProvider.js +35 -19
  27. package/dist/cjs/providers/storage/StorageAdapter.d.ts +9 -7
  28. package/dist/cjs/providers/storage/StorageAdapter.js +27 -29
  29. package/dist/cjs/providers/storage/StorageContentWriter.d.ts +2 -2
  30. package/dist/cjs/providers/storage/StorageContentWriter.js +5 -5
  31. package/dist/cjs/providers/storage/StorageKeyValueAdapter.d.ts +8 -5
  32. package/dist/cjs/providers/storage/StorageKeyValueAdapter.js +30 -16
  33. package/dist/cjs/providers/storage/StorjAdapter.d.ts +5 -4
  34. package/dist/cjs/providers/storage/StorjAdapter.js +15 -9
  35. package/dist/cjs/providers/storage/StorjCredentialsManager.d.ts +24 -0
  36. package/dist/cjs/providers/storage/StorjCredentialsManager.js +86 -0
  37. package/dist/cjs/providers/storage/StorjStorageProvider.js +2 -2
  38. package/dist/cjs/providers/storage/fs-storage-provider.d.ts +19 -0
  39. package/dist/cjs/providers/storage/fs-storage-provider.js +139 -0
  40. package/dist/cjs/providers/storage/getStorageProvider.js +4 -1
  41. package/dist/cjs/providers/storage/parseStorageCredentials.d.ts +5 -0
  42. package/dist/cjs/providers/storage/parseStorageCredentials.js +21 -0
  43. package/dist/cjs/providers/storage/types.d.ts +22 -0
  44. package/dist/cjs/staticModels/LoaderSecretsPublicKeys.d.ts +1 -1
  45. package/dist/cjs/staticModels/LoaderSecretsPublicKeys.js +9 -5
  46. package/dist/cjs/staticModels/LoaderSessions.d.ts +3 -3
  47. package/dist/cjs/staticModels/LoaderSessions.js +11 -7
  48. package/dist/cjs/staticModels/OfferResources.d.ts +2 -2
  49. package/dist/cjs/staticModels/OfferResources.js +20 -10
  50. package/dist/cjs/staticModels/OffersStorageAllocated.d.ts +2 -3
  51. package/dist/cjs/staticModels/OffersStorageAllocated.js +15 -11
  52. package/dist/cjs/staticModels/OffersStorageRequests.d.ts +1 -1
  53. package/dist/cjs/staticModels/OffersStorageRequests.js +10 -5
  54. package/dist/cjs/staticModels/SecretRequests.d.ts +2 -2
  55. package/dist/cjs/staticModels/SecretRequests.js +19 -10
  56. package/dist/cjs/staticModels/TeeOffers.d.ts +0 -2
  57. package/dist/cjs/staticModels/TeeOffers.js +1 -32
  58. package/dist/cjs/tee/QuoteParser.d.ts +61 -6
  59. package/dist/cjs/tee/QuoteParser.js +248 -29
  60. package/dist/cjs/tee/QuoteValidator.d.ts +1 -0
  61. package/dist/cjs/tee/QuoteValidator.js +53 -28
  62. package/dist/cjs/tee/TeeBlockVerifier.d.ts +4 -4
  63. package/dist/cjs/tee/TeeBlockVerifier.js +16 -7
  64. package/dist/cjs/tee/types.d.ts +50 -9
  65. package/dist/cjs/tee/types.js +32 -1
  66. package/dist/cjs/types/DistributedSecretStorage.d.ts +7 -0
  67. package/dist/cjs/types/Superpro.d.ts +2 -1
  68. package/dist/cjs/types/Superpro.js +2 -1
  69. package/dist/cjs/types/storage/StorageAccess.d.ts +3 -3
  70. package/dist/cjs/utils/CryptoKeysTransformer.d.ts +8 -1
  71. package/dist/cjs/utils/CryptoKeysTransformer.js +70 -7
  72. package/dist/cjs/utils/helper.d.ts +7 -1
  73. package/dist/cjs/utils/helper.js +85 -2
  74. package/dist/cjs/utils/helpers/OrderArgsHelper.d.ts +5 -0
  75. package/dist/cjs/utils/helpers/OrderArgsHelper.js +25 -0
  76. package/dist/cjs/utils/helpers/index.d.ts +1 -0
  77. package/dist/cjs/utils/helpers/index.js +2 -1
  78. package/dist/mjs/analytics/eventProviders/BrowserEventProvider.d.ts +1 -0
  79. package/dist/mjs/analytics/eventProviders/BrowserEventProvider.js +3 -3
  80. package/dist/mjs/config.d.ts +0 -1
  81. package/dist/mjs/config.js +1 -2
  82. package/dist/mjs/constants.d.ts +3 -4
  83. package/dist/mjs/constants.js +4 -6
  84. package/dist/mjs/contracts/abi.d.ts +279 -26
  85. package/dist/mjs/contracts/abi.js +357 -33
  86. package/dist/mjs/crypto/index.d.ts +1 -0
  87. package/dist/mjs/crypto/index.js +2 -1
  88. package/dist/mjs/errors/base.error.d.ts +3 -0
  89. package/dist/mjs/errors/base.error.js +15 -0
  90. package/dist/mjs/errors/index.d.ts +2 -0
  91. package/dist/mjs/errors/index.js +3 -0
  92. package/dist/mjs/errors/not-found.error.d.ts +3 -0
  93. package/dist/mjs/errors/not-found.error.js +4 -0
  94. package/dist/mjs/errors/utils.d.ts +1 -0
  95. package/dist/mjs/errors/utils.js +18 -0
  96. package/dist/mjs/index.d.ts +7 -1
  97. package/dist/mjs/index.js +7 -2
  98. package/dist/mjs/models/Offer.js +6 -4
  99. package/dist/mjs/models/TCB.js +13 -5
  100. package/dist/mjs/models/TeeOffer.d.ts +3 -3
  101. package/dist/mjs/models/TeeOffer.js +16 -13
  102. package/dist/mjs/providers/storage/S3StorageProvider.d.ts +7 -6
  103. package/dist/mjs/providers/storage/S3StorageProvider.js +32 -19
  104. package/dist/mjs/providers/storage/StorageAdapter.d.ts +9 -7
  105. package/dist/mjs/providers/storage/StorageAdapter.js +27 -29
  106. package/dist/mjs/providers/storage/StorageContentWriter.d.ts +2 -2
  107. package/dist/mjs/providers/storage/StorageContentWriter.js +5 -5
  108. package/dist/mjs/providers/storage/StorageKeyValueAdapter.d.ts +8 -5
  109. package/dist/mjs/providers/storage/StorageKeyValueAdapter.js +30 -16
  110. package/dist/mjs/providers/storage/StorjAdapter.d.ts +5 -4
  111. package/dist/mjs/providers/storage/StorjAdapter.js +15 -9
  112. package/dist/mjs/providers/storage/StorjCredentialsManager.d.ts +24 -0
  113. package/dist/mjs/providers/storage/StorjCredentialsManager.js +82 -0
  114. package/dist/mjs/providers/storage/StorjStorageProvider.js +2 -2
  115. package/dist/mjs/providers/storage/fs-storage-provider.d.ts +19 -0
  116. package/dist/mjs/providers/storage/fs-storage-provider.js +112 -0
  117. package/dist/mjs/providers/storage/getStorageProvider.js +4 -1
  118. package/dist/mjs/providers/storage/parseStorageCredentials.d.ts +5 -0
  119. package/dist/mjs/providers/storage/parseStorageCredentials.js +17 -0
  120. package/dist/mjs/providers/storage/types.d.ts +22 -0
  121. package/dist/mjs/staticModels/LoaderSecretsPublicKeys.d.ts +1 -1
  122. package/dist/mjs/staticModels/LoaderSecretsPublicKeys.js +10 -6
  123. package/dist/mjs/staticModels/LoaderSessions.d.ts +3 -3
  124. package/dist/mjs/staticModels/LoaderSessions.js +12 -8
  125. package/dist/mjs/staticModels/OfferResources.d.ts +2 -2
  126. package/dist/mjs/staticModels/OfferResources.js +21 -11
  127. package/dist/mjs/staticModels/OffersStorageAllocated.d.ts +2 -3
  128. package/dist/mjs/staticModels/OffersStorageAllocated.js +16 -12
  129. package/dist/mjs/staticModels/OffersStorageRequests.d.ts +1 -1
  130. package/dist/mjs/staticModels/OffersStorageRequests.js +11 -6
  131. package/dist/mjs/staticModels/SecretRequests.d.ts +2 -2
  132. package/dist/mjs/staticModels/SecretRequests.js +20 -11
  133. package/dist/mjs/staticModels/TeeOffers.d.ts +0 -2
  134. package/dist/mjs/staticModels/TeeOffers.js +1 -32
  135. package/dist/mjs/tee/QuoteParser.d.ts +61 -6
  136. package/dist/mjs/tee/QuoteParser.js +245 -28
  137. package/dist/mjs/tee/QuoteValidator.d.ts +1 -0
  138. package/dist/mjs/tee/QuoteValidator.js +54 -29
  139. package/dist/mjs/tee/TeeBlockVerifier.d.ts +4 -4
  140. package/dist/mjs/tee/TeeBlockVerifier.js +16 -7
  141. package/dist/mjs/tee/types.d.ts +50 -9
  142. package/dist/mjs/tee/types.js +28 -2
  143. package/dist/mjs/types/DistributedSecretStorage.d.ts +7 -0
  144. package/dist/mjs/types/Superpro.d.ts +2 -1
  145. package/dist/mjs/types/Superpro.js +2 -1
  146. package/dist/mjs/types/storage/StorageAccess.d.ts +3 -3
  147. package/dist/mjs/utils/CryptoKeysTransformer.d.ts +8 -1
  148. package/dist/mjs/utils/CryptoKeysTransformer.js +70 -7
  149. package/dist/mjs/utils/helper.d.ts +7 -1
  150. package/dist/mjs/utils/helper.js +78 -1
  151. package/dist/mjs/utils/helpers/OrderArgsHelper.d.ts +5 -0
  152. package/dist/mjs/utils/helpers/OrderArgsHelper.js +18 -0
  153. package/dist/mjs/utils/helpers/index.d.ts +1 -0
  154. package/dist/mjs/utils/helpers/index.js +2 -1
  155. package/package.json +4 -4
@@ -2,6 +2,7 @@ import EventProvider from './EventProvider.js';
2
2
  export interface BrowserEventProviderProp {
3
3
  userId: string;
4
4
  deviceId: string;
5
+ platform?: string;
5
6
  }
6
7
  export default class BrowserEventProvider extends EventProvider {
7
8
  protected readonly userId: string;
@@ -16,13 +16,13 @@ class BrowserEventProvider extends EventProvider_js_1.default {
16
16
  deviceId;
17
17
  constructor(event) {
18
18
  super();
19
- const { userId, deviceId } = event;
19
+ const { userId, deviceId, platform } = event;
20
20
  const userAgent = new ua_parser_js_1.default(navigator?.userAgent).getResult();
21
21
  this.userId = userId;
22
22
  this.deviceId = deviceId;
23
23
  this.language = this.getLanguage();
24
24
  this.date = this.getDate();
25
- this.platform = 'web';
25
+ this.platform = platform || 'web';
26
26
  this.osName = userAgent?.os?.name || '';
27
27
  this.engineVersion = userAgent?.browser?.version || '';
28
28
  this.engine = userAgent?.browser?.name || '';
@@ -35,4 +35,4 @@ class BrowserEventProvider extends EventProvider_js_1.default {
35
35
  }
36
36
  }
37
37
  exports.default = BrowserEventProvider;
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJvd3NlckV2ZW50UHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYW5hbHl0aWNzL2V2ZW50UHJvdmlkZXJzL0Jyb3dzZXJFdmVudFByb3ZpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsZ0VBQW9DO0FBQ3BDLDBFQUErQztBQU8vQyxNQUFxQixvQkFBcUIsU0FBUSwwQkFBYTtJQUMxQyxNQUFNLENBQVM7SUFDZixRQUFRLENBQVM7SUFDakIsSUFBSSxDQUFTO0lBQ2IsUUFBUSxDQUFTO0lBQ2pCLE1BQU0sQ0FBUztJQUNmLE1BQU0sQ0FBUztJQUNmLGFBQWEsQ0FBUztJQUN0QixRQUFRLENBQVM7SUFFcEMsWUFBWSxLQUErQjtRQUN6QyxLQUFLLEVBQUUsQ0FBQztRQUNSLE1BQU0sRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLEdBQUcsS0FBSyxDQUFDO1FBQ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UN4QyxJQUFJLENBQUMsYUFBYSxHQUFHLFNBQVMsRUFBRSxPQUFPLEVBQUUsT0FBTyxJQUFJLEVBQUUsQ0FBQztRQUN2RCxJQUFJLENBQUMsTUFBTSxHQUFHLFNBQVMsRUFBRSxPQUFPLEVBQUUsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUMvQyxDQUFDO0lBRU8sV0FBVztRQUNqQixPQUFPLENBQ0wsQ0FBQyxPQUFPLFNBQVMsS0FBSyxXQUFXLElBQUksQ0FBQyxTQUFTLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksU0FBUyxDQUFDLFFBQVEsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUM5RixDQUFDO0lBQ0osQ0FBQztJQUVPLE9BQU87UUFDYixPQUFPLElBQUksSUFBSSxFQUFFLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDbEMsQ0FBQztDQUNGO0FBakNELHVDQWlDQyJ9
@@ -1,4 +1,3 @@
1
1
  export declare const config: {
2
- TEE_LOADER_TRUSTED_MRSIGNER: string;
3
2
  TLB_CACHE_SIZE: number;
4
3
  };
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.config = void 0;
4
4
  exports.config = {
5
- TEE_LOADER_TRUSTED_MRSIGNER: '4a5cb479b8a30fa3821b88aa29bad04788ea006a9e09925bf3ec36398fc9d64b',
6
5
  TLB_CACHE_SIZE: 100,
7
6
  };
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLE1BQU0sR0FBRztJQUNwQiwyQkFBMkIsRUFBRSxrRUFBa0U7SUFDL0YsY0FBYyxFQUFFLEdBQUc7Q0FDcEIsQ0FBQyJ9
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLE1BQU0sR0FBRztJQUNwQixjQUFjLEVBQUUsR0FBRztDQUNwQixDQUFDIn0=
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Hash } from '@super-protocol/dto-js';
2
3
  export declare const defaultBlockchainUrl = "http://127.0.0.1:8545";
3
4
  export declare const defaultGasLimit: bigint;
@@ -15,8 +16,6 @@ export declare const BLOCKCHAIN_BATCH_REQUEST_TIMEOUT = 10000;
15
16
  export declare const POLYGON_MAIN_CHAIN_ID = 137;
16
17
  export declare const POLYGON_AMOY_CHAIN_ID = 80002;
17
18
  export declare const AMOY_TX_COST_LIMIT: bigint;
19
+ export declare const AMOY_TX_GAS_LIMIT: bigint;
18
20
  export declare const ZERO_HASH: Hash;
19
- export declare const HOUR_IN_MS: number;
20
- export declare const INACTIVE_TEE_OFFER_PERIOD_IN_HOURS: number;
21
- export declare const INACTIVE_TCB_PERIOD: number;
22
- export declare const TEE_OFFER_SELECT_FRESH_SIZE: number;
21
+ export declare const TEE_LOADER_TRUSTED_MRSIGNER: Buffer;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TEE_OFFER_SELECT_FRESH_SIZE = exports.INACTIVE_TCB_PERIOD = exports.INACTIVE_TEE_OFFER_PERIOD_IN_HOURS = exports.HOUR_IN_MS = exports.ZERO_HASH = exports.AMOY_TX_COST_LIMIT = exports.POLYGON_AMOY_CHAIN_ID = exports.POLYGON_MAIN_CHAIN_ID = exports.BLOCKCHAIN_BATCH_REQUEST_TIMEOUT = exports.BLOCKCHAIN_CALL_RETRY_INTERVAL = exports.BLOCKCHAIN_CALL_RETRY_ATTEMPTS = exports.POLYGON_MATIC_EVENT_PATH = exports.BLOCK_SIZE_TO_FETCH_TRANSACTION = exports.ONE_DAY = exports.txIntervalMs = exports.txConcurrency = exports.defaultGasLimitMultiplier = exports.defaultGasPriceMultiplier = exports.defaultGasPrice = exports.defaultGasLimit = exports.defaultBlockchainUrl = void 0;
3
+ exports.TEE_LOADER_TRUSTED_MRSIGNER = exports.ZERO_HASH = exports.AMOY_TX_GAS_LIMIT = exports.AMOY_TX_COST_LIMIT = exports.POLYGON_AMOY_CHAIN_ID = exports.POLYGON_MAIN_CHAIN_ID = exports.BLOCKCHAIN_BATCH_REQUEST_TIMEOUT = exports.BLOCKCHAIN_CALL_RETRY_INTERVAL = exports.BLOCKCHAIN_CALL_RETRY_ATTEMPTS = exports.POLYGON_MATIC_EVENT_PATH = exports.BLOCK_SIZE_TO_FETCH_TRANSACTION = exports.ONE_DAY = exports.txIntervalMs = exports.txConcurrency = exports.defaultGasLimitMultiplier = exports.defaultGasPriceMultiplier = exports.defaultGasPrice = exports.defaultGasLimit = exports.defaultBlockchainUrl = void 0;
4
4
  const dto_js_1 = require("@super-protocol/dto-js");
5
5
  exports.defaultBlockchainUrl = 'http://127.0.0.1:8545';
6
6
  exports.defaultGasLimit = BigInt(7000000);
@@ -17,14 +17,12 @@ exports.BLOCKCHAIN_CALL_RETRY_INTERVAL = 3000;
17
17
  exports.BLOCKCHAIN_BATCH_REQUEST_TIMEOUT = 10000;
18
18
  exports.POLYGON_MAIN_CHAIN_ID = 137;
19
19
  exports.POLYGON_AMOY_CHAIN_ID = 80002;
20
- exports.AMOY_TX_COST_LIMIT = BigInt('5000000000000000000');
20
+ exports.AMOY_TX_COST_LIMIT = BigInt('500000000000000000');
21
+ exports.AMOY_TX_GAS_LIMIT = BigInt('5000000');
21
22
  exports.ZERO_HASH = {
22
23
  hash: '0000000000000000000000000000000000000000000000000000000000000000',
23
24
  algo: dto_js_1.HashAlgorithm.SHA256,
24
25
  encoding: dto_js_1.Encoding.base64,
25
26
  };
26
- exports.HOUR_IN_MS = 60 * 60 * 1000;
27
- exports.INACTIVE_TEE_OFFER_PERIOD_IN_HOURS = Number(process.env.INACTIVE_PERIOD_TEE_OFFER_IN_HOURS ?? 25);
28
- exports.INACTIVE_TCB_PERIOD = exports.INACTIVE_TEE_OFFER_PERIOD_IN_HOURS * exports.HOUR_IN_MS;
29
- exports.TEE_OFFER_SELECT_FRESH_SIZE = Number(process.env.TEE_OFFER_SELECT_FRESH_SIZE ?? 100);
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtREFBdUU7QUFFMUQsUUFBQSxvQkFBb0IsR0FBRyx1QkFBdUIsQ0FBQztBQUMvQyxRQUFBLGVBQWUsR0FBRyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDbEMsUUFBQSxlQUFlLEdBQUcsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDO0FBQ3JDLFFBQUEseUJBQXlCLEdBQUcsQ0FBQyxDQUFDO0FBQzlCLFFBQUEseUJBQXlCLEdBQUcsR0FBRyxDQUFDO0FBQ2hDLFFBQUEsYUFBYSxHQUFHLEVBQUUsQ0FBQztBQUNuQixRQUFBLFlBQVksR0FBRyxFQUFFLENBQUM7QUFDbEIsUUFBQSxPQUFPLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLENBQUM7QUFDdkIsUUFBQSwrQkFBK0IsR0FBRyxHQUFHLENBQUM7QUFDdEMsUUFBQSx3QkFBd0IsR0FBRyw0Q0FBNEMsQ0FBQztBQUN4RSxRQUFBLDhCQUE4QixHQUFHLEVBQUUsQ0FBQztBQUNwQyxRQUFBLDhCQUE4QixHQUFHLElBQUks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Q0FBQyJ9
@@ -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 [{
@@ -3141,6 +3149,24 @@ export declare const abi: readonly [{
3141
3149
  }];
3142
3150
  readonly name: "OrderProfitUnlocked";
3143
3151
  readonly type: "event";
3152
+ }, {
3153
+ readonly inputs: readonly [{
3154
+ readonly internalType: "uint256";
3155
+ readonly name: "orderId";
3156
+ readonly type: "uint256";
3157
+ }, {
3158
+ readonly internalType: "uint256";
3159
+ readonly name: "amount";
3160
+ readonly type: "uint256";
3161
+ }];
3162
+ readonly name: "debitOrderDepositByApp";
3163
+ readonly outputs: readonly [{
3164
+ readonly internalType: "uint256";
3165
+ readonly name: "";
3166
+ readonly type: "uint256";
3167
+ }];
3168
+ readonly stateMutability: "nonpayable";
3169
+ readonly type: "function";
3144
3170
  }, {
3145
3171
  readonly inputs: readonly [{
3146
3172
  readonly internalType: "uint256";
@@ -3776,6 +3802,20 @@ export declare const abi: readonly [{
3776
3802
  }];
3777
3803
  readonly stateMutability: "view";
3778
3804
  readonly type: "function";
3805
+ }, {
3806
+ readonly inputs: readonly [{
3807
+ readonly internalType: "uint256";
3808
+ readonly name: "orderId";
3809
+ readonly type: "uint256";
3810
+ }];
3811
+ readonly name: "getOrderConsumer";
3812
+ readonly outputs: readonly [{
3813
+ readonly internalType: "address";
3814
+ readonly name: "";
3815
+ readonly type: "address";
3816
+ }];
3817
+ readonly stateMutability: "view";
3818
+ readonly type: "function";
3779
3819
  }, {
3780
3820
  readonly inputs: readonly [{
3781
3821
  readonly internalType: "uint256";
@@ -5557,7 +5597,7 @@ export declare const abi: readonly [{
5557
5597
  readonly name: "teeOfferId";
5558
5598
  readonly type: "uint256";
5559
5599
  }];
5560
- readonly name: "confisacateAllRewards";
5600
+ readonly name: "confiscateAllRewards";
5561
5601
  readonly outputs: readonly [];
5562
5602
  readonly stateMutability: "nonpayable";
5563
5603
  readonly type: "function";
@@ -6675,16 +6715,6 @@ export declare const abi: readonly [{
6675
6715
  }];
6676
6716
  readonly name: "LoaderSessionKeyUpdated";
6677
6717
  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
6718
  }, {
6689
6719
  readonly inputs: readonly [];
6690
6720
  readonly name: "getDisabledLoaders";
@@ -6753,6 +6783,16 @@ export declare const abi: readonly [{
6753
6783
  }];
6754
6784
  readonly stateMutability: "view";
6755
6785
  readonly type: "function";
6786
+ }, {
6787
+ readonly inputs: readonly [{
6788
+ readonly internalType: "uint256";
6789
+ readonly name: "teeOfferId";
6790
+ readonly type: "uint256";
6791
+ }];
6792
+ readonly name: "removeLoaderKeys";
6793
+ readonly outputs: readonly [];
6794
+ readonly stateMutability: "nonpayable";
6795
+ readonly type: "function";
6756
6796
  }, {
6757
6797
  readonly inputs: readonly [{
6758
6798
  readonly components: readonly [{
@@ -6955,11 +6995,7 @@ export declare const abi: readonly [{
6955
6995
  readonly type: "uint32";
6956
6996
  }];
6957
6997
  readonly name: "createResourceOrder";
6958
- readonly outputs: readonly [{
6959
- readonly internalType: "uint256";
6960
- readonly name: "orderId";
6961
- readonly type: "uint256";
6962
- }];
6998
+ readonly outputs: readonly [];
6963
6999
  readonly stateMutability: "nonpayable";
6964
7000
  readonly type: "function";
6965
7001
  }, {
@@ -7035,6 +7071,18 @@ export declare const abi: readonly [{
7035
7071
  readonly internalType: "string";
7036
7072
  readonly name: "signedEncryptedData";
7037
7073
  readonly type: "string";
7074
+ }, {
7075
+ readonly internalType: "enum OfferType";
7076
+ readonly name: "offerType";
7077
+ readonly type: "uint8";
7078
+ }, {
7079
+ readonly internalType: "string";
7080
+ readonly name: "solutionHash";
7081
+ readonly type: "string";
7082
+ }, {
7083
+ readonly internalType: "bool";
7084
+ readonly name: "previousDataCopied";
7085
+ readonly type: "bool";
7038
7086
  }];
7039
7087
  readonly internalType: "struct OfferResource";
7040
7088
  readonly name: "";
@@ -7045,14 +7093,10 @@ export declare const abi: readonly [{
7045
7093
  }, {
7046
7094
  readonly inputs: readonly [{
7047
7095
  readonly internalType: "uint256";
7048
- readonly name: "offerId";
7096
+ readonly name: "teeOfferIssuerId";
7049
7097
  readonly type: "uint256";
7050
- }, {
7051
- readonly internalType: "uint64";
7052
- readonly name: "version";
7053
- readonly type: "uint64";
7054
7098
  }];
7055
- readonly name: "getOfferResourcesByOfferVersion";
7099
+ readonly name: "getOfferResourcesByIssuerId";
7056
7100
  readonly outputs: readonly [{
7057
7101
  readonly components: readonly [{
7058
7102
  readonly internalType: "uint256";
@@ -7107,6 +7151,18 @@ export declare const abi: readonly [{
7107
7151
  readonly internalType: "string";
7108
7152
  readonly name: "signedEncryptedData";
7109
7153
  readonly type: "string";
7154
+ }, {
7155
+ readonly internalType: "enum OfferType";
7156
+ readonly name: "offerType";
7157
+ readonly type: "uint8";
7158
+ }, {
7159
+ readonly internalType: "string";
7160
+ readonly name: "solutionHash";
7161
+ readonly type: "string";
7162
+ }, {
7163
+ readonly internalType: "bool";
7164
+ readonly name: "previousDataCopied";
7165
+ readonly type: "bool";
7110
7166
  }];
7111
7167
  readonly internalType: "struct OfferResource[]";
7112
7168
  readonly name: "";
@@ -7117,10 +7173,10 @@ export declare const abi: readonly [{
7117
7173
  }, {
7118
7174
  readonly inputs: readonly [{
7119
7175
  readonly internalType: "uint256";
7120
- readonly name: "teeOfferIssuerId";
7176
+ readonly name: "teeKeeperId";
7121
7177
  readonly type: "uint256";
7122
7178
  }];
7123
- readonly name: "getOfferResourcesByIssuerId";
7179
+ readonly name: "getOfferResourcesByKeeperId";
7124
7180
  readonly outputs: readonly [{
7125
7181
  readonly components: readonly [{
7126
7182
  readonly internalType: "uint256";
@@ -7175,6 +7231,18 @@ export declare const abi: readonly [{
7175
7231
  readonly internalType: "string";
7176
7232
  readonly name: "signedEncryptedData";
7177
7233
  readonly type: "string";
7234
+ }, {
7235
+ readonly internalType: "enum OfferType";
7236
+ readonly name: "offerType";
7237
+ readonly type: "uint8";
7238
+ }, {
7239
+ readonly internalType: "string";
7240
+ readonly name: "solutionHash";
7241
+ readonly type: "string";
7242
+ }, {
7243
+ readonly internalType: "bool";
7244
+ readonly name: "previousDataCopied";
7245
+ readonly type: "bool";
7178
7246
  }];
7179
7247
  readonly internalType: "struct OfferResource[]";
7180
7248
  readonly name: "";
@@ -7185,10 +7253,14 @@ export declare const abi: readonly [{
7185
7253
  }, {
7186
7254
  readonly inputs: readonly [{
7187
7255
  readonly internalType: "uint256";
7188
- readonly name: "teeKeeperId";
7256
+ readonly name: "offerId";
7189
7257
  readonly type: "uint256";
7258
+ }, {
7259
+ readonly internalType: "uint64";
7260
+ readonly name: "version";
7261
+ readonly type: "uint64";
7190
7262
  }];
7191
- readonly name: "getOfferResourcesByKeeperId";
7263
+ readonly name: "getOfferResourcesByOfferVersion";
7192
7264
  readonly outputs: readonly [{
7193
7265
  readonly components: readonly [{
7194
7266
  readonly internalType: "uint256";
@@ -7243,6 +7315,18 @@ export declare const abi: readonly [{
7243
7315
  readonly internalType: "string";
7244
7316
  readonly name: "signedEncryptedData";
7245
7317
  readonly type: "string";
7318
+ }, {
7319
+ readonly internalType: "enum OfferType";
7320
+ readonly name: "offerType";
7321
+ readonly type: "uint8";
7322
+ }, {
7323
+ readonly internalType: "string";
7324
+ readonly name: "solutionHash";
7325
+ readonly type: "string";
7326
+ }, {
7327
+ readonly internalType: "bool";
7328
+ readonly name: "previousDataCopied";
7329
+ readonly type: "bool";
7246
7330
  }];
7247
7331
  readonly internalType: "struct OfferResource[]";
7248
7332
  readonly name: "";
@@ -7264,6 +7348,24 @@ export declare const abi: readonly [{
7264
7348
  }];
7265
7349
  readonly stateMutability: "view";
7266
7350
  readonly type: "function";
7351
+ }, {
7352
+ readonly inputs: readonly [{
7353
+ readonly internalType: "uint256";
7354
+ readonly name: "offerId";
7355
+ readonly type: "uint256";
7356
+ }, {
7357
+ readonly internalType: "uint32";
7358
+ readonly name: "offerVersion";
7359
+ readonly type: "uint32";
7360
+ }];
7361
+ readonly name: "getReplicationFactorFulfilled";
7362
+ readonly outputs: readonly [{
7363
+ readonly internalType: "uint32";
7364
+ readonly name: "";
7365
+ readonly type: "uint32";
7366
+ }];
7367
+ readonly stateMutability: "view";
7368
+ readonly type: "function";
7267
7369
  }, {
7268
7370
  readonly inputs: readonly [{
7269
7371
  readonly components: readonly [{
@@ -7319,6 +7421,98 @@ export declare const abi: readonly [{
7319
7421
  readonly internalType: "string";
7320
7422
  readonly name: "signedEncryptedData";
7321
7423
  readonly type: "string";
7424
+ }, {
7425
+ readonly internalType: "enum OfferType";
7426
+ readonly name: "offerType";
7427
+ readonly type: "uint8";
7428
+ }, {
7429
+ readonly internalType: "string";
7430
+ readonly name: "solutionHash";
7431
+ readonly type: "string";
7432
+ }, {
7433
+ readonly internalType: "bool";
7434
+ readonly name: "previousDataCopied";
7435
+ readonly type: "bool";
7436
+ }];
7437
+ readonly internalType: "struct OfferResource";
7438
+ readonly name: "resource";
7439
+ readonly type: "tuple";
7440
+ }, {
7441
+ readonly internalType: "uint32";
7442
+ readonly name: "n";
7443
+ readonly type: "uint32";
7444
+ }];
7445
+ readonly name: "incrementReplicationFactor";
7446
+ readonly outputs: readonly [];
7447
+ readonly stateMutability: "nonpayable";
7448
+ readonly type: "function";
7449
+ }, {
7450
+ readonly inputs: readonly [{
7451
+ readonly components: readonly [{
7452
+ readonly internalType: "uint256";
7453
+ readonly name: "offerId";
7454
+ readonly type: "uint256";
7455
+ }, {
7456
+ readonly internalType: "uint256";
7457
+ readonly name: "teeOfferIssuerId";
7458
+ readonly type: "uint256";
7459
+ }, {
7460
+ readonly internalType: "uint256";
7461
+ readonly name: "teeOfferKeeperId";
7462
+ readonly type: "uint256";
7463
+ }, {
7464
+ readonly internalType: "uint256";
7465
+ readonly name: "storageOrderId";
7466
+ readonly type: "uint256";
7467
+ }, {
7468
+ readonly internalType: "uint64";
7469
+ readonly name: "offerVersion";
7470
+ readonly type: "uint64";
7471
+ }, {
7472
+ readonly internalType: "uint32";
7473
+ readonly name: "timestamp";
7474
+ readonly type: "uint32";
7475
+ }, {
7476
+ readonly internalType: "uint32";
7477
+ readonly name: "signedTime";
7478
+ readonly type: "uint32";
7479
+ }, {
7480
+ readonly components: readonly [{
7481
+ readonly internalType: "string";
7482
+ readonly name: "der";
7483
+ readonly type: "string";
7484
+ }, {
7485
+ readonly internalType: "bytes32";
7486
+ readonly name: "r";
7487
+ readonly type: "bytes32";
7488
+ }, {
7489
+ readonly internalType: "bytes32";
7490
+ readonly name: "s";
7491
+ readonly type: "bytes32";
7492
+ }, {
7493
+ readonly internalType: "uint8";
7494
+ readonly name: "v";
7495
+ readonly type: "uint8";
7496
+ }];
7497
+ readonly internalType: "struct Signature";
7498
+ readonly name: "signature";
7499
+ readonly type: "tuple";
7500
+ }, {
7501
+ readonly internalType: "string";
7502
+ readonly name: "signedEncryptedData";
7503
+ readonly type: "string";
7504
+ }, {
7505
+ readonly internalType: "enum OfferType";
7506
+ readonly name: "offerType";
7507
+ readonly type: "uint8";
7508
+ }, {
7509
+ readonly internalType: "string";
7510
+ readonly name: "solutionHash";
7511
+ readonly type: "string";
7512
+ }, {
7513
+ readonly internalType: "bool";
7514
+ readonly name: "previousDataCopied";
7515
+ readonly type: "bool";
7322
7516
  }];
7323
7517
  readonly internalType: "struct OfferResource";
7324
7518
  readonly name: "resource";
@@ -7356,6 +7550,14 @@ export declare const abi: readonly [{
7356
7550
  readonly internalType: "uint32";
7357
7551
  readonly name: "timestamp";
7358
7552
  readonly type: "uint32";
7553
+ }, {
7554
+ readonly internalType: "uint64";
7555
+ readonly name: "offerVersion";
7556
+ readonly type: "uint64";
7557
+ }, {
7558
+ readonly internalType: "uint256";
7559
+ readonly name: "offerId";
7560
+ readonly type: "uint256";
7359
7561
  }];
7360
7562
  readonly internalType: "struct OfferStorageAllocated";
7361
7563
  readonly name: "";
@@ -7363,6 +7565,45 @@ export declare const abi: readonly [{
7363
7565
  }];
7364
7566
  readonly stateMutability: "view";
7365
7567
  readonly type: "function";
7568
+ }, {
7569
+ readonly inputs: readonly [{
7570
+ readonly internalType: "uint256";
7571
+ readonly name: "teeOfferIssurId";
7572
+ readonly type: "uint256";
7573
+ }];
7574
+ readonly name: "getStorageOrdersAllocatedByIssuer";
7575
+ readonly outputs: readonly [{
7576
+ readonly components: readonly [{
7577
+ readonly internalType: "uint256";
7578
+ readonly name: "teeOfferIssuerId";
7579
+ readonly type: "uint256";
7580
+ }, {
7581
+ readonly internalType: "uint256";
7582
+ readonly name: "storageOrderId";
7583
+ readonly type: "uint256";
7584
+ }, {
7585
+ readonly internalType: "uint32";
7586
+ readonly name: "distributionReplicationFactor";
7587
+ readonly type: "uint32";
7588
+ }, {
7589
+ readonly internalType: "uint32";
7590
+ readonly name: "timestamp";
7591
+ readonly type: "uint32";
7592
+ }, {
7593
+ readonly internalType: "uint64";
7594
+ readonly name: "offerVersion";
7595
+ readonly type: "uint64";
7596
+ }, {
7597
+ readonly internalType: "uint256";
7598
+ readonly name: "offerId";
7599
+ readonly type: "uint256";
7600
+ }];
7601
+ readonly internalType: "struct OfferStorageAllocated[]";
7602
+ readonly name: "";
7603
+ readonly type: "tuple[]";
7604
+ }];
7605
+ readonly stateMutability: "view";
7606
+ readonly type: "function";
7366
7607
  }, {
7367
7608
  readonly anonymous: false;
7368
7609
  readonly inputs: readonly [{
@@ -7470,6 +7711,10 @@ export declare const abi: readonly [{
7470
7711
  readonly internalType: "uint32";
7471
7712
  readonly name: "timestamp";
7472
7713
  readonly type: "uint32";
7714
+ }, {
7715
+ readonly internalType: "bool";
7716
+ readonly name: "copyPreviousData";
7717
+ readonly type: "bool";
7473
7718
  }];
7474
7719
  readonly internalType: "struct OfferStorageRequest[]";
7475
7720
  readonly name: "";
@@ -7525,6 +7770,10 @@ export declare const abi: readonly [{
7525
7770
  readonly internalType: "uint32";
7526
7771
  readonly name: "timestamp";
7527
7772
  readonly type: "uint32";
7773
+ }, {
7774
+ readonly internalType: "bool";
7775
+ readonly name: "copyPreviousData";
7776
+ readonly type: "bool";
7528
7777
  }];
7529
7778
  readonly internalType: "struct OfferStorageRequest";
7530
7779
  readonly name: "";
@@ -7570,6 +7819,10 @@ export declare const abi: readonly [{
7570
7819
  readonly internalType: "uint32";
7571
7820
  readonly name: "timestamp";
7572
7821
  readonly type: "uint32";
7822
+ }, {
7823
+ readonly internalType: "bool";
7824
+ readonly name: "copyPreviousData";
7825
+ readonly type: "bool";
7573
7826
  }];
7574
7827
  readonly internalType: "struct OfferStorageRequest";
7575
7828
  readonly name: "request";