Compare commits

...

138 Commits

Author SHA1 Message Date
Matthias Kretschmann da3b1fe3a6
Merge pull request #487 from oceanprotocol/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-11 10:41:31 +02:00
dependabot[bot] 72e2637ac4
Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-11 04:22:43 +00:00
Ahmed Ali 8831fd7a77
Merge pull request #481 from oceanprotocol/dependabot/npm_and_yarn/release-it/bumper-1.4.1
Bump @release-it/bumper from 1.4.0 to 1.4.1
2020-09-03 13:54:07 +02:00
dependabot[bot] dc37448d63
Bump @release-it/bumper from 1.4.0 to 1.4.1
Bumps [@release-it/bumper](https://github.com/release-it/bumper) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/release-it/bumper/releases)
- [Commits](https://github.com/release-it/bumper/compare/1.4.0...1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-24 01:09:34 +00:00
Matthias Kretschmann bfe9b228d8
Merge pull request #480 from oceanprotocol/dependabot/npm_and_yarn/mock-local-storage-1.1.15
Bump mock-local-storage from 1.1.12 to 1.1.15
2020-08-17 09:27:35 +02:00
dependabot[bot] 25e07a61c8
Bump mock-local-storage from 1.1.12 to 1.1.15
Bumps [mock-local-storage](https://github.com/letsrock-today/mock-local-storage) from 1.1.12 to 1.1.15.
- [Release notes](https://github.com/letsrock-today/mock-local-storage/releases)
- [Commits](https://github.com/letsrock-today/mock-local-storage/compare/v1.1.12...v1.1.15)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-17 01:09:14 +00:00
Matthias Kretschmann 942b9ce813
Merge pull request #476 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.7
Bump typescript from 3.9.6 to 3.9.7
2020-08-10 09:52:22 +02:00
dependabot[bot] ad10c580e6
Bump typescript from 3.9.6 to 3.9.7
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 3.9.7.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.6...v3.9.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-10 01:05:47 +00:00
Matthias Kretschmann a13a3a3652
Merge pull request #474 from oceanprotocol/dependabot/npm_and_yarn/webpack-4.44.1
Bump webpack from 4.43.0 to 4.44.1
2020-08-03 08:36:41 +02:00
dependabot[bot] ecdfec41cc
Bump webpack from 4.43.0 to 4.44.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.43.0 to 4.44.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.43.0...v4.44.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-03 01:11:30 +00:00
Matthias Kretschmann 088e8d9ab6
Merge pull request #471 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.26
Bump @types/node from 14.0.14 to 14.0.26
2020-07-27 11:28:07 +02:00
dependabot[bot] 9c8dc7c16e
Bump @types/node from 14.0.14 to 14.0.26
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.14 to 14.0.26.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-27 01:51:36 +00:00
Matthias Kretschmann 57bc1c10a3
Merge pull request #468 from oceanprotocol/dependabot/npm_and_yarn/types/mocha-8.0.0
Bump @types/mocha from 7.0.2 to 8.0.0
2020-07-13 10:35:03 +02:00
dependabot[bot] e424b737f8
Bump @types/mocha from 7.0.2 to 8.0.0
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 7.0.2 to 8.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-13 01:06:20 +00:00
Matthias Kretschmann 765aa6831f
Merge pull request #467 from oceanprotocol/dependabot/npm_and_yarn/typedoc-0.17.8
Bump typedoc from 0.17.7 to 0.17.8
2020-07-06 10:28:23 +02:00
Matthias Kretschmann 63e3f2ab90
Merge pull request #466 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.6
Bump typescript from 3.9.5 to 3.9.6
2020-07-06 10:28:08 +02:00
dependabot[bot] dad24646c9
Bump typedoc from 0.17.7 to 0.17.8
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.17.7 to 0.17.8.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.17.7...0.17.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-06 01:13:25 +00:00
dependabot[bot] ad988df63f
Bump typescript from 3.9.5 to 3.9.6
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.5 to 3.9.6.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-06 01:12:23 +00:00
Matthias Kretschmann cb8b41a6aa
Merge pull request #464 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.14
Bump @types/node from 14.0.13 to 14.0.14
2020-06-29 09:48:54 +02:00
Matthias Kretschmann 982c65ae7b
Merge pull request #463 from oceanprotocol/dependabot/npm_and_yarn/uuid-8.2.0
Bump uuid from 8.1.0 to 8.2.0
2020-06-29 09:48:36 +02:00
dependabot[bot] b03fe9dd9e
Bump @types/node from 14.0.13 to 14.0.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.13 to 14.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-29 01:08:59 +00:00
dependabot[bot] 3cc297be56
Bump uuid from 8.1.0 to 8.2.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-29 01:08:01 +00:00
Matthias Kretschmann 5c38bc228d
Merge pull request #461 from oceanprotocol/dependabot/npm_and_yarn/release-it/bumper-1.4.0
Bump @release-it/bumper from 1.1.1 to 1.4.0
2020-06-22 08:20:03 +02:00
Matthias Kretschmann 0b0ca0c99a
Merge pull request #460 from oceanprotocol/dependabot/npm_and_yarn/webpack-cli-3.3.12
Bump webpack-cli from 3.3.11 to 3.3.12
2020-06-22 08:19:44 +02:00
dependabot[bot] 46f4c658ed
Bump @release-it/bumper from 1.1.1 to 1.4.0
Bumps [@release-it/bumper](https://github.com/release-it/bumper) from 1.1.1 to 1.4.0.
- [Release notes](https://github.com/release-it/bumper/releases)
- [Commits](https://github.com/release-it/bumper/compare/1.1.1...1.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-22 01:04:23 +00:00
dependabot[bot] c250e10c0b
Bump webpack-cli from 3.3.11 to 3.3.12
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.11 to 3.3.12.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/v3.3.12/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.11...v3.3.12)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-22 01:03:31 +00:00
Matthias Kretschmann 25b329bdda
Merge pull request #457 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.13
Bump @types/node from 14.0.11 to 14.0.13
2020-06-15 10:47:26 +02:00
Matthias Kretschmann 945a2243ce
Merge pull request #458 from oceanprotocol/dependabot/npm_and_yarn/auto-changelog-2.1.0
Bump auto-changelog from 2.0.0 to 2.1.0
2020-06-15 10:47:09 +02:00
Matthias Kretschmann 2aaca21ea3
Merge pull request #456 from oceanprotocol/dependabot/npm_and_yarn/eslint-plugin-prettier-3.1.4
Bump eslint-plugin-prettier from 3.1.3 to 3.1.4
2020-06-15 10:46:50 +02:00
dependabot[bot] 39a034173a
Bump auto-changelog from 2.0.0 to 2.1.0
Bumps [auto-changelog](https://github.com/CookPete/auto-changelog) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/CookPete/auto-changelog/releases)
- [Changelog](https://github.com/CookPete/auto-changelog/blob/master/CHANGELOG.md)
- [Commits](https://github.com/CookPete/auto-changelog/compare/v2.0.0...v2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:05:31 +00:00
dependabot[bot] 9175f50ece
Bump @types/node from 14.0.11 to 14.0.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.11 to 14.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:05:01 +00:00
dependabot[bot] 94edfda748
Bump eslint-plugin-prettier from 3.1.3 to 3.1.4
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.3...v3.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:04:35 +00:00
Matthias Kretschmann 392b4d19f7
Merge pull request #454 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.11
Bump @types/node from 14.0.10 to 14.0.11
2020-06-08 12:17:45 +02:00
Ahmed Ali 8717c7832a
Merge pull request #453 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.5
Bump typescript from 3.9.3 to 3.9.5
2020-06-08 10:50:05 +02:00
dependabot[bot] c8e00182d6
Bump @types/node from 14.0.10 to 14.0.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.10 to 14.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:02:58 +00:00
dependabot[bot] f4771d77e1
Bump typescript from 3.9.3 to 3.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:02:26 +00:00
Matthias Kretschmann c033f666cd
Merge pull request #452 from oceanprotocol/dependabot/add-v2-config-file
Create Dependabot config file
2020-06-04 08:50:18 +02:00
dependabot-preview[bot] 0c6e298545
Create Dependabot config file 2020-06-04 06:14:42 +00:00
dependabot-preview[bot] edc457bae8
Merge pull request #451 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.10 2020-06-04 06:13:09 +00:00
dependabot-preview[bot] dbee539a95
Bump @types/node from 14.0.9 to 14.0.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.9 to 14.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-04 01:17:40 +00:00
dependabot-preview[bot] a22e59ebc8
Merge pull request #450 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.9 2020-06-02 07:03:17 +00:00
dependabot-preview[bot] fa2485ee2e
Merge pull request #449 from oceanprotocol/dependabot/npm_and_yarn/nyc-15.1.0 2020-06-02 07:03:02 +00:00
dependabot-preview[bot] 02434725ac
Bump @types/node from 14.0.5 to 14.0.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.5 to 14.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 01:16:39 +00:00
dependabot-preview[bot] 256b36e005
Bump nyc from 15.0.1 to 15.1.0
Bumps [nyc](https://github.com/istanbuljs/nyc) from 15.0.1 to 15.1.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v15.0.1...v15.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:20:37 +00:00
dependabot-preview[bot] 111fb2c3f6
Merge pull request #447 from oceanprotocol/dependabot/npm_and_yarn/ts-node-8.10.2 2020-05-29 07:59:57 +00:00
dependabot-preview[bot] 2d75530af9
Bump ts-node from 8.10.1 to 8.10.2
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.10.1 to 8.10.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v8.10.1...v8.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-29 01:18:04 +00:00
Matthias Kretschmann 9b03c9da6c
Merge pull request #430 from oceanprotocol/feature/remove-codacy
Remove codacy & greenkeeper
2020-05-27 11:02:35 +02:00
Matthias Kretschmann 8e3a03d4c7
roll back Node.js version 2020-05-27 10:31:56 +02:00
Matthias Kretschmann 480d6cd48d
update library.json 2020-05-27 10:29:16 +02:00
Matthias Kretschmann cc980b2f28
run against Node.js v14 2020-05-27 10:28:35 +02:00
Matthias Kretschmann ce4ee6fb5d
add dependabot badge 2020-05-27 10:28:35 +02:00
Matthias Kretschmann 9ef30c1cfd
remove codacy & greenkeeper 2020-05-27 10:28:35 +02:00
dependabot-preview[bot] d0e655b7c2
Merge pull request #446 from oceanprotocol/dependabot/npm_and_yarn/ora-4.0.4 2020-05-26 05:15:49 +00:00
dependabot-preview[bot] e157479faa
Merge pull request #445 from oceanprotocol/dependabot/npm_and_yarn/ts-node-8.10.1 2020-05-26 05:15:29 +00:00
dependabot-preview[bot] af3cdf3f8f
Bump ora from 4.0.3 to 4.0.4
Bumps [ora](https://github.com/sindresorhus/ora) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v4.0.3...v4.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 01:17:45 +00:00
dependabot-preview[bot] 83334607d5
Bump ts-node from 8.6.2 to 8.10.1
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.6.2 to 8.10.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v8.6.2...v8.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 01:16:35 +00:00
dependabot-preview[bot] fae9741db7
Merge pull request #444 from oceanprotocol/dependabot/npm_and_yarn/types/sinon-9.0.4 2020-05-25 07:18:50 +00:00
dependabot-preview[bot] 455f122b85
Merge pull request #443 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.5 2020-05-25 07:18:34 +00:00
dependabot-preview[bot] ec8fe0c310
Merge pull request #442 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.34.0 2020-05-25 07:13:09 +00:00
dependabot-preview[bot] dacf31cea7
Merge pull request #441 from oceanprotocol/dependabot/npm_and_yarn/mocha-7.2.0 2020-05-25 07:12:43 +00:00
dependabot-preview[bot] c99f7043ac
Bump @types/sinon from 9.0.3 to 9.0.4
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 9.0.3 to 9.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:20:53 +00:00
dependabot-preview[bot] b8b1d334eb
Bump @types/node from 14.0.1 to 14.0.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.1 to 14.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:20:06 +00:00
dependabot-preview[bot] 8015260b6c
Bump @typescript-eslint/eslint-plugin from 2.23.0 to 2.34.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.23.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:19:43 +00:00
dependabot-preview[bot] 9d350065ec
Bump mocha from 7.1.2 to 7.2.0
Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.2 to 7.2.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/v7.1.2...v7.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:18:29 +00:00
dependabot-preview[bot] 36377dbc35
Merge pull request #436 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/parser-2.34.0 2020-05-23 10:22:28 +00:00
Matthias Kretschmann 9b34c00835
Merge pull request #439 from oceanprotocol/dependabot/npm_and_yarn/source-map-support-0.5.19
Bump source-map-support from 0.5.16 to 0.5.19
2020-05-23 12:21:56 +02:00
dependabot-preview[bot] a54e2af319
Merge pull request #440 from oceanprotocol/dependabot/npm_and_yarn/truffle/hdwallet-provider-1.0.35 2020-05-23 10:21:35 +00:00
dependabot-preview[bot] a5a9350e90
Merge pull request #437 from oceanprotocol/dependabot/npm_and_yarn/uuid-8.1.0 2020-05-23 10:21:17 +00:00
dependabot-preview[bot] ae3a460ec9
Bump @truffle/hdwallet-provider from 1.0.33 to 1.0.35
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle) from 1.0.33 to 1.0.35.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/compare/@truffle/hdwallet-provider@1.0.33...@truffle/hdwallet-provider@1.0.35)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 01:20:15 +00:00
dependabot-preview[bot] 26e79665a7
Bump source-map-support from 0.5.16 to 0.5.19
Bumps [source-map-support](https://github.com/evanw/node-source-map-support) from 0.5.16 to 0.5.19.
- [Release notes](https://github.com/evanw/node-source-map-support/releases)
- [Commits](https://github.com/evanw/node-source-map-support/compare/v0.5.16...v0.5.19)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 01:19:12 +00:00
dependabot-preview[bot] 18804e8d07
Bump uuid from 8.0.0 to 8.1.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.0.0...v8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 01:17:00 +00:00
dependabot-preview[bot] c3c1b94d5e
Bump @typescript-eslint/parser from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 01:16:21 +00:00
dependabot-preview[bot] 9ac9c39fda
Merge pull request #432 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.3 2020-05-20 06:42:36 +00:00
dependabot-preview[bot] 44c25f4882
Merge pull request #434 from oceanprotocol/dependabot/npm_and_yarn/web3-1.2.7 2020-05-20 06:42:17 +00:00
dependabot-preview[bot] e669392e39
Merge pull request #435 from oceanprotocol/dependabot/npm_and_yarn/webpack-4.43.0 2020-05-20 06:42:03 +00:00
dependabot-preview[bot] 6509912fda
Merge pull request #433 from oceanprotocol/dependabot/npm_and_yarn/mock-local-storage-1.1.12 2020-05-20 06:41:44 +00:00
dependabot-preview[bot] f488024ea3
Merge pull request #431 from oceanprotocol/dependabot/npm_and_yarn/types/sinon-9.0.3 2020-05-20 06:41:24 +00:00
dependabot-preview[bot] e32501482a
Bump webpack from 4.42.0 to 4.43.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.42.0 to 4.43.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.42.0...v4.43.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:19:29 +00:00
dependabot-preview[bot] 33811daba0
Bump web3 from 1.2.6 to 1.2.7
Bumps [web3](https://github.com/ethereum/web3.js) from 1.2.6 to 1.2.7.
- [Release notes](https://github.com/ethereum/web3.js/releases)
- [Changelog](https://github.com/ethereum/web3.js/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/ethereum/web3.js/compare/v1.2.6...v1.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:18:41 +00:00
dependabot-preview[bot] e00cb82435
Bump mock-local-storage from 1.1.11 to 1.1.12
Bumps [mock-local-storage](https://github.com/letsrock-today/mock-local-storage) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/letsrock-today/mock-local-storage/releases)
- [Commits](https://github.com/letsrock-today/mock-local-storage/compare/v1.1.11...v1.1.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:17:53 +00:00
dependabot-preview[bot] 4994403a03
Bump typescript from 3.9.2 to 3.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.2...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:17:12 +00:00
dependabot-preview[bot] 1435fd8d81
Bump @types/sinon from 9.0.1 to 9.0.3
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 9.0.1 to 9.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:16:21 +00:00
dependabot-preview[bot] 8ce5ba9eb4
Merge pull request #427 from oceanprotocol/dependabot/npm_and_yarn/prettier-2.0.5 2020-05-19 14:33:37 +00:00
Matthias Kretschmann 8ece01d9fa
formatting updates for new prettier rules 2020-05-19 16:15:56 +02:00
dependabot-preview[bot] 1c884bcf09
Bump prettier from 1.19.1 to 2.0.5
Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 16:15:01 +02:00
Matthias Kretschmann d5d27678f0
Release 2.2.0 2020-05-19 14:44:35 +02:00
Matthias Kretschmann cd02ed79d2
Merge pull request #410 from oceanprotocol/feature/ctd_trusted_algo
add trusted algo
2020-05-19 14:42:57 +02:00
alexcos20 df95801ca8 fix tests broken due to master merge 2020-05-19 05:16:00 -07:00
Alex Coseru 3e9e809860
Merge branch 'master' into feature/ctd_trusted_algo 2020-05-19 14:09:22 +03:00
Matthias Kretschmann 7ddaf794a9
Release 2.1.3 2020-05-19 12:35:28 +02:00
Matthias Kretschmann 57ed8681c1
security fixes 2020-05-19 12:34:54 +02:00
Matthias Kretschmann b4dfd22e3b
Merge pull request #429 from oceanprotocol/dependabot/npm_and_yarn/types/node-14.0.1
Bump @types/node from 14.0.0 to 14.0.1
2020-05-19 12:31:58 +02:00
dependabot-preview[bot] 5d3bc949de
Merge pull request #428 from oceanprotocol/dependabot/npm_and_yarn/ethereum-navigator/navigator-0.5.2 2020-05-19 10:31:38 +00:00
Matthias Kretschmann 15dec9bcad
Merge pull request #426 from oceanprotocol/dependabot/npm_and_yarn/mocha-7.1.2
Bump mocha from 7.1.0 to 7.1.2
2020-05-19 12:31:23 +02:00
dependabot-preview[bot] dad78048ba
Merge pull request #425 from oceanprotocol/dependabot/npm_and_yarn/release-it/bumper-1.1.1 2020-05-19 10:30:59 +00:00
dependabot-preview[bot] 1e3c2105bb
Bump @types/node from 14.0.0 to 14.0.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.0 to 14.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 08:51:00 +00:00
dependabot-preview[bot] c0bd722872
Bump @ethereum-navigator/navigator from 0.5.0 to 0.5.2
Bumps [@ethereum-navigator/navigator](https://github.com/ethereum-navigator/navigator) from 0.5.0 to 0.5.2.
- [Release notes](https://github.com/ethereum-navigator/navigator/releases)
- [Commits](https://github.com/ethereum-navigator/navigator/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 08:49:50 +00:00
dependabot-preview[bot] 435b76358c
Bump mocha from 7.1.0 to 7.1.2
Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.0 to 7.1.2.
- [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/v7.1.0...v7.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 08:48:46 +00:00
dependabot-preview[bot] 5ad044daae
Bump @release-it/bumper from 1.1.0 to 1.1.1
Bumps [@release-it/bumper](https://github.com/release-it/bumper) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/release-it/bumper/releases)
- [Commits](https://github.com/release-it/bumper/compare/1.1.0...1.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 08:48:06 +00:00
Matthias Kretschmann 32b671e2a4
Release 2.1.2 2020-05-18 16:33:29 +02:00
dependabot-preview[bot] 27a8a37729
Merge pull request #424 from oceanprotocol/dependabot/npm_and_yarn/types/node-fetch-2.5.7 2020-05-18 14:16:26 +00:00
dependabot-preview[bot] c618c9c2a7
Merge pull request #423 from oceanprotocol/dependabot/npm_and_yarn/types/sinon-9.0.1 2020-05-18 10:44:28 +00:00
dependabot-preview[bot] c386136ecb
Merge pull request #422 from oceanprotocol/dependabot/npm_and_yarn/typedoc-0.17.7 2020-05-18 10:43:56 +00:00
dependabot-preview[bot] 52b4afe012
Merge pull request #421 from oceanprotocol/dependabot/npm_and_yarn/sinon-9.0.2 2020-05-18 10:42:46 +00:00
dependabot-preview[bot] c333fc0f49
Merge pull request #420 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.2 2020-05-18 10:42:20 +00:00
dependabot-preview[bot] 242c97317b
Bump @types/node-fetch from 2.5.5 to 2.5.7
Bumps [@types/node-fetch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node-fetch) from 2.5.5 to 2.5.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node-fetch)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:56:21 +00:00
dependabot-preview[bot] 0edb5f9171
Bump @types/sinon from 9.0.0 to 9.0.1
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 9.0.0 to 9.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:55:37 +00:00
dependabot-preview[bot] ac375919cd
Bump typedoc from 0.17.1 to 0.17.7
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.17.1 to 0.17.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/0.17.1...v0.17.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:54:53 +00:00
dependabot-preview[bot] d87eea5f99
Bump sinon from 9.0.1 to 9.0.2
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.0.1 to 9.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v9.0.1...v9.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:54:15 +00:00
dependabot-preview[bot] 99e6ca6679
Bump typescript from 3.8.3 to 3.9.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v3.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:53:15 +00:00
Matthias Kretschmann 5a15d3dc59
Merge pull request #413 from oceanprotocol/fix/timeouts
fix timeouts
2020-05-18 10:40:54 +02:00
Matthias Kretschmann d8ff20fe81
Merge pull request #419 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/parser-2.33.0
Bump @typescript-eslint/parser from 2.23.0 to 2.33.0
2020-05-17 01:44:22 +02:00
Matthias Kretschmann 8cba5fb637
Merge pull request #418 from oceanprotocol/dependabot/npm_and_yarn/nyc-15.0.1
Bump nyc from 15.0.0 to 15.0.1
2020-05-17 01:44:04 +02:00
Matthias Kretschmann 0c13406e2f
Merge pull request #417 from oceanprotocol/dependabot/npm_and_yarn/eslint-config-prettier-6.11.0
Bump eslint-config-prettier from 6.10.0 to 6.11.0
2020-05-17 01:43:42 +02:00
Matthias Kretschmann 6988767a27
Merge pull request #416 from oceanprotocol/dependabot/npm_and_yarn/whatwg-url-8.1.0
Bump whatwg-url from 8.0.0 to 8.1.0
2020-05-17 01:43:24 +02:00
Matthias Kretschmann bce6c4302f
Merge pull request #414 from oceanprotocol/dependabot/npm_and_yarn/eslint-plugin-prettier-3.1.3
Bump eslint-plugin-prettier from 3.1.2 to 3.1.3
2020-05-17 01:02:50 +02:00
Matthias Kretschmann 4c97da9856
Merge pull request #412 from oceanprotocol/greenkeeper/@types/node-14.0.0
Update @types/node to the latest version 🚀
2020-05-17 01:02:27 +02:00
Matthias Kretschmann c3bdb10617
Merge pull request #415 from oceanprotocol/dependabot/npm_and_yarn/jquery-3.5.1
[Security] Bump jquery from 3.4.1 to 3.5.1
2020-05-17 01:02:06 +02:00
dependabot-preview[bot] f34b0e0fed
Bump @typescript-eslint/parser from 2.23.0 to 2.33.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.23.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:42:46 +00:00
dependabot-preview[bot] 9c954675ed
Bump nyc from 15.0.0 to 15.0.1
Bumps [nyc](https://github.com/istanbuljs/nyc) from 15.0.0 to 15.0.1.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/compare/v15.0.0...v15.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:41:59 +00:00
dependabot-preview[bot] e922d49beb
Bump eslint-config-prettier from 6.10.0 to 6.11.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.10.0 to 6.11.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.10.0...v6.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:40:48 +00:00
dependabot-preview[bot] ca51b5ec7f
Bump whatwg-url from 8.0.0 to 8.1.0
Bumps [whatwg-url](https://github.com/jsdom/whatwg-url) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/jsdom/whatwg-url/releases)
- [Commits](https://github.com/jsdom/whatwg-url/compare/v8.0.0...v8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:40:01 +00:00
dependabot-preview[bot] f708487f41
Bump eslint-plugin-prettier from 3.1.2 to 3.1.3
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.2...v3.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:39:18 +00:00
dependabot-preview[bot] 1d0f1d4bb9
[Security] Bump jquery from 3.4.1 to 3.5.1
Bumps [jquery](https://github.com/jquery/jquery) from 3.4.1 to 3.5.1. **This update includes security fixes.**
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.4.1...3.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:39:18 +00:00
alexcos20 62e2dd640a fix travis 2020-05-16 01:28:42 -07:00
alexcos20 4e5eb1bf1c fix travis 2020-05-16 01:26:21 -07:00
alexcos20 46e3de63f1 fix timeouts 2020-05-14 06:10:37 -07:00
alexcos20 cee861cffd fix timeouts 2020-05-14 06:08:45 -07:00
greenkeeper[bot] 52d5a4c359
chore(package): update lockfile package-lock.json 2020-05-13 00:32:03 +00:00
greenkeeper[bot] 6690399045
chore(package): update @types/node to version 14.0.0 2020-05-13 00:31:59 +00:00
alexcos20 3f1d595331 fix test to use deepEqual 2020-05-10 01:08:09 -07:00
alexcos20 9a722d8686 add checks before order & tests 2020-05-10 00:49:13 -07:00
alexcos20 25413b05c7 fix compute privacy attr 2020-05-09 22:34:44 +03:00
alexcos20 c4921d129b fix lint 2020-05-09 22:20:40 +03:00
alexcos20 59e2accf68 add trusted algo 2020-05-09 22:14:57 +03:00
0x3bfc 49b61b5590
Merge pull request #407 from oceanprotocol/greenkeeper/uuid-8.0.0
Update uuid to the latest version 🚀
2020-04-30 10:35:35 +02:00
greenkeeper[bot] f7a61a811b
chore(package): update lockfile package-lock.json 2020-04-30 00:44:50 +00:00
greenkeeper[bot] 2f2c0bb3c7
fix(package): update uuid to version 8.0.0 2020-04-30 00:44:46 +00:00
40 changed files with 2642 additions and 2043 deletions

8
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: '03:00'
timezone: Europe/Berlin

View File

@ -14,17 +14,16 @@ matrix:
before_install:
- npm install -g npm
- npm install -g codacy-coverage release-it greenkeeper-lockfile ganache-cli@~6.5.1
- npm install -g ganache-cli@~6.5.1
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
before_script:
- greenkeeper-lockfile-update
- ganache-cli --port 18545 > ganache-cli.log &
- git clone https://github.com/oceanprotocol/barge
- cd barge
- export AQUARIUS_VERSION=unstable
- export BRIZO_VERSION=v0.9.5
- export AQUARIUS_VERSION=v1.1.0
- export BRIZO_VERSION=v0.9.7
- export KEEPER_VERSION=v0.13.2
- export EVENTS_HANDLER_VERSION=v0.4.7
- export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
@ -41,12 +40,10 @@ script:
- npm run test:integration:cover
after_script:
- npm run report-codacy
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.unit.json coverage/unit/lcov.info # Format unit test coverage
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.integration.json coverage/integration/lcov.info # Format integration test coverage
- ./cc-test-reporter sum-coverage coverage/codeclimate.*.json -p 2 # Sum both coverage parts into coverage/codeclimate.json
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi # Upload coverage/codeclimate.json
- greenkeeper-lockfile-upload
notifications:
email: false

View File

@ -4,6 +4,42 @@ All notable changes to this project will be documented in this file. Dates are d
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v2.2.0](https://github.com/oceanprotocol/squid-js/compare/v2.1.3...v2.2.0)
> 19 May 2020
- add trusted algo [`#410`](https://github.com/oceanprotocol/squid-js/pull/410)
- add checks before order & tests [`9a722d8`](https://github.com/oceanprotocol/squid-js/commit/9a722d8686796ec993782d21173b406971876b5b)
- fix lint [`c4921d1`](https://github.com/oceanprotocol/squid-js/commit/c4921d129bc5edf87151e6ad72108e62495a30eb)
- fix tests broken due to master merge [`df95801`](https://github.com/oceanprotocol/squid-js/commit/df95801ca8e0d142629a38d6f566b7e2fbc6c7b0)
#### [v2.1.3](https://github.com/oceanprotocol/squid-js/compare/v2.1.2...v2.1.3)
> 19 May 2020
- Bump @types/node from 14.0.0 to 14.0.1 [`#429`](https://github.com/oceanprotocol/squid-js/pull/429)
- Bump mocha from 7.1.0 to 7.1.2 [`#426`](https://github.com/oceanprotocol/squid-js/pull/426)
- security fixes [`57ed868`](https://github.com/oceanprotocol/squid-js/commit/57ed8681c167c191ffdb6fd7385e3a2f8a7cb70b)
- Release 2.1.3 [`7ddaf79`](https://github.com/oceanprotocol/squid-js/commit/7ddaf794a9924d5d8d41227bafc7a139f4b1ee26)
- Merge pull request #428 from oceanprotocol/dependabot/npm_and_yarn/ethereum-navigator/navigator-0.5.2 [`5d3bc94`](https://github.com/oceanprotocol/squid-js/commit/5d3bc949de1306f01fde21f97d4dd0255aa1c78b)
#### [v2.1.2](https://github.com/oceanprotocol/squid-js/compare/v2.1.1...v2.1.2)
> 18 May 2020
- fix timeouts [`#413`](https://github.com/oceanprotocol/squid-js/pull/413)
- Bump @typescript-eslint/parser from 2.23.0 to 2.33.0 [`#419`](https://github.com/oceanprotocol/squid-js/pull/419)
- Bump nyc from 15.0.0 to 15.0.1 [`#418`](https://github.com/oceanprotocol/squid-js/pull/418)
- Bump eslint-config-prettier from 6.10.0 to 6.11.0 [`#417`](https://github.com/oceanprotocol/squid-js/pull/417)
- Bump whatwg-url from 8.0.0 to 8.1.0 [`#416`](https://github.com/oceanprotocol/squid-js/pull/416)
- Bump eslint-plugin-prettier from 3.1.2 to 3.1.3 [`#414`](https://github.com/oceanprotocol/squid-js/pull/414)
- Update @types/node to the latest version 🚀 [`#412`](https://github.com/oceanprotocol/squid-js/pull/412)
- [Security] Bump jquery from 3.4.1 to 3.5.1 [`#415`](https://github.com/oceanprotocol/squid-js/pull/415)
- Update uuid to the latest version 🚀 [`#407`](https://github.com/oceanprotocol/squid-js/pull/407)
- Release 2.1.2 [`32b671e`](https://github.com/oceanprotocol/squid-js/commit/32b671e2a4d48e05acab36fdd5fff8c2c83a3c48)
- Merge pull request #424 from oceanprotocol/dependabot/npm_and_yarn/types/node-fetch-2.5.7 [`27a8a37`](https://github.com/oceanprotocol/squid-js/commit/27a8a37729bb01735c3023f6aa6fc23302f08d98)
- Merge pull request #423 from oceanprotocol/dependabot/npm_and_yarn/types/sinon-9.0.1 [`c618c9c`](https://github.com/oceanprotocol/squid-js/commit/c618c9c2a752c02ba7f40051c6d7cd8fa8a20c08)
#### [v2.1.1](https://github.com/oceanprotocol/squid-js/compare/v2.1.0...v2.1.1)
> 14 April 2020
@ -11,9 +47,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix Brizo auth for compute [`#400`](https://github.com/oceanprotocol/squid-js/pull/400)
- Update @ethereum-navigator/navigator to the latest version 🚀 [`#398`](https://github.com/oceanprotocol/squid-js/pull/398)
- Update auto-changelog to the latest version 🚀 [`#404`](https://github.com/oceanprotocol/squid-js/pull/404)
- Release 2.1.1 [`a2f1985`](https://github.com/oceanprotocol/squid-js/commit/a2f19850790bcc77e04a085301094fb8ccc21e65)
- chore(package): update lockfile package-lock.json [`96bd22d`](https://github.com/oceanprotocol/squid-js/commit/96bd22d83581ecc4d25eadd4f17f9c9a68c636a0)
- fix signing [`795f849`](https://github.com/oceanprotocol/squid-js/commit/795f8494f99c4e771e70a8a33458f85ef89f36e4)
- fix auth & tests [`7de1b11`](https://github.com/oceanprotocol/squid-js/commit/7de1b110b0c1c3cd46de153b87db911e677be599)
#### [v2.1.0](https://github.com/oceanprotocol/squid-js/compare/v2.0.0...v2.1.0)
@ -864,7 +900,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v0.1.1](https://github.com/oceanprotocol/squid-js/compare/v0.1.0...v0.1.1)
> 14 April 2020
> 19 May 2020
#### [v0.1.0](https://github.com/oceanprotocol/squid-js/compare/v0.1.0-beta.20...v0.1.0)

View File

@ -11,7 +11,7 @@
[![Maintainability](https://api.codeclimate.com/v1/badges/ff173cf1c7adc6b21ae5/maintainability)](https://codeclimate.com/github/oceanprotocol/squid-js/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ff173cf1c7adc6b21ae5/test_coverage)](https://codeclimate.com/github/oceanprotocol/squid-js/test_coverage)
[![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol)
[![Greenkeeper badge](https://badges.greenkeeper.io/oceanprotocol/squid-js.svg)](https://greenkeeper.io/)
[![Dependabot enabled](https://badgen.net/dependabot/thepracticaldev/dev.to?icon=dependabot)](https://dependabot.com/)
---

View File

@ -11,15 +11,15 @@
},
{
"name": "brizo",
"version": "~0.9.0"
"version": "~0.9.7"
},
{
"name": "aquarius",
"version": "~1.0.7"
"version": "~1.1.0"
},
{
"name": "events-handler",
"version": "~0.4.4"
"version": "~0.4.7"
}
]
}

4101
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@oceanprotocol/squid",
"version": "2.1.1",
"version": "2.2.0",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/node/squid.js",
"typings": "./dist/node/squid.d.ts",
@ -26,9 +26,6 @@
"format": "prettier --parser typescript --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx}'",
"doc": "typedoc --mode modules --out ./doc/ ./src/",
"doc:json": "./scripts/typedoc.js",
"report-codacy": "npm run report-coverage:unit && npm run report-coverage:integration",
"report-codacy:unit": "cat coverage/unit/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
"report-codacy:integration": "cat coverage/integration/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
"run": "ts-node",
"release": "release-it --non-interactive",
"changelog": "auto-changelog -p",
@ -58,7 +55,7 @@
"deprecated-decorator": "^0.1.6",
"node-fetch": "^2.6.0",
"save-file": "^2.3.1",
"uuid": "^7.0.2",
"uuid": "^8.0.0",
"web3": "^1.2.6",
"whatwg-url": "^8.0.0"
},
@ -67,8 +64,8 @@
"@truffle/hdwallet-provider": "^1.0.33",
"@types/chai": "^4.2.11",
"@types/chai-spies": "^1.0.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.9.1",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.0",
"@types/node-fetch": "^2.5.5",
"@types/sinon": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^2.23.0",
@ -86,7 +83,7 @@
"mock-local-storage": "^1.1.11",
"nyc": "^15.0.0",
"ora": "^4.0.2",
"prettier": "^1.19.1",
"prettier": "^2.0.5",
"sinon": "^9.0.1",
"source-map-support": "^0.5.16",
"ts-node": "^8.6.2",

View File

@ -9,9 +9,7 @@ process.stdout.write(
JSON.stringify(
{
version: require('../package.json').version,
commit: execSync(`git rev-parse HEAD`)
.toString()
.trim()
commit: execSync(`git rev-parse HEAD`).toString().trim()
},
null,
' '

View File

@ -64,7 +64,7 @@ export class Aquarius {
this.logger.error('Success accessing consume endpoint: ', consumptionUrl)
return consumptionUrl
})
.catch(error => {
.catch((error) => {
this.logger.error(
'Error fetching the data asset consumption url: ',
error
@ -94,10 +94,10 @@ export class Aquarius {
)
return this.transformResult()
})
.then(results => {
.then((results) => {
return this.transformResult(results)
})
.catch(error => {
.catch((error) => {
this.logger.error('Error fetching querying metadata: ', error)
return this.transformResult()
})
@ -133,10 +133,10 @@ export class Aquarius {
)
return this.transformResult()
})
.then(results => {
.then((results) => {
return this.transformResult(results)
})
.catch(error => {
.catch((error) => {
this.logger.error('Error fetching querying metadata by text: ', error)
return this.transformResult()
})
@ -168,7 +168,7 @@ export class Aquarius {
.then((response: DDO) => {
return new DDO(response) as DDO
})
.catch(error => {
.catch((error) => {
this.logger.error('Error fetching querying metadata: ', error)
return null as DDO
})
@ -204,7 +204,7 @@ export class Aquarius {
.then((response: DDO) => {
return new DDO(response) as DDO
})
.catch(error => {
.catch((error) => {
this.logger.error('Error fetching querying metadata: ', error)
return null as DDO
})
@ -253,7 +253,7 @@ export class Aquarius {
return null
})
.catch(error => {
.catch((error) => {
this.logger.error('Error transfering ownership metadata: ', error)
return null
})
@ -261,6 +261,60 @@ export class Aquarius {
return result
}
/**
* Update Compute Privacy
* @param {DID | string} did DID of the asset to update.
* @param {number } serviceIndex Service index
* @param {boolean} allowRawAlgorithm Allow Raw Algorithms
* @param {boolean} allowNetworkAccess Allow Raw Algorithms
* @param {String[]} trustedAlgorithms Allow Raw Algorithms
* @param {String} updated Updated field of the DDO
* @param {String} signature Signature using updated field to verify that the consumer has rights
* @return {Promise<String>} Result.
*/
public async updateComputePrivacy(
did: DID | string,
serviceIndex: number,
allowRawAlgorithm: boolean,
allowNetworkAccess: boolean,
trustedAlgorithms: string[],
updated: string,
signature: string
): Promise<string> {
did = did && DID.parse(did)
const fullUrl = `${this.url}${apiPath}/computePrivacy/update/${did.getDid()}`
const result = await this.fetch
.put(
fullUrl,
JSON.stringify({
signature: signature,
updated: updated,
serviceIndex: serviceIndex,
allowRawAlgorithm: allowRawAlgorithm,
allowNetworkAccess: allowNetworkAccess,
trustedAlgorithms: trustedAlgorithms
})
)
.then((response: any) => {
if (response.ok) {
return response.text
}
this.logger.log(
'update compute privacy failed:',
response.status,
response.statusText
)
return null
})
.catch((error) => {
this.logger.error('Error updating compute privacy: ', error)
return null
})
return result
}
/**
* Edit Metadata for a DDO.
* @param {did} string DID.
@ -299,7 +353,7 @@ export class Aquarius {
return null
})
.catch(error => {
.catch((error) => {
this.logger.error('Error transfering ownership metadata: ', error)
return null
})
@ -337,7 +391,7 @@ export class Aquarius {
return null
})
.catch(error => {
.catch((error) => {
this.logger.error('Error transfering ownership metadata: ', error)
return null
})
@ -358,7 +412,7 @@ export class Aquarius {
}
): QueryResult {
return {
results: (results || []).map(ddo => new DDO(ddo as DDO)),
results: (results || []).map((ddo) => new DDO(ddo as DDO)),
page,
totalPages,
totalResults

View File

@ -71,7 +71,7 @@ export class DDO {
throw new Error('index is not set')
}
const service = this.service.find(s => s.index === index)
const service = this.service.find((s) => s.index === index)
return service as Service<T>
}
@ -86,7 +86,7 @@ export class DDO {
throw new Error('serviceType not set')
}
return this.service.find(s => s.type === serviceType) as Service<T>
return this.service.find((s) => s.type === serviceType) as Service<T>
}
/**
@ -98,7 +98,7 @@ export class DDO {
const { files, name, author, license } = attributes.main
const values = [
...(files || []).map(({ checksum }) => checksum).filter(_ => !!_),
...(files || []).map(({ checksum }) => checksum).filter((_) => !!_),
name,
author,
license,

View File

@ -25,6 +25,11 @@ export interface ServiceAccessAttributes extends ServiceCommonAttributes {
timeout: number
}
}
export interface ServiceComputePrivacy {
allowRawAlgorithm: boolean
allowNetworkAccess: boolean
trustedAlgorithms: string[]
}
export interface ServiceComputeAttributes extends ServiceCommonAttributes {
main: {
@ -34,6 +39,7 @@ export interface ServiceComputeAttributes extends ServiceCommonAttributes {
timeout: number
provider?: ServiceComputeProvider
name: string
privacy?: ServiceComputePrivacy
}
}

View File

@ -36,8 +36,8 @@ export class ContractEvent {
}
public once(callback?: (events: any[]) => void) {
return new Promise(resolve => {
const subscription = this.subscribe(events => {
return new Promise((resolve) => {
const subscription = this.subscribe((events) => {
subscription.unsubscribe()
if (callback) {
callback(events)

View File

@ -62,7 +62,7 @@ export class EventHandler extends Instantiable {
}
if (this.lastBlock !== blockNumber) {
this.events.forEach(fn => fn(this.lastBlock + 1))
this.events.forEach((fn) => fn(this.lastBlock + 1))
this.lastBlock = blockNumber
}
this.lastTimeout = global.setTimeout(

View File

@ -192,7 +192,7 @@ export class Keeper extends Instantiable {
*/
public getConditionByAddress(address: string): Condition {
return Object.values(this.conditions).find(
condition => condition.getAddress() === address
(condition) => condition.getAddress() === address
)
}
@ -203,7 +203,7 @@ export class Keeper extends Instantiable {
*/
public getTemplateByName(name: string): AgreementTemplateBase {
return Object.values(this.templates).find(
template => template.templateName === name
(template) => template.templateName === name
)
}
@ -214,7 +214,7 @@ export class Keeper extends Instantiable {
*/
public getTemplateById(templateId: string): AgreementTemplateBase {
return Object.values(this.templates).find(
template => template.getId() === templateId
(template) => template.getId() === templateId
)
}

View File

@ -146,7 +146,7 @@ export abstract class ContractBase extends Instantiable {
private searchMethod(methodName: string, args: any[] = []) {
const methods = this.contract.options.jsonInterface
.map(method => ({
.map((method) => ({
...method,
signature: (method as any).signature
}))

View File

@ -80,7 +80,7 @@ export class TemplateStoreManager extends ContractBase {
}
public getConditions(conditionTypes: string[]) {
return conditionTypes.map(address =>
return conditionTypes.map((address) =>
this.ocean.keeper.getConditionByAddress(address)
)
}

View File

@ -183,7 +183,7 @@ export class AgreementTemplateBase {
({ name: conditionRef }) => conditionRef === ref
).contractName
return (await this.getConditions()).find(
condition => condition.contractName === name
(condition) => condition.contractName === name
)
}
@ -237,8 +237,8 @@ export class AgreementTemplateBase {
return states.reduce((acc, { contractName, ref, state }) => {
const blockers = dependencies[ref]
.map(dependency => states.find(_ => _.ref === dependency))
.filter(condition => condition.state !== ConditionState.Fulfilled)
.map((dependency) => states.find((_) => _.ref === dependency))
.filter((condition) => condition.state !== ConditionState.Fulfilled)
return {
...acc,
[ref]: {
@ -246,7 +246,7 @@ export class AgreementTemplateBase {
contractName,
state,
blocked: !!blockers.length,
blockedBy: blockers.map(_ => _.ref)
blockedBy: blockers.map((_) => _.ref)
}
}
}, {})
@ -309,6 +309,8 @@ export class AgreementTemplateBase {
*/
public async getActorTypes() {
const actorTypeIds = await this.getActorTypeIds()
return actorTypeIds.map(typeId => this.templateManager.getActorTypeValue(typeId))
return actorTypeIds.map((typeId) =>
this.templateManager.getActorTypeValue(typeId)
)
}
}

View File

@ -26,7 +26,7 @@ export class OceanAccounts extends Instantiable {
const ethAccounts: string[] = await this.web3.eth.getAccounts()
const accountPromises = ethAccounts.map(
address => new Account(address, this.instanceConfig)
(address) => new Account(address, this.instanceConfig)
)
return Promise.all(accountPromises)
}

View File

@ -2,7 +2,7 @@ import { TransactionReceipt } from 'web3-core'
import { SearchQuery } from '../aquarius/Aquarius'
import { DDO } from '../ddo/DDO'
import { MetaData, EditableMetaData } from '../ddo/MetaData'
import { Service, ServiceAccess } from '../ddo/Service'
import { Service, ServiceAccess, ServiceComputePrivacy } from '../ddo/Service'
import Account from './Account'
import DID from './DID'
import { fillConditionsWithDDO, SubscribablePromise, didZeroX } from '../utils'
@ -60,7 +60,7 @@ export class OceanAssets extends Instantiable {
services: Service[] = []
): SubscribablePromise<CreateProgressStep, DDO> {
this.logger.log('Creating asset')
return new SubscribablePromise(async observer => {
return new SubscribablePromise(async (observer) => {
const { secretStoreUri } = this.config
const { didRegistry, templates } = this.ocean.keeper
@ -147,7 +147,7 @@ export class OceanAssets extends Instantiable {
)
.reverse()
// Adding index
.map(_ => ({
.map((_) => ({
..._,
index: indexCount++
})) as Service[]
@ -287,7 +287,7 @@ export class OceanAssets extends Instantiable {
consumerAccount: Account,
provider?: string
): SubscribablePromise<OrderProgressStep, string> {
return new SubscribablePromise(async observer => {
return new SubscribablePromise(async (observer) => {
const { keeper, utils } = this.ocean
const ddo: DDO = await this.resolve(did)
const condition = keeper.conditions.accessSecretStoreCondition
@ -414,6 +414,41 @@ export class OceanAssets extends Instantiable {
return result
}
/**
* Update Compute Privacy
* @param {did} string DID.
* @param {number} serviceIndex Index of the compute service in the DDO
* @param {ServiceComputePrivacy} computePrivacy ComputePrivacy fields & new values.
* @param {Account} account Ethereum account of owner to sign and prove the ownership.
* @return {Promise<string>}
*/
public async updateComputePrivacy(
did: string,
serviceIndex: number,
computePrivacy: ServiceComputePrivacy,
account: Account
): Promise<string> {
const oldDdo = await this.ocean.aquarius.retrieveDDO(did)
// get a signature
const signature = await this.ocean.utils.signature.signForAquarius(
oldDdo.updated,
account
)
let result = null
if (signature != null)
result = await this.ocean.aquarius.updateComputePrivacy(
did,
serviceIndex,
computePrivacy.allowRawAlgorithm,
computePrivacy.allowNetworkAccess,
computePrivacy.trustedAlgorithms,
oldDdo.updated,
signature
)
return result
}
/**
* Retire a DDO (Delete)
* @param {did} string DID.
@ -477,7 +512,8 @@ export class OceanAssets extends Instantiable {
public async createAccessServiceAttributes(
consumerAccount: Account,
price: string,
datePublished: string
datePublished: string,
timeout: number = 0
): Promise<ServiceAccess> {
const { templates } = this.ocean.keeper
const serviceAgreementTemplate = await templates.escrowAccessSecretStoreTemplate.getServiceAgreementTemplate()
@ -491,7 +527,7 @@ export class OceanAssets extends Instantiable {
creator: consumerAccount.getId(),
datePublished,
price,
timeout: 3600,
timeout: timeout,
name: 'dataAssetAccessServiceAgreement'
},
serviceAgreementTemplate

View File

@ -5,7 +5,7 @@ import { DDO } from '../ddo/DDO'
import { SubscribablePromise } from '../utils'
import { OrderProgressStep } from './utils/ServiceUtils'
import { DID } from '../squid'
import { ServiceCompute } from '../ddo/Service'
import { Service, ServiceCompute, ServiceComputePrivacy } from '../ddo/Service'
export const ComputeJobStatus = Object.freeze({
Started: 10,
@ -66,16 +66,43 @@ export class OceanCompute extends Instantiable {
* Starts an order of a compute service that is defined in an asset's services.
* @param {Account} consumerAccount The account of the consumer ordering the service.
* @param {string} datasetDid The DID of the dataset asset (of type `dataset`) to run the algorithm on.
* @param {string} algorithmDid The DID of the algorithm asset (of type `algorithm`) to run on the asset.
* @param {MetaData} algorithmMeta Metadata about the algorithm being run if `algorithm` is being used. This is ignored when `algorithmDid` is specified.
* @return {Promise<string>} Returns the Service Agreement ID, representation of `bytes32` ID.
*
* Note: algorithmDid and algorithmMeta are optional, but if they are not passed,
* you can end up in the situation that you are ordering and paying for your agreement,
* but brizo will not allow the compute, due to privacy settings of the ddo
*/
public order(
consumerAccount: Account,
datasetDid: string,
algorithmDid?: string,
algorithmMeta?: MetaDataAlgorithm,
provider?: string
): SubscribablePromise<OrderProgressStep, string> {
return new SubscribablePromise(async observer => {
return new SubscribablePromise(async (observer) => {
const { assets, keeper, utils } = this.ocean
const ddo: DDO = await assets.resolve(datasetDid)
const service: Service = ddo.findServiceByType('compute')
if (!service) return null
if (algorithmMeta) {
// check if raw algo is allowed
if (service.attributes.main.privacy)
if (!service.attributes.main.privacy.allowRawAlgorithm) return null
}
if (algorithmDid) {
// check if did is in trusted list
if (service.attributes.main.privacy)
if (service.attributes.main.privacy.trustedAlgorithms)
if (service.attributes.main.privacy.trustedAlgorithms.length > 0)
if (
!service.attributes.main.privacy.trustedAlgorithms.includes(
algorithmDid
)
)
return null
}
const condition = keeper.conditions.computeExecutionCondition
const agreementId = await utils.services.order(
@ -137,17 +164,18 @@ export class OceanCompute extends Instantiable {
output?: Output
): Promise<ComputeJob> {
output = this.checkOutput(consumerAccount, output)
const computeJobsList = await this.ocean.brizo.compute(
'post',
agreementId,
consumerAccount,
algorithmDid,
algorithmMeta,
undefined,
output
)
return computeJobsList[0] as ComputeJob
if (agreementId) {
const computeJobsList = await this.ocean.brizo.compute(
'post',
agreementId,
consumerAccount,
algorithmDid,
algorithmMeta,
undefined,
output
)
return computeJobsList[0] as ComputeJob
} else return null
}
/**
@ -266,12 +294,15 @@ export class OceanCompute extends Instantiable {
public async createComputeServiceAttributes(
consumerAccount: Account,
price: string,
datePublished: string
datePublished: string,
computePrivacy?: ServiceComputePrivacy,
timeout?: number
): Promise<ServiceCompute> {
const { templates } = this.ocean.keeper
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
const name = 'dataAssetComputingServiceAgreement'
return {
if (!timeout) timeout = 3600
const service = {
type: 'compute',
index: 3,
serviceEndpoint: this.ocean.brizo.getComputeEndpoint(),
@ -281,11 +312,14 @@ export class OceanCompute extends Instantiable {
creator: consumerAccount.getId(),
datePublished,
price,
timeout: 3600,
privacy: {},
timeout: timeout,
name
},
serviceAgreementTemplate
}
}
if (computePrivacy) service.attributes.main.privacy = computePrivacy
return service as ServiceCompute
}
}

View File

@ -61,7 +61,7 @@ export class OceanVersions extends Instantiable {
network: (await this.ocean.keeper.getNetworkName()).toLowerCase(),
keeperVersion: keeperPackageJson.version,
contracts: Object.values(await this.ocean.keeper.getAllInstances())
.filter(_ => !!_)
.filter((_) => !!_)
.reduce(
(acc, { contractName, address }) => ({
...acc,
@ -115,19 +115,19 @@ export class OceanVersions extends Instantiable {
const networks = techs
.map(({ network }) => network)
.filter(_ => !!_)
.filter((_) => !!_)
.reduce((acc, network) => ({ ...acc, [network]: true }), {})
let contractStatus = true
const contractList = techs.map(({ contracts }) => contracts).filter(_ => !!_)
const contractList = techs.map(({ contracts }) => contracts).filter((_) => !!_)
Array.from(contractList.map(Object.keys))
.reduce((acc, _) => [...acc, ..._], [])
.filter((_, i, list) => list.indexOf(_) === i)
.forEach(name => {
.forEach((name) => {
let address
contractList
.map(_ => _[name])
.forEach(_ => {
.map((_) => _[name])
.forEach((_) => {
if (!address) {
address = _
return

View File

@ -8,7 +8,7 @@ function fillParameterWithDDO(
parameter: ServiceAgreementTemplateParameter,
ddo: DDO
): ServiceAgreementTemplateParameter {
const getValue = name => {
const getValue = (name) => {
switch (name) {
case 'amount':
case 'price':
@ -38,9 +38,9 @@ export function fillConditionsWithDDO(
conditions: ServiceAgreementTemplateCondition[],
ddo: DDO
): ServiceAgreementTemplateCondition[] {
return conditions.map(condition => ({
return conditions.map((condition) => ({
...condition,
parameters: condition.parameters.map(parameter => ({
parameters: condition.parameters.map((parameter) => ({
...fillParameterWithDDO(parameter, ddo)
}))
}))

View File

@ -39,7 +39,7 @@ export class SubscribableObserver<T, P> {
private emit(type: 'onNext' | 'onComplete' | 'onError', value: any) {
Array.from(this.subscriptions)
.map(subscription => subscription[type])
.map((subscription) => subscription[type])
.filter((callback: any) => callback && typeof callback === 'function')
.forEach((callback: any) => callback(value))
}

View File

@ -42,12 +42,12 @@ export class SubscribablePromise<T extends any, P extends any> {
const execution = executor(this.observer)
Promise.resolve(execution as any)
.then(result => {
.then((result) => {
if (typeof (execution as any).then === 'function') {
this.observer.complete(result)
}
})
.catch(result => {
.catch((result) => {
if (typeof (execution as any).then === 'function') {
this.observer.error(result)
}

View File

@ -2,6 +2,7 @@ import { assert } from 'chai'
import { config } from '../config'
import { getMetadata } from '../utils'
import { Ocean, Account, EditableMetaData } from '../../../src' // @oceanprotocol/squid
import { ServiceComputePrivacy } from '../../../src/ddo/Service'
describe('Asset Owners', () => {
let ocean: Ocean
@ -202,4 +203,56 @@ describe('Asset Owners', () => {
assert.equal(-1, remList.indexOf(consumer1.getId()))
assert.notEqual(-1, remList.indexOf(consumer2.getId()))
})
it('should be able to update computePrivacy', async () => {
const origComputePrivacy = {
allowRawAlgorithm: true,
allowNetworkAccess: true,
trustedAlgorithms: []
}
const newComputePrivacy = {
allowRawAlgorithm: false,
allowNetworkAccess: false,
trustedAlgorithms: ['did:op:123', 'did:op:1234']
}
const computeService = await ocean.compute.createComputeServiceAttributes(
account1,
'0',
'2020-03-10T10:00:00Z',
origComputePrivacy as ServiceComputePrivacy
)
const { id } = await ocean.assets.create(metadata as any, account1, [
computeService
])
const oldDDO = await ocean.assets.resolve(id)
let serviceIndex = null
for (let index = 0; index < oldDDO.service.length; index++) {
if (oldDDO.service[index].type === 'compute') serviceIndex = index
}
await ocean.assets.updateComputePrivacy(
id,
serviceIndex,
newComputePrivacy as ServiceComputePrivacy,
account1
)
const newDDO = await ocean.assets.resolve(id)
assert.equal(
newDDO.service[serviceIndex].attributes.main.privacy.allowRawAlgorithm,
newComputePrivacy.allowRawAlgorithm
)
assert.equal(
newDDO.service[serviceIndex].attributes.main.privacy.allowNetworkAccess,
newComputePrivacy.allowNetworkAccess
)
assert.deepEqual(
newDDO.service[serviceIndex].attributes.main.privacy.trustedAlgorithms,
newComputePrivacy.trustedAlgorithms
)
})
})

View File

@ -11,7 +11,7 @@ import {
MetaDataAlgorithm
} from '../../../src'
import { getMetadata } from '../utils'
import { ServiceCompute } from '../../../src/ddo/Service'
import { ServiceCompute, ServiceComputePrivacy } from '../../../src/ddo/Service'
const metadataAsset = getMetadata()
const metadataAlgorithm = getMetadata(0, 'algorithm')
@ -26,11 +26,24 @@ const customConfig: Config = {
verbose: true
}
export const rawAlgoMeta = {
rawcode: `console.log('Hello world'!)`,
format: 'docker-image',
version: '0.1',
container: {
entrypoint: 'node $ALGO',
image: 'node',
tag: '10'
}
}
describe('Compute', () => {
let ocean: Ocean
let account: Account
let agreementId: string
let dataset: DDO
let datasetNoRawAlgo: DDO
let datasetWithTrustedAlgo: DDO
let algorithm: DDO
let computeService: ServiceCompute
let jobId: string
@ -53,7 +66,7 @@ describe('Compute', () => {
)
dataset = await ocean.assets
.create(metadataAsset as MetaData, account, [computeService])
.next(step => stepsAsset.push(step))
.next((step) => stepsAsset.push(step))
assert.instanceOf(dataset, DDO)
assert.isDefined(
@ -63,16 +76,88 @@ describe('Compute', () => {
assert.deepEqual(stepsAsset, [0, 1, 2, 3, 4, 5, 6, 7])
})
it('should publish a dataset with a compute service object that does not allow rawAlgo', async () => {
const stepsAsset = []
const origComputePrivacy = {
allowRawAlgorithm: false,
allowNetworkAccess: false,
trustedAlgorithms: []
}
computeService = await ocean.compute.createComputeServiceAttributes(
account,
'1000',
metadataAsset.main.datePublished,
origComputePrivacy as ServiceComputePrivacy
)
datasetNoRawAlgo = await ocean.assets
.create(metadataAsset as MetaData, account, [computeService])
.next((step) => stepsAsset.push(step))
assert.instanceOf(datasetNoRawAlgo, DDO)
assert.isDefined(
dataset.findServiceByType('compute'),
`DDO compute service doesn't exist`
)
assert.deepEqual(stepsAsset, [0, 1, 2, 3, 4, 5, 6, 7])
})
it('should publish a dataset with a compute service object that allows only algo with did:op:1234', async () => {
const stepsAsset = []
const origComputePrivacy = {
allowRawAlgorithm: false,
allowNetworkAccess: false,
trustedAlgorithms: ['did:op:1234']
}
computeService = await ocean.compute.createComputeServiceAttributes(
account,
'1000',
metadataAsset.main.datePublished,
origComputePrivacy as ServiceComputePrivacy
)
datasetWithTrustedAlgo = await ocean.assets
.create(metadataAsset as MetaData, account, [computeService])
.next((step) => stepsAsset.push(step))
assert.instanceOf(datasetWithTrustedAlgo, DDO)
assert.isDefined(
dataset.findServiceByType('compute'),
`DDO compute service doesn't exist`
)
assert.deepEqual(stepsAsset, [0, 1, 2, 3, 4, 5, 6, 7])
})
it('should publish an algorithm', async () => {
const stepsAlgorithm = []
algorithm = await ocean.assets
.create(metadataAlgorithm as MetaData, account)
.next(step => stepsAlgorithm.push(step))
.next((step) => stepsAlgorithm.push(step))
assert.instanceOf(algorithm, DDO)
assert.deepEqual(stepsAlgorithm, [0, 1, 2, 3, 4, 5, 6, 7])
})
it('should not allow order the compute service with raw algo for dataset that does not allow raw algo', async () => {
const steps = []
agreementId = await ocean.compute
.order(account, datasetNoRawAlgo.id, null, rawAlgoMeta)
.next((step) => steps.push(step))
assert.equal(agreementId, null)
})
it('should not allow order the compute service with did != did:op:1234 for dataset that allows only did:op:1234 as algo', async () => {
const steps = []
agreementId = await ocean.compute
.order(account, datasetWithTrustedAlgo.id, 'did:op:233454', null)
.next((step) => steps.push(step))
assert.equal(agreementId, null)
})
it('should order the compute service of the dataset', async () => {
const steps = []
try {
@ -87,7 +172,7 @@ describe('Compute', () => {
agreementId = await ocean.compute
.order(account, dataset.id)
.next(step => steps.push(step))
.next((step) => steps.push(step))
console.log(agreementId)
assert.isDefined(agreementId)

View File

@ -170,7 +170,7 @@ describe('Consume Asset', () => {
assert.include(path, folder, 'The storage path is not correct.')
const files = await new Promise<string[]>(resolve => {
const files = await new Promise<string[]>((resolve) => {
fs.readdir(path, (e, fileList) => {
resolve(fileList)
})
@ -195,7 +195,7 @@ describe('Consume Asset', () => {
assert.include(path, folder, 'The storage path is not correct.')
const files = await new Promise<string[]>(resolve => {
const files = await new Promise<string[]>((resolve) => {
fs.readdir(path, (e, fileList) => {
resolve(fileList)
})

View File

@ -43,7 +43,7 @@ describe('Consume Asset (Brizo)', () => {
const steps = []
ddo = await ocean.assets
.create(metadata as any, publisher)
.next(step => steps.push(step))
.next((step) => steps.push(step))
assert.instanceOf(ddo, DDO)
assert.deepEqual(steps, [0, 1, 2, 3, 4, 5, 6, 7])
@ -64,7 +64,7 @@ describe('Consume Asset (Brizo)', () => {
agreementId = await ocean.assets
.order(ddo.id, consumer)
.next(step => steps.push(step))
.next((step) => steps.push(step))
} catch {}
assert.isDefined(agreementId)
@ -77,7 +77,7 @@ describe('Consume Asset (Brizo)', () => {
assert.include(path, folder, 'The storage path is not correct.')
const files = await new Promise<string[]>(resolve => {
const files = await new Promise<string[]>((resolve) => {
fs.readdir(path, (e, fileList) => {
resolve(fileList)
})

View File

@ -72,7 +72,7 @@ xdescribe('Consume Asset (Large size)', () => {
assert.include(path, folder, 'The storage path is not correct.')
const files = await new Promise<string[]>(resolve => {
const files = await new Promise<string[]>((resolve) => {
fs.readdir(path, (e, fileList) => {
resolve(fileList)
})

View File

@ -53,7 +53,7 @@ describe('Register Escrow Access Secret Store Template', () => {
true
)
// TODO: Use a event to detect template mined
await new Promise(resolve => setTimeout(resolve, 2 * 1000))
await new Promise((resolve) => setTimeout(resolve, 2 * 1000))
})
it('should approve the template', async () => {
@ -63,7 +63,7 @@ describe('Register Escrow Access Secret Store Template', () => {
true
)
// TODO: Use a event to detect template mined
await new Promise(resolve => setTimeout(resolve, 2 * 1000))
await new Promise((resolve) => setTimeout(resolve, 2 * 1000))
})
})
@ -122,9 +122,9 @@ describe('Register Escrow Access Secret Store Template', () => {
})
it('should have condition instances asociated', async () => {
const conditionInstances = (await template.getConditionTypes()).map(address =>
keeper.getConditionByAddress(address)
)
const conditionInstances = (
await template.getConditionTypes()
).map((address) => keeper.getConditionByAddress(address))
assert.equal(conditionInstances.length, 3, 'Expected 3 conditions.')
@ -133,10 +133,10 @@ describe('Register Escrow Access Secret Store Template', () => {
EscrowReward,
LockRewardCondition
]
conditionClasses.forEach(conditionClass => {
conditionClasses.forEach((conditionClass) => {
if (
!conditionInstances.find(
condition => condition instanceof conditionClass
(condition) => condition instanceof conditionClass
)
) {
throw new Error(

View File

@ -55,7 +55,7 @@ describe('Register Escrow Compute Execution Template', () => {
true
)
// TODO: Use a event to detect template mined
await new Promise(resolve => setTimeout(resolve, 2 * 1000))
await new Promise((resolve) => setTimeout(resolve, 2 * 1000))
})
it('should approve the template', async () => {
@ -65,7 +65,7 @@ describe('Register Escrow Compute Execution Template', () => {
true
)
// TODO: Use a event to detect template mined
await new Promise(resolve => setTimeout(resolve, 2 * 1000))
await new Promise((resolve) => setTimeout(resolve, 2 * 1000))
})
})
@ -133,10 +133,10 @@ describe('Register Escrow Compute Execution Template', () => {
EscrowReward,
LockRewardCondition
]
conditionClasses.forEach(conditionClass => {
conditionClasses.forEach((conditionClass) => {
if (
!conditionInstances.find(
condition => condition instanceof conditionClass
(condition) => condition instanceof conditionClass
)
) {
throw new Error(

View File

@ -11,9 +11,7 @@ describe('Search Asset', () => {
let publisher: Account
const testHash = Math.random()
.toString(36)
.substr(2)
const testHash = Math.random().toString(36).substr(2)
let price
const metadataGenerator = (name: string) =>
generateMetadata(`${name}${testHash}`, price)
@ -83,7 +81,7 @@ describe('Search Asset', () => {
1,
'Something was wrong searching the assets'
)
ddos.map(ddo =>
ddos.map((ddo) =>
assert.instanceOf(ddo, DDO, 'The DDO is not an instance of a DDO')
)
})
@ -101,7 +99,7 @@ describe('Search Asset', () => {
})
assert.equal(ddos.length, 1, 'Something was wrong searching the assets')
ddos.map(ddo =>
ddos.map((ddo) =>
assert.instanceOf(ddo, DDO, 'The DDO is not an instance of a DDO')
)
})

View File

@ -9,7 +9,7 @@ import { LoggerInstance } from '../../../src/utils'
use(spies)
const reponsify = async data => ({
const reponsify = async (data) => ({
ok: true,
json: () => Promise.resolve(data)
})

View File

@ -17,25 +17,25 @@ describe('ContractWrapperBase', () => {
})
describe('#call()', () => {
it('should fail to call on an unknown contract function', done => {
it('should fail to call on an unknown contract function', (done) => {
wrappedContract.callMock('balanceOfxxx', []).catch(() => {
done()
})
})
it('should fail to call on an contract function with wrong set of parameters', done => {
it('should fail to call on an contract function with wrong set of parameters', (done) => {
wrappedContract.callMock('balanceOf', []).catch(() => {
done()
})
})
it('should fail to call on an unknown contract function', done => {
it('should fail to call on an unknown contract function', (done) => {
wrappedContract.sendMock('balanceOfxxx', '0x00', ['0x00']).catch(() => {
done()
})
})
it('should fail to call on an contract function with wrong set of parameters', done => {
it('should fail to call on an contract function with wrong set of parameters', (done) => {
wrappedContract.sendMock('approve', '0x000', []).catch(() => {
done()
})
@ -43,7 +43,7 @@ describe('ContractWrapperBase', () => {
})
describe('#send()', () => {
it('should fail to call on an unknown contract function', done => {
it('should fail to call on an unknown contract function', (done) => {
wrappedContract.sendMock('transferxxx', accounts[0].getId(), []).catch(() => {
done()
})
@ -60,7 +60,7 @@ describe('ContractWrapperBase', () => {
})
describe('#getEventData()', () => {
it('should fail on unknown event', done => {
it('should fail on unknown event', (done) => {
wrappedContract.getEventData('crazyevent', {}).catch(() => {
done()
})

View File

@ -28,8 +28,8 @@ describe('ContractEvent', () => {
let validResolve = false
let subscription: ContractEventSubscription
const waitUntilEvent = new Promise(resolve => {
subscription = event.subscribe(events => {
const waitUntilEvent = new Promise((resolve) => {
subscription = event.subscribe((events) => {
assert.isDefined(events)
assert.lengthOf(events, 2)
if (validResolve) {
@ -40,7 +40,7 @@ describe('ContractEvent', () => {
await Promise.all([executeTransaction(), executeTransaction()])
await new Promise(resolve => setTimeout(resolve, 2000))
await new Promise((resolve) => setTimeout(resolve, 2000))
validResolve = true
await Promise.all([executeTransaction(), executeTransaction()])
@ -68,7 +68,7 @@ describe('ContractEvent', () => {
await executeTransaction()
await new Promise(resolve => setTimeout(resolve, 2000))
await new Promise((resolve) => setTimeout(resolve, 2000))
canBeRejected = true
await executeTransaction()
@ -82,7 +82,7 @@ describe('ContractEvent', () => {
const waitUntilEvent = event.once()
await new Promise(resolve => setTimeout(resolve, 400))
await new Promise((resolve) => setTimeout(resolve, 400))
await executeTransaction()

View File

@ -17,7 +17,7 @@ describe('ContractHandler', () => {
assert(await contractHandler.get('OceanToken'))
})
it('should fail to load an unknown contract', done => {
it('should fail to load an unknown contract', (done) => {
contractHandler.get('OceanXXX').catch(() => {
done()
})

View File

@ -67,12 +67,12 @@ describe('EventHandler', () => {
const subscription = eventHandler.subscribe(callbackSpy)
await new Promise(resolve => setTimeout(resolve, 300))
await new Promise((resolve) => setTimeout(resolve, 300))
expect(callbackSpy).not.to.has.been.called()
blockNumber++
await new Promise(resolve => setTimeout(resolve, 300))
await new Promise((resolve) => setTimeout(resolve, 300))
expect(callbackSpy).to.has.been.called.with(blockNumber)

View File

@ -18,7 +18,7 @@ describe('DID', () => {
assert(did.getId() === id, did.getId())
})
it('should throw if prefix does not match', done => {
it('should throw if prefix does not match', (done) => {
const id = '1234'
try {
const did: DID = DID.parse(`did:xxx:${id}`)
@ -28,7 +28,7 @@ describe('DID', () => {
}
})
it('should throw if id does not match', done => {
it('should throw if id does not match', (done) => {
const id = 'xyz'
try {
const did: DID = DID.parse(`did:op:${id}`)

View File

@ -23,7 +23,7 @@ describe('OceanAccounts', () => {
it('should return the list of accounts', async () => {
const accounts = await oceanAccounts.list()
accounts.map(account => assert.instanceOf(account, Account))
accounts.map((account) => assert.instanceOf(account, Account))
})
})

View File

@ -22,9 +22,9 @@ describe('SubscribablePromise', () => {
assert.typeOf(subscription.unsubscribe, 'function')
})
it('should listen the next values', done => {
it('should listen the next values', (done) => {
const onNextSpy = spy()
const subscribable = new SubscribablePromise(observer => {
const subscribable = new SubscribablePromise((observer) => {
setTimeout(() => observer.next('test'), 10)
setTimeout(() => observer.next('test'), 20)
})
@ -39,10 +39,10 @@ describe('SubscribablePromise', () => {
})
describe('#then()', () => {
it('should resolve', done => {
it('should resolve', (done) => {
const onCompleteSpy = spy()
const onFinallySpy = spy()
const subscribable = new SubscribablePromise(observer => {
const subscribable = new SubscribablePromise((observer) => {
setTimeout(() => observer.next('test'), 10)
setTimeout(() => observer.complete('test'), 20)
})
@ -59,10 +59,10 @@ describe('SubscribablePromise', () => {
})
describe('#error()', () => {
it('should catch the error', done => {
it('should catch the error', (done) => {
const onErrorSpy = spy()
const onFinallySpy = spy()
const subscribable = new SubscribablePromise(observer => {
const subscribable = new SubscribablePromise((observer) => {
setTimeout(() => observer.next('test'), 10)
setTimeout(() => observer.error('test'), 20)
})
@ -80,7 +80,7 @@ describe('SubscribablePromise', () => {
it('should be able to subscribe and wait for a promise', async () => {
const onNextSpy = spy()
const subscribable = new SubscribablePromise(observer => {
const subscribable = new SubscribablePromise((observer) => {
setTimeout(() => observer.next('test'), 10)
setTimeout(() => observer.next('test'), 20)
setTimeout(() => observer.complete('completed'), 30)
@ -96,12 +96,12 @@ describe('SubscribablePromise', () => {
it('should use the result of a the promise as executor to complete the observer', async () => {
const onNextSpy = spy()
const subscribable = new SubscribablePromise(async observer => {
await new Promise(resolve => setTimeout(resolve, 10))
const subscribable = new SubscribablePromise(async (observer) => {
await new Promise((resolve) => setTimeout(resolve, 10))
observer.next('test')
await new Promise(resolve => setTimeout(resolve, 10))
await new Promise((resolve) => setTimeout(resolve, 10))
observer.next('test')
await new Promise(resolve => setTimeout(resolve, 10))
await new Promise((resolve) => setTimeout(resolve, 10))
return 'completed'
})