diff --git a/CodeExamples.md b/CodeExamples.md index ccf4a6828..7e9f7d306 100644 --- a/CodeExamples.md +++ b/CodeExamples.md @@ -66,7 +66,7 @@ cat > marketplace.js Install dependencies running the following command in your terminal: ```bash -npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node +npm install @oceanprotocol/lib crypto-js ethers ``` ## 4. Import dependencies and add variables and constants diff --git a/ComputeExamples.md b/ComputeExamples.md index ce6381767..ac2e0004e 100644 --- a/ComputeExamples.md +++ b/ComputeExamples.md @@ -106,7 +106,7 @@ node dist/compute.js Install dependencies running the following command in your terminal: ```bash -npm install @oceanprotocol/lib crypto-js ethers@5.7.2 typescript @types/node ts-node +npm install @oceanprotocol/lib crypto-js ethers ``` ## 4. Import dependencies and add variables, constants and helper methods diff --git a/src/@types/Compute.ts b/src/@types/Compute.ts index ad10e2610..d526e70ca 100644 --- a/src/@types/Compute.ts +++ b/src/@types/Compute.ts @@ -125,6 +125,10 @@ export interface ComputeJob { agreementId?: string expireTimestamp: number metadata?: ComputeJobMetadata + terminationDetails?: { + exitCode?: number + OOMKilled?: boolean + } } export interface ComputeOutput { @@ -203,6 +207,7 @@ export interface ComputeAlgorithm { transferTxId?: string algocustomdata?: { [key: string]: any } userdata?: { [key: string]: any } + envs?: { [key: string]: string } } export interface ComputePayment {