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

345 Commits

Author SHA1 Message Date
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
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
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
Bogdan Fazakas
a6c9c70e8e
Fix/ Order method should throw error messages (#803)
* throw error when order methods fail, updated integration tests accordingly

* throw error for startOrder method & update error messages

* updated assert messages and added asserts in try block
2021-05-25 16:00:13 +02:00
Alex Coseru
497927a0f4
remove all doo price tests (#805) 2021-05-25 12:19:31 +03:00
dependabot[bot]
ba64eeb39a
Bump prettier from 2.2.1 to 2.3.0 (#793)
* Bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [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.2.1...2.3.0)

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

* prettier updates

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-05-25 08:27:53 +02:00
Alex Coseru
39938ec9c0
refactor compute (#731)
WARNING! This is a breaking change!

* Refactor compute functions to use a new interface (ComputeAlgorithm) instead of passing 4-5 params to different functions.
* add new test to prevent running a computeJob is both asset/algo are having compute services and they are not served from the same provider

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-04-13 17:34:34 +02:00
TSS-LauKY
04c2a9b09a
[KianYee] #459 enhance file info function (#710)
* [KianYee] #459 enhance file info function

* [KianYee] #459 enhance file info function

* [KianYee] Fix issue

* [KianYee] #459 fix codeclimate

* [KianYee] #459 add intergration test

* [KianYee] Add integration test

* [KianYee] #459 Fix bug

* [KianYee] #459 Slipt function into 2

* [KianYee] removed unused import

* [KianYee] update test case description
2021-04-13 14:39:11 +03:00
mihaisc
23f319b8a8
Optimize compute job status calls (#717)
* optimize status calls

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* update computeJob interface

* fix typo

* more details

* fix tests

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix tests

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* throw errors instead of return null

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

Co-authored-by: alexcos20 <alex.coseru@gmail.com>
2021-04-13 14:38:54 +03:00
Alex Coseru
bae7501842
Feature/more tests (#718)
* add compute dataset/compute algo

* add FRE create/update for aqua

* add pool tests for aqua
2021-04-08 13:48:02 +03:00
Alex Coseru
3533695353
add compute dataset/compute algo (#711) 2021-04-05 20:34:55 +03:00
Alex Coseru
15617f23cf
improve tests speed (#691) 2021-03-30 01:13:17 +03:00
Alex Coseru
b1967534e8
add allowAllPublishedAlgorithms (#686)
* add allowAllPublishedAlgorithms
2021-03-23 21:00:15 +02:00
Alex Coseru
abcb1f8200
add encrypt ddo support (#662)
* bump aquarius

* add encrypted ddo & native query

* fix native queries

* fix code duplicates

* fix assets.create description

* fixed comments and added helper publishDdo

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* update searchQuery

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-03-18 11:54:58 +02:00
Bogdan Fazakas
9a832dc9b7
Merge pull request #598 from oceanprotocol/feature/sample-links-removal
Asset metadata sample links removal
2021-03-03 16:23:13 +02:00
Bogdan Fazakas
f528d6acc0 Merge branch 'main' into feature/sample-links-removal 2021-03-02 15:09:14 +02:00
alexcos20
57c1457b83 expand checks 2021-02-23 23:18:27 -08:00
alexcos20
753d253b35 typos 2021-02-23 22:56:30 -08:00
alexcos20
41290faac5 typo 2021-02-23 22:54:09 -08:00
alexcos20
8b464722ef wip tests 2021-02-23 22:50:26 -08:00
alexcos20
5e7c6cb497 add ' tokens are not deducted' test for bad URL 2021-02-23 20:34:32 -08:00
mihaisc
34e40f81d9
Add polygon network (#627)
* add polygon network

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* package-lock

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* Update src/utils/ConfigHelper.ts

* Update ConfigHelper.ts

* Update ComputeFlow.test.ts

Increase sleep time for aqua

* Update Marketplaceflow.test.ts

increase sleep time for aqua

Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
2021-02-23 21:45:40 +02:00
Alex Coseru
8fbd09c615
Feature/compute nextv (#612)
* Update .travis.yml

* compute support for additionalInputs

* small getPreviousValidOrders improvment

* small refactor for utils.fetch

* fetch refactor & add timeout

* more tests

* use 2nd provider as well

* use the 2nd provider in travis

* compute and order refactor, more tests

* remove unused functions

* add provider version

* secures algos

* more tests

* fix tests

* make checksums optional

* make checksum optional

* improve coverage

* fix tests
2021-02-22 16:11:45 +02:00
mariacarmina
687fd743c6 Fixed integration tests for Provider.ts and Marketplaceflow.ts. 2021-02-10 17:25:35 +02:00
Bogdan Fazakas
d6a84e7935 update integration test 2021-02-10 11:06:19 +02:00
Bogdan Fazakas
3608472e75 remove asset sample link if not send on metadata update 2021-02-08 16:46:22 +02:00
mihaisc
002e38d8b0
Refactor OnChainMetadataCache (#551)
* update naming, add helper update

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix test

* fix

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix test

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix test

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-01-18 14:03:56 +02:00
Alex Coseru
16c21e1ecb
add updateServiceTimeout and edit ddo updates (#544)
* add updateServiceTimeout

* remove unnecessary code

* fix travis

* fix

* add fileinfo endpoint

* fix did problem

* namings refactor

* lint fix
2021-01-18 12:02:38 +02:00
Călina Cenan
34f8b4a9e0
[WIP] Adds checkURL function to use provider endpoint. (#540)
* Adds checkURL function to use provider endpoint.

* Change Provider version in Travis.

* Update checkURL function to return full result instead of boolean.

Co-authored-by: Calina Cenan <calina.tutunaru@algotech.solutions>
2021-01-13 14:42:02 +02:00
alexcos20
4c4ef66b8f fix tests 2020-10-22 05:52:05 -07:00
alexcos20
1aefaf8116 update compute status 2020-10-22 04:50:27 -07:00
Alex Coseru
b9ec4b4660
Merge pull request #396 from oceanprotocol/feature/compute_job_status
allow compute status without signature
2020-10-22 12:02:30 +03:00
alexcos20
2371124213 allow compute status without signature 2020-10-22 00:30:55 -07:00
Ahmed Ali
19b009d8e5
Merge branch 'main' into fix/logger 2020-10-21 11:05:40 +02:00
Ahmed Ali
9cb6ea3dbe fix more datatokens related tests 2020-10-21 10:21:51 +02:00
alexcos20
efaa3f6d1d fix tests 2020-10-20 06:16:15 -07:00
Ahmed Ali
d72bb39a96 minor fix in tests: assert from chai 2020-10-14 15:16:40 +02:00
Alex Coseru
a55da41ac7
Merge branch 'main' into feature/metadatacache 2020-10-13 16:03:19 +03:00
d0b4bb537e
metadataStore → metadataCache 2020-10-13 14:49:12 +02:00
97b182f4ab
more typings updates 2020-10-13 14:35:39 +02:00
alexcos20
d13b8816b3 increase timeout for tests 2020-10-13 04:22:45 -07:00
alexcos20
413f3c7ae2 increase sleep in tests while waitting for aqua events monitor 2020-10-12 08:15:37 -07:00
alexcos20
eadaa7abb5 add order history 2020-10-01 05:57:04 -07:00
cde752f4ae
fix test spy 2020-09-29 14:36:00 +02:00
905fd99496
update tests 2020-09-23 21:39:35 +02:00
alexcos20
e563f556d1 fix all tests 2020-09-23 05:45:48 -07:00
Alex Coseru
023c258311
Merge branch 'main' into feature/customProvider 2020-09-22 12:35:56 +03:00
alexcos20
e71180e2df add tests 2020-09-19 00:39:05 -07:00