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
dependabot[bot]
86d1db4089
Bump ejs from 3.1.6 to 3.1.7 ( #1444 )
...
Bumps [ejs](https://github.com/mde/ejs ) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases )
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.7 )
---
updated-dependencies:
- dependency-name: ejs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 00:34:54 +02:00
dependabot[bot]
f934fe5796
Bump @types/node from 17.0.25 to 17.0.29 ( #1441 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 17.0.25 to 17.0.29.
- [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-27 22:33:43 +02:00
dependabot[bot]
c27153f3ae
Bump microbundle from 0.14.2 to 0.15.0 ( #1442 )
...
Bumps [microbundle](https://github.com/developit/microbundle ) from 0.14.2 to 0.15.0.
- [Release notes](https://github.com/developit/microbundle/releases )
- [Changelog](https://github.com/developit/microbundle/blob/master/CHANGELOG.md )
- [Commits](https://github.com/developit/microbundle/compare/v0.14.2...v0.15.0 )
---
updated-dependencies:
- dependency-name: microbundle
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-27 22:33:22 +02:00
dependabot[bot]
8fb467f062
Bump @types/mocha from 9.1.0 to 9.1.1 ( #1431 )
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: "@types/mocha"
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-22 08:12:23 +03:00
dependabot[bot]
7817725cfe
Bump @truffle/hdwallet-provider from 2.0.6 to 2.0.7 ( #1432 )
...
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider ) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/trufflesuite/truffle/releases )
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.0.7/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-22 03:38:45 +02:00
mihaisc
e72055f4c7
Release 1.0.0-next.37
v1.0.0-next.37
2022-04-20 17:39:27 +03:00
Miquel A. Cabot
b259b16d45
use getConfig(network) function to get proper configuration
2022-04-20 16:33:06 +02:00
mihaisc
00e2edc3b0
test old package lock ( #1429 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-20 17:24:07 +03:00
mihaisc
548f31ced3
fix ( #1426 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-20 16:49:27 +03:00
Bogdan Fazakas
f96ccb0c56
Add reuseOrder method ( #1421 )
...
* added reuseOrder method
* wip add test to reuseOrder
* update test
* check also ProviderFee event
2022-04-20 16:42:07 +03:00
dependabot[bot]
bd5202ead9
Bump @types/node from 17.0.24 to 17.0.25 ( #1423 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 17.0.24 to 17.0.25.
- [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-20 10:52:03 +03:00
dependabot[bot]
a92ad7115b
Bump @types/node from 17.0.23 to 17.0.24 ( #1422 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 17.0.23 to 17.0.24.
- [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-15 07:25:26 +03:00
c4a5f9e5ad
Release 1.0.0-next.36
v1.0.0-next.36
2022-04-15 00:48:49 +01:00
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
alexcos20
80bf5cc33f
Release 1.0.0-next.35
v1.0.0-next.35
2022-04-14 08:21:15 -07:00
Alex Coseru
29c5c8b60e
fix mm signature ( #1420 )
...
* fix mm signature
2022-04-14 18:19:56 +03:00
Soon Huat
628c2fc1fc
setPaymentCollector apply same checking as contract ( #1396 )
...
* setPaymentCollector apply same checking as contract
* unit test for setPaymentCollector for owner and erc20 deployer
* setPaymentCollector amend redundent truth check on boolean value
Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
2022-04-14 15:43:01 +01:00
alexcos20
58ced6cb61
Release 1.0.0-next.34
v1.0.0-next.34
2022-04-14 06:53:51 -07:00
Alex Coseru
e964b2a4a4
refactor signatures ( #1395 )
...
* refactor signatures
2022-04-14 16:52:12 +03:00
dependabot[bot]
4dba394fbc
Bump @types/chai from 4.3.0 to 4.3.1 ( #1417 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: "@types/chai"
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-14 07:05:33 +03:00
dependabot[bot]
0ffa3edb2f
Bump @truffle/hdwallet-provider from 2.0.5 to 2.0.6 ( #1418 )
...
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider ) from 2.0.5 to 2.0.6.
- [Release notes](https://github.com/trufflesuite/truffle/releases )
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.0.6/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-14 06:52:41 +03:00
Miquel A. Cabot
d6f2daa522
Merge pull request #1382 from oceanprotocol/issue-1353-rewrite-router-test
...
Issue-#1353: Rewrite Router test
2022-04-12 09:42:05 +02:00
Miquel A. Cabot
21a7b739f4
Merge pull request #1414 from oceanprotocol/issue-1413-refactor-zero-address-constant
...
Issue-#1413: Refactor ZERO_ADDRESS constant
2022-04-12 09:41:10 +02:00
Miquel A. Cabot
db866d271c
Merge pull request #1411 from oceanprotocol/issue-1410-export-router-and-sidestaking-classes
...
Issue-#1410: Export Router and SideStaking classes
2022-04-12 09:41:02 +02:00
dependabot[bot]
7d3505166d
Bump prettier from 2.6.1 to 2.6.2 ( #1388 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.6.1...2.6.2 )
---
updated-dependencies:
- dependency-name: prettier
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-12 08:42:52 +03:00
dependabot[bot]
ef0bd81923
Bump release-it from 14.14.1 to 14.14.2 ( #1415 )
...
Bumps [release-it](https://github.com/release-it/release-it ) from 14.14.1 to 14.14.2.
- [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.1...14.14.2 )
---
updated-dependencies:
- dependency-name: release-it
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-12 06:31:04 +03:00
Miquel A. Cabot
ec10f43ac7
Use ZERO_ADDRESS constant in src folder files
2022-04-11 13:19:26 +02:00
Miquel A. Cabot
56740e892a
export Router and Sidestaking classes
2022-04-11 12:25:21 +02:00
dependabot[bot]
149ea08371
Bump typedoc from 0.22.14 to 0.22.15 ( #1407 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.22.14 to 0.22.15.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.14...v0.22.15 )
---
updated-dependencies:
- dependency-name: typedoc
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-11 07:32:30 +03:00
dependabot[bot]
15bc9d83c0
Bump @truffle/hdwallet-provider from 2.0.4 to 2.0.5 ( #1408 )
...
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle/tree/HEAD/packages/hdwallet-provider ) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/trufflesuite/truffle/releases )
- [Commits](https://github.com/trufflesuite/truffle/commits/@truffle/hdwallet-provider@2.0.5/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-11 07:32:17 +03:00
dependabot[bot]
bec034d04c
Bump release-it from 14.14.0 to 14.14.1 ( #1405 )
...
Bumps [release-it](https://github.com/release-it/release-it ) from 14.14.0 to 14.14.1.
- [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.0...14.14.1 )
---
updated-dependencies:
- dependency-name: release-it
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-11 07:31:38 +03:00
dependabot[bot]
a9129d9a89
Bump typedoc from 0.22.13 to 0.22.14 ( #1402 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.22.13 to 0.22.14.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.13...v0.22.14 )
---
updated-dependencies:
- dependency-name: typedoc
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-08 12:23:29 +01:00
dependabot[bot]
49b1b7d881
Bump web3 from 1.7.1 to 1.7.3 ( #1403 )
...
Bumps [web3](https://github.com/ethereum/web3.js ) from 1.7.1 to 1.7.3.
- [Release notes](https://github.com/ethereum/web3.js/releases )
- [Changelog](https://github.com/ChainSafe/web3.js/blob/v1.7.3/CHANGELOG.md )
- [Commits](https://github.com/ethereum/web3.js/compare/v1.7.1...v1.7.3 )
---
updated-dependencies:
- dependency-name: web3
dependency-type: direct:production
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-08 12:22:56 +01:00
Miquel A. Cabot
508e1379bc
refactor ercparams constant
2022-04-07 20:52:04 +02:00
Miquel A. Cabot
ecaf7ec30e
Merge branch 'v4main' into issue-1353-rewrite-router-test
2022-04-06 17:20:00 +02:00