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

112 Commits

Author SHA1 Message Date
Bogdan Fazakas
ec601a66d2
Fix get compute results (#1386)
* wip special chars

* clean ups

* update sha256 import from cryptojs lib

* update compute result and use alpha-26 contracts

* re-build with package-lock v1 and with dist

* ignore build files from dist

* delete build files

* removed console logs and updated ComputeResultType typing

* update compute integration test

* added more tests

* added some logs

* update file download method

* use fetch data

* remove download part

* delete console logs

* review fixes

* more fixes

Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
2022-04-14 23:58:25 +01:00
Alex Coseru
29c5c8b60e
fix mm signature (#1420)
* fix mm signature
2022-04-14 18:19:56 +03:00
Alex Coseru
e964b2a4a4
refactor signatures (#1395)
* refactor signatures
2022-04-14 16:52:12 +03:00
Bogdan Fazakas
4157e1e473
update compute status query and jsdoc (#1361) 2022-03-29 15:40:01 +01:00
Norbi
a0e43235dd
Replace toWei/fromWei when base token conversion (#1318)
* replaced toWei inside FRE

* added amountToUnits for maxPrice inside pool

* replaced fromWei

* add web3 param to getPoolCreationParams

* added await before amountToUnits inside swapExactAmount

* swapExactAmount update

* add await to unitsToAmount inside setRate

* convert newRate to string

* replaced unitToAmounts with amountToUnits inside setRate

* replace unitToAmounts with amountToUnits

* added await

* replaced String() with toSting()

* replaced String() in Provider

* transform newRate into wei inside estimateSetRate

* replace toWei inside getFreCreationParams

* added web3 param to getFreCreationParams

* add amountToUnits inside getFreOrderParams

* added logs

* removed unitsToAmount from fixed rate

* removed amountToUnits inside marketFee

* removed logs
2022-03-16 12:44:53 +02:00
Alex Coseru
ee7a45e17a
use compute environments (#1258)
* use compute environments
2022-02-09 19:13:25 +02:00
mihaisc
56a3aad20d
heleper+ remove old ibs (#1238)
* heleper+ remove old ibs

* fix tests

* fix gaslimt

* fix approve

* fix

* remove console.log

* upate package-lock
2022-01-25 08:32:55 -08:00
mihaisc
b880bee007
remove optional fetch method, add abort signal (#1235)
* remove optional fetch method, add abort signal

* fix encrypt

* fix encrypt

* fix lint,tests

* test

* fix adr

* test

* fix asset

* t

* t
2022-01-24 23:49:13 -08:00
Bogdan Fazakas
7c6ce6368a
Merge pull request #1212 from oceanprotocol/feature/default-http-fixes
Add default http function and fixes provider class
2022-01-20 09:04:36 +02:00
Bogdan Fazakas
d8a036e1ba removed logs 2022-01-20 00:33:32 +02:00
Bogdan Fazakas
ccbbeae429 update validUntil type 2022-01-20 00:24:30 +02:00
Bogdan Fazakas
cc7de98b63 added logs 2022-01-20 00:13:31 +02:00
Bogdan Fazakas
f21f606b49 update provider initialize and computeflow 2022-01-19 23:43:24 +02:00
Bogdan Fazakas
21bebf4747 updated provider order for params 2022-01-12 10:15:53 +02:00
Bogdan Fazakas
5445e210ba wip provider updates add default http method & set headers and method to all calls 2022-01-10 15:40:12 +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
ecc9988972 add provider types 2022-01-03 23:30:23 -08:00
mihaisc
8bcffc00a6
config and encrypt fixes (#1173)
* config and encrypt fixes

* small comment

* fix

* change in PoolCreationParams

* fix

* fixes

* fix fileinfo

* rename fileinfo -> checkFileUrl, add checkDidFiles

* ensure chainId is base 10

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-12-23 03:05:07 -08:00
Bogdan Fazakas
303d7607c7 fixed typo and tests and update initialize method 2021-12-22 17:18:43 +02:00
mihaisc
ec61424546
fix (#1166) 2021-12-20 04:24:34 -08:00
mihaisc
602f453985
Feature/didutils (#1163)
* add ddo utils, remove web3 params from some helper

* update web3, some fixes

* fix lint

* remove console logs

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

* fixed lint

Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
2021-12-16 17:57:41 +02:00
Bogdan Fazakas
cb779eaf0d fix encrypt fucntion 2021-12-16 13:04:38 +02:00
Bogdan Fazakas
06f9149078 added docs for compute methods 2021-12-10 10:58:56 +02:00
Bogdan Fazakas
ba9cd6a6da added compute delete method 2021-12-10 09:47:03 +02:00
Bogdan Fazakas
9ff909468e fixed lint 2021-12-10 00:10:11 +02:00
Bogdan Fazakas
d44f53fb6f added c2d methods types and some utils 2021-12-10 00:07:52 +02:00
Bogdan Fazakas
6dacc0c44c refactor fixed some code styling issues 2021-12-09 12:13:56 +02:00
Bogdan Fazakas
1bdef71d54 added new file metadata structure and reorganize tokens and types 2021-12-08 17:08:30 +02:00
Bogdan Fazakas
babaa970eb fixed lint 2021-12-07 20:51:34 +02:00
Bogdan Fazakas
e9a0dd5a1c add download method and utils 2021-12-06 10:19:19 +02:00
Bogdan Fazakas
bb828b954c updated fetch decouple strategy and added some tests 2021-11-26 16:40:29 +02:00
Bogdan Fazakas
51f3816949 fixed lint issues 2021-11-22 12:17:08 +02:00
Bogdan Fazakas
d3c1b4519f first commit provider class 2021-11-22 10:07:00 +02: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
Jamie Hewitt
8ab2b75a1f Changing error message 2021-07-09 15:33:48 +03:00
Bogdan Fazakas
4e02a1b2a5 small refactor 2021-06-09 10:44:59 +03:00
Bogdan Fazakas
4f9ed04086 sent ocean instance param to asset resolve helper 2021-06-08 17:24:54 +03:00
Bogdan Fazakas
c88680f100 added AssetResolverHelper 2021-06-08 09:08:24 +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
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
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
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
a47ebbcf65
fix typo (#650) 2021-03-08 14:38:38 +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
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
1715679bf8 Fixed modifications. 2021-02-11 20:37:51 +02:00