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

175 Commits

Author SHA1 Message Date
Bogdan Fazakas
f21f606b49 update provider initialize and computeflow 2022-01-19 23:43:24 +02:00
Bogdan Fazakas
555bdf583d update startOrder in consume and compute integration tests 2022-01-19 23:18:31 +02:00
Bogdan Fazakas
90c8a3a0c8 put back BaseToken instead of Basetoken 2022-01-19 09:55:18 +02:00
Bogdan Fazakas
69432720f0 put back baseToken instead of basetoken 2022-01-19 09:48:23 +02:00
Bogdan Fazakas
471875f85c update codebase renamed dataToken baseToken etc 2022-01-17 15:05:05 +02:00
80e2d21c20 single tsconfig & mocharc for all tests, simplify commands 2022-01-11 17:52:28 +00:00
8776c1bb91 make mocha pick up individual tsconfig, compile test files 2022-01-11 17:52:28 +00:00
24425fcf8b fix artifacts path in all test files 2022-01-11 17:52:28 +00:00
bdfa60a91b move artifacts folder under /src 2022-01-11 17:52:28 +00:00
Bogdan Fazakas
810213c20c Revert "moved artifacts under src so to build starts"
This reverts commit 41fb836a4980f5a447dd9411037bd8f4618b7d24.
2022-01-11 10:35:28 +02:00
Bogdan Fazakas
41fb836a49 moved artifacts under src so to build starts 2022-01-11 09:47:41 +02:00
Bogdan Fazakas
a019491ed2 add used artifacts update imports and removed not used dependancies 2022-01-10 18:36:48 +02:00
Bogdan Fazakas
04d850b6d6
integration tests publish all methods (#1197)
* added pool fixed rate and dispenser publish

* add validate method update publish tests

* update tests asset metadata

* update validate method

* fix lint

* update validate ussage

* send metadata to validate as object and removed some console logs

* fixed validate method update publish all tests

* fix validate aqua method

* update provider url

* update service timeout and add doc for validate method

* add MetadataProofs

Co-authored-by: alexcos20 <alex.coseru@gmail.com>
2022-01-07 11:17:04 +02:00
Alex Coseru
4dc8898bad
compute start (#1196)
* compute start

* add getStatus
2022-01-07 11:16:36 +02:00
Alex Coseru
b4064aea8f
publish & consume flow working (#1192)
* simple publish & consume flow working
2022-01-04 15:58:12 +02:00
alexcos20
503fd9d163 encrypt url as well 2022-01-03 23:30:31 -08:00
Alex Coseru
f23e65f61b
publish tests (#1184)
* publish tests

* update to latest contracts

* fix unit tests
2022-01-03 17:34:28 +02:00
Bogdan Fazakas
bb828b954c updated fetch decouple strategy and added some tests 2021-11-26 16:40:29 +02:00
lacoop6tu
3e247d46bf add contracts deployment for test, add initial NFTFactory.test.ts 2021-10-19 13:58:04 -05:00
Bogdan Fazakas
a6ce03439f added test folder 2021-10-13 09:55:18 +03:00
Bogdan Fazakas
3e9991e6f0 initial backbone commit 2021-10-13 09:10:55 +03:00
Alex Coseru
02cc911ce9
Custom user parameters (#944)
* enable create / passthrough of userData & algoData

* refactor bassed on reviews

* refactor balance check async flows

* more provider logs

* more debugs for provider

* provider debug

* more provider logs

* more provider debug

* revert ci changes

* naming & typings

* Release 0.18.0-next.0

* deal with pre-releases

* clarify instructions

* fix merge errors

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-09-24 13:52:11 +02:00
Alex Coseru
3bea2aaf90
Bump aqua queries
* remove aqua queries

* remove transformResult

* fix metadatacache test

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

* remove unused

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

* more commits

* move metadatacache to integration

* fix

* fix lint

* great improve an integration tests speed

* force aqua 3.1 on barge

* small typo fix

* fix ci

* fix import instead of require

* add ocean.assets.query

* Update ci.yml

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-09-24 11:55:28 +03:00
Alex Coseru
9925cc9d95
allow editable author (#936) 2021-07-29 09:44:51 +02:00
Alex Coseru
fba5965042
validate ddo before publish on chain (#873)
* validate ddo before publish on chain
2021-06-30 10:34:37 +03:00
Kris Liew
5d4250f8e3
Improve Ocean.assets.isConsumable return interface and message (#869) 2021-06-28 15:26:28 +08: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
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
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
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