@ethernity-cloud/sdk-js 1.5.11 → 1.5.12

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.
@@ -1,28 +1,30 @@
1
- class TaskStatus {
2
- static SUCCESS = 0;
3
- static SYSTEM_ERROR = 1;
4
- static KEY_ERROR = 2;
5
- static SYNTAX_WARNING = 3;
6
- static BASE_EXCEPTION = 4;
7
- static PAYLOAD_NOT_DEFINED = 5;
8
- static PAYLOAD_CHECKSUM_ERROR = 6;
9
- static INPUT_CHECKSUM_ERROR = 7;
10
- static EVAL_ERROR = 8;
11
- // Extended diagnostic (matches the trustedzone's extended enum): the
12
- // serverless backend failed to load, so none of its functions exist.
13
- static IMPORT_ERROR = 28;
14
- // A required enclave config value is present but EMPTY (e.g. an ESR
15
- // address that was never baked into the sealed image). Reported eagerly
16
- // with the variable named, instead of a confusing downstream crash.
17
- static CONFIG_ERROR = 32;
18
- static EXECUTION_TIMEOUT = 33; // Started but produced no result within the order duration.
19
- static ESR_GAS_LIMIT_EXCEEDED = 34; // ESR commits would exceed the per-order relayed-gas budget.
20
- static SECURITY_VIOLATION = 35; // A state commit was authorized under a caller other than
21
- // the task's submitter (the in-enclave ownership check was
22
- // bypassed). Set by the securelock on a detected forged
23
- // caller, and by the trustedzone re-adjudication.
24
- }
25
-
26
- module.exports = {
27
- TaskStatus,
28
- };
1
+ class TaskStatus {
2
+ static SUCCESS = 0;
3
+ static SYSTEM_ERROR = 1;
4
+ static KEY_ERROR = 2;
5
+ static SYNTAX_WARNING = 3;
6
+ static BASE_EXCEPTION = 4;
7
+ static PAYLOAD_NOT_DEFINED = 5;
8
+ static PAYLOAD_CHECKSUM_ERROR = 6;
9
+ static INPUT_CHECKSUM_ERROR = 7;
10
+ static EVAL_ERROR = 8;
11
+ // Extended diagnostic (matches the trustedzone's extended enum): the
12
+ // serverless backend failed to load, so none of its functions exist.
13
+ static IMPORT_ERROR = 28;
14
+ // A required enclave config value is present but EMPTY (e.g. an ESR
15
+ // address that was never baked into the sealed image). Reported eagerly
16
+ // with the variable named, instead of a confusing downstream crash.
17
+ static CONFIG_ERROR = 32;
18
+ static EXECUTION_TIMEOUT = 33; // Started but produced no result within the order duration.
19
+ static ESR_GAS_LIMIT_EXCEEDED = 34; // ESR commits would exceed the per-order relayed-gas budget.
20
+ static SECURITY_VIOLATION = 35; // A state commit was authorized under a caller other than
21
+ static ESR_NONCE_VIOLATION = 36; // A commit's idempotency nonce was already used -- duplicate
22
+ // suppressed, state unchanged (StateNonceError).
23
+ // the task's submitter (the in-enclave ownership check was
24
+ // bypassed). Set by the securelock on a detected forged
25
+ // caller, and by the trustedzone re-adjudication.
26
+ }
27
+
28
+ module.exports = {
29
+ TaskStatus,
30
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethernity-cloud/sdk-js",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "A package to run ethernity cloud build scripts",
5
5
  "scripts": {
6
6
  "ecld-build": "cross-env node ./node_modules/@ethernity-cloud/sdk-js/build.js",