-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1143 from oceanprotocol/feature/provider-c2d-support
add c2d methods in provider class
- Loading branch information
Showing
4 changed files
with
455 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { Metadata, MetadataAlgorithm } from './Metadata' | ||
|
||
export type ComputeResultType = 'algorithmLog' | 'output' | ||
|
||
export interface ComputeResult { | ||
filename: string | ||
filesize: number | ||
type: ComputeResultType | ||
index?: number | ||
} | ||
|
||
export interface ComputeJob { | ||
owner: string | ||
did?: string | ||
jobId: string | ||
dateCreated: string | ||
dateFinished: string | ||
status: number | ||
statusText: string | ||
results: ComputeResult[] | ||
inputDID?: string[] | ||
algoDID?: string | ||
agreementId?: string | ||
expireTimestamp: number | ||
} | ||
|
||
export interface ComputeOutput { | ||
publishAlgorithmLog?: boolean | ||
publishOutput?: boolean | ||
providerAddress?: string | ||
providerUri?: string | ||
metadata?: Metadata | ||
metadataUri?: string | ||
nodeUri?: string | ||
owner?: string | ||
secretStoreUri?: string | ||
whitelist?: string[] | ||
} | ||
|
||
export interface ComputeInput { | ||
documentId: string | ||
serviceId: number | ||
transferTxId?: string | ||
} | ||
|
||
export interface ComputeAlgorithm { | ||
did?: string | ||
serviceIndex?: number | ||
meta?: MetadataAlgorithm | ||
transferTxId?: string | ||
dataToken?: string | ||
algoCustomParameters?: { [key: string]: any } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.