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

2352 Commits

Author SHA1 Message Date
Miquel A. Cabot
b3102c78c1 add decimals() function 2022-05-27 10:55:12 +02:00
Miquel A. Cabot
a7c0cff63c fix decimals issue 2022-05-26 19:04:24 +02:00
Miquel A. Cabot
b44f1f802a use balance() and transfer() functions 2022-05-26 13:28:53 +02:00
Miquel A. Cabot
03f3d3b7d5 use balance() function 2022-05-26 13:10:18 +02:00
Miquel A. Cabot
d77966a646 initialize accounts with null 2022-05-23 15:54:21 +02:00
Miquel A. Cabot
2ff2a21809 Merge branch 'v4main' into issue-1349-rewrite-pool-test 2022-05-17 12:26:14 +02:00
alexcos20
41e68657b9 Release 1.0.0-next.43 v1.0.0-next.43 2022-05-17 02:11:12 -07:00
Alex Coseru
bf060948a8
bump contracts to alpha.33 (#1472)
* bump contracts
* remove getOPCCollector
2022-05-17 12:04:51 +03:00
dependabot[bot]
6b02337869
Bump @types/node from 17.0.32 to 17.0.34 (#1471)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.32 to 17.0.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-17 12:01:15 +03:00
Miquel A. Cabot
fda1203068
Merge pull request #1387 from oceanprotocol/add-transfer-function-to-tokenutils
Add transfer() function to TokenUtils
2022-05-16 16:34:01 +02:00
Miquel A. Cabot
cab4d5b1a7 restore estApprove() function and add estTransfer() function 2022-05-16 15:48:40 +02:00
Miquel A. Cabot
0a0d96aa01 Merge branch 'v4main' into add-transfer-function-to-tokenutils 2022-05-16 15:23:39 +02:00
Miquel A. Cabot
6016c66c07
Merge pull request #1394 from oceanprotocol/issue-1391-generic-estimategas-function
Issue-#1391: Add generic estimateGas() function
2022-05-16 13:10:01 +02:00
Miquel A. Cabot
6f74add54b revert console.log estimateGas() result 2022-05-12 21:33:16 +02:00
Miquel A. Cabot
079a583041 console.log estimateGas() result 2022-05-12 19:02:44 +02:00
Miquel A. Cabot
b3f3551f83 Merge branch 'v4main' into issue-1349-rewrite-pool-test 2022-05-12 17:51:06 +02:00
Miquel A. Cabot
f1f5792114 Merge branch 'v4main' into add-transfer-function-to-tokenutils 2022-05-12 17:49:16 +02:00
Miquel A. Cabot
fa6c27292c Merge branch 'v4main' into issue-1391-generic-estimategas-function 2022-05-12 17:28:30 +02:00
dependabot[bot]
cac327c7bd
Bump @types/node from 17.0.31 to 17.0.32 (#1465)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.31 to 17.0.32.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-11 07:08:07 +03:00
alexcos20
56f992e760 Release 1.0.0-next.42 v1.0.0-next.42 2022-05-09 23:04:58 -07:00
Alex Coseru
8de0ae19a1
bump contracts to alpha.32 (#1464) 2022-05-10 09:03:29 +03:00
Alex Coseru
6d9f9fed92
simple compute flow (#1458)
* refactor compute flow
2022-05-10 08:52:24 +03:00
Miquel A. Cabot
b66fffc635
add optional decimals parameter at joinswapExternAmountIn() and exitswapPoolAmountIn() (#1461) 2022-05-09 17:41:11 +03:00
mihaisc
1d327bf100
Release 1.0.0-next.41 v1.0.0-next.41 2022-05-06 11:54:12 +03:00
0e261b4dec
Lock microbundle to v0.14.2 (#1457)
* lock microbundle to v0.14.2

* put back js extension for default export
2022-05-06 11:44:52 +03:00
Miquel A. Cabot
2632c12271
Merge pull request #1452 from oceanprotocol/issue-1345-rewrite-provider-test
Issue-#1345: Rewrite Provider test
2022-05-06 09:00:46 +02:00
7782bf49b3
Release 1.0.0-next.40 v1.0.0-next.40 2022-05-05 16:42:21 +01:00
0e3be3c4f9
update default ESM export (#1456) 2022-05-05 16:40:31 +01:00
af5137c370
Release 1.0.0-next.39 v1.0.0-next.39 2022-05-05 12:55:52 +01:00
Miquel A. Cabot
b40f52d6a6 add assertion 2022-05-04 18:25:12 +02:00
Miquel A. Cabot
997bbf57b4 test getComputeEnvironments() 2022-05-04 18:13:36 +02:00
Miquel A. Cabot
f8a42d9559
Issue-#1409: Excessive contract calls (#1424)
* add decimals parameter to unitsToAmount() and amountToUnits()

* unify use of amountToUnits() and unitsToAmount()

* use tokenDecimals in TokenUtils

* add tokenDecimals to functions in SideStaking

* add parameters to doc comments

* calculate amountToUnits and unitsToAmount using  decimals in FixedRateExchange

* remove unused amountToUnits() function from SideStaking

* use decimals in unitsToAmount() function in Pool

* add tokenInDecimals and tokenOutDecimals to TokenInOutMarket interface

* use decimals in amountToUnits() function in Pool

* fix errors related to pool decimals

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-03 19:06:39 +03:00
Miquel A. Cabot
9cb1ea51a8
Merge pull request #1430 from oceanprotocol/issue-1425-use-proper-config-in-constructors
Issue-#1425: Use proper config in constructors
2022-05-03 16:08:04 +02:00
mihaisc
1b93d86df5
fix test
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-03 13:32:43 +03:00
mihaisc
60ffa8b271
fix test
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-03 13:27:05 +03:00
mihaisc
2d744c3dd2
change param order
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-03 13:17:48 +03:00
mihaisc
c7dfe50b92
Merge branch 'v4main' into issue-1425-use-proper-config-in-constructors 2022-05-03 13:01:01 +03:00
dependabot[bot]
3457020e3a
Bump release-it from 14.14.2 to 15.0.0 (#1449)
Bumps [release-it](https://github.com/release-it/release-it) from 14.14.2 to 15.0.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.14.2...15.0.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 07:10:19 +03:00
dependabot[bot]
e422ea707f
Bump mocha from 9.2.2 to 10.0.0 (#1450)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.0.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 06:39:06 +03:00
dependabot[bot]
1282d47f0f
Bump @types/node from 17.0.30 to 17.0.31 (#1451)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.30 to 17.0.31.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 06:38:59 +03:00
alexcos20
f9db9cea31 Release 1.0.0-next.38 v1.0.0-next.38 2022-04-29 06:27:00 -07:00
Alex Coseru
77fe186949
bump to contracts alpha 31 (#1448)
* bump to contracts alpha 31
2022-04-29 16:25:42 +03:00
dependabot[bot]
2b27a0f7e9
Bump @truffle/hdwallet-provider from 2.0.7 to 2.0.8 (#1445)
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.0.8/packages/hdwallet-provider)

---
updated-dependencies:
- dependency-name: "@truffle/hdwallet-provider"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 08:25:16 +03:00
dependabot[bot]
3cd13a3bae
Bump typescript from 4.6.3 to 4.6.4 (#1446)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 08:25:09 +03:00
dependabot[bot]
d49f4e9ca2
Bump @types/node from 17.0.29 to 17.0.30 (#1447)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.29 to 17.0.30.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 08:25:00 +03:00
Miquel A. Cabot
58ce4ee358 Merge branch 'v4main' into issue-1425-use-proper-config-in-constructors 2022-04-28 18:03:05 +02:00
Miquel A. Cabot
bedbb5acc8 Merge branch 'v4main' into issue-1349-rewrite-pool-test 2022-04-28 17:44:25 +02:00
Miquel A. Cabot
755e045153 simplify constants 2022-04-28 17:44:17 +02:00
Miquel A. Cabot
5289996937 rewrite estimateGas for reuseOrder() 2022-04-28 17:37:08 +02:00
Miquel A. Cabot
0fb3b8ac40 Merge branch 'v4main' into issue-1391-generic-estimategas-function 2022-04-28 17:21:07 +02:00