Ocean Protocol

Ocean Dataset Publishes

The OceanDatasetPublishes Stream contains Events that represent emited TokenRegistered Solidity events when a new DataToken is created (deployment of its proxy) by DTFactory Smart Contract

Support

Blockchain
Is supported
Ethereum (ETH)
​
βœ…
​

Details

Stream OceanDatasetPublishes type:
1
{
2
tokenAddress: address,
3
tokenName: string,
4
tokenSymbol: string,
5
tokenCap: int256,
6
registeredBy: address,
7
blob: string
8
}
Copied!
tokenAddress - Data Token contract address
tokenName - Data Token name
tokenSymbol - Data Token symbol
tokenCap - Data Token cap
registeredBy - the address that registered the Data Token
blob - any string that hold data/metadata for the new token

Ocean Dataset Metadata Actions

The OceanMetadataActions Stream contains Events that represent the Dataset Metadata Creations or Updates, caused by emited MetadataCreated and MetadataUpdated Solidity events respectively in Metadata Smart-Contract.

Support

Blockchain
Is supported
Ethereum (ETH)
​
βœ…
​

Details

Stream OceanMetadataActions type:
1
{
2
dataToken: address,
3
createdBy: address,
4
updatedBy: address,
5
flags: string,
6
data: string
7
}
Copied!
dataToken - Data Token contract address
createdBy - address that performed the Metadata Creation operation (present only on Create)
updatedBy - address that performed the Metadata Update operation (present only on Update)
flags - special flags associated with Metadata
data - actual Metadata

Ocean Dataset Consumes

The OceanMetadataConsumes Stream contains Events that represent the Dataset Consumed, caused by emited OrderStarted Solidity event respectively in DataTokenTemplate Smart-Contract.

Support

Blockchain
Is supported
Ethereum (ETH)
​
βœ…
​

Details

Stream OceanDatasetConsumes type:
1
{
2
dataToken: address,
3
consumer: address,
4
payer: address,
5
amount: int256,
6
serviceId: int256,
7
timestamp: int256,
8
marketCollector: address,
9
marketFee: int256
10
}
Copied!
dataToken - Data Token contract address
consumer - Dataset consumer address (payer could be different address)
payer - address that performed the pay for Consumption
amount - amount of Data Tokens that is going to be transferred
serviceId - service index in the metadata
timestamp - block timestamp for OrderStarted event
marketCollector - address of marketplace fee collector
marketFee - market fee amount
Last modified 10mo ago