@oceanprotocol/lib 7.0.0-next.1 → 7.0.0-next.10
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.
- package/dist/lib.cjs +4 -3
- package/dist/lib.module.mjs +4 -3
- package/dist/lib.umd.js +4 -3
- package/dist/types/@types/Compute.d.ts +21 -0
- package/dist/types/@types/Provider.d.ts +39 -0
- package/dist/types/services/providers/BaseProvider.d.ts +34 -32
- package/dist/types/services/providers/HttpProvider.d.ts +4 -2
- package/dist/types/services/providers/P2pProvider.d.ts +38 -32
- package/package.json +27 -21
- package/.mocharc.json +0 -8
- package/.nvmrc +0 -1
- package/CHANGELOG.md +0 -3234
- package/Cheatsheet.md +0 -326
- package/CodeExamples.md +0 -881
- package/ComputeExamples.md +0 -941
- package/dist/lib.cjs.map +0 -1
- package/dist/lib.modern.js +0 -4
- package/dist/lib.modern.js.map +0 -1
- package/dist/lib.module.mjs.map +0 -1
- package/dist/lib.umd.js.map +0 -1
- package/docs/.nojekyll +0 -1
- package/docs/README.md +0 -195
- package/docs/classes/Aquarius.md +0 -175
- package/docs/classes/Config.md +0 -481
- package/docs/classes/ConfigHelper.md +0 -66
- package/docs/classes/Datatoken.md +0 -1123
- package/docs/classes/Dispenser.md +0 -502
- package/docs/classes/Escrow.md +0 -285
- package/docs/classes/FixedRateExchange.md +0 -1068
- package/docs/classes/Logger.md +0 -191
- package/docs/classes/Nft.md +0 -970
- package/docs/classes/NftFactory.md +0 -861
- package/docs/classes/Provider.md +0 -727
- package/docs/classes/Router.md +0 -645
- package/docs/classes/SmartContract.md +0 -193
- package/docs/classes/SmartContractWithAddress.md +0 -268
- package/docs/enums/LogLevel.md +0 -63
- package/docs/interfaces/AbiInput.md +0 -63
- package/docs/interfaces/AbiItem.md +0 -107
- package/docs/interfaces/AbiOutput.md +0 -52
- package/docs/interfaces/Arweave.md +0 -32
- package/docs/interfaces/Asset.md +0 -227
- package/docs/interfaces/AssetDatatoken.md +0 -60
- package/docs/interfaces/AssetLastEvent.md +0 -63
- package/docs/interfaces/AssetNft.md +0 -105
- package/docs/interfaces/AssetPrice.md +0 -47
- package/docs/interfaces/ComputeAlgorithm.md +0 -82
- package/docs/interfaces/ComputeAsset.md +0 -56
- package/docs/interfaces/ComputeEnvFees.md +0 -30
- package/docs/interfaces/ComputeEnvFeesStructure.md +0 -20
- package/docs/interfaces/ComputeEnvironment.md +0 -177
- package/docs/interfaces/ComputeJob.md +0 -173
- package/docs/interfaces/ComputeOutput.md +0 -118
- package/docs/interfaces/ComputeResourcesPricingInfo.md +0 -30
- package/docs/interfaces/ComputeResourcesRequest.md +0 -34
- package/docs/interfaces/ComputeResult.md +0 -52
- package/docs/interfaces/ConsumeMarketFee.md +0 -41
- package/docs/interfaces/Credential.md +0 -30
- package/docs/interfaces/Credentials.md +0 -30
- package/docs/interfaces/DDO.md +0 -137
- package/docs/interfaces/DatatokenCreateParams.md +0 -107
- package/docs/interfaces/DatatokenRoles.md +0 -30
- package/docs/interfaces/DispenserCreationParams.md +0 -63
- package/docs/interfaces/DispenserParams.md +0 -52
- package/docs/interfaces/DispenserToken.md +0 -85
- package/docs/interfaces/DownloadResponse.md +0 -30
- package/docs/interfaces/Event.md +0 -73
- package/docs/interfaces/FeesInfo.md +0 -74
- package/docs/interfaces/FileInfo.md +0 -118
- package/docs/interfaces/Files.md +0 -41
- package/docs/interfaces/FixedPriceExchange.md +0 -162
- package/docs/interfaces/FreCreationParams.md +0 -118
- package/docs/interfaces/FreOrderParams.md +0 -85
- package/docs/interfaces/GraphqlQuery.md +0 -69
- package/docs/interfaces/Ipfs.md +0 -32
- package/docs/interfaces/Metadata.md +0 -193
- package/docs/interfaces/MetadataAlgorithm.md +0 -69
- package/docs/interfaces/MetadataAndTokenURI.md +0 -107
- package/docs/interfaces/MetadataProof.md +0 -52
- package/docs/interfaces/NftCreateData.md +0 -74
- package/docs/interfaces/NftRoles.md +0 -52
- package/docs/interfaces/Operation.md +0 -145
- package/docs/interfaces/OrderParams.md +0 -52
- package/docs/interfaces/PriceAndFees.md +0 -52
- package/docs/interfaces/ProviderComputeInitialize.md +0 -41
- package/docs/interfaces/ProviderComputeInitializeResults.md +0 -43
- package/docs/interfaces/ProviderFees.md +0 -96
- package/docs/interfaces/ProviderInitialize.md +0 -52
- package/docs/interfaces/PublisherTrustedAlgorithm.md +0 -47
- package/docs/interfaces/PublishingMarketFee.md +0 -41
- package/docs/interfaces/Purgatory.md +0 -34
- package/docs/interfaces/RunningPlatform.md +0 -30
- package/docs/interfaces/SearchQuery.md +0 -67
- package/docs/interfaces/Service.md +0 -138
- package/docs/interfaces/ServiceComputeOptions.md +0 -63
- package/docs/interfaces/ServiceEndpoint.md +0 -41
- package/docs/interfaces/Smartcontract-1.md +0 -58
- package/docs/interfaces/Stats.md +0 -47
- package/docs/interfaces/Template.md +0 -30
- package/docs/interfaces/TokenOrder.md +0 -63
- package/docs/interfaces/UrlFile.md +0 -71
- package/docs/interfaces/UserCustomParameters.md +0 -7
- package/docs/interfaces/ValidateMetadata.md +0 -52
- package/docs/modules.md +0 -850
- package/typedoc.json +0 -4
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeAsset
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeAsset
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [documentId](ComputeAsset.md#documentid)
|
|
10
|
-
- [serviceId](ComputeAsset.md#serviceid)
|
|
11
|
-
- [transferTxId](ComputeAsset.md#transfertxid)
|
|
12
|
-
- [userdata](ComputeAsset.md#userdata)
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
### documentId
|
|
17
|
-
|
|
18
|
-
• **documentId**: `string`
|
|
19
|
-
|
|
20
|
-
#### Defined in
|
|
21
|
-
|
|
22
|
-
[@types/Compute.ts:63](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L63)
|
|
23
|
-
|
|
24
|
-
___
|
|
25
|
-
|
|
26
|
-
### serviceId
|
|
27
|
-
|
|
28
|
-
• **serviceId**: `string`
|
|
29
|
-
|
|
30
|
-
#### Defined in
|
|
31
|
-
|
|
32
|
-
[@types/Compute.ts:64](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L64)
|
|
33
|
-
|
|
34
|
-
___
|
|
35
|
-
|
|
36
|
-
### transferTxId
|
|
37
|
-
|
|
38
|
-
• `Optional` **transferTxId**: `string`
|
|
39
|
-
|
|
40
|
-
#### Defined in
|
|
41
|
-
|
|
42
|
-
[@types/Compute.ts:65](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L65)
|
|
43
|
-
|
|
44
|
-
___
|
|
45
|
-
|
|
46
|
-
### userdata
|
|
47
|
-
|
|
48
|
-
• `Optional` **userdata**: `Object`
|
|
49
|
-
|
|
50
|
-
#### Index signature
|
|
51
|
-
|
|
52
|
-
▪ [key: `string`]: `any`
|
|
53
|
-
|
|
54
|
-
#### Defined in
|
|
55
|
-
|
|
56
|
-
[@types/Compute.ts:66](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L66)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeEnvFees
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeEnvFees
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [feeToken](ComputeEnvFees.md#feeToken)
|
|
10
|
-
- [prices](ComputeEnvFees.md#prices)
|
|
11
|
-
|
|
12
|
-
## Properties
|
|
13
|
-
|
|
14
|
-
### feeToken
|
|
15
|
-
|
|
16
|
-
• **feeToken**: `string`
|
|
17
|
-
|
|
18
|
-
#### Defined in
|
|
19
|
-
|
|
20
|
-
[@types/Compute.ts:42](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L42)
|
|
21
|
-
|
|
22
|
-
___
|
|
23
|
-
|
|
24
|
-
### prices
|
|
25
|
-
|
|
26
|
-
• **prices**: `ComputeResourcesPricingInfo`[]
|
|
27
|
-
|
|
28
|
-
#### Defined in
|
|
29
|
-
|
|
30
|
-
[@types/Compute.ts:43](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L43)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeEnvFeesStructure
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeEnvFeesStructure
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [feeToken](ComputeEnvFeesStructure.md#chainId)
|
|
10
|
-
|
|
11
|
-
## Properties
|
|
12
|
-
|
|
13
|
-
### chainId
|
|
14
|
-
|
|
15
|
-
• **chainId**: `ComputeEnvFees`
|
|
16
|
-
|
|
17
|
-
#### Defined in
|
|
18
|
-
|
|
19
|
-
[@types/Compute.ts:42](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L46)
|
|
20
|
-
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeEnvironment
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeEnvironment
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [id](ComputeEnvironment.md#id)
|
|
10
|
-
- [description](ComputeEnvironment.md#description)
|
|
11
|
-
- [consumerAddress](ComputeEnvironment.md#consumeraddress)
|
|
12
|
-
- [storageExpiry](ComputeEnvironment.md#storageexpiry)
|
|
13
|
-
- [minJobDuration](ComputeEnvironment.md#minjobduration)
|
|
14
|
-
- [maxJobDuration](ComputeEnvironment.md#maxjobduration)
|
|
15
|
-
- [maxJobs](ComputeEnvironment.md#maxjobs)
|
|
16
|
-
- [runningJobs](ComputeEnvironment.md#runningjobs)
|
|
17
|
-
- [runningfreeJobs](ComputeEnvironment.md#runningfreejobs)
|
|
18
|
-
- [fees](ComputeEnvironment.md#fees)
|
|
19
|
-
- [resources](ComputeEnvironment.md#resources)
|
|
20
|
-
- [free](ComputeEnvironment.md#free)
|
|
21
|
-
- [platform](ComputeEnvironment.md#platform)
|
|
22
|
-
|
|
23
|
-
## Properties
|
|
24
|
-
|
|
25
|
-
### id
|
|
26
|
-
|
|
27
|
-
• **id**: `string`
|
|
28
|
-
|
|
29
|
-
Unique identifier for the compute environment
|
|
30
|
-
|
|
31
|
-
#### Defined in
|
|
32
|
-
|
|
33
|
-
[@types/Compute.ts:88](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L88)
|
|
34
|
-
|
|
35
|
-
___
|
|
36
|
-
|
|
37
|
-
### description
|
|
38
|
-
|
|
39
|
-
• **description**: `string`
|
|
40
|
-
|
|
41
|
-
Description of the compute environment
|
|
42
|
-
|
|
43
|
-
#### Defined in
|
|
44
|
-
|
|
45
|
-
[@types/Compute.ts:89](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L89)
|
|
46
|
-
|
|
47
|
-
___
|
|
48
|
-
|
|
49
|
-
### consumerAddress
|
|
50
|
-
|
|
51
|
-
• **consumerAddress**: `string`
|
|
52
|
-
|
|
53
|
-
Consumer address for the compute environment
|
|
54
|
-
|
|
55
|
-
#### Defined in
|
|
56
|
-
|
|
57
|
-
[@types/Compute.ts:90](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L90)
|
|
58
|
-
|
|
59
|
-
___
|
|
60
|
-
|
|
61
|
-
### storageExpiry
|
|
62
|
-
|
|
63
|
-
• `Optional` **storageExpiry**: `number`
|
|
64
|
-
|
|
65
|
-
Amount of seconds for storage
|
|
66
|
-
|
|
67
|
-
#### Defined in
|
|
68
|
-
|
|
69
|
-
[@types/Compute.ts:91](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L91)
|
|
70
|
-
|
|
71
|
-
___
|
|
72
|
-
|
|
73
|
-
### minJobDuration
|
|
74
|
-
|
|
75
|
-
• `Optional` **minJobDuration**: `number`
|
|
76
|
-
|
|
77
|
-
Minimum billable seconds for a paid job
|
|
78
|
-
|
|
79
|
-
#### Defined in
|
|
80
|
-
|
|
81
|
-
[@types/Compute.ts:92](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L92)
|
|
82
|
-
|
|
83
|
-
___
|
|
84
|
-
|
|
85
|
-
### maxJobDuration
|
|
86
|
-
|
|
87
|
-
• `Optional` **maxJobDuration**: `number`
|
|
88
|
-
|
|
89
|
-
Maximum duration in seconds for a paid job
|
|
90
|
-
|
|
91
|
-
#### Defined in
|
|
92
|
-
|
|
93
|
-
[@types/Compute.ts:93](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L93)
|
|
94
|
-
|
|
95
|
-
___
|
|
96
|
-
|
|
97
|
-
### maxJobs
|
|
98
|
-
|
|
99
|
-
• `Optional` **maxJobs**: `number`
|
|
100
|
-
|
|
101
|
-
Maximum number of simultaneous paid jobs
|
|
102
|
-
|
|
103
|
-
#### Defined in
|
|
104
|
-
|
|
105
|
-
[@types/Compute.ts:94](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L94)
|
|
106
|
-
|
|
107
|
-
___
|
|
108
|
-
|
|
109
|
-
### runningJobs
|
|
110
|
-
|
|
111
|
-
• **runningJobs**: `number`
|
|
112
|
-
|
|
113
|
-
Amount of running jobs (paid jobs)
|
|
114
|
-
|
|
115
|
-
#### Defined in
|
|
116
|
-
|
|
117
|
-
[@types/Compute.ts:95](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L95)
|
|
118
|
-
|
|
119
|
-
___
|
|
120
|
-
|
|
121
|
-
### runningfreeJobs
|
|
122
|
-
|
|
123
|
-
• `Optional` **runningfreeJobs**: `number`
|
|
124
|
-
|
|
125
|
-
Amount of running jobs (free jobs)
|
|
126
|
-
|
|
127
|
-
#### Defined in
|
|
128
|
-
|
|
129
|
-
[@types/Compute.ts:96](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L96)
|
|
130
|
-
|
|
131
|
-
___
|
|
132
|
-
|
|
133
|
-
### fees
|
|
134
|
-
|
|
135
|
-
• **fees**: `ComputeEnvFeesStructure`
|
|
136
|
-
|
|
137
|
-
Fee structure for the compute environment
|
|
138
|
-
|
|
139
|
-
#### Defined in
|
|
140
|
-
|
|
141
|
-
[@types/Compute.ts:97](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L97)
|
|
142
|
-
|
|
143
|
-
___
|
|
144
|
-
|
|
145
|
-
### resources
|
|
146
|
-
|
|
147
|
-
• `Optional` **resources**: `ComputeResource[]`
|
|
148
|
-
|
|
149
|
-
Available compute resources (CPU, memory, storage)
|
|
150
|
-
|
|
151
|
-
#### Defined in
|
|
152
|
-
|
|
153
|
-
[@types/Compute.ts:98](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L98)
|
|
154
|
-
|
|
155
|
-
___
|
|
156
|
-
|
|
157
|
-
### free
|
|
158
|
-
|
|
159
|
-
• `Optional` **free**: `ComputeEnvironmentFreeOptions`
|
|
160
|
-
|
|
161
|
-
Free compute environment options
|
|
162
|
-
|
|
163
|
-
#### Defined in
|
|
164
|
-
|
|
165
|
-
[@types/Compute.ts:99](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L99)
|
|
166
|
-
|
|
167
|
-
___
|
|
168
|
-
|
|
169
|
-
### platform
|
|
170
|
-
|
|
171
|
-
• `Optional` **platform**: `RunningPlatform`
|
|
172
|
-
|
|
173
|
-
Platform information (architecture, OS)
|
|
174
|
-
|
|
175
|
-
#### Defined in
|
|
176
|
-
|
|
177
|
-
[@types/Compute.ts:100](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L100)
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeJob
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeJob
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [agreementId](ComputeJob.md#agreementid)
|
|
10
|
-
- [algoDID](ComputeJob.md#algodid)
|
|
11
|
-
- [dateCreated](ComputeJob.md#datecreated)
|
|
12
|
-
- [dateFinished](ComputeJob.md#datefinished)
|
|
13
|
-
- [did](ComputeJob.md#did)
|
|
14
|
-
- [expireTimestamp](ComputeJob.md#expiretimestamp)
|
|
15
|
-
- [inputDID](ComputeJob.md#inputdid)
|
|
16
|
-
- [jobId](ComputeJob.md#jobid)
|
|
17
|
-
- [owner](ComputeJob.md#owner)
|
|
18
|
-
- [results](ComputeJob.md#results)
|
|
19
|
-
- [status](ComputeJob.md#status)
|
|
20
|
-
- [statusText](ComputeJob.md#statustext)
|
|
21
|
-
- [metadata](ComputeJob.md#metadata)
|
|
22
|
-
- [terminationDetails](ComputeJob.md#terminationdetails)
|
|
23
|
-
|
|
24
|
-
## Properties
|
|
25
|
-
|
|
26
|
-
### agreementId
|
|
27
|
-
|
|
28
|
-
• `Optional` **agreementId**: `string`
|
|
29
|
-
|
|
30
|
-
#### Defined in
|
|
31
|
-
|
|
32
|
-
[@types/Compute.ts:45](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L45)
|
|
33
|
-
|
|
34
|
-
___
|
|
35
|
-
|
|
36
|
-
### algoDID
|
|
37
|
-
|
|
38
|
-
• `Optional` **algoDID**: `string`
|
|
39
|
-
|
|
40
|
-
#### Defined in
|
|
41
|
-
|
|
42
|
-
[@types/Compute.ts:44](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L44)
|
|
43
|
-
|
|
44
|
-
___
|
|
45
|
-
|
|
46
|
-
### dateCreated
|
|
47
|
-
|
|
48
|
-
• **dateCreated**: `string`
|
|
49
|
-
|
|
50
|
-
#### Defined in
|
|
51
|
-
|
|
52
|
-
[@types/Compute.ts:38](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L38)
|
|
53
|
-
|
|
54
|
-
___
|
|
55
|
-
|
|
56
|
-
### dateFinished
|
|
57
|
-
|
|
58
|
-
• **dateFinished**: `string`
|
|
59
|
-
|
|
60
|
-
#### Defined in
|
|
61
|
-
|
|
62
|
-
[@types/Compute.ts:39](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L39)
|
|
63
|
-
|
|
64
|
-
___
|
|
65
|
-
|
|
66
|
-
### did
|
|
67
|
-
|
|
68
|
-
• `Optional` **did**: `string`
|
|
69
|
-
|
|
70
|
-
#### Defined in
|
|
71
|
-
|
|
72
|
-
[@types/Compute.ts:36](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L36)
|
|
73
|
-
|
|
74
|
-
___
|
|
75
|
-
|
|
76
|
-
### expireTimestamp
|
|
77
|
-
|
|
78
|
-
• **expireTimestamp**: `number`
|
|
79
|
-
|
|
80
|
-
#### Defined in
|
|
81
|
-
|
|
82
|
-
[@types/Compute.ts:46](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L46)
|
|
83
|
-
|
|
84
|
-
___
|
|
85
|
-
|
|
86
|
-
### inputDID
|
|
87
|
-
|
|
88
|
-
• `Optional` **inputDID**: `string`[]
|
|
89
|
-
|
|
90
|
-
#### Defined in
|
|
91
|
-
|
|
92
|
-
[@types/Compute.ts:43](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L43)
|
|
93
|
-
|
|
94
|
-
___
|
|
95
|
-
|
|
96
|
-
### jobId
|
|
97
|
-
|
|
98
|
-
• **jobId**: `string`
|
|
99
|
-
|
|
100
|
-
#### Defined in
|
|
101
|
-
|
|
102
|
-
[@types/Compute.ts:37](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L37)
|
|
103
|
-
|
|
104
|
-
___
|
|
105
|
-
|
|
106
|
-
### owner
|
|
107
|
-
|
|
108
|
-
• **owner**: `string`
|
|
109
|
-
|
|
110
|
-
#### Defined in
|
|
111
|
-
|
|
112
|
-
[@types/Compute.ts:35](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L35)
|
|
113
|
-
|
|
114
|
-
___
|
|
115
|
-
|
|
116
|
-
### results
|
|
117
|
-
|
|
118
|
-
• **results**: [`ComputeResult`](ComputeResult.md)[]
|
|
119
|
-
|
|
120
|
-
#### Defined in
|
|
121
|
-
|
|
122
|
-
[@types/Compute.ts:42](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L42)
|
|
123
|
-
|
|
124
|
-
___
|
|
125
|
-
|
|
126
|
-
### status
|
|
127
|
-
|
|
128
|
-
• **status**: `number`
|
|
129
|
-
|
|
130
|
-
#### Defined in
|
|
131
|
-
|
|
132
|
-
[@types/Compute.ts:40](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L40)
|
|
133
|
-
|
|
134
|
-
___
|
|
135
|
-
|
|
136
|
-
### statusText
|
|
137
|
-
|
|
138
|
-
• **statusText**: `string`
|
|
139
|
-
|
|
140
|
-
#### Defined in
|
|
141
|
-
|
|
142
|
-
[@types/Compute.ts:121](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L121)
|
|
143
|
-
|
|
144
|
-
___
|
|
145
|
-
|
|
146
|
-
### metadata
|
|
147
|
-
|
|
148
|
-
• `Optional` **metadata**: `ComputeJobMetadata`
|
|
149
|
-
|
|
150
|
-
Custom metadata associated with the compute job
|
|
151
|
-
|
|
152
|
-
#### Defined in
|
|
153
|
-
|
|
154
|
-
[@types/Compute.ts:127](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L127)
|
|
155
|
-
|
|
156
|
-
___
|
|
157
|
-
|
|
158
|
-
### terminationDetails
|
|
159
|
-
|
|
160
|
-
• `Optional` **terminationDetails**: `object`
|
|
161
|
-
|
|
162
|
-
Details about job termination
|
|
163
|
-
|
|
164
|
-
#### Type declaration
|
|
165
|
-
|
|
166
|
-
| Name | Type | Description |
|
|
167
|
-
| :------ | :------ | :------ |
|
|
168
|
-
| `exitCode?` | `number` | Exit code of the terminated job |
|
|
169
|
-
| `OOMKilled?` | `boolean` | Whether the job was killed due to out-of-memory |
|
|
170
|
-
|
|
171
|
-
#### Defined in
|
|
172
|
-
|
|
173
|
-
[@types/Compute.ts:128](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L128)
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeOutput
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeOutput
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [metadata](ComputeOutput.md#metadata)
|
|
10
|
-
- [metadataUri](ComputeOutput.md#metadatauri)
|
|
11
|
-
- [nodeUri](ComputeOutput.md#nodeuri)
|
|
12
|
-
- [owner](ComputeOutput.md#owner)
|
|
13
|
-
- [providerAddress](ComputeOutput.md#provideraddress)
|
|
14
|
-
- [providerUri](ComputeOutput.md#provideruri)
|
|
15
|
-
- [publishAlgorithmLog](ComputeOutput.md#publishalgorithmlog)
|
|
16
|
-
- [publishOutput](ComputeOutput.md#publishoutput)
|
|
17
|
-
- [secretStoreUri](ComputeOutput.md#secretstoreuri)
|
|
18
|
-
- [whitelist](ComputeOutput.md#whitelist)
|
|
19
|
-
|
|
20
|
-
## Properties
|
|
21
|
-
|
|
22
|
-
### metadata
|
|
23
|
-
|
|
24
|
-
• `Optional` **metadata**: [`Metadata`](Metadata.md)
|
|
25
|
-
|
|
26
|
-
#### Defined in
|
|
27
|
-
|
|
28
|
-
[@types/Compute.ts:54](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L54)
|
|
29
|
-
|
|
30
|
-
___
|
|
31
|
-
|
|
32
|
-
### metadataUri
|
|
33
|
-
|
|
34
|
-
• `Optional` **metadataUri**: `string`
|
|
35
|
-
|
|
36
|
-
#### Defined in
|
|
37
|
-
|
|
38
|
-
[@types/Compute.ts:55](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L55)
|
|
39
|
-
|
|
40
|
-
___
|
|
41
|
-
|
|
42
|
-
### nodeUri
|
|
43
|
-
|
|
44
|
-
• `Optional` **nodeUri**: `string`
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
[@types/Compute.ts:56](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L56)
|
|
49
|
-
|
|
50
|
-
___
|
|
51
|
-
|
|
52
|
-
### owner
|
|
53
|
-
|
|
54
|
-
• `Optional` **owner**: `string`
|
|
55
|
-
|
|
56
|
-
#### Defined in
|
|
57
|
-
|
|
58
|
-
[@types/Compute.ts:57](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L57)
|
|
59
|
-
|
|
60
|
-
___
|
|
61
|
-
|
|
62
|
-
### providerAddress
|
|
63
|
-
|
|
64
|
-
• `Optional` **providerAddress**: `string`
|
|
65
|
-
|
|
66
|
-
#### Defined in
|
|
67
|
-
|
|
68
|
-
[@types/Compute.ts:52](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L52)
|
|
69
|
-
|
|
70
|
-
___
|
|
71
|
-
|
|
72
|
-
### providerUri
|
|
73
|
-
|
|
74
|
-
• `Optional` **providerUri**: `string`
|
|
75
|
-
|
|
76
|
-
#### Defined in
|
|
77
|
-
|
|
78
|
-
[@types/Compute.ts:53](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L53)
|
|
79
|
-
|
|
80
|
-
___
|
|
81
|
-
|
|
82
|
-
### publishAlgorithmLog
|
|
83
|
-
|
|
84
|
-
• `Optional` **publishAlgorithmLog**: `boolean`
|
|
85
|
-
|
|
86
|
-
#### Defined in
|
|
87
|
-
|
|
88
|
-
[@types/Compute.ts:50](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L50)
|
|
89
|
-
|
|
90
|
-
___
|
|
91
|
-
|
|
92
|
-
### publishOutput
|
|
93
|
-
|
|
94
|
-
• `Optional` **publishOutput**: `boolean`
|
|
95
|
-
|
|
96
|
-
#### Defined in
|
|
97
|
-
|
|
98
|
-
[@types/Compute.ts:51](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L51)
|
|
99
|
-
|
|
100
|
-
___
|
|
101
|
-
|
|
102
|
-
### secretStoreUri
|
|
103
|
-
|
|
104
|
-
• `Optional` **secretStoreUri**: `string`
|
|
105
|
-
|
|
106
|
-
#### Defined in
|
|
107
|
-
|
|
108
|
-
[@types/Compute.ts:58](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L58)
|
|
109
|
-
|
|
110
|
-
___
|
|
111
|
-
|
|
112
|
-
### whitelist
|
|
113
|
-
|
|
114
|
-
• `Optional` **whitelist**: `string`[]
|
|
115
|
-
|
|
116
|
-
#### Defined in
|
|
117
|
-
|
|
118
|
-
[@types/Compute.ts:59](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L59)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeResourcesPricingInfo
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeResourcesPricingInfo
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [type](ComputeResourcesPricingInfo.md#type)
|
|
10
|
-
- [price](ComputeResourcesPricingInfo.md#price)
|
|
11
|
-
|
|
12
|
-
## Properties
|
|
13
|
-
|
|
14
|
-
### type
|
|
15
|
-
|
|
16
|
-
• **type**: `ComputeResourceType`
|
|
17
|
-
|
|
18
|
-
#### Defined in
|
|
19
|
-
|
|
20
|
-
[@types/Compute.ts:38](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L38)
|
|
21
|
-
|
|
22
|
-
___
|
|
23
|
-
|
|
24
|
-
### price
|
|
25
|
-
|
|
26
|
-
• **price**: `number`
|
|
27
|
-
|
|
28
|
-
#### Defined in
|
|
29
|
-
|
|
30
|
-
[@types/Compute.ts:39](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L39)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeResourcesRequest
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeResourcesRequest
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [id](ComputeResourcesRequest.md#id)
|
|
10
|
-
- [amount](ComputeResourcesRequest.md#amount)
|
|
11
|
-
|
|
12
|
-
## Properties
|
|
13
|
-
|
|
14
|
-
### id
|
|
15
|
-
|
|
16
|
-
• **id**: `string`
|
|
17
|
-
|
|
18
|
-
Resource identifier (e.g., 'cpu', 'ram', 'disk')
|
|
19
|
-
|
|
20
|
-
#### Defined in
|
|
21
|
-
|
|
22
|
-
[@types/Compute.ts:50](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L50)
|
|
23
|
-
|
|
24
|
-
___
|
|
25
|
-
|
|
26
|
-
### amount
|
|
27
|
-
|
|
28
|
-
• **amount**: `number`
|
|
29
|
-
|
|
30
|
-
Amount of the specified resource to request. DISK and RAM are in GB, CPU is in number of cores.
|
|
31
|
-
|
|
32
|
-
#### Defined in
|
|
33
|
-
|
|
34
|
-
[@types/Compute.ts:51](https://github.com/oceanprotocol/ocean.js/blob/main/src/@types/Compute.ts#L51)
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / ComputeResult
|
|
2
|
-
|
|
3
|
-
# Interface: ComputeResult
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [filename](ComputeResult.md#filename)
|
|
10
|
-
- [filesize](ComputeResult.md#filesize)
|
|
11
|
-
- [index](ComputeResult.md#index)
|
|
12
|
-
- [type](ComputeResult.md#type)
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
### filename
|
|
17
|
-
|
|
18
|
-
• **filename**: `string`
|
|
19
|
-
|
|
20
|
-
#### Defined in
|
|
21
|
-
|
|
22
|
-
[@types/Compute.ts:28](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L28)
|
|
23
|
-
|
|
24
|
-
___
|
|
25
|
-
|
|
26
|
-
### filesize
|
|
27
|
-
|
|
28
|
-
• **filesize**: `number`
|
|
29
|
-
|
|
30
|
-
#### Defined in
|
|
31
|
-
|
|
32
|
-
[@types/Compute.ts:29](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L29)
|
|
33
|
-
|
|
34
|
-
___
|
|
35
|
-
|
|
36
|
-
### index
|
|
37
|
-
|
|
38
|
-
• `Optional` **index**: `number`
|
|
39
|
-
|
|
40
|
-
#### Defined in
|
|
41
|
-
|
|
42
|
-
[@types/Compute.ts:31](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L31)
|
|
43
|
-
|
|
44
|
-
___
|
|
45
|
-
|
|
46
|
-
### type
|
|
47
|
-
|
|
48
|
-
• **type**: [`ComputeResultType`](../modules.md#computeresulttype)
|
|
49
|
-
|
|
50
|
-
#### Defined in
|
|
51
|
-
|
|
52
|
-
[@types/Compute.ts:30](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Compute.ts#L30)
|