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

435 Commits

Author SHA1 Message Date
Miquel A. Cabot
4babe6d4bb Merge branch 'issue-1246-use-confighelper-in-tests' into issue-1292-fix-compute-test-timeout 2022-03-18 15:12:10 +01:00
Miquel A. Cabot
cf5437a103 use getAddresses config function in TestContractHandler 2022-03-18 13:00:06 +01:00
Miquel A. Cabot
c92f263741 add PROVIDER_URL environment variable 2022-03-17 16:12:13 +01:00
Miquel A. Cabot
f5727fc82b fix unitsToAmount import problem after merge main branch 2022-03-16 15:13:37 +01:00
Miquel A. Cabot
db0c9a6cdb
Merge branch 'v4main' into issue-1246-use-confighelper-in-tests 2022-03-16 14:30:24 +01:00
Miquel A. Cabot
165b4c8680 refactor imports in the tests 2022-03-16 14:25:09 +01:00
Miquel A. Cabot
9a583e60e0 use configuration variables instead of constants 2022-03-16 14:07:00 +01:00
Miquel A. Cabot
35722239df use configuration file to read variables 2022-03-16 13:06:10 +01:00
Miquel A. Cabot
1a3c20bfbc add configuration script for the tests 2022-03-16 13:05:05 +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
Miquel A. Cabot
896211b93f read configHelperNetworks values for the tests 2022-03-15 19:13:58 +01:00
Miquel A. Cabot
41a8b6ef26 remove unused test config files 2022-03-15 19:00:27 +01:00
Alex Coseru
9b724d71bd
Feature/contracts alpha 22 (#1334)
* bump contracts to alpha 22
2022-03-14 14:23:16 +02:00
Norbi
bd32b950a8
dispenser creation: transform maxTokens and maxBalance to wei (#1328) 2022-03-11 11:04:55 +00:00
Alex Coseru
7932a845d5
bump to contracts alpha.20 (#1295)
* bump to contracts alpha.20

Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
2022-02-16 18:25:17 +02:00
Alex Coseru
7ca5000a66
use barge addresses for unit tests (#1291) 2022-02-15 18:14:11 +02:00
Alex Coseru
91a4431938
update to contracts alpha.19 (#1286) 2022-02-14 18:36:15 +02:00
Alex Coseru
9782af59a2
add aquarius to export list (#1280)
* export aquarius as well

* send timestamp in seconds, not ms
2022-02-12 19:03:11 +02:00
mihaisc
6f12e28ada
fix redundancy (#1278)
* fix redundancy

* convert to wei fixed price

* fix test
2022-02-11 04:45:15 -08:00
mihaisc
3c315eb49d
fixes (#1273)
* fixes

* fix test

* fix swap

* fix test

* fix test

* more fixes

* fixes

* change swapMarketFee from wei to decimal

* fix
2022-02-10 07:38:48 -08:00
Alex Coseru
ee7a45e17a
use compute environments (#1258)
* use compute environments
2022-02-09 19:13:25 +02:00
Alex Coseru
9174baa3c0
Barge c2d & latest contracts bump (#1248)
* bump to latest contracts
2022-02-09 11:32:54 +02:00
Bogdan Fazakas
14862f6a3a
Moved interfaces under types and some small fixes (#1253)
* moved interfaces and some fixes

* throw proper error messages on try catch blocks in pool class
2022-02-07 08:06:58 -08:00
mihaisc
fc711ece5c
remove ammount (#1241)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-01-28 02:12:57 -08:00
mihaisc
be7adcb6f8
fix order, update contracts (#1240)
* fix order, update contracts

* remove console.log

* remove force contracts install
2022-01-26 10:27:58 -08: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
Bogdan Fazakas
5b73daad7e
Add setMetaDataAndTokenURI method (#1234)
* add support for setMetaDataAndTokenURI and added test

* delete logs

* fix lint

* fix naming
2022-01-25 06:02:00 -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
5cb548ca59
replaced local artifacts with the published ones (#1232) 2022-01-20 04:39:58 -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
555bdf583d update startOrder in consume and compute integration tests 2022-01-19 23:18:31 +02:00
Bogdan Fazakas
8c9e21f309 fix start order and multi order 2022-01-19 18:56:59 +02:00
Bogdan Fazakas
6c9746a8ad fix opfee and DataToken naming 2022-01-19 17:26:22 +02:00
Bogdan Fazakas
7ff158a98e fixed router mappings 2022-01-19 16:15:07 +02:00
Bogdan Fazakas
ac52ad9f66 updated also token order struct 2022-01-19 14:33:21 +02:00
Bogdan Fazakas
07263e7972 update order struct 2022-01-19 14:28:05 +02:00
Bogdan Fazakas
b4e102e6a6 update artifacts after latest contract changes 2022-01-19 13:00:37 +02:00
Bogdan Fazakas
90c8a3a0c8 put back BaseToken instead of Basetoken 2022-01-19 09:55:18 +02:00
Bogdan Fazakas
69432720f0 put back baseToken instead of basetoken 2022-01-19 09:48:23 +02:00
Bogdan Fazakas
fea2fde9e3 fixed lint 2022-01-17 15:26:48 +02:00
Bogdan Fazakas
471875f85c update codebase renamed dataToken baseToken etc 2022-01-17 15:05:05 +02:00
Bogdan Fazakas
d91dd5a8a8 update provider tests 2022-01-12 11:46:59 +02:00
Bogdan Fazakas
456699f34d updated aquarius class methods 2022-01-12 11:18:03 +02:00
Bogdan Fazakas
21bebf4747 updated provider order for params 2022-01-12 10:15:53 +02:00
Bogdan Fazakas
9076ae05b1 merge v4main into default-http-fixes 2022-01-12 09:57:52 +02:00
80e2d21c20 single tsconfig & mocharc for all tests, simplify commands 2022-01-11 17:52:28 +00:00