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

66 Commits

Author SHA1 Message Date
Alex Coseru
84e39d7222
fix metamask bug (#557)
* fix metamask bug

* more estimateGas updates
2021-01-21 17:12:36 +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
alexcos20
694cde2a13 more fixes 2020-10-29 04:01:19 -07:00
alexcos20
9900bb4353 more gas optimisations 2020-10-29 03:33:32 -07:00
alexcos20
03665f2639 gas optimisations 2020-10-26 03:49:22 -07:00
Ahmed Ali
c4d6b48896 fix DataTokens 2020-10-21 09:52:43 +02:00
Ahmed Ali
d574782b14 handle error messages 2020-10-15 17:52:33 +02:00
d0b4bb537e
metadataStore → metadataCache 2020-10-13 14:49:12 +02:00
alexcos20
ea352125e2 fix history 2020-10-12 12:01:54 -07:00
alexcos20
007328d74e update getOrderHistory to generate signature 2020-10-12 08:15:08 -07:00
alexcos20
b78a57c59a update to contracts 0.5.3 2020-10-02 05:44:09 -07:00
alexcos20
2e04ece81c fix lint 2020-10-01 04:00:27 -07:00
alexcos20
9b7f911934 bump contracts to 0.5.1 2020-10-01 03:57:14 -07:00
alexcos20
fa2a1f8944 remove need of an account for some calls 2020-09-30 23:10:53 -07:00
905fd99496
update tests 2020-09-23 21:39:35 +02:00
alexcos20
e563f556d1 fix all tests 2020-09-23 05:45:48 -07:00
alexcos20
6b2c7ea4ce use dtAddress as did 2020-09-23 00:36:46 -07:00
2ac93392b4
add data token address validity check 2020-09-18 10:10:02 +02:00
alexcos20
0b4417d264 fix tests 2020-09-16 05:44:26 -07:00
alexcos20
fc6a515630 update contracts & provider 2020-09-16 05:19:15 -07:00
alexcos20
bedd07ed2a search for previous valid orders 2020-09-11 05:58:42 -07:00
alexcos20
60fc9530ae add startOrder 2020-09-11 02:41:20 -07:00
d154cffc17
lots of typings 2020-09-08 14:47:43 +02:00
0699792a14
set default data token cap to 1000 2020-09-04 10:28:42 +02:00
f834be3520
move defaults into datatokens.create() 2020-09-03 11:28:50 +02:00
0290f57bf4
prototype auto-generating data token name 2020-09-02 16:26:42 +02:00
alexcos20
220261cada update to contracts 0.4.0 2020-08-30 23:56:25 -07:00
76423a4ff8
never stop typing 2020-08-19 13:41:55 +02:00
ad0922d7a5
fix ABI typings 2020-08-19 13:23:28 +02:00
bbd465992b
lots of ABI typings 2020-08-19 13:05:56 +02:00
ffad644d73
artifacts path fix 2020-08-18 12:00:40 +02:00
7b1403c854
formatting and typings and lint fixes 2020-08-18 11:23:46 +02:00
alexcos20
a550018864 lint 2020-07-21 04:42:12 -07:00
alexcos20
c71fd9f456 fix transfers 2020-07-21 04:38:06 -07:00
Alex Coseru
a1734354bf
Update Datatokens.ts
add From
2020-07-21 13:55:01 +03:00
Alex Coseru
60ae6735c8
Update Datatokens.ts 2020-07-15 17:38:29 +03:00
Alex Coseru
8184bc4a82
Update Datatokens.ts 2020-07-15 17:37:14 +03:00
Alex Coseru
a643bfcb27
Update Datatokens.ts 2020-07-15 17:34:40 +03:00
Alex Coseru
8b275367a2
Merge branch 'develop' into feature/Fix_Incorrect-datatype-for-amount-in-datatoken.transferFrom 2020-07-15 14:24:47 +03:00
alexcos20
a3824f91c6 always use Strings in Datatoken class 2020-07-15 04:22:37 -07:00
Ahmed Ali
edb2d53fe3 fix (#152) 2020-07-15 12:37:45 +02:00
alexcos20
dc5b252842 fixes #144 2020-07-14 03:44:52 -07:00
alexcos20
ed8eef68d8 resolve comments 2020-07-14 03:19:16 -07:00
alexcos20
1b2522e679 moved everything to wei 2020-07-14 02:33:54 -07:00
alexcos20
82178ee3dc added toWei/fromWei in datatokens 2020-07-13 11:13:36 -07:00
Ahmed Ali
5f95c67e3e fix lint 2020-06-29 18:20:56 +02:00
Ahmed Ali
6adac7b6f5 fix allowance in datatoken 2020-06-29 18:18:57 +02:00
Ahmed Ali
1a7799a2c5 fix more issues 2020-06-19 10:37:37 +02:00
Ahmed Ali
4554f420e3 fix more linting errors 2020-06-19 10:29:01 +02:00