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

2305 Commits

Author SHA1 Message Date
Miquel A. Cabot
9ec4b081d7 Merge branch 'v4main' into issue-1350-rewrite-dispenser-test 2022-05-12 17:53:51 +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
12c73e6d5e Merge branch 'v4main' into issue-1350-rewrite-dispenser-test 2022-04-28 18:01:31 +02:00
Miquel A. Cabot
edf2c81eae simplify constants 2022-04-28 18:01:25 +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