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,9 +45,24 @@ This is in alpha state and you can expect running into problems. If you run into
- [🏛 License](#-license) - [🏛 License](#-license)
## 📚 Prerequisites ## 📚 Prerequisites
- node.js ([Install from here](https://nodejs.org/en/download/)) - 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/)) - Docker ([Managed as a non-root user](https://docs.docker.com/engine/install/linux-postinstall/))
- A Unix based operating system (Mac or Linux) - 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 ## 🏗 Installation
@ -76,9 +91,10 @@ async function init() {
return ocean return ocean
} }
``` ```
### Beginners Guide ### Beginners Guide
This introduction is aimed at developers who are completely new to blockchain, no coding experience is required. This introduction is aimed at developers who are completely new to blockchain, no coding experience is required.
[Go to beginners guide](docs/beginners_guide.md) [Go to beginners guide](docs/beginners_guide.md)
@ -96,15 +112,15 @@ This batteries-included flow includes metadata, multiple services for one datato
### 📖 Learn more ### 📖 Learn more
- [Get test OCEAN](docs/get-test-OCEAN.md) - from rinkeby - [Get test OCEAN](docs/get-test-OCEAN.md) - from rinkeby
- [Understand config parameters](docs/parameters.md) - envvars vs files - [Understand config parameters](docs/parameters.md) - envvars vs files
- [Learn about off-chain services](docs/services.md) - Ocean Provider for data services, Aquarius metadata store - [Learn about off-chain services](docs/services.md) - Ocean Provider for data services, Aquarius metadata store
- [Learn about wallets](docs/wallets.md) - on generating, storing, and accessing private keys - [Learn about wallets](docs/wallets.md) - on generating, storing, and accessing private keys
- [Get an overview of ocean.js](docs/overview.md) - key modules and functions - [Get an overview of ocean.js](docs/overview.md) - key modules and functions
If you have any difficulties with the quickstarts, or if you have further questions about how to use ocean.js please reach out to us on [Discord](https://discord.gg/TnXjkR5). If you have any difficulties with the quickstarts, or if you have further questions about how to use ocean.js please reach out to us on [Discord](https://discord.gg/TnXjkR5).
If you notice any bugs or issues with Ocean.js please [open an issue on github](https://github.com/oceanprotocol/ocean.js/issues/new?assignees=&labels=bug&template=bug_report.md&title=). If you notice any bugs or issues with Ocean.js please [open an issue on github](https://github.com/oceanprotocol/ocean.js/issues/new?assignees=&labels=bug&template=bug_report.md&title=).
## 🦑 Development ## 🦑 Development
@ -145,11 +161,13 @@ cd barge
You can then proceed to run in another terminal. You can then proceed to run in another terminal.
Let ocean.js know where to pickup the smartcontract addresses: Let ocean.js know where to pickup the smartcontract addresses:
``` ```
export ADDRESS_FILE="${HOME}/.ocean/ocean-contracts/artifacts/address.json" export ADDRESS_FILE="${HOME}/.ocean/ocean-contracts/artifacts/address.json"
``` ```
Build metadata: Build metadata:
``` ```
npm run build npm run build
``` ```

View File

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