1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Resolve merge conflict

This commit is contained in:
Akshay 2022-07-26 11:04:29 +02:00
commit bf9e744da9
43 changed files with 64 additions and 191 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 KiB

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 245 KiB

View File

@ -16,7 +16,10 @@ Ocean Protocol provides tools for developers to _build data markets_, and to _ma
* _Publish and access data services:_ downloadable files or compute-to-data. Use Ocean to deploy a new [ERC721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) and [ERC20](https://github.com/ethereum/EIPs/blob/7f4f0377730f5fc266824084188cc17cf246932e/EIPS/eip-20.md) datatoken contract for each data service, then mint datatokens. * _Publish and access data services:_ downloadable files or compute-to-data. Use Ocean to deploy a new [ERC721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) and [ERC20](https://github.com/ethereum/EIPs/blob/7f4f0377730f5fc266824084188cc17cf246932e/EIPS/eip-20.md) datatoken contract for each data service, then mint datatokens.
* _Transfer datatokens_ to another owner (or approve & transferFrom). * _Transfer datatokens_ to another owner (or approve & transferFrom).
* _Manage pools._ Deploy OCEAN-datatoken [Balancer](https://www.balancer.fi/) pools, buy & sell datatokens (swap), and add & remove liquidity.
* _And more._ Use ERC20 support in [web3.js](https://web3js.readthedocs.io/), [web3.py](https://web3py.readthedocs.io/en/stable/examples.html#working-with-an-erc20-token-contract) and Solidity to connect datatokens with crypto wallets and other DeFi services. * _And more._ Use ERC20 support in [web3.js](https://web3js.readthedocs.io/), [web3.py](https://web3py.readthedocs.io/en/stable/examples.html#working-with-an-erc20-token-contract) and Solidity to connect datatokens with crypto wallets and other DeFi services.
**Compute-to-Data** Ocean's "Compute-to-Data" feature gives compute access to privately-held data, which never leaves the data owners premises. Ocean-based marketplaces enable the monetization of private data while preserving privacy. [Here](tutorials/compute-to-data-architecture/) are details. **Compute-to-Data** Ocean's "Compute-to-Data" feature gives compute access to privately-held data, which never leaves the data owners premises. Ocean-based marketplaces enable the monetization of private data while preserving privacy. [Here](tutorials/compute-to-data-architecture/) are details.
## Supporters
[GitBook](https://www.gitbook.com/) is a supporter of this open source project by providing hosting for this documentation.

View File

@ -7,24 +7,19 @@
* [Core Concepts](core-concepts/README.md) * [Core Concepts](core-concepts/README.md)
* [Architecture Overview](core-concepts/architecture.md) * [Architecture Overview](core-concepts/architecture.md)
* [Data NFTs and Datatokens](core-concepts/datanft-and-datatoken.md) * [Data NFTs and Datatokens](core-concepts/datanft-and-datatoken.md)
* [Data NFTs and datatoken roles](core-concepts/roles.md) * [Roles](core-concepts/roles.md)
* [Supported Networks](core-concepts/networks.md) * [Networks](core-concepts/networks.md)
* [Polygon (ex Matic)](building-with-ocean/polygon-bridge.md)
* [Binance Smart Chain (BSC)](building-with-ocean/bsc-bridge.md)
* [Fees](core-concepts/fees.md) * [Fees](core-concepts/fees.md)
* [Asset pricing](core-concepts/asset-pricing.md) * [Asset pricing](core-concepts/asset-pricing.md)
* [DID & DDO](core-concepts/did-ddo.md) * [DID & DDO](core-concepts/did-ddo.md)
* [Contributor Code of Conduct](core-concepts/code-of-conduct.md) * [Using Ocean Market](using-ocean-market/README.md)
* [Ways to Contribute](core-concepts/contributing.md) * [Publish a data asset](using-ocean-market/marketplace-publish-data-asset.md)
* [Funding](core-concepts/get-funding.md) * [Download a data asset](using-ocean-market/marketplace-download-data-asset.md)
* [Legal Requirements when Contributing Code](core-concepts/legal-reqs.md)
* [Reporting Vulnerabilities](core-concepts/vulnerabilities.md)
* [API references](api-references/README.md)
* [Aquarius REST API](api-references/aquarius-rest-api.md)
* [Provider REST API](api-references/provider-rest-api.md)
* [Building with ocean](building-with-ocean/README.md)
* [Publish assets using hosting services](building-with-ocean/asset-hosting.md) * [Publish assets using hosting services](building-with-ocean/asset-hosting.md)
* [Binance Smart Chain (BSC)](building-with-ocean/bsc-bridge.md) * [Building with ocean](building-with-ocean/README.md)
* [Set Up a Marketplace](building-with-ocean/marketplace.md) * [Set Up a Marketplace](building-with-ocean/marketplace.md)
* [Polygon (ex Matic)](building-with-ocean/polygon-bridge.md)
* [Compute-to-Data](building-with-ocean/compute-to-data/README.md) * [Compute-to-Data](building-with-ocean/compute-to-data/README.md)
* [Architecture](building-with-ocean/compute-to-data/compute-to-data-architecture.md) * [Architecture](building-with-ocean/compute-to-data/compute-to-data-architecture.md)
* [Datasets & Algorithms](building-with-ocean/compute-to-data/compute-to-data-datasets-algorithms.md) * [Datasets & Algorithms](building-with-ocean/compute-to-data/compute-to-data-datasets-algorithms.md)
@ -36,9 +31,13 @@
* [Deploying Marketplace](building-with-ocean/deploying-components/deploying-marketplace.md) * [Deploying Marketplace](building-with-ocean/deploying-components/deploying-marketplace.md)
* [Deploying Aquarius](building-with-ocean/deploying-components/deploying-aquarius.md) * [Deploying Aquarius](building-with-ocean/deploying-components/deploying-aquarius.md)
* [Deploying Ocean subgraph](building-with-ocean/deploying-components/deploying-ocean-subgraph.md) * [Deploying Ocean subgraph](building-with-ocean/deploying-components/deploying-ocean-subgraph.md)
* [Contributing](core-concepts/contributing.md)
* [Contributor Code of Conduct](core-concepts/code-of-conduct.md)
* [Legal Requirements when Contributing Code](core-concepts/legal-reqs.md)
* [Reporting Vulnerabilities](core-concepts/vulnerabilities.md)
* [Funding](core-concepts/get-funding.md)
* [Projects using Ocean Protocol](building-with-ocean/projects-using-ocean.md) * [Projects using Ocean Protocol](building-with-ocean/projects-using-ocean.md)
* [Using Ocean Market](using-ocean-market/README.md) * [API references](api-references/README.md)
* [Publish a data asset](using-ocean-market/marketplace-publish-data-asset.md) * [Aquarius REST API](api-references/aquarius-rest-api.md)
* [Download a data asset](using-ocean-market/marketplace-download-data-asset.md) * [Provider REST API](api-references/provider-rest-api.md)
* [Add liquidity to liquidity pools](using-ocean-market/marketplace-add-liquidity.md)
* [Swap datatokens](using-ocean-market/marketplace-swap.md)

View File

@ -7,7 +7,7 @@ description: Datasets and Algorithms
### Datasets & Algorithms ### Datasets & Algorithms
With Compute-to-Data, datasets are not allowed to leave the premises of the data holder, only algorithms can be permitted to run on them under certain conditions within an isolated and secure environment. Algorithms are an asset type just like datasets. They too can have a pool or a fixed price to determine their price whenever they are used. With Compute-to-Data, datasets are not allowed to leave the premises of the data holder, only algorithms can be permitted to run on them under certain conditions within an isolated and secure environment. Algorithms are an asset type just like datasets and can be priced in the same way.
Algorithms can be public or private by setting `"attributes.main.type"` value in DDO as follows: Algorithms can be public or private by setting `"attributes.main.type"` value in DDO as follows:

View File

@ -17,9 +17,25 @@ Copy the below content into the \`.env\` file.
{% code title=".env" %} {% code title=".env" %}
``` ```
DB_USERNAME=username # Update this value if Market should using custom Aquarius
DB_PASSWORD=password NEXT_PUBLIC_METADATACACHE_URI=https://v4.aquarius.oceanprotocol.com
Build a Marketplace container
#NEXT_PUBLIC_INFURA_PROJECT_ID="xxx"
#NEXT_PUBLIC_MARKET_FEE_ADDRESS="0xxx"
#NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE="1"
#NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE="1"
#NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE="1"
#
# ADVANCED SETTINGS
#
# Toggle pricing options presented during price creation
#NEXT_PUBLIC_ALLOW_FIXED_PRICING="true"
#NEXT_PUBLIC_ALLOW_FREE_PRICING="true"
# Privacy Preference Center
#NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER="true"
``` ```
{% endcode %} {% endcode %}

View File

@ -44,10 +44,7 @@ Once someone has generated datatokens, they can be used in any ERC20 exchange, c
The marketplaces are decentralized (no single owner or controller), and non-custodial (only the data owner holds the keys for the datatokens). The marketplaces are decentralized (no single owner or controller), and non-custodial (only the data owner holds the keys for the datatokens).
Ocean Market supports fixed pricing and automatic price discovery. Ocean Market supports fixed pricing or free pricing. For more detials on pricing schema refer [this guide](./asset-pricing.md).
* For **fixed pricing**, theres a simple contract for users to buy/sell datatokens for OCEAN while avoiding custodianship during value transfer.
* For **automatic price discovery**, Ocean Market uses automated market makers (AMMs) powered by [Balancer](https://www.balancer.fi). Each pool is a datatoken-OCEAN pair. In the Ocean Market GUI, the user adds liquidity then invokes pool creation; the GUIs React code calls the Ocean JavaScript library, which calls the **Pool Factory** to deploy a **Pool** contract. (The Python library also does this.) Deploying a datatoken pool can be viewed as an “Initial Data Offering” (IDO).
Complementary to Ocean Market, Ocean has reference code to ease building **third-party data marketplaces**, such as for logistics ([dexFreight data marketplace](https://blog.oceanprotocol.com/dexfreight-ocean-protocol-partner-to-enable-transportation-logistics-companies-to-monetize-data-7aa839195ac)) or mobility ([Daimler](https://blog.oceanprotocol.com/ocean-protocol-delivers-proof-of-concept-for-daimler-ag-in-collaboration-with-daimler-south-east-564aa7d959ca)). Complementary to Ocean Market, Ocean has reference code to ease building **third-party data marketplaces**, such as for logistics ([dexFreight data marketplace](https://blog.oceanprotocol.com/dexfreight-ocean-protocol-partner-to-enable-transportation-logistics-companies-to-monetize-data-7aa839195ac)) or mobility ([Daimler](https://blog.oceanprotocol.com/ocean-protocol-delivers-proof-of-concept-for-daimler-ag-in-collaboration-with-daimler-south-east-564aa7d959ca)).

View File

@ -15,56 +15,10 @@ With the fixed price model, publishers set the price for the data in OCEAN. Ocea
A [FixedRateExchange](https://github.com/oceanprotocol/contracts/blob/v4main/contracts/pools/fixedRate/FixedRateExchange.sol) smart contract stores the information about the price of the assets published using this model. A [FixedRateExchange](https://github.com/oceanprotocol/contracts/blob/v4main/contracts/pools/fixedRate/FixedRateExchange.sol) smart contract stores the information about the price of the assets published using this model.
Publishers can choose this fixed pricing model when they do not want Automated Market Maker(AMM) pools to decide the price discovery. If the publisher has already analyzed and estimated the worth of the dataset and is ready to sell an asset at a constant price, this is the suitable pricing model.
The image below shows how to set the fixed pricing of an asset in the Ocean's Marketplace. Here, the price of the asset is set to 10 Ocean tokens. The image below shows how to set the fixed pricing of an asset in the Ocean's Marketplace. Here, the price of the asset is set to 10 Ocean tokens.
![fixed-asset-pricing](../.gitbook/assets/fixed-asset-pricing.png) ![fixed-asset-pricing](../.gitbook/assets/fixed-asset-pricing.png)
### Dynamic pricing
With the dynamic pricing model, the market defines the price with a mechanism derived from Decentralized Finance (DeFi): liquidity pools. While the publisher sets a base price for the token in OCEAN, the market will organically discover the right price for the data. This can be extremely handy when the value of the data is not known.
The Ocean Market helps create an Automated Market Maker(AMM) pool of Datatoken and Ocean tokens in dynamic pricing for each asset. _AMM_ enables unstoppable, decentralized trading of assets in the liquidity pool.
AMM uses a constant product formula to price tokens, which states: **x \* y = k** where **x** and **y** represents the quantity of the two different tokens in the pool and **k** is a constant.
A _liquidity pool_ is a reserve of tokens locked in the smart contract for market making. A buyer or a seller of an asset exchanges token **x** for token **y** or vice versa. AMM calculates the exchange ratio between the tokens based on the mathematical formula above.
Ocean Protocol facilitates the creation of Datatoken/OCEAN liquidity pool with [Balancer smart contracts](https://github.com/oceanprotocol/contracts/tree/v4main/contracts/pools/balancer). The publisher needs to only approve a blockchain transaction that creates an AMM while publishing the asset. Thus, Ocean Market hides the complexities of deploying an AMM pool.
While publishing an asset with dynamic pricing, the publisher decides the initial ratio of Datatokens and Ocean tokens in the pool, thus setting the initial price of an asset. The price of an asset is later dependent on the pool's liquidity and the price impact of trade in the pool.
Publishers can set the pricing model of an asset to Dynamic pricing if they want the market to decide the asset price and thus enable auto price discovery.
The image below shows how to set the Dynamic pricing of an asset in the Ocean's Marketplace. Here, the asset price is initially set to 50 Ocean tokens.
![dynamic-asset-pricing](<../.gitbook/assets/dynamic asset pricing>)
Ocean Protocol also allows publishers to set the pricing using ocean.js and ocean.py library.
#### Asset price
**Action: Add liquidity**
With one-sided staking, when liquidity is added to the pool, the Ocean tokens are added to the liquidity pool. To protect funds from impermanent loss due to changes in the ratio of tokens in the liquidity pool, Ocean Protocol's bot mints new datatokens and adds them to the pool. Thus, when liquidity is added to the pool, the ratio of tokens remains constant, and there is no price impact on the datatoken.
**Action: Remove liquidity**
When the liquidity is removed from the pool, the Ocean tokens are returned to the liquidity provider who initiated the action. Ocean Protocol's bot burns the datatokens from the liquidity pool to protect funds from impermanent loss due to changes in the ratio of tokens in the liquidity pool. Thus, even in this case, there is no price impact on the datatoken.
**Action: Buy datatoken**
When a datatoken is bought by paying Ocean tokens to the pool, the ratio of Ocean token and datatoken changes: there are more Ocean tokens and fewer datatokens in the liquidity pool. Therefore, as the ratio of datatokens/Ocean tokens changes, the liquidity pool increases the amount of Ocean tokens required to buy a datatoken in the following transactions(to maintain a constant ratio). Thus, the price of the datatoken increases whenever a datatoken is bought.
**Action: Buy dataset**
Buying a dataset involves swapping a datatoken from the liquidity pool by paying Ocean tokens. Thus, if users buy datatokens, the price of datatokens will increase. However, if users already have the datatokens, they can use them to buy the asset or the service without requiring interaction with the pool. In such a case, the price of the datatoken doesn't change.
**Action: Sell datatoken**
When a datatoken is sold, Ocean tokens are removed from the liquidity pool in exchange for datatoken. Thus, the ratio of Ocean tokens and datatokens changes: there are fewer Ocean tokens and more datatokens in the liquidity pool. As there are more datatokens, the liquidity pool decreases the amount of Ocean tokens required to buy a datatoken in the following transactions(to maintain a constant ratio). Thus, the price of the datatoken decreases whenever a datatoken is sold.
### Free pricing ### Free pricing
With the free pricing model, the buyers can access an asset without requiring them to pay for it except for the transaction fees. With the free pricing model, the buyers can access an asset without requiring them to pay for it except for the transaction fees.

View File

@ -11,15 +11,14 @@ A non-fungible token stored on the blockchain represents a unique asset. NFTs ca
Fungible tokens represent fungible assets. If you have 5 ETH and Alice has 5 ETH, you and Alice could swap your ETH and your final holdings remain the same. They're apples-to-apples. Licenses (contracts) to access a copyrighted asset are naturally fungible - they can be swapped with each other. Fungible tokens represent fungible assets. If you have 5 ETH and Alice has 5 ETH, you and Alice could swap your ETH and your final holdings remain the same. They're apples-to-apples. Licenses (contracts) to access a copyrighted asset are naturally fungible - they can be swapped with each other.
![Data NFT and datatoken](<../.gitbook/assets/datanft and datatoken>) ![Data NFT and datatoken](../.gitbook/assets/datanft-and-datatoken.png)
### High-Level Architecture ### High-Level Architecture
The image above describes how ERC721 data NFTs, ERC20 datatokens, and AMMs relate. The image above describes how ERC721 data NFTs, ERC20 datatokens, and AMMs relate.
* Bottom: The publisher deploys an ERC721 data NFT contract representing the base IP for the data asset. They are now the manager of the data NFT. * Bottom: The publisher deploys an ERC721 data NFT contract representing the base IP for the data asset. They are now the manager of the data NFT.
* Middle: The manager then deploys an ERC20 datatoken contract against the data NFT. The ERC20 represents a license with specific terms like "can download for the next 3 days". They could even publish further ERC20 datatoken contracts, to represent different license terms or for compute-to-data. * Top: The manager then deploys an ERC20 datatoken contract against the data NFT. The ERC20 represents a license with specific terms like "can download for the next 3 days". They could even publish further ERC20 datatoken contracts, to represent different license terms or for compute-to-data.
* Top: The manager then deploys a pool of the datatoken and OCEAN (or H2O), adds initial liquidity, and receives ERC20 pool tokens in return. Others may also add liquidity to receive pool tokens, i.e. become liquidity providers (LPs).
### Terminology ### Terminology

View File

@ -16,7 +16,7 @@ Ocean Protocol achieves sustainability via the [Web3 sustainability loop](https:
### Swap fee ### Swap fee
Swap fees are collected whenever someone swaps a datatoken for base token (e.g., OCEAN) or base token for a datatoken. The swap could be inside a pool (using an automated market maker) or in a fixed-rate exchange. Swap fees are collected whenever someone swaps a datatoken for base token (e.g., OCEAN) or base token for a datatoken. The swap can be conducted using a a fixed-rate exchange.
These are the fees that are applied whenever a user swaps base token or datatoken: These are the fees that are applied whenever a user swaps base token or datatoken:
- Publisher Marketplace swap fee - Publisher Marketplace swap fee
@ -67,14 +67,11 @@ The table is periodically updated. Users are advised to confirm new values throu
| Swap Fees | Value in Ocean Market, using any Provider | Value in Other Markets | | Swap Fees | Value in Ocean Market, using any Provider | Value in Other Markets |
| :------------------------------------------------------------- | :---------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------ | | :------------------------------------------------------------- | :---------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------ |
| publishMarket: Pools | 0% | Set in the market config, by the publishing market.<br>Min = 0.001%<br>Max = 10% |
| publishMarket: FixedRate | 0% | Set in the market config, by the publishing market.<br>Min = 0.001%<br>Max = 50% | | publishMarket: FixedRate | 0% | Set in the market config, by the publishing market.<br>Min = 0.001%<br>Max = 50% |
| consumeMarket: Pools | 0% | Set in market config, by the consuming market.<br>Min = 0.001%<br>Max = 10% |
| consumeMarket: FixedRate<br>ERC20Template | 0% | 0% | | consumeMarket: FixedRate<br>ERC20Template | 0% | 0% |
| consumeMarket: FixedRate<br>EnterpriseTemplate | 0% | Set in market config, by the consuming market. | | consumeMarket: FixedRate<br>EnterpriseTemplate | 0% | Set in market config, by the consuming market. |
| Ocean Community: Pools & FixedRate<br>OCEAN, H2O as base token | 0.1% | 0.1% | | Ocean Community: FixedRate<br>OCEAN, H2O as base token | 0.1% | 0.1% |
| Ocean Community: Pools & FixedRate<br>other base token | 0.2% | 0.2% | | Ocean Community: FixedRate<br>other base token | 0.2% | 0.2% |
| Pool Liquidity Provider (LP) | 1% | Set by the pool creator on contract deployment.<br><b>Contracts</b> <br> Min = 0.001% <br>Max = 10%<br><b>Market</b> <br>Min = 0.1% <br>Max = 10% |
| <b>Publish Fees</b> | 0% | 0% | | <b>Publish Fees</b> | 0% | 0% |
| <b>Order Fees <br>1 datatoken available to get dataset acces | | | | <b>Order Fees <br>1 datatoken available to get dataset acces | | |
| publishMarket<br>Absolute value, in any token. E.g. 5 USDT | 0 | Set in market config, by the publishing market. | | publishMarket<br>Absolute value, in any token. E.g. 5 USDT | 0 | Set in market config, by the publishing market. |

View File

@ -24,7 +24,6 @@ The permissions are stored in the data NFT (ERC721) smart contract. The data NFT
| Action &darr; / Role &rarr; | ERC20 Deployer | Minter | NFT owner | Fee manager | | Action &darr; / Role &rarr; | ERC20 Deployer | Minter | NFT owner | Fee manager |
| --------------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | | --------------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
| Deploy pool | <center>**✓**</center> | | | |
| Create Fixed Rate exchange | <center>**✓**</center> | | | | | Create Fixed Rate exchange | <center>**✓**</center> | | | |
| Create Dispenser | <center>**✓**</center> | | | | | Create Dispenser | <center>**✓**</center> | | | |
| Add minter | <center>**✓**</center> | | | | | Add minter | <center>**✓**</center> | | | |

View File

@ -10,4 +10,3 @@ https://v4.market.oceanprotocol.com/
1. Ocean Market enables publishers to monetize their data and/or algorithms through blockchain technology. 1. Ocean Market enables publishers to monetize their data and/or algorithms through blockchain technology.
2. Consumers can purchase access to data, algorithms, compute services. 2. Consumers can purchase access to data, algorithms, compute services.
3. Liquidity providers can add their OCEAN tokens to liquidity pools and earn interest on the transactions.

View File

@ -1,45 +0,0 @@
---
description: Tutorial to add liquidity to Ocean pools using Ocean Market
---
# Add liquidity to liquidity pools
### Access marketplace
1. Go to Ocean [Marketplace](https://v4.market.oceanprotocol.com/).
2. Search for the data asset. The Ocean Marketplace provides features to search the Data/Algorithms by text, and users can also sort the result by published date.
3. Connect wallet.
![connect wallet](../.gitbook/assets/add-liquidity-connect-wallet.png)
### Tutorial
#### Find an asset
Search for the desired asset published on the [Ocean Marketplace](https://v4.market.oceanprotocol.com/).
#### Step 1 - Select pool tab
After finding the dataset, select **`POOL`** tab and click on **`ADD LIQUIDITY`**.
![add liquidity part-1](../.gitbook/assets/add-liquidity-1.png)
#### Step 2 - Liquidity amount
Enter the amount of OCEAN tokens you want to add. The expected amount of pool shares and percentages for the provided amount will be displayed.
![add liquidity part-2](../.gitbook/assets/add-liquidity-2.png)
#### Step 3 - Transaction: Access to OCEAN tokens
![add liquidity part-3](../.gitbook/assets/add-liquidity-3.png)
#### Step 4 - Click supply
![add liquidity part-4](../.gitbook/assets/add-liquidity-4.png)
#### Step 5 - Transaction: Add liquidty
![add liquidity part-5](../.gitbook/assets/add-liquidity-5.png)
![add liquidity part-6](../.gitbook/assets/add-liquidity-6.png)

View File

@ -10,7 +10,7 @@ description: Tutorial to download assets using Ocean Market
2. Search for the data asset. The Ocean Marketplace provides features to search the Data/Algorithms by text, and users can also sort the result by published date. 2. Search for the data asset. The Ocean Marketplace provides features to search the Data/Algorithms by text, and users can also sort the result by published date.
3. Connect wallet. 3. Connect wallet.
![connect wallet](../.gitbook/assets/consume-connect-wallet.png) ![Connect wallet](../.gitbook/assets/consume-connect-wallet.png)
``` ```
In this tutorial, we will be using the Rinkeby test network. In this tutorial, we will be using the Rinkeby test network.
@ -22,22 +22,22 @@ In this tutorial, we will be using the Rinkeby test network.
The buy button is enabled only if the connected wallet address has enough OCEAN tokens to exchange them with 1 datatoken. The buy button is enabled only if the connected wallet address has enough OCEAN tokens to exchange them with 1 datatoken.
![consume part-1](../.gitbook/assets/consume-1.png) ![Buy](../.gitbook/assets/consume-1.png)
#### Step 2 - Allow access to OCEAN token(s) #### Step 2 - Allow access to OCEAN token(s)
![consume part-3](../.gitbook/assets/consume-2.png) ![Transaction 1: Permissions to access OCEAN tokens](../.gitbook/assets/consume-2.png)
#### Step 3 - Buy a datatoken by exchanging it with OCEAN token(s) #### Step 3 - Buy a datatoken by exchanging it with OCEAN token(s)
![consume part-4](../.gitbook/assets/consume-3.png) ![Transaction 2: Buy datatoken](../.gitbook/assets/consume-3.png)
#### Step 4 - Click download #### Step 4 - Click download
![consume part-5](../.gitbook/assets/consume-4.png) ![Download asset](../.gitbook/assets/consume-4.png)
#### Step 5 - Sign message #### Step 5 - Sign message
After signing the message, the file download will start. After signing the message, the file download will start.
![consume part-6](../.gitbook/assets/consume-5.png) ![Sign](../.gitbook/assets/consume-5.png)

View File

@ -15,13 +15,13 @@ Ocean Market provides a convenient interface for individuals and organizations t
1. Go to [Ocean Market](https://v4.market.oceanprotocol.com) 1. Go to [Ocean Market](https://v4.market.oceanprotocol.com)
2. Connect wallet. 2. Connect wallet.
![connect wallet](../.gitbook/assets/connect-wallet.png) ![Connect wallet](../.gitbook/assets/connect-wallet.png)
In this tutorial, we will be using the Rinkeby test network. In this tutorial, we will be using the Rinkeby test network.
3\. Go to the publish page. 3\. Go to the publish page.
![publish page](../.gitbook/assets/publish.png) ![Publish page](../.gitbook/assets/publish.png)
#### Step 1 - Metadata #### Step 1 - Metadata
@ -45,7 +45,7 @@ _Mandatory fields are marked with \*_
Tags help the asset to be discoverable. If not provided, the list of tags is empty by default. Tags help the asset to be discoverable. If not provided, the list of tags is empty by default.
![publish part-1](../.gitbook/assets/publish-1.png) ![Asset metadata](../.gitbook/assets/publish-1.png)
#### Step 2 - Access details #### Step 2 - Access details
@ -71,49 +71,43 @@ _Mandatory fields are marked with \*_
This field specifies how long the buyer can access the dataset after the dataset is purchased. This field is editable after the asset publication. This field specifies how long the buyer can access the dataset after the dataset is purchased. This field is editable after the asset publication.
![publish part-2](../.gitbook/assets/publish-2.png) ![Access details](../.gitbook/assets/publish-2.png)
#### Step 3 - Pricing #### Step 3 - Pricing
The publisher needs to choose a pricing option for the asset before publishing the data asset. The pricing schema is not editable after the asset publication. The publisher needs to choose a pricing option for the asset before publishing the data asset. The pricing schema is not editable after the asset publication.
There are 3 pricing options for asset publication on Ocean Marketplace. There are 2 pricing options for asset publication on Ocean Marketplace.
1. Fixed pricing 1. Fixed pricing
2. Dynamic pricing (using Balancer pools) 2. Free pricing
3. Free pricing
With the _fixed pricing_ schema, the publisher sets the price that buyers will pay to download the data asset. With the _fixed pricing_ schema, the publisher sets the price that buyers will pay to download the data asset.
With the _free pricing_ schema, the publisher provides an asset that is free to be downloaded by anyone. With the _free pricing_ schema, the publisher provides an asset that is free to be downloaded by anyone.
With the _dynamic pricing_ schema, the publisher sets the asset price and creates a datatoken liquidity pool with an initial amount of OCEAN tokens.
For more information on the pricing models, please refer this [document](../core-concepts/asset-pricing.md). For more information on the pricing models, please refer this [document](../core-concepts/asset-pricing.md).
The publisher can also change the **Swap Fee** of the liquidity pool.
For a deep dive into the fee structure, please refer to this [document](../core-concepts/fees.md). For a deep dive into the fee structure, please refer to this [document](../core-concepts/fees.md).
![publish part-3](../.gitbook/assets/publish-3.png) ![Asset pricing](../.gitbook/assets/publish-3.png)
#### Step 4 - Preview #### Step 4 - Preview
![publish part-4](../.gitbook/assets/publish-4.png) ![Preview](../.gitbook/assets/publish-4.png)
#### Step 5 - Blockchain transactions #### Step 5 - Blockchain transactions
![publish part-5](../.gitbook/assets/publish-5.png) ![Transaction 1 - Deploy data NFT and datatoken](../.gitbook/assets/publish-5.png)
![publish part-6](../.gitbook/assets/publish-6.png)
![publish part-7](../.gitbook/assets/publish-7.png) ![Transaction 2 - Deploy data NFT and datatoken](../.gitbook/assets/publish-6.png)
#### Confirmation #### Confirmation
Now, the asset is successfully published and available in the Ocean Market. Now, the asset is successfully published and available in the Ocean Market.
![publish success](../.gitbook/assets/publish-8.png) ![Successful publish](../.gitbook/assets/publish-7.png)
On the [profile page](https://v4.market.oceanprotocol.com/profile), the publisher has access to all his published assets. On the [profile page](https://v4.market.oceanprotocol.com/profile), the publisher has access to all his published assets.

View File

@ -1,39 +0,0 @@
---
description: Tutorial to swap datatokens for OCEAN tokens using Ocean Market
---
# Swap datatokens
### Access marketplace
1. Go to Ocean [Marketplace](https://v4.market.oceanprotocol.com/).
2. Search for the data asset. The Ocean Marketplace provides features to search the Data/Algorithms by text, and users can also sort the result by published date.
3. Connect wallet.
![connect wallet](../.gitbook/assets/consume-connect-wallet.png)
### Tutorial
#### Step 1 - Select TRADE tab
After finding the dataset, select the **`TRADE`** tab.
#### Step 2 - Trade amount
Enter the amount of OCEAN tokens to swap. The datatokens amount to receive is displayed with the swap fees information. The reverse operation(swap datatokens to OCEAN tokens) is also available on the trade tab.
![swap part-1](../.gitbook/assets/Swap-1.png)
#### Step 3 - Transaction: Access to OCEAN token(s)
![swap part-2](../.gitbook/assets/Swap-2.png)
#### Step 4 - Click swap
![swap part-3](../.gitbook/assets/Swap-3.png)
#### Step 5 - Transaction: Swap tokens
![swap part-4](../.gitbook/assets/Swap-4.png)
![swap part-5](../.gitbook/assets/Swap-5.png)