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

457 Commits

Author SHA1 Message Date
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
Jamie Hewitt
2a4510aa0d
Replacing node-fetch with cross-fetch (#687)
* installing cross-fetch

* implementing cross-fetch

* Correcting web3 dependancy

* importing types from cross-fetch

* fixing dependancies

* adding imports from cross/fetch/lib

* changing .buffer() to .arrayBufer()

* implementing timeout-signal

* chaning require statements to import statements

* fixing require/import issues

* using default import for timeoutSignal

* fixing linting issues

* fixing dependancy issue

* lint fix

* fix timeout

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

* add abort controller compatible with browser and node

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

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-03-26 19:17:50 +02:00
Alex Coseru
b1967534e8
add allowAllPublishedAlgorithms (#686)
* add allowAllPublishedAlgorithms
2021-03-23 21:00:15 +02:00
mihaisc
79ff76e026
Add remove ocean liquidity function (#685)
Add remove ocean liquidity function

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-03-23 20:59:33 +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
d14ccf3e2d
Merge pull request #636 from oceanprotocol/feature/improve_fre_tests
small improvement on FRE tests
2021-03-03 02:36:02 +01:00
Bogdan Fazakas
f528d6acc0 Merge branch 'main' into feature/sample-links-removal 2021-03-02 15:09:14 +02:00
alexcos20
52687d4bc4 small improvement on FRE tests 2021-03-02 01:40:03 -08: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
59994ea46b
Merge pull request #558 from oceanprotocol/issue538
Dynamic provider endpoints
2021-02-15 18:40:48 +02:00
Alex Coseru
8cc1ef3e37
add minter roles (#600) 2021-02-10 19:35:04 +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
bogdanfazakas
5c4ead9359
Datokens: check cap before mint (#531)
* compared cap with amount entered to mint
if exceeds an error is thrown

* refactor mint method
created method for estimate mint gas

* Revert "refactor mint method"

This reverts commit 4b370958f267fa3f24074bc40d3d9014c4139e48.

* mint method refactor to pass codeclimate test

* added new Datatokens unit test
created a unit to check if mint method throws error when cap amount exceeds cap
2021-01-13 14:42:29 +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
6424caca69 add computeBuySlippage and computeSellSlippage 2020-11-16 04:20:06 -08:00
alexcos20
ab0d0400b1 fix typo 2020-11-16 02:49:58 -08:00
alexcos20
3f87aa8589 add buyDTWithExactOcean function 2020-11-16 02:48:23 -08:00
alexcos20
d361298039 logs/history speed optimizations 2020-11-06 07:34:23 -08:00
alexcos20
336054a663 fix DTPrice if amount is too high 2020-10-30 04:09:12 -07:00
alexcos20
6ba0ae6808 fix namings and add did 2020-10-29 04:50:47 -07:00
alexcos20
087b021c17 add getPoolsSharesbyAddress 2020-10-29 04:35:30 -07:00
alexcos20
c4fb445999 fix pool pricing 2020-10-26 06:33:15 -07: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
57b5f83cbc
Merge branch 'main' into fix/logger 2020-10-21 15:35:09 +02:00
Alex Coseru
5577e1d594
Merge pull request #390 from oceanprotocol/feature/confighelper_refactor
refactor confighelper to use ocean-contracts
2020-10-21 16:26:31 +03:00
Ahmed Ali
59db6740fc
Merge branch 'main' into fix/logger 2020-10-21 14:30:12 +02:00
alexcos20
4db0a0d43d pool.create returns txid 2020-10-21 04:38:19 -07:00
alexcos20
7558df6aa8 refactor confighelper to use ocean-contracts 2020-10-21 04:28:06 -07:00
alexcos20
93f0d53c5a exchange.create returns TransactionReceipt 2020-10-21 03:38:03 -07:00
alexcos20
11271a970b change exchange.create to allow subscribe&approve 2020-10-21 03:29:27 -07:00
alexcos20
dec9c57c94 make pool.create subscribable 2020-10-21 02:27:58 -07:00
Ahmed Ali
19b009d8e5
Merge branch 'main' into fix/logger 2020-10-21 11:05:40 +02:00
Ahmed Ali
bdd1483668 uncomment the sleep function 2020-10-21 10:35:20 +02:00
Ahmed Ali
9cb6ea3dbe fix more datatokens related tests 2020-10-21 10:21:51 +02:00