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

3255 Commits

Author SHA1 Message Date
Bogdan Fazakas
38cc02849e
fix fs use & error handling (#1777)
* fix fs use

* Release 3.1.3-next.0

* update error handling

* Release 3.1.3-next.1
2023-10-16 23:26:30 +03:00
dependabot[bot]
b599093901
Bump postcss from 8.4.5 to 8.4.31 (#1778)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.5 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.5...8.4.31)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-16 13:17:31 +03:00
dependabot[bot]
c3ba01cc4e
Bump @types/crypto-js from 4.1.1 to 4.1.2 (#1774)
Bumps [@types/crypto-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/crypto-js) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/crypto-js)

---
updated-dependencies:
- dependency-name: "@types/crypto-js"
  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-10-02 14:24:40 +03:00
dependabot[bot]
74b187d1da
Bump @types/chai-spies from 1.0.3 to 1.0.4 (#1776)
Bumps [@types/chai-spies](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai-spies) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai-spies)

---
updated-dependencies:
- dependency-name: "@types/chai-spies"
  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-10-02 14:24:30 +03:00
Bogdan Fazakas
a157154f85 Release 3.1.2 v3.1.2 2023-09-25 09:22:50 +03:00
Bogdan Fazakas
8f28f3b029
Feature/ Use custom addresses & fallback signature to legacy (#1772)
* add fixes

* added logs

* added missed fs call

* debug ci

* add more checks

* fix custom addr check
2023-09-25 07:46:38 +03:00
dependabot[bot]
fc0782be5c
Bump typedoc from 0.24.8 to 0.25.1 (#1770)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.24.8 to 0.25.1.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.24.8...v0.25.1)

---
updated-dependencies:
- dependency-name: typedoc
  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-09-22 14:32:26 +03:00
dependabot[bot]
91110290d4
Bump cross-fetch from 3.1.5 to 4.0.0 (#1764)
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 3.1.5 to 4.0.0.
- [Release notes](https://github.com/lquixada/cross-fetch/releases)
- [Changelog](https://github.com/lquixada/cross-fetch/blob/v4.x/CHANGELOG.md)
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.5...v4.0.0)

---
updated-dependencies:
- dependency-name: cross-fetch
  dependency-type: direct:production
  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>
2023-09-22 14:32:18 +03:00
dependabot[bot]
343df5eb97
Bump eslint-config-prettier from 8.5.0 to 9.0.0 (#1763)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.5.0 to 9.0.0.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.5.0...v9.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  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>
2023-09-22 14:32:10 +03:00
Alex Coseru
6130a3df99
optimize disk space (#1771) 2023-09-21 16:32:58 +03:00
Yannick Meinberg
aa0905ed47
Added gen-x-testnet to ConfigHelper (#1741)
- See https://docs.genx.minimal-gaia-x.eu/docs/development/quick_start/
2023-09-05 09:48:28 +03:00
Alex Coseru
5062b6d2b7
Remove custom contracts (#1769)
* Remove custom contracts

* Updating CodeExamples.md

---------

Co-authored-by: GitHub Actions Bot <>
2023-09-05 09:42:07 +03:00
Bogdan Fazakas
e5f36f94aa Release 3.1.1 v3.1.1 2023-09-04 12:27:08 +03:00
Bogdan Fazakas
cf0c1221a9
fix compute stop & uptade order helper to be reused also for c2d oreder methods (#1761) 2023-09-04 09:35:09 +03:00
dependabot[bot]
01822d81c5
Bump mock-local-storage from 1.1.23 to 1.1.24 (#1738)
Bumps [mock-local-storage](https://gitlab.com/kaictl/node/mock-local-storage) from 1.1.23 to 1.1.24.
- [Release notes](https://gitlab.com/kaictl/node/mock-local-storage/tags)
- [Commits](https://gitlab.com/kaictl/node/mock-local-storage/compare/v1.1.23...v1.1.24)

---
updated-dependencies:
- dependency-name: mock-local-storage
  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-08-28 11:14:48 +03:00
Bogdan Fazakas
bc22ea3447 Release 3.1.0 v3.1.0 2023-08-25 17:56:19 +03:00
Bogdan Fazakas
faa7de3601
Feature/Add order util method (#1759)
* added order  helper method using contracts calls

* fixes consume fees  & lint

* cleanup

* update order helper method to be more generic

* fix all warnings
2023-08-25 17:33:06 +03:00
dependabot[bot]
2724e63bff
Bump typescript from 4.8.4 to 5.1.6 (#1743)
* Bump typescript from 4.8.4 to 5.1.6

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 5.1.6.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

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

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

* bump typescript eslint

* bump typedoc

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
2023-08-23 16:10:26 +03:00
dependabot[bot]
dcb2488ca7
Bump word-wrap from 1.2.3 to 1.2.4 (#1753)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-02 14:06:02 +03:00
dependabot[bot]
b701fbbdb2
Bump typedoc-plugin-markdown from 3.15.2 to 3.15.4 (#1756)
Bumps [typedoc-plugin-markdown](https://github.com/tgreyuk/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 3.15.2 to 3.15.4.
- [Release notes](https://github.com/tgreyuk/typedoc-plugin-markdown/releases)
- [Changelog](https://github.com/tgreyuk/typedoc-plugin-markdown/blob/master/packages/typedoc-plugin-markdown/CHANGELOG.md)
- [Commits](https://github.com/tgreyuk/typedoc-plugin-markdown/commits/typedoc-plugin-markdown@3.15.4/packages/typedoc-plugin-markdown)

---
updated-dependencies:
- dependency-name: typedoc-plugin-markdown
  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-08-02 14:00:44 +03:00
Bogdan Fazakas
46ca3d534b Release 3.0.4 v3.0.4 2023-08-01 20:27:07 +03:00
Bogdan Fazakas
a50cd5bb00
Fix/ Download file browser (#1758)
* remove head call for download file browser helper method

* fix lint
2023-08-01 20:23:36 +03:00
Bogdan Fazakas
96568ed250 Release 3.0.3 v3.0.3 2023-07-31 13:38:39 +03:00
Bogdan Fazakas
808178291d
Update provider nonce handling (#1747)
* Updates the usage of nonce

* nonce method updates

* fix lint

* remove double resolve for the response

* use provider invalid-signature image and comm update docs

* print errro

* set a default value if nonce received is null

* fix issue with consumer address on download

* remove parse int

* skip compute tests

* Updating CodeExamples.md

* put back compute tests

* prepare for release

* use older contracts

---------

Co-authored-by: GitHub Actions Bot <>
2023-07-31 13:21:05 +03:00
Bogdan Fazakas
ff5fcd7f22 Release 3.0.2 v3.0.2 2023-07-14 14:00:49 +03:00
Bogdan Fazakas
a95d563015
Update codeExamples dependencies (#1742)
* update compute examples depandancies

* Checking for the decimals on the feeToken

* Adding tests to check if the number of decimals is correct for the publishMarketFee

* Feature/sepolia (#1749)

* add sepolia

* bump contracts

* update install dependacies step in code and compute examples readmes

* commented out update docs for the moment

* Updating CodeExamples.md

* Updating ComputeExamples.md

---------

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: Jamie Hewitt <jamie@oceanprotocol.com>
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
Co-authored-by: GitHub Actions Bot <>
2023-07-14 12:23:41 +02:00
Bogdan Fazakas
a7c68e995d
Updates to Provider errors handling (#1745) 2023-07-14 12:11:38 +03:00
Alex Coseru
ed38f6028d
Feature/sepolia (#1749)
* add sepolia

* bump contracts
2023-07-12 16:48:28 +03:00
Jamie Hewitt
419ff6c631
Merge pull request #1748 from oceanprotocol/issue-1746-feeTOken-decimals
Fixing fee token decimals
2023-07-12 14:30:41 +03:00
Jamie Hewitt
9da0268be6
Merge 8699e4a8bb30b3ecb7ee894412ebe85267fddd67 into ae2ff1ccde53ace9841844c316a855de271f9a3f 2023-07-06 15:22:44 +00:00
Jamie Hewitt
8699e4a8bb Adding tests to check if the number of decimals is correct for the publishMarketFee 2023-07-06 18:21:05 +03:00
Jamie Hewitt
ece4883743 Checking for the decimals on the feeToken 2023-07-06 14:06:47 +03:00
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