diff --git a/building-with-ocean/using-ocean-libraries/configuration.md b/building-with-ocean/using-ocean-libraries/configuration.md index 9ecf82f0..41c30945 100644 --- a/building-with-ocean/using-ocean-libraries/configuration.md +++ b/building-with-ocean/using-ocean-libraries/configuration.md @@ -2,7 +2,7 @@ ### Obtaining API key for Ethereum node provider -Ocean libraries need an Ethereum node provider API key to send transactions to the Ocean Protocol's Smart contracts. See this [guide](../obtaining-api-key.md) on getting an API key to interact with EVM compatible networks. The supported networks are listed [here](../../core-concepts/networks.md). +Ocean libraries need an Ethereum node provider API key to send transactions to the Ocean Protocol's Smart contracts. See this [guide](../obtaining-api-key.md) on getting an API key to interact with EVM compatible networks. The supported networks are listed [here](../../core-concepts/networks.md). ### Create a directory @@ -26,10 +26,10 @@ In the working directory create a `.env` file. The content of this file will sto | **PROVIDER\_URL** | The URL of the Provider. This value is needed when publishing a new asset or update an existing asset. | No | {% hint style="info" %} -Treat this file as a secret and do not commit this file to git or share the content publicly. +Treat this file as a secret and do not commit this file to git or share the content publicly. If you are using git, then include this file name in `.gitignore` file. {% endhint %} -The below tabs show partially filled `.env` file content for some of the supported networks. +The below tabs show partially filled `.env` file content for some of the supported networks. {% tabs %} {% tab title="Mainnet" %} @@ -112,7 +112,7 @@ pip3 install ocean-lib python-dotenv web3 A configuration file will read the content of the `.env` file and initialize the required configuration objects which will be used in the further tutorials. The below scripts creates a Web3 wallet instance and a Ocean's configuration object. -Create the configuration file in the working directory i.e. at the same path where the `.env` is located. +Create the configuration file in the working directory i.e. at the same path where the `.env` is located. {% tabs %} {% tab title="ocean.js" %} diff --git a/core-concepts/did-ddo.md b/core-concepts/did-ddo.md index a193959a..42dc3fc5 100644 --- a/core-concepts/did-ddo.md +++ b/core-concepts/did-ddo.md @@ -311,6 +311,8 @@ An asset with a service of `type` `compute` has the following additional attribu | `boolean` | **✓** | If `true`, any passed raw text will be allowed to run. Useful for an algorithm drag & drop use case, but increases risk of data escape through malicious user input. Should be `false` by default in all implementations. | | Type | Required | Description | | `boolean` | **✓** | If `true`, any passed raw text will be allowed to run. Useful for an algorithm drag & drop use case, but increases risk of data escape through malicious user input. Should be `false` by default in all implementations. | +| Type | Required | Description | +| `boolean` | **✓** | If `true`, any passed raw text will be allowed to run. Useful for an algorithm drag & drop use case, but increases risk of data escape through malicious user input. Should be `false` by default in all implementations. | |

allowNetworkAccess

TypeRequiredDescription
booleanIf true, the algorithm job will have network access.
| | | | Type | Required | Description | | `boolean` | **✓** | If `true`, the algorithm job will have network access. | @@ -322,6 +324,8 @@ An asset with a service of `type` `compute` has the following additional attribu | `boolean` | **✓** | If `true`, the algorithm job will have network access. | | Type | Required | Description | | `boolean` | **✓** | If `true`, the algorithm job will have network access. | +| Type | Required | Description | +| `boolean` | **✓** | If `true`, the algorithm job will have network access. | |

publisherTrustedAlgorithmPublishers

TypeRequiredDescription
Array of stringIf not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. If not empty any algo published by the defined publishers is allowed.
| | | | Type | Required | Description | | Array of `string` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. If not empty any algo published by the defined publishers is allowed. | @@ -333,6 +337,8 @@ An asset with a service of `type` `compute` has the following additional attribu | Array of `string` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. If not empty any algo published by the defined publishers is allowed. | | Type | Required | Description | | Array of `string` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. If not empty any algo published by the defined publishers is allowed. | +| Type | Required | Description | +| Array of `string` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. If not empty any algo published by the defined publishers is allowed. | |

publisherTrustedAlgorithms

