@oceanprotocol/lib 3.0.0-next.1 → 3.0.0-next.3
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/CHANGELOG.md +28 -0
- package/CodeExamples.md +1 -1
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/README.md +192 -0
- package/docs/classes/Aquarius.md +171 -0
- package/docs/classes/Config.md +481 -0
- package/docs/classes/ConfigHelper.md +66 -0
- package/docs/classes/Datatoken.md +1123 -0
- package/docs/classes/DfRewards.md +345 -0
- package/docs/classes/DfStrategyV1.md +313 -0
- package/docs/classes/Dispenser.md +502 -0
- package/docs/classes/FixedRateExchange.md +1068 -0
- package/docs/classes/Logger.md +191 -0
- package/docs/classes/Nft.md +970 -0
- package/docs/classes/NftFactory.md +861 -0
- package/docs/classes/Provider.md +628 -0
- package/docs/classes/Router.md +645 -0
- package/docs/classes/SmartContract.md +193 -0
- package/docs/classes/SmartContractWithAddress.md +268 -0
- package/docs/classes/VeAllocate.md +372 -0
- package/docs/classes/VeFeeDistributor.md +325 -0
- package/docs/classes/VeFeeEstimate.md +281 -0
- package/docs/classes/VeOcean.md +513 -0
- package/docs/enums/LogLevel.md +63 -0
- package/docs/interfaces/AbiInput.md +63 -0
- package/docs/interfaces/AbiItem.md +107 -0
- package/docs/interfaces/AbiOutput.md +52 -0
- package/docs/interfaces/Arweave.md +32 -0
- package/docs/interfaces/Asset.md +227 -0
- package/docs/interfaces/AssetDatatoken.md +60 -0
- package/docs/interfaces/AssetLastEvent.md +63 -0
- package/docs/interfaces/AssetNft.md +105 -0
- package/docs/interfaces/AssetPrice.md +47 -0
- package/docs/interfaces/ComputeAlgorithm.md +82 -0
- package/docs/interfaces/ComputeAsset.md +56 -0
- package/docs/interfaces/ComputeEnvironment.md +173 -0
- package/docs/interfaces/ComputeJob.md +140 -0
- package/docs/interfaces/ComputeOutput.md +118 -0
- package/docs/interfaces/ComputeResult.md +52 -0
- package/docs/interfaces/ConsumeMarketFee.md +41 -0
- package/docs/interfaces/Credential.md +30 -0
- package/docs/interfaces/Credentials.md +30 -0
- package/docs/interfaces/DDO.md +137 -0
- package/docs/interfaces/DatatokenCreateParams.md +107 -0
- package/docs/interfaces/DatatokenRoles.md +30 -0
- package/docs/interfaces/DispenserCreationParams.md +63 -0
- package/docs/interfaces/DispenserParams.md +52 -0
- package/docs/interfaces/DispenserToken.md +85 -0
- package/docs/interfaces/DownloadResponse.md +30 -0
- package/docs/interfaces/Event.md +73 -0
- package/docs/interfaces/FeesInfo.md +74 -0
- package/docs/interfaces/FileInfo.md +118 -0
- package/docs/interfaces/Files.md +41 -0
- package/docs/interfaces/FixedPriceExchange.md +162 -0
- package/docs/interfaces/FreCreationParams.md +118 -0
- package/docs/interfaces/FreOrderParams.md +85 -0
- package/docs/interfaces/GraphqlQuery.md +69 -0
- package/docs/interfaces/Ipfs.md +32 -0
- package/docs/interfaces/Metadata.md +193 -0
- package/docs/interfaces/MetadataAlgorithm.md +69 -0
- package/docs/interfaces/MetadataAndTokenURI.md +107 -0
- package/docs/interfaces/MetadataProof.md +52 -0
- package/docs/interfaces/NftCreateData.md +74 -0
- package/docs/interfaces/NftRoles.md +52 -0
- package/docs/interfaces/Operation.md +145 -0
- package/docs/interfaces/OrderParams.md +52 -0
- package/docs/interfaces/PriceAndFees.md +52 -0
- package/docs/interfaces/ProviderComputeInitialize.md +41 -0
- package/docs/interfaces/ProviderComputeInitializeResults.md +30 -0
- package/docs/interfaces/ProviderFees.md +96 -0
- package/docs/interfaces/ProviderInitialize.md +52 -0
- package/docs/interfaces/PublisherTrustedAlgorithm.md +47 -0
- package/docs/interfaces/PublishingMarketFee.md +41 -0
- package/docs/interfaces/Purgatory.md +34 -0
- package/docs/interfaces/SearchQuery.md +67 -0
- package/docs/interfaces/Service.md +138 -0
- package/docs/interfaces/ServiceComputeOptions.md +63 -0
- package/docs/interfaces/ServiceEndpoint.md +41 -0
- package/docs/interfaces/Smartcontract-1.md +58 -0
- package/docs/interfaces/Stats.md +47 -0
- package/docs/interfaces/Template.md +30 -0
- package/docs/interfaces/TokenOrder.md +63 -0
- package/docs/interfaces/UrlFile.md +71 -0
- package/docs/interfaces/UserCustomParameters.md +7 -0
- package/docs/interfaces/ValidateMetadata.md +52 -0
- package/docs/modules.md +856 -0
- package/package.json +7 -8
- package/typedoc.json +4 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / AbiItem
|
|
2
|
+
|
|
3
|
+
# Interface: AbiItem
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [anonymous](AbiItem.md#anonymous)
|
|
10
|
+
- [constant](AbiItem.md#constant)
|
|
11
|
+
- [gas](AbiItem.md#gas)
|
|
12
|
+
- [inputs](AbiItem.md#inputs)
|
|
13
|
+
- [name](AbiItem.md#name)
|
|
14
|
+
- [outputs](AbiItem.md#outputs)
|
|
15
|
+
- [payable](AbiItem.md#payable)
|
|
16
|
+
- [stateMutability](AbiItem.md#statemutability)
|
|
17
|
+
- [type](AbiItem.md#type)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### anonymous
|
|
22
|
+
|
|
23
|
+
• `Optional` **anonymous**: `boolean`
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[@types/Contracts.ts:20](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L20)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### constant
|
|
32
|
+
|
|
33
|
+
• `Optional` **constant**: `boolean`
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[@types/Contracts.ts:21](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L21)
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### gas
|
|
42
|
+
|
|
43
|
+
• `Optional` **gas**: `number`
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[@types/Contracts.ts:28](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L28)
|
|
48
|
+
|
|
49
|
+
___
|
|
50
|
+
|
|
51
|
+
### inputs
|
|
52
|
+
|
|
53
|
+
• `Optional` **inputs**: [`AbiInput`](AbiInput.md)[]
|
|
54
|
+
|
|
55
|
+
#### Defined in
|
|
56
|
+
|
|
57
|
+
[@types/Contracts.ts:22](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L22)
|
|
58
|
+
|
|
59
|
+
___
|
|
60
|
+
|
|
61
|
+
### name
|
|
62
|
+
|
|
63
|
+
• `Optional` **name**: `string`
|
|
64
|
+
|
|
65
|
+
#### Defined in
|
|
66
|
+
|
|
67
|
+
[@types/Contracts.ts:23](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L23)
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### outputs
|
|
72
|
+
|
|
73
|
+
• `Optional` **outputs**: [`AbiOutput`](AbiOutput.md)[]
|
|
74
|
+
|
|
75
|
+
#### Defined in
|
|
76
|
+
|
|
77
|
+
[@types/Contracts.ts:24](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L24)
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
81
|
+
### payable
|
|
82
|
+
|
|
83
|
+
• `Optional` **payable**: `boolean`
|
|
84
|
+
|
|
85
|
+
#### Defined in
|
|
86
|
+
|
|
87
|
+
[@types/Contracts.ts:25](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L25)
|
|
88
|
+
|
|
89
|
+
___
|
|
90
|
+
|
|
91
|
+
### stateMutability
|
|
92
|
+
|
|
93
|
+
• `Optional` **stateMutability**: [`StateMutabilityType`](../modules.md#statemutabilitytype)
|
|
94
|
+
|
|
95
|
+
#### Defined in
|
|
96
|
+
|
|
97
|
+
[@types/Contracts.ts:26](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L26)
|
|
98
|
+
|
|
99
|
+
___
|
|
100
|
+
|
|
101
|
+
### type
|
|
102
|
+
|
|
103
|
+
• **type**: [`AbiType`](../modules.md#abitype)
|
|
104
|
+
|
|
105
|
+
#### Defined in
|
|
106
|
+
|
|
107
|
+
[@types/Contracts.ts:27](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L27)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / AbiOutput
|
|
2
|
+
|
|
3
|
+
# Interface: AbiOutput
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [components](AbiOutput.md#components)
|
|
10
|
+
- [internalType](AbiOutput.md#internaltype)
|
|
11
|
+
- [name](AbiOutput.md#name)
|
|
12
|
+
- [type](AbiOutput.md#type)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### components
|
|
17
|
+
|
|
18
|
+
• `Optional` **components**: [`AbiOutput`](AbiOutput.md)[]
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[@types/Contracts.ts:15](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L15)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### internalType
|
|
27
|
+
|
|
28
|
+
• `Optional` **internalType**: `string`
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[@types/Contracts.ts:16](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L16)
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### name
|
|
37
|
+
|
|
38
|
+
• **name**: `string`
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[@types/Contracts.ts:13](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L13)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### type
|
|
47
|
+
|
|
48
|
+
• **type**: `string`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[@types/Contracts.ts:14](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Contracts.ts#L14)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / Arweave
|
|
2
|
+
|
|
3
|
+
# Interface: Arweave
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [transactionId](Arweave.md#transactionid)
|
|
10
|
+
- [type](Arweave.md#type)
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### transactionId
|
|
15
|
+
|
|
16
|
+
• **transactionId**: `string`
|
|
17
|
+
|
|
18
|
+
transactionId
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[@types/File.ts:68](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/File.ts#L68)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### type
|
|
27
|
+
|
|
28
|
+
• **type**: ``"arweave"``
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[@types/File.ts:62](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/File.ts#L62)
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / Asset
|
|
2
|
+
|
|
3
|
+
# Interface: Asset
|
|
4
|
+
|
|
5
|
+
DID Descriptor Object.
|
|
6
|
+
Contains metadata about the asset, and define access in at least one service.
|
|
7
|
+
|
|
8
|
+
## Hierarchy
|
|
9
|
+
|
|
10
|
+
- [`DDO`](DDO.md)
|
|
11
|
+
|
|
12
|
+
↳ **`Asset`**
|
|
13
|
+
|
|
14
|
+
## Table of contents
|
|
15
|
+
|
|
16
|
+
### Properties
|
|
17
|
+
|
|
18
|
+
- [@context](Asset.md#@context)
|
|
19
|
+
- [chainId](Asset.md#chainid)
|
|
20
|
+
- [credentials](Asset.md#credentials)
|
|
21
|
+
- [datatokens](Asset.md#datatokens)
|
|
22
|
+
- [event](Asset.md#event)
|
|
23
|
+
- [id](Asset.md#id)
|
|
24
|
+
- [metadata](Asset.md#metadata)
|
|
25
|
+
- [nft](Asset.md#nft)
|
|
26
|
+
- [nftAddress](Asset.md#nftaddress)
|
|
27
|
+
- [purgatory](Asset.md#purgatory)
|
|
28
|
+
- [services](Asset.md#services)
|
|
29
|
+
- [stats](Asset.md#stats)
|
|
30
|
+
- [version](Asset.md#version)
|
|
31
|
+
|
|
32
|
+
## Properties
|
|
33
|
+
|
|
34
|
+
### @context
|
|
35
|
+
|
|
36
|
+
• **@context**: `string`[]
|
|
37
|
+
|
|
38
|
+
Contexts used for validation.
|
|
39
|
+
|
|
40
|
+
#### Inherited from
|
|
41
|
+
|
|
42
|
+
[DDO](DDO.md).[@context](DDO.md#@context)
|
|
43
|
+
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[@types/DDO/DDO.ts:12](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L12)
|
|
47
|
+
|
|
48
|
+
___
|
|
49
|
+
|
|
50
|
+
### chainId
|
|
51
|
+
|
|
52
|
+
• **chainId**: `number`
|
|
53
|
+
|
|
54
|
+
ChainId of the network the DDO was published to.
|
|
55
|
+
|
|
56
|
+
#### Inherited from
|
|
57
|
+
|
|
58
|
+
[DDO](DDO.md).[chainId](DDO.md#chainid)
|
|
59
|
+
|
|
60
|
+
#### Defined in
|
|
61
|
+
|
|
62
|
+
[@types/DDO/DDO.ts:38](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L38)
|
|
63
|
+
|
|
64
|
+
___
|
|
65
|
+
|
|
66
|
+
### credentials
|
|
67
|
+
|
|
68
|
+
• `Optional` **credentials**: [`Credentials`](Credentials.md)
|
|
69
|
+
|
|
70
|
+
Describes the credentials needed to access a dataset
|
|
71
|
+
in addition to the services definition.
|
|
72
|
+
|
|
73
|
+
#### Inherited from
|
|
74
|
+
|
|
75
|
+
[DDO](DDO.md).[credentials](DDO.md#credentials)
|
|
76
|
+
|
|
77
|
+
#### Defined in
|
|
78
|
+
|
|
79
|
+
[@types/DDO/DDO.ts:57](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L57)
|
|
80
|
+
|
|
81
|
+
___
|
|
82
|
+
|
|
83
|
+
### datatokens
|
|
84
|
+
|
|
85
|
+
• **datatokens**: [`AssetDatatoken`](AssetDatatoken.md)[]
|
|
86
|
+
|
|
87
|
+
Contains information about the ERC20 Datatokens attached to asset services.
|
|
88
|
+
|
|
89
|
+
#### Defined in
|
|
90
|
+
|
|
91
|
+
[@types/Asset.ts:151](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L151)
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### event
|
|
96
|
+
|
|
97
|
+
• **event**: [`AssetLastEvent`](AssetLastEvent.md)
|
|
98
|
+
|
|
99
|
+
Contains information about the last transaction that created or updated the DDO.
|
|
100
|
+
|
|
101
|
+
#### Overrides
|
|
102
|
+
|
|
103
|
+
[DDO](DDO.md).[event](DDO.md#event)
|
|
104
|
+
|
|
105
|
+
#### Defined in
|
|
106
|
+
|
|
107
|
+
[@types/Asset.ts:157](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L157)
|
|
108
|
+
|
|
109
|
+
___
|
|
110
|
+
|
|
111
|
+
### id
|
|
112
|
+
|
|
113
|
+
• **id**: `string`
|
|
114
|
+
|
|
115
|
+
DID, descentralized ID.
|
|
116
|
+
Computed as sha256(address of NFT contract + chainId)
|
|
117
|
+
|
|
118
|
+
#### Inherited from
|
|
119
|
+
|
|
120
|
+
[DDO](DDO.md).[id](DDO.md#id)
|
|
121
|
+
|
|
122
|
+
#### Defined in
|
|
123
|
+
|
|
124
|
+
[@types/DDO/DDO.ts:19](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L19)
|
|
125
|
+
|
|
126
|
+
___
|
|
127
|
+
|
|
128
|
+
### metadata
|
|
129
|
+
|
|
130
|
+
• **metadata**: [`Metadata`](Metadata.md)
|
|
131
|
+
|
|
132
|
+
Stores an object describing the asset.
|
|
133
|
+
|
|
134
|
+
#### Inherited from
|
|
135
|
+
|
|
136
|
+
[DDO](DDO.md).[metadata](DDO.md#metadata)
|
|
137
|
+
|
|
138
|
+
#### Defined in
|
|
139
|
+
|
|
140
|
+
[@types/DDO/DDO.ts:44](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L44)
|
|
141
|
+
|
|
142
|
+
___
|
|
143
|
+
|
|
144
|
+
### nft
|
|
145
|
+
|
|
146
|
+
• **nft**: [`AssetNft`](AssetNft.md)
|
|
147
|
+
|
|
148
|
+
Contains information about the ERC721 NFT contract which represents the intellectual property of the publisher.
|
|
149
|
+
|
|
150
|
+
#### Defined in
|
|
151
|
+
|
|
152
|
+
[@types/Asset.ts:145](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L145)
|
|
153
|
+
|
|
154
|
+
___
|
|
155
|
+
|
|
156
|
+
### nftAddress
|
|
157
|
+
|
|
158
|
+
• **nftAddress**: `string`
|
|
159
|
+
|
|
160
|
+
NFT contract address
|
|
161
|
+
|
|
162
|
+
#### Inherited from
|
|
163
|
+
|
|
164
|
+
[DDO](DDO.md).[nftAddress](DDO.md#nftaddress)
|
|
165
|
+
|
|
166
|
+
#### Defined in
|
|
167
|
+
|
|
168
|
+
[@types/DDO/DDO.ts:32](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L32)
|
|
169
|
+
|
|
170
|
+
___
|
|
171
|
+
|
|
172
|
+
### purgatory
|
|
173
|
+
|
|
174
|
+
• **purgatory**: [`Purgatory`](Purgatory.md)
|
|
175
|
+
|
|
176
|
+
Contains information about an asset's purgatory status defined in
|
|
177
|
+
[`list-purgatory`](https://github.com/oceanprotocol/list-purgatory).
|
|
178
|
+
Marketplace interfaces are encouraged to prevent certain user actions like downloading on assets in purgatory.
|
|
179
|
+
|
|
180
|
+
#### Defined in
|
|
181
|
+
|
|
182
|
+
[@types/Asset.ts:171](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L171)
|
|
183
|
+
|
|
184
|
+
___
|
|
185
|
+
|
|
186
|
+
### services
|
|
187
|
+
|
|
188
|
+
• **services**: [`Service`](Service.md)[]
|
|
189
|
+
|
|
190
|
+
Stores an array of services defining access to the asset.
|
|
191
|
+
|
|
192
|
+
#### Inherited from
|
|
193
|
+
|
|
194
|
+
[DDO](DDO.md).[services](DDO.md#services)
|
|
195
|
+
|
|
196
|
+
#### Defined in
|
|
197
|
+
|
|
198
|
+
[@types/DDO/DDO.ts:50](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L50)
|
|
199
|
+
|
|
200
|
+
___
|
|
201
|
+
|
|
202
|
+
### stats
|
|
203
|
+
|
|
204
|
+
• **stats**: [`Stats`](Stats.md)
|
|
205
|
+
|
|
206
|
+
The stats section contains different statistics fields. This section is added by Aquarius
|
|
207
|
+
|
|
208
|
+
#### Defined in
|
|
209
|
+
|
|
210
|
+
[@types/Asset.ts:163](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L163)
|
|
211
|
+
|
|
212
|
+
___
|
|
213
|
+
|
|
214
|
+
### version
|
|
215
|
+
|
|
216
|
+
• **version**: `string`
|
|
217
|
+
|
|
218
|
+
Version information in SemVer notation
|
|
219
|
+
referring to the DDO spec version
|
|
220
|
+
|
|
221
|
+
#### Inherited from
|
|
222
|
+
|
|
223
|
+
[DDO](DDO.md).[version](DDO.md#version)
|
|
224
|
+
|
|
225
|
+
#### Defined in
|
|
226
|
+
|
|
227
|
+
[@types/DDO/DDO.ts:26](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/DDO/DDO.ts#L26)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / AssetDatatoken
|
|
2
|
+
|
|
3
|
+
# Interface: AssetDatatoken
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [address](AssetDatatoken.md#address)
|
|
10
|
+
- [name](AssetDatatoken.md#name)
|
|
11
|
+
- [serviceId](AssetDatatoken.md#serviceid)
|
|
12
|
+
- [symbol](AssetDatatoken.md#symbol)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### address
|
|
17
|
+
|
|
18
|
+
• **address**: `string`
|
|
19
|
+
|
|
20
|
+
Contract address of the deployed Datatoken contract.
|
|
21
|
+
|
|
22
|
+
#### Defined in
|
|
23
|
+
|
|
24
|
+
[@types/Asset.ts:72](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L72)
|
|
25
|
+
|
|
26
|
+
___
|
|
27
|
+
|
|
28
|
+
### name
|
|
29
|
+
|
|
30
|
+
• **name**: `string`
|
|
31
|
+
|
|
32
|
+
Name of NFT set in contract.
|
|
33
|
+
|
|
34
|
+
#### Defined in
|
|
35
|
+
|
|
36
|
+
[@types/Asset.ts:78](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L78)
|
|
37
|
+
|
|
38
|
+
___
|
|
39
|
+
|
|
40
|
+
### serviceId
|
|
41
|
+
|
|
42
|
+
• **serviceId**: `string`
|
|
43
|
+
|
|
44
|
+
ID of the service the datatoken is attached to.
|
|
45
|
+
|
|
46
|
+
#### Defined in
|
|
47
|
+
|
|
48
|
+
[@types/Asset.ts:90](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L90)
|
|
49
|
+
|
|
50
|
+
___
|
|
51
|
+
|
|
52
|
+
### symbol
|
|
53
|
+
|
|
54
|
+
• **symbol**: `string`
|
|
55
|
+
|
|
56
|
+
Symbol of NFT set in contract.
|
|
57
|
+
|
|
58
|
+
#### Defined in
|
|
59
|
+
|
|
60
|
+
[@types/Asset.ts:84](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L84)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / AssetLastEvent
|
|
2
|
+
|
|
3
|
+
# Interface: AssetLastEvent
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [block](AssetLastEvent.md#block)
|
|
10
|
+
- [contract](AssetLastEvent.md#contract)
|
|
11
|
+
- [datetime](AssetLastEvent.md#datetime)
|
|
12
|
+
- [from](AssetLastEvent.md#from)
|
|
13
|
+
- [tx](AssetLastEvent.md#tx)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### block
|
|
18
|
+
|
|
19
|
+
• **block**: `number`
|
|
20
|
+
|
|
21
|
+
#### Defined in
|
|
22
|
+
|
|
23
|
+
[@types/Asset.ts:134](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L134)
|
|
24
|
+
|
|
25
|
+
___
|
|
26
|
+
|
|
27
|
+
### contract
|
|
28
|
+
|
|
29
|
+
• **contract**: `string`
|
|
30
|
+
|
|
31
|
+
#### Defined in
|
|
32
|
+
|
|
33
|
+
[@types/Asset.ts:136](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L136)
|
|
34
|
+
|
|
35
|
+
___
|
|
36
|
+
|
|
37
|
+
### datetime
|
|
38
|
+
|
|
39
|
+
• **datetime**: `string`
|
|
40
|
+
|
|
41
|
+
#### Defined in
|
|
42
|
+
|
|
43
|
+
[@types/Asset.ts:137](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L137)
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### from
|
|
48
|
+
|
|
49
|
+
• **from**: `string`
|
|
50
|
+
|
|
51
|
+
#### Defined in
|
|
52
|
+
|
|
53
|
+
[@types/Asset.ts:135](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L135)
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
57
|
+
### tx
|
|
58
|
+
|
|
59
|
+
• **tx**: `string`
|
|
60
|
+
|
|
61
|
+
#### Defined in
|
|
62
|
+
|
|
63
|
+
[@types/Asset.ts:133](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L133)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / AssetNft
|
|
2
|
+
|
|
3
|
+
# Interface: AssetNft
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [address](AssetNft.md#address)
|
|
10
|
+
- [created](AssetNft.md#created)
|
|
11
|
+
- [name](AssetNft.md#name)
|
|
12
|
+
- [owner](AssetNft.md#owner)
|
|
13
|
+
- [state](AssetNft.md#state)
|
|
14
|
+
- [symbol](AssetNft.md#symbol)
|
|
15
|
+
- [tokenURI](AssetNft.md#tokenuri)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### address
|
|
20
|
+
|
|
21
|
+
• **address**: `string`
|
|
22
|
+
|
|
23
|
+
Contract address of the deployed ERC721 NFT contract.
|
|
24
|
+
|
|
25
|
+
#### Defined in
|
|
26
|
+
|
|
27
|
+
[@types/Asset.ts:8](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L8)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### created
|
|
32
|
+
|
|
33
|
+
• **created**: `string`
|
|
34
|
+
|
|
35
|
+
Contains the date of NFT creation.
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[@types/Asset.ts:44](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L44)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### name
|
|
44
|
+
|
|
45
|
+
• **name**: `string`
|
|
46
|
+
|
|
47
|
+
Name of NFT set in contract.
|
|
48
|
+
|
|
49
|
+
#### Defined in
|
|
50
|
+
|
|
51
|
+
[@types/Asset.ts:14](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L14)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### owner
|
|
56
|
+
|
|
57
|
+
• **owner**: `string`
|
|
58
|
+
|
|
59
|
+
ETH account address of the NFT owner.
|
|
60
|
+
|
|
61
|
+
#### Defined in
|
|
62
|
+
|
|
63
|
+
[@types/Asset.ts:26](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L26)
|
|
64
|
+
|
|
65
|
+
___
|
|
66
|
+
|
|
67
|
+
### state
|
|
68
|
+
|
|
69
|
+
• **state**: ``0`` \| ``2`` \| ``1`` \| ``3`` \| ``4`` \| ``5``
|
|
70
|
+
|
|
71
|
+
State of the asset reflecting the NFT contract value.
|
|
72
|
+
0 Active.
|
|
73
|
+
1 End-of-life.
|
|
74
|
+
2 Deprecated (by another asset).
|
|
75
|
+
3 Revoked by publisher.
|
|
76
|
+
4 Ordering is temporary disabled.
|
|
77
|
+
5 Unlisted in markets.
|
|
78
|
+
|
|
79
|
+
#### Defined in
|
|
80
|
+
|
|
81
|
+
[@types/Asset.ts:38](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L38)
|
|
82
|
+
|
|
83
|
+
___
|
|
84
|
+
|
|
85
|
+
### symbol
|
|
86
|
+
|
|
87
|
+
• **symbol**: `string`
|
|
88
|
+
|
|
89
|
+
Symbol of NFT set in contract.
|
|
90
|
+
|
|
91
|
+
#### Defined in
|
|
92
|
+
|
|
93
|
+
[@types/Asset.ts:20](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L20)
|
|
94
|
+
|
|
95
|
+
___
|
|
96
|
+
|
|
97
|
+
### tokenURI
|
|
98
|
+
|
|
99
|
+
• **tokenURI**: `string`
|
|
100
|
+
|
|
101
|
+
NFT token URI.
|
|
102
|
+
|
|
103
|
+
#### Defined in
|
|
104
|
+
|
|
105
|
+
[@types/Asset.ts:50](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L50)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[@oceanprotocol/lib](../README.md) / [Exports](../modules.md) / AssetPrice
|
|
2
|
+
|
|
3
|
+
# Interface: AssetPrice
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [tokenAddress](AssetPrice.md#tokenaddress)
|
|
10
|
+
- [tokenSymbol](AssetPrice.md#tokensymbol)
|
|
11
|
+
- [value](AssetPrice.md#value)
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### tokenAddress
|
|
16
|
+
|
|
17
|
+
• `Optional` **tokenAddress**: `string`
|
|
18
|
+
|
|
19
|
+
The address of the token that the price needs to be paid in.
|
|
20
|
+
|
|
21
|
+
#### Defined in
|
|
22
|
+
|
|
23
|
+
[@types/Asset.ts:110](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L110)
|
|
24
|
+
|
|
25
|
+
___
|
|
26
|
+
|
|
27
|
+
### tokenSymbol
|
|
28
|
+
|
|
29
|
+
• `Optional` **tokenSymbol**: `string`
|
|
30
|
+
|
|
31
|
+
The symbol that the price of the asset is expressed in.
|
|
32
|
+
|
|
33
|
+
#### Defined in
|
|
34
|
+
|
|
35
|
+
[@types/Asset.ts:104](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L104)
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### value
|
|
40
|
+
|
|
41
|
+
• **value**: `number`
|
|
42
|
+
|
|
43
|
+
The price of the asset expressed as a number. If 0 then the price is FREE.
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[@types/Asset.ts:98](https://github.com/oceanprotocol/ocean.js/blob/c99bc5c6/src/@types/Asset.ts#L98)
|