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

516 Commits

Author SHA1 Message Date
Alex Coseru
92b4be0dce
Feature/dispenser (#790)
* add dispenser support

* bump contracts to 0.6.2
2021-05-10 18:42:19 +03:00
Jamie Hewitt
53b401dcd0 Revert "creating interface for the dispenser contract"
This reverts commit 413b17e668a4d92e2ab9d43092b604bc2b2f2914.
2021-05-07 13:56:35 +03:00
Jamie Hewitt
603e512f8a Revert "instantiate Dispenser"
This reverts commit 4727f226ce59353fda75542d382bc804db838198.
2021-05-07 13:56:18 +03:00
Jamie Hewitt
4727f226ce instantiate Dispenser 2021-05-07 12:57:59 +03:00
Jamie Hewitt
413b17e668 creating interface for the dispenser contract 2021-05-07 12:53:15 +03:00
Alex Coseru
3a5569b12f
Feature/use decimal in pool (#775)
* change default gas settings

* check allowance & fix gas estimate

* use Decimal

* fix estimateGas for new Pools
2021-04-30 16:02:18 +03:00
mihaisc
a1a7c444c7
Fix address.json import (#765)
* fix json import

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

* remove console.log

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

* Using common JS export

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
2021-04-23 13:06:03 +03:00
Alex Coseru
ee7a5489c7
add moonbeamalpha (#751)
* add moonbeamalpha

* bump ocean-contracts

* lock file

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

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-04-22 19:29:36 +03:00
Alex Coseru
2a80c605d4
add seachPreviousOrder (#755) 2021-04-19 15:48:15 +03:00
mihaisc
a39b9a416e
export provider, fix circular dependency (#750)
* export provider, fix circular dependency

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

* lock file

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-04-16 13:20:24 +03:00
mihaisc
26957a8432
fix compute status (#746)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-04-16 00:39:43 +02:00
Alex Coseru
51c241eed4
add inputDID & algoDID (#735) 2021-04-13 21:25:15 +03: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
Jamie Hewitt
57eecce7f9
Building CommonJS, ES and UMD modules with microbundle (#698)
* Building CommonJS, ES and UMD modules with microbundle

* re-writting package-lock.json with npm v6

* adding script for build optimised for node environment

* building utils folder seperately

* Revert "building utils folder seperately"

This reverts commit b246f7f440104eaa68c30da1619d1691a995dfec.

* combining tsc and microbundle

* building package-lock.json with npm v6

* including util exports in bundle
2021-04-07 23:22:25 +03:00
Alex Coseru
6217cfa4e0
use blob instead of buffer (#694)
* use blob instead of buffer

* fix blob

* fix binary data

* fix dev typo
2021-03-31 16:05:02 +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
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