1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
2023-05-02 18:18:30 +01:00

4.6 KiB

@oceanprotocol/lib / Exports / Asset

Interface: Asset

DID Descriptor Object. Contains metadata about the asset, and define access in at least one service.

Hierarchy

  • DDO

    Asset

Table of contents

Properties

Properties

@context

@context: string[]

Contexts used for validation.

Inherited from

DDO.@context

Defined in

@types/DDO/DDO.ts:12


chainId

chainId: number

ChainId of the network the DDO was published to.

Inherited from

DDO.chainId

Defined in

@types/DDO/DDO.ts:38


credentials

Optional credentials: Credentials

Describes the credentials needed to access a dataset in addition to the services definition.

Inherited from

DDO.credentials

Defined in

@types/DDO/DDO.ts:57


datatokens

datatokens: AssetDatatoken[]

Contains information about the ERC20 Datatokens attached to asset services.

Defined in

@types/Asset.ts:151


event

event: AssetLastEvent

Contains information about the last transaction that created or updated the DDO.

Overrides

DDO.event

Defined in

@types/Asset.ts:157


id

id: string

DID, descentralized ID. Computed as sha256(address of NFT contract + chainId)

Inherited from

DDO.id

Defined in

@types/DDO/DDO.ts:19


metadata

metadata: Metadata

Stores an object describing the asset.

Inherited from

DDO.metadata

Defined in

@types/DDO/DDO.ts:44


nft

nft: AssetNft

Contains information about the ERC721 NFT contract which represents the intellectual property of the publisher.

Defined in

@types/Asset.ts:145


nftAddress

nftAddress: string

NFT contract address

Inherited from

DDO.nftAddress

Defined in

@types/DDO/DDO.ts:32


purgatory

purgatory: Purgatory

Contains information about an asset's purgatory status defined in list-purgatory. Marketplace interfaces are encouraged to prevent certain user actions like downloading on assets in purgatory.

Defined in

@types/Asset.ts:171


services

services: Service[]

Stores an array of services defining access to the asset.

Inherited from

DDO.services

Defined in

@types/DDO/DDO.ts:50


stats

stats: Stats

The stats section contains different statistics fields. This section is added by Aquarius

Defined in

@types/Asset.ts:163


version

version: string

Version information in SemVer notation referring to the DDO spec version

Inherited from

DDO.version

Defined in

@types/DDO/DDO.ts:26