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

498 Commits

Author SHA1 Message Date
lacoop6tu
42eb819765 complete NFTFactory class, add some tests 2021-10-21 10:47:21 -05:00
Bogdan Fazakas
793e54d366 Merge branch 'v4main' into feature/integrate-erc721-erc20-template-contracts 2021-10-21 12:11:27 +03:00
Bogdan Fazakas
bce0efc67e fixed lint in NFTFactory test file 2021-10-21 11:04:48 +03:00
lacoop6tu
2bd5d55198 add more NFTFactory test 2021-10-20 16:09:18 -05:00
lacoop6tu
3c638ab597 fix lint, complete deployment script, add initial instance test 2021-10-20 15:29:04 -05:00
Bogdan Fazakas
1352a1c5d2 added handlers for all methods in erc721 template contract 2021-10-20 17:24:07 +03:00
lacoop6tu
3e247d46bf add contracts deployment for test, add initial NFTFactory.test.ts 2021-10-19 13:58:04 -05:00
Bogdan Fazakas
a6ce03439f added test folder 2021-10-13 09:55:18 +03:00
Bogdan Fazakas
3e9991e6f0 initial backbone commit 2021-10-13 09:10:55 +03:00
Alex Coseru
3bea2aaf90
Bump aqua queries
* remove aqua queries

* remove transformResult

* fix metadatacache test

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

* remove unused

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

* more commits

* move metadatacache to integration

* fix

* fix lint

* great improve an integration tests speed

* force aqua 3.1 on barge

* small typo fix

* fix ci

* fix import instead of require

* add ocean.assets.query

* Update ci.yml

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-09-24 11:55:28 +03:00
Bogdan Fazakas
7e88ef9fd4
Fix token amount - token allowance comparison (#1012)
* fixed allowence check in approve and added allowance check in addOceanLiquidity method

* added more dtAllowance checks

* renamed constants and some code cleanup

* return allowance if bigger than amount and delete upper methods checks
2021-09-22 09:28:45 +02:00
d8914a8380
Replace Travis with GitHub Actions (#847)
* GitHub CI actions

* add coverage job

* test run tweaks

* windows build fix

* barge tweaks

* deal with env vars

* add npm publish job

* trial & error

* remove Travis

* publish as single workflow

* handle Docker Hub login

* maybe preparing ~/.ocean is needed

* downgrade barge contracts, run with barge defaults

* put back ADDRESS_FILE env var

* AQUARIUS_URI test

* ddo creation test logging

* make failing DDO creation test actually fail

* separate unit/integration Asset tests

* set AQUARIUS_URI again

* readme updates

* prepare ~/.ocean folder

* separate tests into multiple jobs

* address.json debugging

* windows build fixes

* address.json trials

* env var expansion workaround

* cleanup

* debug coverage output

* fix coverage

* bump codeclimate-action

* use barge instead of ganache (#855)

* use barge instead of ganache

* small unit test job cleanup

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* barge detach workaround

Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
2021-06-22 12:21:27 +02:00
Alex Coseru
5555b2a73a
Add order checks for credentials (#827)
* Add order checks for credentials
2021-06-03 14:14:01 +03:00
kianyee
0f46959dfa
Feature/credentials support in asset (#787)
* [KianYee] Add credentials in DDO

Co-authored-by: alexcos20 <alex.coseru@gmail.com>
2021-06-02 16:51:13 +03:00
Kris Liew
2fb83f97a9
Add ocean.assets.isConsumable function (#786)
* isDisable check

* check isConsumable for order()

* Attempt add integration test

* feedback change

* Replace 'isDisabled' with 'isOrderDisabled'

* Update integration test

* Attempt 1 fix integration test

Co-authored-by: KRIS LIEW <iforte.intellege.liew@daimler.com>
2021-06-02 20:18:58 +08:00
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
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
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
alexcos20
52687d4bc4 small improvement on FRE tests 2021-03-02 01:40:03 -08:00
Alex Coseru
8cc1ef3e37
add minter roles (#600) 2021-02-10 19:35:04 +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
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
alexcos20
6424caca69 add computeBuySlippage and computeSellSlippage 2020-11-16 04:20:06 -08:00
alexcos20
ab0d0400b1 fix typo 2020-11-16 02:49:58 -08:00
alexcos20
3f87aa8589 add buyDTWithExactOcean function 2020-11-16 02:48:23 -08:00
alexcos20
d361298039 logs/history speed optimizations 2020-11-06 07:34:23 -08:00
alexcos20
336054a663 fix DTPrice if amount is too high 2020-10-30 04:09:12 -07:00
alexcos20
6ba0ae6808 fix namings and add did 2020-10-29 04:50:47 -07:00
alexcos20
087b021c17 add getPoolsSharesbyAddress 2020-10-29 04:35:30 -07:00
alexcos20
c4fb445999 fix pool pricing 2020-10-26 06:33:15 -07:00
Ahmed Ali
57b5f83cbc
Merge branch 'main' into fix/logger 2020-10-21 15:35:09 +02:00
Alex Coseru
5577e1d594
Merge pull request #390 from oceanprotocol/feature/confighelper_refactor
refactor confighelper to use ocean-contracts
2020-10-21 16:26:31 +03:00
Ahmed Ali
59db6740fc
Merge branch 'main' into fix/logger 2020-10-21 14:30:12 +02:00
alexcos20
4db0a0d43d pool.create returns txid 2020-10-21 04:38:19 -07:00
alexcos20
7558df6aa8 refactor confighelper to use ocean-contracts 2020-10-21 04:28:06 -07:00
alexcos20
93f0d53c5a exchange.create returns TransactionReceipt 2020-10-21 03:38:03 -07:00
alexcos20
11271a970b change exchange.create to allow subscribe&approve 2020-10-21 03:29:27 -07:00
alexcos20
dec9c57c94 make pool.create subscribable 2020-10-21 02:27:58 -07:00
Ahmed Ali
bdd1483668 uncomment the sleep function 2020-10-21 10:35:20 +02:00
Ahmed Ali
418305c0f1 minor test cleanup 2020-10-21 10:16:31 +02:00
Ahmed Ali
c4d6b48896 fix DataTokens 2020-10-21 09:52:43 +02:00
Ahmed Ali
08019706e9 fix Balancer pool 2020-10-20 14:59:49 +02:00
Ahmed Ali
ca733f2a06 fix error messages 2020-10-20 11:45:06 +02:00
Ahmed Ali
b01908a7bd fix test for FixedRateExchange 2020-10-19 21:33:17 +02:00
alexcos20
b34166732f add test 2020-10-15 23:04:04 -07:00
b04cfc4a62
Merge pull request #362 from oceanprotocol/fix/assertion-in-tests
Fix/tests-assertion
2020-10-15 11:53:18 +02:00
Ahmed Ali
d72bb39a96 minor fix in tests: assert from chai 2020-10-14 15:16:40 +02:00
alexcos20
452b0b6b78 add missing test 2020-10-14 03:04:24 -07:00