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

GITBOOK-212: change request with no subject merged in GitBook

This commit is contained in:
Jamie Hewitt 2023-05-23 15:36:59 +00:00 committed by gitbook-bot
parent 01dfc0c15c
commit b5a3dea19b
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
19 changed files with 40 additions and 24 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

View File

@ -1,6 +1,6 @@
--- ---
description: Help for wherever you are on your Ocean Protocol journey. description: Help for wherever you are on your Ocean Protocol journey.
cover: .gitbook/assets/cover/contribute (1) (1).png cover: .gitbook/assets/cover/contribute (1).png
coverY: 0 coverY: 0
layout: landing layout: landing
--- ---

View File

@ -27,7 +27,7 @@
* [How to Data Farm](user-guides/how-to-data-farm.md) * [How to Data Farm](user-guides/how-to-data-farm.md)
* [Claim OCEAN Rewards](user-guides/claim-ocean-rewards.md) * [Claim OCEAN Rewards](user-guides/claim-ocean-rewards.md)
* [Liquidity Pools \[deprecated\]](user-guides/remove-liquidity-using-etherscan.md) * [Liquidity Pools \[deprecated\]](user-guides/remove-liquidity-using-etherscan.md)
* [👨💻 👨💻 👨💻 Developers](developers/README.md) * [👨💻 Developers](developers/README.md)
* [Architecture Overview](developers/architecture.md) * [Architecture Overview](developers/architecture.md)
* [Data NFTs and Datatokens](developers/datanft-and-datatoken.md) * [Data NFTs and Datatokens](developers/datanft-and-datatoken.md)
* [Roles](developers/roles.md) * [Roles](developers/roles.md)
@ -43,10 +43,12 @@
* [Deploying a Market](developers/build-a-marketplace/deploying-market.md) * [Deploying a Market](developers/build-a-marketplace/deploying-market.md)
* [Ocean Subgraph](developers/ocean-subgraph/README.md) * [Ocean Subgraph](developers/ocean-subgraph/README.md)
* [Get data NFTs](developers/using-ocean-subgraph/list-data-nfts.md) * [Get data NFTs](developers/using-ocean-subgraph/list-data-nfts.md)
* [Get data NFT Details](developers/using-ocean-subgraph/get-data-nft-information.md)
* [Get datatokens](developers/using-ocean-subgraph/list-datatokens.md) * [Get datatokens](developers/using-ocean-subgraph/list-datatokens.md)
* [Get Data NFT Information](developers/using-ocean-subgraph/get-data-nft-information.md)
* [Get Datatoken Information](developers/using-ocean-subgraph/get-datatoken-information.md) * [Get Datatoken Information](developers/using-ocean-subgraph/get-datatoken-information.md)
* [List Fixed Rate Exchanges](developers/using-ocean-subgraph/list-fixed-rate-exchanges.md) * [List Fixed Rate Exchanges](developers/using-ocean-subgraph/list-fixed-rate-exchanges.md)
* [Ocean.py](developers/ocean.py/README.md)
* [Page 1](developers/ocean.py/page-1.md)
* [Ocean Libraries](developers/ocean-libraries/README.md) * [Ocean Libraries](developers/ocean-libraries/README.md)
* [Configuration](developers/using-ocean-libraries/configuration.md) * [Configuration](developers/using-ocean-libraries/configuration.md)
* [Creating a data NFT](developers/using-ocean-libraries/creating-datanft.md) * [Creating a data NFT](developers/using-ocean-libraries/creating-datanft.md)

View File

@ -1,7 +1,7 @@
--- ---
title: Ways to Contribute title: Ways to Contribute
description: Help to improve and develop Ocean core software. description: Help to improve and develop Ocean core software.
cover: ../.gitbook/assets/cover/contribute (1) (1) (1).png cover: ../.gitbook/assets/cover/contribute (2).png
coverY: 0 coverY: 0
--- ---

View File