TypeRequiredDescription
Array of publisherTrustedAlgorithmsIf not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. Otherwise only the algorithms defined in the array are allowed. (see below).
| | | | Type | Required | Description | | Array of `publisherTrustedAlgorithms` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. Otherwise only the algorithms defined in the array are allowed. (see below). | @@ -344,6 +350,8 @@ An asset with a service of `type` `compute` has the following additional attribu | Array of `publisherTrustedAlgorithms` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. Otherwise only the algorithms defined in the array are allowed. (see below). | | Type | Required | Description | | Array of `publisherTrustedAlgorithms` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. Otherwise only the algorithms defined in the array are allowed. (see below). | +| Type | Required | Description | +| Array of `publisherTrustedAlgorithms` | **✓** | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. Otherwise only the algorithms defined in the array are allowed. (see below). | The `publisherTrustedAlgorithms` is an array of objects with the following structure: diff --git a/orientation/metamask-setup.md b/orientation/metamask-setup.md index 0c470bd1..831fd0d5 100644 --- a/orientation/metamask-setup.md +++ b/orientation/metamask-setup.md @@ -10,27 +10,27 @@ description: Tutorial about how to set up MetaMask for Chrome. 1. Go to the [Chrome Web Store for extensions](https://chrome.google.com/webstore/category/extensions) and search for MetaMask. -![metamask-chrome-store](../.gitbook/assets/metamask-chrome-extension.png) +![metamask-chrome-store](../building-with-ocean/images/metamask-chrome-extension.png) * Install MetaMask. The wallet provides a friendly user interface that will help you through each step. MetaMask gives you two options: importing an existing wallet or creating a new one. Choose to `Create a Wallet`: -![Create a wallet](../.gitbook/assets/create-new-metamask-wallet.png) +![Create a wallet](../building-with-ocean/images/create-new-metamask-wallet.png) * In the next step create a new password for your wallet. Read through and accept the terms and conditions. After that, MetaMask will generate Secret Backup Phrase for you. Write it down and store it in a safe place. -![Secret Backup Phrase](../.gitbook/assets/secret-backup-phrase.png) +![Secret Backup Phrase](../building-with-ocean/images/secret-backup-phrase.png) * Continue forward. On the next page, MetaMask will ask you to confirm the backup phrase. Select the words in the correct sequence: -![Confirm secret backup phrase](../.gitbook/assets/confirm-backup-phrase.png) +![Confirm secret backup phrase](../building-with-ocean/images/confirm-backup-phrase.png) * Voila! Your account is now created. You can access MetaMask via the browser extension in the top right corner of your browser. -![MetaMask browser extension](../.gitbook/assets/metamask-browser-extension.png) +![MetaMask browser extension](../building-with-ocean/images/metamask-browser-extension.png) * You can now manage Ether and Ocean Tokens with your wallet. You can copy your account address to the clipboard from the options. When you want someone to send Ether or Ocean Tokens to you, you will have to give them that address. It's not a secret. -![Manage tokens](../.gitbook/assets/manage-tokens.png) +![Manage tokens](../building-with-ocean/images/manage-tokens.png) You can also watch our [tutorial video snippets](https://www.youtube.com/playlist?list=PL\_dn0wVs9kWolBCbtHaFxsi408cumOeth) if you want more help setting up MetaMask. @@ -40,7 +40,7 @@ Sometimes it is required to use custom or external networks in MetaMask. We can Open the Settings menu and find the `Networks` option. When you open it, you'll be able to see all available networks your MetaMask wallet currently use. Click the `Add Network` button. -![Add custom/external network](../.gitbook/assets/metamask-add-network.png) +![Add custom/external network](../building-with-ocean/images/metamask-add-network.png) There are a few empty inputs we need to fill: diff --git a/using-ocean-market/images/marketplace/Swap-1 (1).png b/using-ocean-market/images/marketplace/Swap-1 (1).png new file mode 100644 index 00000000..e6f24f08 Binary files /dev/null and b/using-ocean-market/images/marketplace/Swap-1 (1).png differ diff --git a/using-ocean-market/images/marketplace/Swap-2 (1).png b/using-ocean-market/images/marketplace/Swap-2 (1).png new file mode 100644 index 00000000..79608dfd Binary files /dev/null and b/using-ocean-market/images/marketplace/Swap-2 (1).png differ diff --git a/using-ocean-market/images/marketplace/Swap-3 (1).png b/using-ocean-market/images/marketplace/Swap-3 (1).png new file mode 100644 index 00000000..9888497a Binary files /dev/null and b/using-ocean-market/images/marketplace/Swap-3 (1).png differ diff --git a/using-ocean-market/images/marketplace/Swap-4 (1).png b/using-ocean-market/images/marketplace/Swap-4 (1).png new file mode 100644 index 00000000..f7445b06 Binary files /dev/null and b/using-ocean-market/images/marketplace/Swap-4 (1).png differ diff --git a/using-ocean-market/images/marketplace/Swap-5 (1).png b/using-ocean-market/images/marketplace/Swap-5 (1).png new file mode 100644 index 00000000..e3bcef4f Binary files /dev/null and b/using-ocean-market/images/marketplace/Swap-5 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-1 (1).png b/using-ocean-market/images/marketplace/add-liquidity-1 (1).png new file mode 100644 index 00000000..101e015a Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-1 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-2 (1).png b/using-ocean-market/images/marketplace/add-liquidity-2 (1).png new file mode 100644 index 00000000..41f2dc60 Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-2 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-3 (1).png b/using-ocean-market/images/marketplace/add-liquidity-3 (1).png new file mode 100644 index 00000000..451af75c Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-3 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-4 (1).png b/using-ocean-market/images/marketplace/add-liquidity-4 (1).png new file mode 100644 index 00000000..ab83f845 Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-4 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-5 (1).png b/using-ocean-market/images/marketplace/add-liquidity-5 (1).png new file mode 100644 index 00000000..d9ed0824 Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-5 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-6 (1).png b/using-ocean-market/images/marketplace/add-liquidity-6 (1).png new file mode 100644 index 00000000..2546323c Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-6 (1).png differ diff --git a/using-ocean-market/images/marketplace/add-liquidity-connect-wallet (1).png b/using-ocean-market/images/marketplace/add-liquidity-connect-wallet (1).png new file mode 100644 index 00000000..01b4fa51 Binary files /dev/null and b/using-ocean-market/images/marketplace/add-liquidity-connect-wallet (1).png differ diff --git a/using-ocean-market/images/marketplace/connect-wallet (1).png b/using-ocean-market/images/marketplace/connect-wallet (1).png new file mode 100644 index 00000000..feee3631 Binary files /dev/null and b/using-ocean-market/images/marketplace/connect-wallet (1).png differ diff --git a/using-ocean-market/images/marketplace/consume-1 (1).png b/using-ocean-market/images/marketplace/consume-1 (1).png new file mode 100644 index 00000000..562608f8 Binary files /dev/null and b/using-ocean-market/images/marketplace/consume-1 (1).png differ diff --git a/using-ocean-market/images/marketplace/consume-2 (1).png b/using-ocean-market/images/marketplace/consume-2 (1).png new file mode 100644 index 00000000..5735e447 Binary files /dev/null and b/using-ocean-market/images/marketplace/consume-2 (1).png differ diff --git a/using-ocean-market/images/marketplace/consume-3 (1).png b/using-ocean-market/images/marketplace/consume-3 (1).png new file mode 100644 index 00000000..51376a61 Binary files /dev/null and b/using-ocean-market/images/marketplace/consume-3 (1).png differ diff --git a/using-ocean-market/images/marketplace/consume-4 (1).png b/using-ocean-market/images/marketplace/consume-4 (1).png new file mode 100644 index 00000000..41581d67 Binary files /dev/null and b/using-ocean-market/images/marketplace/consume-4 (1).png differ diff --git a/using-ocean-market/images/marketplace/consume-5 (1).png b/using-ocean-market/images/marketplace/consume-5 (1).png new file mode 100644 index 00000000..aa6ffb46 Binary files /dev/null and b/using-ocean-market/images/marketplace/consume-5 (1).png differ diff --git a/using-ocean-market/images/marketplace/consume-connect-wallet (1).png b/using-ocean-market/images/marketplace/consume-connect-wallet (1).png new file mode 100644 index 00000000..34ba0432 Binary files /dev/null and b/using-ocean-market/images/marketplace/consume-connect-wallet (1).png differ diff --git a/using-ocean-market/images/marketplace/publish (1).png b/using-ocean-market/images/marketplace/publish (1).png new file mode 100644 index 00000000..aac3a82d Binary files /dev/null and b/using-ocean-market/images/marketplace/publish (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-1 (1).png b/using-ocean-market/images/marketplace/publish-1 (1).png new file mode 100644 index 00000000..155612cb Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-1 (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-2 (1).png b/using-ocean-market/images/marketplace/publish-2 (1).png new file mode 100644 index 00000000..b918af46 Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-2 (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-3 (1).png b/using-ocean-market/images/marketplace/publish-3 (1).png new file mode 100644 index 00000000..1bf12e6c Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-3 (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-4 (1).png b/using-ocean-market/images/marketplace/publish-4 (1).png new file mode 100644 index 00000000..65b47328 Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-4 (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-5 (1).png b/using-ocean-market/images/marketplace/publish-5 (1).png new file mode 100644 index 00000000..94621b3e Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-5 (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-6 (1).png b/using-ocean-market/images/marketplace/publish-6 (1).png new file mode 100644 index 00000000..85292a34 Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-6 (1).png differ diff --git a/using-ocean-market/images/marketplace/publish-7 (1).png b/using-ocean-market/images/marketplace/publish-7 (1).png new file mode 100644 index 00000000..b74663e1 Binary files /dev/null and b/using-ocean-market/images/marketplace/publish-7 (1).png differ