1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #842 from oceanprotocol/issue-741-update-docs-getPastEvents

Update docs about 'getPreviousValidOrders' only working on Eth
This commit is contained in:
Jamie Hewitt 2021-06-15 16:35:07 +03:00 committed by GitHub
commit 02693021b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 9 deletions

View File

@ -45,10 +45,25 @@ This is in alpha state and you can expect running into problems. If you run into
- [🏛 License](#-license)
## 📚 Prerequisites
- node.js ([Install from here](https://nodejs.org/en/download/))
- Docker ([Managed as a non-root user](https://docs.docker.com/engine/install/linux-postinstall/))
- A Unix based operating system (Mac or Linux)
### Note
Any function that uses `getPastEvents()` will only work on Eth (see: <https://github.com/oceanprotocol/ocean.js/issues/741>). This includes:
- searchPoolforDT()
- getPoolsbyCreator()
- getPoolSharesByAddress()
- getAllPoolLogs()
- getPreviousValidOrders()
- searchforDT()
- getExchangesbyCreator()
- getExchangeSwaps()
- getAllExchangesSwaps()
## 🏗 Installation
```bash
@ -76,6 +91,7 @@ async function init() {
return ocean
}
```
### Beginners Guide
This introduction is aimed at developers who are completely new to blockchain, no coding experience is required.
@ -145,11 +161,13 @@ cd barge
You can then proceed to run in another terminal.
Let ocean.js know where to pickup the smartcontract addresses:
```
export ADDRESS_FILE="${HOME}/.ocean/ocean-contracts/artifacts/address.json"
```
Build metadata:
```
npm run build
```

View File

@ -462,6 +462,7 @@ export class DataTokens {
* @param {String} address consumer Address
* @return {Promise<string>} string
*/
// Note that getPreviousValidOrders() only works on Eth (see: https://github.com/oceanprotocol/ocean.js/issues/741)
public async getPreviousValidOrders(
dataTokenAddress: string,
amount: string,