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

826 Commits

Author SHA1 Message Date
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
alexcos20
f8c5e9b197 chunk promises 2020-11-12 10:02:51 -08:00
mihaisc
21c960b565
export PurgatoryData
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-11-11 16:01:58 +02:00
mihaisc
870a096fe1
remove date form purgatoryData
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-11-11 15:35:43 +02:00
mihaisc
86e79daf17
purgatoryData nullable 2020-11-11 13:45:35 +02:00
mihaisc
373939d42b
update for purgatory
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-11-11 13:44:15 +02:00
mihaisc
4e16fcc20e
remove console, fix travis
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-11-10 16:58:36 +02:00
mihaisc
33bcb47d45
parallelized get shares and tx
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-11-10 16:49:59 +02:00
alexcos20
1d717cb3b0 complete refactor getPoolLogs & getEventData 2020-11-06 23:49:08 -08:00
alexcos20
31f8c38ca8 speed up fixedrate 2020-11-06 07:37:50 -08:00
alexcos20
d361298039 logs/history speed optimizations 2020-11-06 07:34:23 -08:00
Alex Coseru
4c45bc6820
Merge pull request #440 from oceanprotocol/feature/buysell_helpers
buy/sell helpers
2020-11-06 15:47:36 +02:00
alexcos20
efcee50c6a buy/sell helpers 2020-11-06 05:35:31 -08:00
Alex Coseru
46e559f23f
fix datatoken search 2020-11-05 08:20:13 +02:00
Alex Coseru
80bb373f42
Merge pull request #430 from oceanprotocol/bug/fix_fre_wei_conversion
fix fromwei conversion
2020-10-30 15:45:09 +02:00
c410f2fc49
Merge pull request #433 from oceanprotocol/bug/pool_typos
fix typos
2020-10-30 14:14:45 +01:00
alexcos20
3c43bb0f67 fix typos 2020-10-30 06:03:31 -07:00
alexcos20
ead3d212a2 optimise gas costs 2020-10-30 06:02:06 -07:00
bf334ce5da
Merge pull request #432 from oceanprotocol/optimise/get_pool_logs
use event block number as start
2020-10-30 13:55:25 +01:00
alexcos20
17a07b4897 more wei conversions 2020-10-30 05:38:21 -07:00
alexcos20
547ddf317c remove console.log 2020-10-30 05:09:49 -07:00