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

846 Commits

Author SHA1 Message Date
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
7201542f7a
add oceanTokenSymbol to ConfigHelper (#670) 2021-03-18 08:22:40 +02:00
Alex Coseru
a47ebbcf65
fix typo (#650) 2021-03-08 14:38:38 +02:00
Alex Coseru
fb3f61a5c5
fix fre bug (#649) 2021-03-08 14:23:10 +02:00
b552f2f23e
add explorerUri for each network (#643) 2021-03-08 08:58:42 +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
c7a7bb0b3b
Merge pull request #630 from oceanprotocol/feature/more_tests
More integration tests
2021-03-03 02:35:23 +01:00
Bogdan Fazakas
f528d6acc0 Merge branch 'main' into feature/sample-links-removal 2021-03-02 15:09:14 +02:00
alexcos20
228c01c98f more tests 2021-03-02 00:42:10 -08:00
alexcos20
2cbc02e1d5 more checks on provider 2021-02-23 23:50:01 -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
mariacarmina
1715679bf8 Fixed modifications. 2021-02-11 20:37:51 +02:00
Alex Coseru
8021cce5cd
speed up previous order (#599) 2021-02-10 19:35:23 +02:00
Alex Coseru
8cc1ef3e37
add minter roles (#600) 2021-02-10 19:35:04 +02:00
Bogdan Fazakas
3608472e75 remove asset sample link if not send on metadata update 2021-02-08 16:46:22 +02:00
Bogdan Fazakas
6e3173f697
set default logger level to error and use only one instance of logger (#571) 2021-02-02 14:53:16 +02:00
ssallam
96f666067a Remove valid from metadata Files attributes 2021-02-01 12:20:47 +01:00
alexcos20
e3a0538bed fix travis 2021-01-26 12:05:32 -08:00
Alex Coseru
5f9f1a8c22
Merge branch 'main' into issue538 2021-01-26 20:05:59 +02:00
alexcos20
100e5c5767 refactor 2021-01-26 09:46:41 -08:00
mariacarmina
59dc288893 Tests failling. Implemented EndpointInformation. 2021-01-26 09:45:56 +02:00
mariacarmina
8642bc5625 Resolved lint errors. 2021-01-21 17:41:21 +02:00
Alex Coseru
84e39d7222
fix metamask bug (#557)
* fix metamask bug

* more estimateGas updates
2021-01-21 17:12:36 +02:00
mihaisc
316c3f5010
multithread search by dt address (#559)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-01-21 17:05:37 +02:00
mariacarmina
03ed3f6200 Draft for Dynamic provider endpoints. Need a feedback about the function modifications in Provider.ts. Need to do unit tests. 2021-01-21 12:42:30 +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
Alex Coseru
a3fbb4dad3
Feature/decimal (#541)
* use Decimal instead of parseFloat

* use Decimal
2021-01-13 15:17:32 +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
mihaisc
a21a71ce92
fix download for large files (#537)
* fix dl

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

* remove console

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

* fix download for compute

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>

* fix test

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-01-12 22:06:16 +02:00
Bogdan Fazakas
286e737e93 throw error when a condition is not valid instead of returning null
fixed allowance and value comparison
2021-01-08 19:06:26 +02:00
Bogdan Fazakas
742436dbac fixed ocean allowance param and some lint errors 2021-01-08 14:03:59 +02:00
Bogdan Fazakas
a5a55b19a1 wip check allowance for dt and ocean at pool creation 2021-01-07 21:58:30 +02:00
1b7d573434
add subgraphUri 2020-12-10 15:10:45 +01:00
Alex Coseru
70bab98848
add ropsten (#492)
* add ropsten

* bump contracts to 0.5.8

* bump contracts to 0.5.8
2020-12-10 10:56:32 +02:00
mihaisc
181d260e0a
Handle assets with low liquidity (#468)
* Handle assets with low liquidity

`isConsumable` is : 
- 'true' when pool/exchange created and enough datatokens are available ( can we check for exchange?)
- 'false' when pool/exchange created and not enough datatokens are avaialbe
- '' when pool/exchange not created

* isConsumable optional
2020-11-24 15:34:12 +02:00
Alex Coseru
db446b6bbf
fix typo (#464) 2020-11-19 15:28:10 +02:00
Alex Coseru
4c2105a8c0
Bug/fullfill promises (#456)
* fullfill promises

* promises

* fix maxprice

* fix logging
2020-11-16 21:07:39 +02:00
alexcos20
bb89534704 fullfill promises 2020-11-16 08:48:45 -08:00
alexcos20
ff7171f64b remove console.log 2020-11-16 04:22:27 -08:00
alexcos20
6424caca69 add computeBuySlippage and computeSellSlippage 2020-11-16 04:20:06 -08:00
alexcos20
3f87aa8589 add buyDTWithExactOcean function 2020-11-16 02:48:23 -08:00
8badb1676b
update isInPurgatory typing 2020-11-13 22:25:24 +01:00
mihaisc
eb5c29810f
fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-11-12 20:38:45 +02:00
alexcos20
be33814f61 fix getPoolLogs 2020-11-12 10:28:37 -08:00
alexcos20
31fccf7af3 increase MAX_AWAIT_PROMISES 2020-11-12 10:06:52 -08:00