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

1860 Commits

Author SHA1 Message Date
alexcos20
069e60baeb Release 0.16.1 v0.16.1 2021-06-25 06:13:29 -07:00
Alex Coseru
b90aeb6549
proper compare using lowercase (#864)
* proper compare using lowercase
2021-06-25 15:56:34 +03:00
3010a4f15b
Release 0.16.0 v0.16.0 2021-06-25 11:14:09 +02:00
29bbdc9677
skip coverage job for dependabot (#863) 2021-06-24 07:40:16 +03:00
dependabot[bot]
1b0d92f258
Bump @types/node from 15.12.2 to 15.12.4 (#857)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.12.2 to 15.12.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 11:58:36 +02:00
dependabot[bot]
b0c16b72d5
Bump decimal.js from 10.2.1 to 10.3.0 (#861)
Bumps [decimal.js](https://github.com/MikeMcl/decimal.js) from 10.2.1 to 10.3.0.
- [Release notes](https://github.com/MikeMcl/decimal.js/releases)
- [Changelog](https://github.com/MikeMcl/decimal.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/MikeMcl/decimal.js/compare/v10.2.1...v10.3.0)

---
updated-dependencies:
- dependency-name: decimal.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 11:58:14 +02:00
dependabot[bot]
4c298e0686
Bump eslint from 7.28.0 to 7.29.0 (#860)
Bumps [eslint](https://github.com/eslint/eslint) from 7.28.0 to 7.29.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.28.0...v7.29.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-22 17:31:28 +02:00
dependabot[bot]
5852b0a27d
Bump contracts to 0.6.4 (#837)
* Bump @oceanprotocol/contracts from 0.6.3 to 0.6.4

Bumps [@oceanprotocol/contracts](https://github.com/oceanprotocol/contracts) from 0.6.3 to 0.6.4.
- [Release notes](https://github.com/oceanprotocol/contracts/releases)
- [Changelog](https://github.com/oceanprotocol/contracts/blob/main/CHANGELOG.md)
- [Commits](https://github.com/oceanprotocol/contracts/compare/v0.6.3...v0.6.4)

---
updated-dependencies:
- dependency-name: "@oceanprotocol/contracts"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* use startBlock & chainId from contracts

* export network metadata

* less repetetive network metadata

* switch Polygon mainnet URLs

* typing fixes

* package bumps

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-06-22 16:25:20 +02:00
dependabot[bot]
7503485af6
Bump release-it from 14.9.0 to 14.10.0 (#852)
Bumps [release-it](https://github.com/release-it/release-it) from 14.9.0 to 14.10.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.9.0...14.10.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-22 13:50:46 +02:00
dependabot[bot]
22d2f1b653
Bump typescript from 4.3.3 to 4.3.4 (#851)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.3...v4.3.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-22 13:50:35 +02:00
d8914a8380
Replace Travis with GitHub Actions (#847)
* GitHub CI actions

* add coverage job

* test run tweaks

* windows build fix

* barge tweaks

* deal with env vars

* add npm publish job

* trial & error

* remove Travis

* publish as single workflow

* handle Docker Hub login

* maybe preparing ~/.ocean is needed

* downgrade barge contracts, run with barge defaults

* put back ADDRESS_FILE env var

* AQUARIUS_URI test

* ddo creation test logging

* make failing DDO creation test actually fail

* separate unit/integration Asset tests

* set AQUARIUS_URI again

* readme updates

* prepare ~/.ocean folder

* separate tests into multiple jobs

* address.json debugging

* windows build fixes

* address.json trials

* env var expansion workaround

* cleanup

* debug coverage output

* fix coverage

* bump codeclimate-action

* use barge instead of ganache (#855)

* use barge instead of ganache

* small unit test job cleanup

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* barge detach workaround

Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
2021-06-22 12:21:27 +02:00
dependabot[bot]
decd504984
Bump typescript from 4.3.2 to 4.3.3 (#849)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.2...v4.3.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 11:28:00 +02:00
dependabot[bot]
7b29edd79b
Bump prettier from 2.3.0 to 2.3.1 (#833)
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.3.0...2.3.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 11:27:51 +02:00
dependabot[bot]
602a5483b5
Bump typedoc from 0.20.36 to 0.20.37 (#848)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.20.36 to 0.20.37.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.36...v0.20.37)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 11:00:21 +02:00
dependabot[bot]
67daf9a79d
Bump ora from 5.4.0 to 5.4.1 (#846)
Bumps [ora](https://github.com/sindresorhus/ora) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v5.4.0...v5.4.1)

---
updated-dependencies:
- dependency-name: ora
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 10:09:58 +02:00
dependabot[bot]
51a30a5d90
Bump release-it from 14.8.0 to 14.9.0 (#845)
Bumps [release-it](https://github.com/release-it/release-it) from 14.8.0 to 14.9.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.8.0...14.9.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 10:09:40 +02:00
Jamie Hewitt
02693021b1
Merge pull request #842 from oceanprotocol/issue-741-update-docs-getPastEvents
Update docs about 'getPreviousValidOrders' only working on Eth
2021-06-15 16:35:07 +03:00
dependabot[bot]
b37588c302
Bump eslint from 7.27.0 to 7.28.0 (#830)
Bumps [eslint](https://github.com/eslint/eslint) from 7.27.0 to 7.28.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.27.0...v7.28.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-15 14:43:35 +02:00
dependabot[bot]
38f39ce9a5
Bump @typescript-eslint/eslint-plugin from 4.26.0 to 4.27.0 (#843)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.26.0 to 4.27.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.27.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-15 14:09:18 +02:00
dependabot[bot]
112066a2ff
Bump mocha from 8.4.0 to 9.0.0 (#840)
Bumps [mocha](https://github.com/mochajs/mocha) from 8.4.0 to 9.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v9.0.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-15 14:09:08 +02:00
Bogdan Fazakas
666da8156f
Merge pull request #828 from oceanprotocol/feature/issue777-add-ddo-param-when-did-exists
Add also DDO object param where DID param is available
2021-06-15 12:19:03 +03:00
Jamie Hewitt
a71666d236 commenting on the code 2021-06-14 16:15:35 +03:00
Jamie Hewitt
3cfd3e4db4 fixing formatting 2021-06-14 16:10:25 +03:00
Jamie Hewitt
9126ef19b4 updating readme 2021-06-14 16:08:26 +03:00
dependabot[bot]
c5ba56e120
Bump microbundle from 0.13.1 to 0.13.3 (#839)
Bumps [microbundle](https://github.com/developit/microbundle) from 0.13.1 to 0.13.3.
- [Release notes](https://github.com/developit/microbundle/releases)
- [Changelog](https://github.com/developit/microbundle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/developit/microbundle/compare/v0.13.1...v0.13.3)

---
updated-dependencies:
- dependency-name: microbundle
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-14 14:51:14 +02:00
dependabot[bot]
405dd0955e
Bump release-it from 14.7.0 to 14.8.0 (#832)
Bumps [release-it](https://github.com/release-it/release-it) from 14.7.0 to 14.8.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.7.0...14.8.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-10 10:01:38 +03:00
dependabot[bot]
99682f255a
Bump @types/node from 15.12.0 to 15.12.2 (#835)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.12.0 to 15.12.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-10 10:01:22 +03:00
Bogdan Fazakas
4e02a1b2a5 small refactor 2021-06-09 10:44:59 +03:00
Bogdan Fazakas
4f9ed04086 sent ocean instance param to asset resolve helper 2021-06-08 17:24:54 +03:00
Bogdan Fazakas
0786c32a7b fixed lint errors 2021-06-08 14:06:23 +03:00
Bogdan Fazakas
200e0d8832 staged helper file 2021-06-08 09:08:51 +03:00
Bogdan Fazakas
c88680f100 added AssetResolverHelper 2021-06-08 09:08:24 +03:00
Bogdan Fazakas
c9c983aaed Merge branch 'main' into feature/issue777-add-ddo-param-when-did-exists 2021-06-07 11:13:03 +03:00
Bogdan Fazakas
ec2e67db35 used type guard to detect if ddo or did and resolve just when needed 2021-06-04 16:46:12 +03:00
alexcos20
727a55046c Release 0.15.1 v0.15.1 2021-06-03 23:45:05 -07:00
alexcos20
6735e8a33f fix version 2021-06-03 23:42:43 -07:00
dependabot[bot]
c50a6271b5
Bump microbundle from 0.13.0 to 0.13.1 (#820)
Bumps [microbundle](https://github.com/developit/microbundle) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/developit/microbundle/releases)
- [Changelog](https://github.com/developit/microbundle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/developit/microbundle/compare/v0.13.0...v0.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-04 09:14:09 +03:00
dependabot[bot]
a4ab65d9b2
Bump @types/node from 15.9.0 to 15.12.0 (#829)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.9.0 to 15.12.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-04 09:13:36 +03:00
dependabot[bot]
5f88d5a925
Bump @typescript-eslint/eslint-plugin from 4.25.0 to 4.26.0 (#824)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.25.0 to 4.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-03 17:50:28 +03:00
dependabot[bot]
1d21d761bf
Bump @typescript-eslint/parser from 4.25.0 to 4.26.0 (#823)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.25.0 to 4.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-03 17:50:15 +03:00
dependabot[bot]
89d73af02c
Bump @types/node from 15.6.1 to 15.9.0 (#826)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.6.1 to 15.9.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-03 14:18:07 +03:00
Alex Coseru
5555b2a73a
Add order checks for credentials (#827)
* Add order checks for credentials
2021-06-03 14:14:01 +03:00
Bogdan Fazakas
f0404f3204 added ddo object param to function that expect did and asset resolve is called 2021-06-03 12:43:15 +03:00
kianyee
0f46959dfa
Feature/credentials support in asset (#787)
* [KianYee] Add credentials in DDO

Co-authored-by: alexcos20 <alex.coseru@gmail.com>
2021-06-02 16:51:13 +03:00
Kris Liew
9f0b5dd6ff
add "valid" boolean in File.ts (#825)
* add "valid" boolean in File.ts
2021-06-02 15:58:07 +03:00
Kris Liew
2fb83f97a9
Add ocean.assets.isConsumable function (#786)
* isDisable check

* check isConsumable for order()

* Attempt add integration test

* feedback change

* Replace 'isDisabled' with 'isOrderDisabled'

* Update integration test

* Attempt 1 fix integration test

Co-authored-by: KRIS LIEW <iforte.intellege.liew@daimler.com>
2021-06-02 20:18:58 +08:00
Alex Coseru
6ce02ec17c
fix ddo encrypt for browsers (#822)
* fix ddo encrypt for browsers
Warning: needs aquarius >= 2.2.12
2021-05-28 12:53:47 +03:00
Kris Liew
9df93b71cb
add type 'free' to BestPrice (#821) 2021-05-28 11:48:25 +03:00
dependabot[bot]
5302079ed0
Bump typescript from 4.2.4 to 4.3.2 (#819)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.3.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 17:14:34 +02:00
dependabot[bot]
59dd3b1a0c
Bump @truffle/hdwallet-provider from 1.3.0 to 1.4.0 (#816)
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@1.4.0/packages/hdwallet-provider)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 17:14:20 +02:00