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

805 Commits

Author SHA1 Message Date
paulo-ocean
88fea271da try other ipfs file 2024-07-01 12:53:37 +01:00
paulo-ocean
0d09bd3ae9 more debug 2024-07-01 11:04:25 +01:00
paulo-ocean
50a515b300 more debug 2024-07-01 10:47:30 +01:00
paulo-ocean
986f8fa5bf debug test 2024-07-01 10:14:33 +01:00
paulo-ocean
557289e5f2 put timeout back and test order,mut be ipfs side temporary 2024-06-28 12:23:11 +01:00
paulo-ocean
fb50bee380 try swap tests order , debug 2024-06-28 12:16:12 +01:00
paulo-ocean
974f3aa64e debug: add more timeout to test 2024-06-28 12:00:31 +01:00
paulo-ocean
bb44f762fb fix test 2024-06-28 11:34:23 +01:00
paulo-ocean
7448a1246c Merge branch 'main' into issue-1820-fix-compute-status 2024-06-25 16:46:26 +01:00
Bogdan Fazakas
e257a64053
Split coupled tests to fix timeout issues (#1827)
* split coupled tests
2024-06-25 17:34:55 +03:00
paulo-ocean
58fc815b46 update get status example, update test 2024-06-25 09:36:49 +01:00
paulo-ocean
1dcafcff6c wip: debug agreemenet id 2024-06-25 09:19:41 +01:00
Bogdan Fazakas
6a6f450780
Multiple fixes (#1785)
* add sepolia logic

* update min gas fee value

* Release 3.1.5-next.0

* update graphqlAsset url

* update timeouts

* added logs

* update timeouts

* upgrade node version

* cleanups
2024-05-09 13:28:38 +03:00
Alex Coseru
91460b9cf5
bump contracts & add optimism (#1786)
* bump contracts

* fix contracts

* add optimism

* use upcoming barge

* update fre tests

* make sure all fres are withMint
2023-11-24 15:12:21 +02: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
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
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
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
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
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
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
5a29fefd3b
Multichain Provider (#1698)
* added chainId param to encrypt method

* updated tests & examples
2023-03-20 15:44:12 +02: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
726e34c8fc Updating guide and formatting 2022-12-21 15:04:30 +00:00
Jamie Hewitt
3919bf7b2d Adding the key-value store steps to CodeExamples.test.ts 2022-12-21 14:56:50 +00:00
Bogdan Fazakas
cbc3cd6776
Add missing symbol and name helper on datatoken (#1667)
* add two helpers method

* fix tests

* update comments
2022-12-19 10:09:05 +00:00
Bogdan Fazakas
a026c12041
Compute Example Readme flow (#1615)
* wip

* add logs

* update checksum

* update test suite

* temp run just compute flow tests

* update file urle

* add c2d md file

* renamed files

* update script

* add script logs

* update create example script

* Updating CodeExamples.md

* Updating ComputeExamples.md

* readme text improvments

* Updating ComputeExamples.md

* more improvments

* Updating ComputeExamples.md

* again more improvments

* Updating ComputeExamples.md

* more readme improvments

* Updating ComputeExamples.md

* update chainid and service endpoint

* Updating CodeExamples.md

* Updating ComputeExamples.md

* req fixes

* Updating ComputeExamples.md

* more fixes

* Updating CodeExamples.md

* Updating ComputeExamples.md

* more fixes, ts configs etc

* Updating ComputeExamples.md

* mention typescript compile options

* add comment regarding mint method

* fix lint

* Updating ComputeExamples.md

* review fixes and sugestions

* Updating ComputeExamples.md

Co-authored-by: GitHub Actions Bot <>
2022-12-14 17:22:44 +02:00
MantisClone
6efae8ebbc
Update Provider.checkFileUrl to allow non-URL file types (like Arweave) (#1627)
* Update Provider.checkFileUrl to allow non-URL file types

* Reduce scope to only URLs and Arweave.

* Remove parentheses to make linter happy

* Update Provider tests to use UrlFile argument

* Fix lint errors

* Fix lint error

* [REVERT THIS] comment coverage upload

  * CC_TEST_REPORTER_ID secret not available in PR workflows from
    external contributors.

* Revert "[REVERT THIS] comment coverage upload"

This reverts commit 7ca94b7e71ce5d53fa0c7b35bdff85e91b6db059.

* Add Arweave fileinfo unit test

* Rename `checkFileUrl` to `getFileInfo`

* Fix lint error
2022-10-19 13:24:20 +01:00
829795fd6f
add full support for Goerli (#1614) 2022-09-23 10:28:03 +01:00
Alex Coseru
97849be3b5
Merge branch 'main' into fix/c2d-paynothing-test-flows 2022-09-12 18:21:11 +03:00
Alex Coseru
ad0e724e68
Feature/add ve fee estimate (#1606)
* bump to contracts 1.1.4

* add estimateClaim

* fix

* Bump decimal.js from 10.3.1 to 10.4.0 (#1598)

Bumps [decimal.js](https://github.com/MikeMcl/decimal.js) from 10.3.1 to 10.4.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.3.1...v10.4.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/eslint-plugin from 5.33.1 to 5.36.2 (#1601)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.33.1 to 5.36.2.
- [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.36.2/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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint from 8.19.0 to 8.23.0 (#1602)

Bumps [eslint](https://github.com/eslint/eslint) from 8.19.0 to 8.23.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.19.0...v8.23.0)

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

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>

* add graphql type (#1607)

* add graphql type

* Updating CodeExamples.md

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions Bot <>
2022-09-12 18:20:21 +03:00
Bogdan Fazakas
8acbbd01b6 removed missed comments and one delay 2022-09-09 14:21:20 +03:00
Bogdan Fazakas
610d15b2b4 removed unnecesar logs 2022-09-09 14:07:30 +03:00
Bogdan Fazakas
219d4b4a1e put back paid env test 2022-09-09 13:15:01 +03:00
Bogdan Fazakas
9fc8a8ebb3 update asset timeouts 2022-09-09 12:20:41 +03:00
Bogdan Fazakas
479234d806 add more logs 2022-09-09 10:22:16 +03:00
Bogdan Fazakas
ebe15f9dcf debug 2022-09-07 17:35:40 +03:00
Alex Coseru
dd383ec365
add DataFarming contract support (#1596)
* add DataFarming contract support
2022-09-06 21:43:51 +03:00
Alex Coseru
f8f4b48243
Feature/basic ve ocean (#1595)
* bump contracts to 1.1.3

* add basic veOcean support

Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
2022-09-06 15:00:47 +03:00
Bogdan Fazakas
2d3f9ee259 cleanups 2022-08-23 23:00:58 +03:00
Bogdan Fazakas
1965ceae6a more debug 2022-08-23 22:27:19 +03:00
Bogdan Fazakas
b7fd131421 update compute duration and logs 2022-08-23 22:12:18 +03:00
Bogdan Fazakas
56fa2a3b17 update delay and compute time 2022-08-23 21:43:45 +03:00
Bogdan Fazakas
324b4eda64 fix sintax 2022-08-23 21:27:15 +03:00
Bogdan Fazakas
39672b3ec0 added more logs 2022-08-23 21:21:57 +03:00
Bogdan Fazakas
5eff2bd0d1 updated compute valid until time 2022-08-23 18:00:37 +03:00
Bogdan Fazakas
f99629dfc5 updated timeouts 2022-08-23 17:46:54 +03:00
Bogdan Fazakas
f862f32b3b try a 2 min delay 2022-08-23 17:29:25 +03:00