@ -12,8 +12,12 @@ The [Ocean Subgraph](https://github.com/oceanprotocol/ocean-subgraph) is built o
Imagine this 💭: if you were to always fetch data from the on-chain, you'd start to feel a little...old :older\_woman:. Like your queries are stuck in a time warp. But fear not! When you embrace the power of the subgraph, data becomes your elixir of youth. It's snappy, it's swift, and it's refreshingly retrievable. With the subgraph, you can sail through data like a sprightly dolphin 🐬  Imagine this 💭: if you were to always fetch data from the on-chain, you'd start to feel a little...old :older\_woman:. Like your queries are stuck in a time warp. But fear not! When you embrace the power of the subgraph, data becomes your elixir of youth. It's snappy, it's swift, and it's refreshingly retrievable. With the subgraph, you can sail through data like a sprightly dolphin 🐬 
<div data-full-width="false">
<figure><img src="../../.gitbook/assets/dolphin.gif" alt=""><figcaption><p>High-speed subgraph</p></figcaption></figure> <figure><img src="../../.gitbook/assets/dolphin.gif" alt=""><figcaption><p>High-speed subgraph</p></figcaption></figure>
</div>
### How to use the Subgraph? ### How to use the Subgraph?
You can utilize the Subgraph instances provided by Ocean Protocol or deploy your instance. Deploying your own instance allows you to have more control and customization options for your specific use case. To learn how to host your own Ocean Subgraph instance, refer to the guide available on the [Deploying Ocean Subgraph](../../infrastructure/deploying-ocean-subgraph.md) page. You can utilize the Subgraph instances provided by Ocean Protocol or deploy your instance. Deploying your own instance allows you to have more control and customization options for your specific use case. To learn how to host your own Ocean Subgraph instance, refer to the guide available on the [Deploying Ocean Subgraph](../../infrastructure/deploying-ocean-subgraph.md) page.

View File

@ -0,0 +1,2 @@
# Ocean.py

View File

@ -0,0 +1,2 @@
# Page 1

View File

@ -1,4 +1,4 @@
# Get Data NFT Information # Get data NFT Details
The result of following GraphQL query returns the information about a particular datatoken. Here, `0x1c161d721e6d99f58d47f709cdc77025056c544c` is the address of the dataNFT. The result of following GraphQL query returns the information about a particular datatoken. Here, `0x1c161d721e6d99f58d47f709cdc77025056c544c` is the address of the dataNFT.
@ -6,8 +6,12 @@ The result of following GraphQL query returns the information about a particular
Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) to fetch the results from the mainnet. For other networks use [this table](../ocean-subgraph/#ocean-subgraph-graphiql). Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) to fetch the results from the mainnet. For other networks use [this table](../ocean-subgraph/#ocean-subgraph-graphiql).
{% endhint %} {% endhint %}
#### Query ####
#### Code
{% tabs %}
{% tab title="Query" %}
```graphql ```graphql
{ {
nft (id:"0x1c161d721e6d99f58d47f709cdc77025056c544c", subgraphError:deny){ nft (id:"0x1c161d721e6d99f58d47f709cdc77025056c544c", subgraphError:deny){
@ -33,12 +37,10 @@ Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprot
} }
} }
``` ```
{% endtab %}
#### Code
{% tabs %}
{% tab title="Python" %} {% tab title="Python" %}
The python script below can be used to run the the query. If you wish to change the network, then replace the value of variable `base_url` as needed. Change the value of the variable dataNFT\_address with the address of the datatoken of your choice. The Python script below can be used to run the query. If you wish to change the network, replace the variable's value `base_url` as needed. Change the value of the variable dataNFT\_address with the address of the datatoken of your choice.
**Create script** **Create script**

View File

@ -6,7 +6,7 @@ description: 'Discover the World of NFTs: Retrieving a List of Data NFTs'
If you are already familiarized with the concept of NFTs, you're off to a great start. However, if you require a refresher, we recommend visiting the [data NFTs and datatokens page](../datanft-and-datatoken.md) for a quick overview.&#x20; If you are already familiarized with the concept of NFTs, you're off to a great start. However, if you require a refresher, we recommend visiting the [data NFTs and datatokens page](../datanft-and-datatoken.md) for a quick overview.&#x20;
Now, let us delve into the fascinating realm of utilizing the subgraph to extract a complete list of data NFTs that have been published using the Ocean contracts. By employing GraphQL queries, we can seamlessly retrieve the desired information from the subgraph. You'll see how simple it is :sunglasses: Now, let us delve into the fascinating realm of utilizing the subgraph to extract a list of data NFTs that have been published using the Ocean contracts. By employing GraphQL queries, we can seamlessly retrieve the desired information from the subgraph. You'll see how simple it is :sunglasses:
You'll find below an example of a GraphQL query that retrieves the first 10 data NFTs from the subgraph. The GraphQL query is structured to access the "nfts" route, extracting the first 10 elements. For each item retrieved, it retrieves the "id," "name," "symbol," "owner," "address," "assetState," "tx," "block," and "transferable" parameters. You'll find below an example of a GraphQL query that retrieves the first 10 data NFTs from the subgraph. The GraphQL query is structured to access the "nfts" route, extracting the first 10 elements. For each item retrieved, it retrieves the "id," "name," "symbol," "owner," "address," "assetState," "tx," "block," and "transferable" parameters.
@ -14,7 +14,7 @@ There are several options available to see this query in action. Below, you will
1. Run the GraphQL query in the GraphiQL interface. 1. Run the GraphQL query in the GraphiQL interface.
2. Execute the query in Python by following the code snippet. 2. Execute the query in Python by following the code snippet.
3. Execute the query in JavaScript by clicking on the "Run" button. 3. Execute the query in JavaScript by clicking on the "Run" button of the Javascript tab.
PS: In these examples, the query is executed on the Ocean subgraph deployed on the mainnet. If you want to change the network, please refer to [this table](../ocean-subgraph/#ocean-subgraph-deployments). PS: In these examples, the query is executed on the Ocean subgraph deployed on the mainnet. If you want to change the network, please refer to [this table](../ocean-subgraph/#ocean-subgraph-deployments).
@ -22,9 +22,9 @@ PS: In these examples, the query is executed on the Ocean subgraph deployed on t
{% tab title="Query" %} {% tab title="Query" %}
Copy the query to fetch a list of data NFTs in the Ocean Subgraph [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) to fetch the results. Copy the query to fetch a list of data NFTs in the Ocean Subgraph [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) to fetch the results.
``` ```graphql
{ {
nfts (skip:0, first: 10, subgraphError:deny){ nfts (skip:0, first: 10, subgraphError:degraphny){
id id
name name
symbol symbol

View File

@ -1,4 +1,8 @@
# List all Tokens ---
description: 'Discover the World of datatokens: Retrieving a List of datatokens'
---
# Get datatokens
The result of following GraphQL query returns the information about datatokens. The result of following GraphQL query returns the information about datatokens.
@ -8,6 +12,10 @@ Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprot
#### Query #### Query
#### Code
{% tabs %}
{% tab title="Query" %}
```graphql ```graphql
{ {
tokens(skip:0, first: 2, subgraphError: deny){ tokens(skip:0, first: 2, subgraphError: deny){
@ -40,10 +48,8 @@ Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprot
} }
} }
``` ```
{% endtab %}
#### Code
{% tabs %}
{% tab title="Python" %} {% tab title="Python" %}
The python script below can be used to run the the query. If you wish to change the network, then replace the value of variable `base_url` as needed. The python script below can be used to run the the query. If you wish to change the network, then replace the value of variable `base_url` as needed.

View File

@ -6,7 +6,7 @@ description: Fundamental knowledge of using ERC-20 crypto wallets.
Ocean Protocol users require an ERC-20 compatible wallet to manage their OCEAN and ETH tokens. In this guide, we will provide some recommendations for different wallet options. Ocean Protocol users require an ERC-20 compatible wallet to manage their OCEAN and ETH tokens. In this guide, we will provide some recommendations for different wallet options.
<figure><img src="../.gitbook/assets/whats-a-wallet.gif" alt=""><figcaption></figcaption></figure> <figure><img src="../.gitbook/assets/show-wallet.gif" alt=""><figcaption></figcaption></figure>
### What is a wallet? ### What is a wallet?

View File

@ -1,7 +1,5 @@
--- ---
description: >- description: User guides
The definitive guides for how to do almost anything you want using Ocean
Protocol tech *without* writing one line of code!
cover: ../.gitbook/assets/cover/user_guides.png cover: ../.gitbook/assets/cover/user_guides.png
coverY: 0 coverY: 0
--- ---

View File

@ -1,7 +1,7 @@
--- ---
description: >- description: >-
How to construct the beginnings of an awesome algorithm for C2D compute jobs How to construct the beginnings of an awesome algorithm for C2D compute jobs
on datasets 😎 on datasets
--- ---
# Make a Boss C2D Algorithm # Make a Boss C2D Algorithm

View File

@ -14,7 +14,7 @@ Liquidity pools and dynamic pricing used to be supported in previous versions of
4\. Go to field `20. balanceOf` and insert your ETH address. This will retrieve your pool share token balance in wei. 4\. Go to field `20. balanceOf` and insert your ETH address. This will retrieve your pool share token balance in wei.
<figure><img src="../.gitbook/assets/liquidity/remove-liquidity-2 (1) (1).png" alt=""><figcaption><p>Balance Of</p></figcaption></figure> <figure><img src="../.gitbook/assets/wallet/balance-of.png" alt=""><figcaption><p>Balance Of</p></figcaption></figure>
5\. Copy this number as later you will use it as the `poolAmountIn` parameter. 5\. Copy this number as later you will use it as the `poolAmountIn` parameter.