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

3073 Commits

Author SHA1 Message Date
Bogdan Fazakas
ae2ff1ccde Release 3.0.1 v3.0.1 2023-06-06 16:11:22 +02:00
Bogdan Fazakas
0c60d9bbd4
set min gas fee 30 gwei on priority fees for polygon and mumbai as well (#1736)
* set min gas fee 30 gwei on priority fees for polygon and  mumbai as well

* Release 3.0.1-next.0
2023-06-06 15:58:54 +02:00
Bogdan Fazakas
543f71f7cd Release 3.0.0 v3.0.0 2023-05-29 10:37:16 +02:00
Alex Coseru
9bf71ba4f0
Features/ethers (#1696)
* add ethers

* global updates

* ve updates

* ve tests

* contract updates

* first test passing

* downgrade to ethers 5.7.2

* add log

* add tx wait

* full NftFactory.test

* add wait

* add Router tests

* fix dispenser

* Nft test

* add dispenser tests

* add fre tests part 1

* WIP datatoken unit tests

* add DFRewards test

* increase gas estimate

* increase gas estimate

* Work datatoken unit tests

* datatoken test more tests

* finished datatoken tests

* fix nft get data

* fix nft transfer tests

* Provider int tests

* Updating CodeExamples.md

* update provider & fix publish flow int test

* wip publish edit consume integration test

* more work on  publish edit consume integration test

* fix edit  publish edit consume integration test

* add 3 int tests

* Updating ComputeExamples.md

* fix signature and download

* fix compute flow integration test

* udapte handleComputeOrder helper

* update datatoken instance

* update datatoken global variable

* mint ocean tokens to consumer as well and added logs

* update compute exammples

* Updating ComputeExamples.md

* wip code examples readme

* update code examples readme

* Updating CodeExamples.md

* run all tests

* update dep in readme

* update readme

* code examples update metadata flags

* update dt instance in code examples md

* set metadata updates

* Updating CodeExamples.md

* update code examples readme structure

* Updating CodeExamples.md

* update readmes table links

* Updating CodeExamples.md

* Updating ComputeExamples.md

* clean-up

* Updating CodeExamples.md

* added missing unit tests for usdc fixed rate exchange tests

* more cleanup and jsdoc updates

* more  jsdoc updates

* donw with jsdoc updates

* handle provider errors

* add missing error handling file

* adds most of the provider errors

* update get compute env return type

* Release 3.0.0-next.0

* adding Typedoc to ethers branch

* update provider signature message

* fix lint

* Release 3.0.0-next.1

* fix lint

* adding Typedoc to ethers branch

* Updating CI to build and commit the documentation

* Updating documentation

* Updating script permissions

* fix todos add missing logic to send tx

* npm package cleanups

* Release 3.0.0-next.2

* update log messages for errors

* Release 3.0.0-next.3

* fix gasFee issue on sendTx

* Release 3.0.0-next.4

* add consume params typings (#1731)

* fix gas fee estimate

* remove comments

* add some delays before resolving datasets

* adds delay to Publish flow tests

* Release 3.0.0-next.5

---------

Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
Co-authored-by: GitHub Actions Bot <>
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: Jamie Hewitt <jamie@oceanprotocol.com>
2023-05-29 11:20:38 +03:00
Moritz Kirstein
e3dfa2997a
Add consumer parameter types (#1730)
* feat: add ConsumerParameter type

* feat: add export for ConsumerParameter type

* fix: ConsumerParameter.required type

---------

Co-authored-by: Luca Milanese <luca.milanese90@gmail.com>
2023-05-12 11:24:05 +03:00
Bogdan Fazakas
59568d292e
update get compute env return type (#1721) 2023-05-03 09:21:21 +03:00
dependabot[bot]
15ac930e88
Bump @truffle/hdwallet-provider from 2.1.5 to 2.1.10 (#1725)
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider) from 2.1.5 to 2.1.10.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.1.10/packages/hdwallet-provider)

---
updated-dependencies:
- dependency-name: "@truffle/hdwallet-provider"
  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>
2023-05-02 16:31:14 +03:00
dependabot[bot]
9b46905d7b
Bump vm2 from 3.9.11 to 3.9.17 (#1722)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.11 to 3.9.17.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.11...3.9.17)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 16:22:13 +03:00
dependabot[bot]
a236b0949d
Bump chai from 4.3.6 to 4.3.7 (#1726)
Bumps [chai](https://github.com/chaijs/chai) from 4.3.6 to 4.3.7.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.6...v4.3.7)

---
updated-dependencies:
- dependency-name: chai
  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>
2023-05-02 15:59:49 +03:00
Bogdan Fazakas
0f77f75bc9
Fix c2d restart job with valid fees and order (#1729)
* added logs

* adds wait method

* adds await till job ends

* cleanups

* removes logs
2023-05-02 15:45:16 +03:00
Alex Coseru
fbcd13ac29
Make FRE withMint = True (#1719)
* Updating CodeExamples.md
2023-04-13 23:29:04 +03:00
dependabot[bot]
2d549f9e06
Bump @types/node from 18.11.18 to 18.15.11 (#1712)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.18 to 18.15.11.
- [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>
2023-04-05 17:44:17 +03:00
dependabot[bot]
a8c7eb1d07
Bump bignumber.js from 9.1.0 to 9.1.1 (#1713)
Bumps [bignumber.js](https://github.com/MikeMcl/bignumber.js) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/MikeMcl/bignumber.js/releases)
- [Changelog](https://github.com/MikeMcl/bignumber.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/MikeMcl/bignumber.js/compare/v9.1.0...v9.1.1)

---
updated-dependencies:
- dependency-name: bignumber.js
  dependency-type: direct:production
  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>
2023-04-05 17:35:50 +03:00
dependabot[bot]
3400faba62
Bump @typescript-eslint/eslint-plugin from 5.54.0 to 5.57.0 (#1711)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.54.0 to 5.57.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.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>
2023-04-05 17:22:58 +03:00
dependabot[bot]
37848f35f9
Bump @oceanprotocol/contracts from 1.1.8 to 1.1.12 (#1709)
Bumps [@oceanprotocol/contracts](https://github.com/oceanprotocol/contracts) from 1.1.8 to 1.1.12.
- [Release notes](https://github.com/oceanprotocol/contracts/releases)
- [Commits](https://github.com/oceanprotocol/contracts/compare/v1.1.8...v1.1.12)

---
updated-dependencies:
- dependency-name: "@oceanprotocol/contracts"
  dependency-type: direct:production
  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>
2023-04-05 17:13:24 +03:00
Bogdan Fazakas
b98f8a4e14
Cover all storage type support (#1685)
* adds new test file for all storage type supported (publish/ edit/ consume)
* added helper for integration tests
* refactor other test files to use helpers
2023-03-20 17:59:42 +02:00
Bogdan Fazakas
a2e9901697 Release 2.7.0 v2.7.0 2023-03-20 16:32:34 +02:00
Bogdan Fazakas
5a29fefd3b
Multichain Provider (#1698)
* added chainId param to encrypt method

* updated tests & examples
2023-03-20 15:44:12 +02:00
dependabot[bot]
849c575d08
Bump release-it from 15.6.0 to 15.6.1 (#1704)
Bumps [release-it](https://github.com/release-it/release-it) from 15.6.0 to 15.6.1.
- [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/15.6.0...15.6.1)

---
updated-dependencies:
- dependency-name: release-it
  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>
2023-03-06 09:33:22 +02:00
dependabot[bot]
898020b134
Bump prettier from 2.8.1 to 2.8.4 (#1703)
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.4.
- [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.8.1...2.8.4)

---
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>
2023-03-06 08:36:59 +02:00
dependabot[bot]
cfc2bb1776
Bump @typescript-eslint/eslint-plugin from 5.47.1 to 5.54.0 (#1702)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.47.1 to 5.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.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>
2023-03-06 08:35:32 +02:00
Maria Carmina
b4d86e3925
Updated copyright year. (#1700) 2023-02-22 14:15:05 +02:00
Bogdan Fazakas
53f0c536a9 Release 2.6.3 v2.6.3 2023-02-13 14:13:51 +03:00
Bogdan Fazakas
6a4631d215
add macOS readme message (#1697)
* add readme message, update subgraph port

* update ip s add readme updates

* remove unwanted readme line

* update readme message

* fix aqua url

* Update README.md

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

---------

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2023-02-13 10:43:18 +00:00
956a0009c7
Release 2.6.2 v2.6.2 2023-02-07 21:42:43 +00:00
dependabot[bot]
ea79bf1a6d
Bump @truffle/hdwallet-provider from 2.1.4 to 2.1.5 (#1689)
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.1.5/packages/hdwallet-provider)

---
updated-dependencies:
- dependency-name: "@truffle/hdwallet-provider"
  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>
2023-02-07 21:41:27 +00:00
dependabot[bot]
2f42f2f3d7
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#1691)
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-07 21:28:03 +00:00
Bogdan Fazakas
5306d75208
Set withMint default to true (#1693)
* make withMint default to true

* fix lint
2023-02-07 21:27:40 +00:00
Jamie Hewitt
865618a376
Merge pull request #1687 from oceanprotocol/dependabot/npm_and_yarn/decimal.js-10.4.3
Bump decimal.js from 10.4.2 to 10.4.3
2023-02-01 10:08:43 +03:00
Jamie Hewitt
713ad8d780
Merge pull request #1690 from oceanprotocol/dependabot/npm_and_yarn/mocha-10.2.0
Bump mocha from 10.1.0 to 10.2.0
2023-02-01 09:40:09 +03:00
dependabot[bot]
e82a6b9f4a
Bump mocha from 10.1.0 to 10.2.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.1.0 to 10.2.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/v10.1.0...v10.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 02:02:12 +00:00
dependabot[bot]
25ca377500
Bump decimal.js from 10.4.2 to 10.4.3
Bumps [decimal.js](https://github.com/MikeMcl/decimal.js) from 10.4.2 to 10.4.3.
- [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.4.2...v10.4.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 02:00:57 +00:00
dependabot[bot]
033728204a
Bump json5 from 1.0.1 to 1.0.2 (#1681)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-06 08:38:12 +02:00
Bogdan Fazakas
d4711aab98 Release 2.6.1 v2.6.1 2023-01-06 08:16:07 +02:00
Bogdan Fazakas
b99bde9327
Fix download when content disposition header missing (#1680)
* default filenamen

* remove logs
2023-01-05 17:40:48 +02:00
Jamie Hewitt
3c19a08d93
Merge pull request #1676 from oceanprotocol/dependabot/npm_and_yarn/prettier-2.8.1
Bump prettier from 2.7.1 to 2.8.1
2023-01-03 11:12:27 +00:00
Jamie Hewitt
cdf344b3e0
Merge pull request #1675 from oceanprotocol/dependabot/npm_and_yarn/types/node-18.11.18
Bump @types/node from 18.8.0 to 18.11.18
2023-01-03 11:03:47 +00:00
Jamie Hewitt
e860ca922b
Merge pull request #1674 from oceanprotocol/dependabot/npm_and_yarn/release-it-15.6.0
Bump release-it from 15.5.0 to 15.6.0
2023-01-03 10:45:47 +00:00
dependabot[bot]
06fb724807
Bump prettier from 2.7.1 to 2.8.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.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.7.1...2.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 10:42:33 +00:00
dependabot[bot]
84c271fc35
Bump @types/node from 18.8.0 to 18.11.18
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.8.0 to 18.11.18.
- [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>
2023-01-03 10:42:33 +00:00
Jamie Hewitt
dc1383220b
Merge pull request #1677 from oceanprotocol/dependabot/npm_and_yarn/truffle/hdwallet-provider-2.1.4
Bump @truffle/hdwallet-provider from 2.1.2 to 2.1.4
2023-01-03 10:41:34 +00:00
Jamie Hewitt
c61a31cc91
Merge pull request #1678 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.47.1
Bump @typescript-eslint/eslint-plugin from 5.45.0 to 5.47.1
2023-01-03 10:41:00 +00:00
dependabot[bot]
fe4c3ddd5d
Bump @typescript-eslint/eslint-plugin from 5.45.0 to 5.47.1
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.45.0 to 5.47.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/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>
2023-01-01 02:03:12 +00:00
dependabot[bot]
675f8d4827
Bump @truffle/hdwallet-provider from 2.1.2 to 2.1.4
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider) from 2.1.2 to 2.1.4.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.1.4/packages/hdwallet-provider)

---
updated-dependencies:
- dependency-name: "@truffle/hdwallet-provider"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 02:02:37 +00:00
dependabot[bot]
b01a7c435d
Bump release-it from 15.5.0 to 15.6.0
Bumps [release-it](https://github.com/release-it/release-it) from 15.5.0 to 15.6.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/15.5.0...15.6.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>
2023-01-01 02:00:49 +00:00
Jamie Hewitt
1af78355e5
Merge pull request #1672 from oceanprotocol/issue-#1668-erc725-readme
Adding instructions on how to use ERC725 in the CodeExamples file
2022-12-22 15:00:03 +00:00
Jamie Hewitt
39ac4a4046 Combining tests and checking that the data received is correct 2022-12-22 14:25:01 +00:00
Jamie Hewitt
2bb4f751a2 updating assertion messages 2022-12-22 14:17:10 +00:00
Jamie Hewitt
5d3bcde5bd Updating assertion failure messages 2022-12-22 14:09:47 +00:00
Jamie Hewitt
0d80190cab Removing test:guide command 2022-12-22 14:07:27 +00:00