mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
add necessary comments
This commit is contained in:
parent
3a757043f5
commit
6471550ae5
@ -11,9 +11,10 @@
|
|||||||
/// 1. Initialize services
|
/// 1. Initialize services
|
||||||
/// 2. Create a new node.js project
|
/// 2. Create a new node.js project
|
||||||
/// 3. Install dependancies
|
/// 3. Install dependancies
|
||||||
/// 4. Publish Data NFT, Datatoken & Pool
|
/// 4. Import dependencies and add variables and constants
|
||||||
/// 5. Market displays the asset for sale
|
/// 4. Publish Data NFT and a Datatoken with a liquidity pool
|
||||||
/// 6. Consumer buys data asset, and downloads it
|
/// 5. Publish Data NFT and a Datatoken with a fixed rate exchange
|
||||||
|
/// 6. Publish Data NFT and a Datatoken with a dispenser
|
||||||
|
|
||||||
/// Let's go through each step.
|
/// Let's go through each step.
|
||||||
|
|
||||||
@ -59,7 +60,7 @@
|
|||||||
/// npm install
|
/// npm install
|
||||||
/// ```
|
/// ```
|
||||||
|
|
||||||
/// ## 4. Publish Data NFT, Datatoken & Pool
|
/// ## 4. Import dependencies and add variables and constants
|
||||||
|
|
||||||
/// Now open the `marketplace.js` file in your text editor.
|
/// Now open the `marketplace.js` file in your text editor.
|
||||||
|
|
||||||
@ -220,6 +221,8 @@ describe('Marketplace flow tests', async () => {
|
|||||||
})
|
})
|
||||||
/// ```
|
/// ```
|
||||||
|
|
||||||
|
/// ## 4. Publish Data NFT and a Datatoken with a liquidity pool
|
||||||
|
|
||||||
it('Publish a dataset (create NFT + Datatoken) with a liquidity pool', async () => {
|
it('Publish a dataset (create NFT + Datatoken) with a liquidity pool', async () => {
|
||||||
/// ```Typescript
|
/// ```Typescript
|
||||||
const factory = new NftFactory(contracts.erc721FactoryAddress, web3)
|
const factory = new NftFactory(contracts.erc721FactoryAddress, web3)
|
||||||
@ -438,6 +441,8 @@ describe('Marketplace flow tests', async () => {
|
|||||||
})
|
})
|
||||||
/// ```
|
/// ```
|
||||||
|
|
||||||
|
/// ## 5. Publish Data NFT and a Datatoken with a fixed rate exchange
|
||||||
|
|
||||||
it('Publish a dataset (create NFT + Datatoken) with a fixed rate exchange', async () => {
|
it('Publish a dataset (create NFT + Datatoken) with a fixed rate exchange', async () => {
|
||||||
/// ```Typescript
|
/// ```Typescript
|
||||||
const factory = new NftFactory(contracts.erc721FactoryAddress, web3)
|
const factory = new NftFactory(contracts.erc721FactoryAddress, web3)
|
||||||
@ -628,6 +633,8 @@ describe('Marketplace flow tests', async () => {
|
|||||||
})
|
})
|
||||||
/// ```
|
/// ```
|
||||||
|
|
||||||
|
/// ## 6. Publish Data NFT and a Datatoken with a dispenser
|
||||||
|
|
||||||
it('Publish a dataset (create NFT + Datatoken) with a dipenser', async () => {
|
it('Publish a dataset (create NFT + Datatoken) with a dipenser', async () => {
|
||||||
/// ```Typescript
|
/// ```Typescript
|
||||||
const factory = new NftFactory(contracts.erc721FactoryAddress, web3)
|
const factory = new NftFactory(contracts.erc721FactoryAddress, web3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user