@oceanprotocol/lib 0.18.0 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,8 +4,67 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v0.19.3](https://github.com/oceanprotocol/ocean.js/compare/v0.19.2...v0.19.3)
8
+
9
+ - Feature/issue 1060 change credential type [`#1073`](https://github.com/oceanprotocol/ocean.js/pull/1073)
10
+ - Bump @truffle/hdwallet-provider from 1.5.1 to 1.6.0 [`#1103`](https://github.com/oceanprotocol/ocean.js/pull/1103)
11
+ - Bump @types/node from 16.11.4 to 16.11.7 [`#1108`](https://github.com/oceanprotocol/ocean.js/pull/1108)
12
+ - Bump release-it from 14.11.6 to 14.11.7 [`#1113`](https://github.com/oceanprotocol/ocean.js/pull/1113)
13
+ - Bump typedoc from 0.22.6 to 0.22.9 [`#1114`](https://github.com/oceanprotocol/ocean.js/pull/1114)
14
+ - Bump @types/node from 16.11.2 to 16.11.4 [`#1087`](https://github.com/oceanprotocol/ocean.js/pull/1087)
15
+ - Bump ts-node from 10.3.1 to 10.4.0 [`#1086`](https://github.com/oceanprotocol/ocean.js/pull/1086)
16
+ - Bump @types/node from 16.11.1 to 16.11.2 [`#1085`](https://github.com/oceanprotocol/ocean.js/pull/1085)
17
+ - Bump ts-node from 10.3.0 to 10.3.1 [`#1084`](https://github.com/oceanprotocol/ocean.js/pull/1084)
18
+ - Bump @types/node from 16.11.0 to 16.11.1 [`#1077`](https://github.com/oceanprotocol/ocean.js/pull/1077)
19
+ - Bump mocha from 9.1.2 to 9.1.3 [`#1078`](https://github.com/oceanprotocol/ocean.js/pull/1078)
20
+ - Bump typedoc from 0.22.5 to 0.22.6 [`#1079`](https://github.com/oceanprotocol/ocean.js/pull/1079)
21
+ - Bump @types/node from 16.10.4 to 16.11.0 [`#1074`](https://github.com/oceanprotocol/ocean.js/pull/1074)
22
+ - Bump microbundle from 0.14.0 to 0.14.1 [`#1075`](https://github.com/oceanprotocol/ocean.js/pull/1075)
23
+ - Bump @types/node from 16.10.3 to 16.10.4 [`#1071`](https://github.com/oceanprotocol/ocean.js/pull/1071)
24
+ - Bump typescript from 4.4.3 to 4.4.4 [`#1070`](https://github.com/oceanprotocol/ocean.js/pull/1070)
25
+ - Bump ts-node from 10.2.1 to 10.3.0 [`#1069`](https://github.com/oceanprotocol/ocean.js/pull/1069)
26
+ - Delete parameters.md [`#1063`](https://github.com/oceanprotocol/ocean.js/pull/1063)
27
+ - Bump @truffle/hdwallet-provider from 1.5.0 to 1.5.1 [`#1067`](https://github.com/oceanprotocol/ocean.js/pull/1067)
28
+ - Bump @types/node from 16.10.2 to 16.10.3 [`#1065`](https://github.com/oceanprotocol/ocean.js/pull/1065)
29
+ - Bump microbundle from 0.13.3 to 0.14.0 [`#1066`](https://github.com/oceanprotocol/ocean.js/pull/1066)
30
+ - Bump @typescript-eslint/eslint-plugin from 4.32.0 to 4.33.0 [`#1062`](https://github.com/oceanprotocol/ocean.js/pull/1062)
31
+ - Bump @typescript-eslint/parser from 4.32.0 to 4.33.0 [`#1061`](https://github.com/oceanprotocol/ocean.js/pull/1061)
32
+ - #1060 Event access control validation [`d7a21e7`](https://github.com/oceanprotocol/ocean.js/commit/d7a21e7e342e2094a864e1d1492324d5810f63db)
33
+ - Fix bug [`be79812`](https://github.com/oceanprotocol/ocean.js/commit/be798129f9cb007d603ce78632c75dcc18506796)
34
+ - Fix codeclimate [`bd4f663`](https://github.com/oceanprotocol/ocean.js/commit/bd4f663113597b9d23f44a56b57d5f1fb5ab3e7b)
35
+
36
+ #### [v0.19.2](https://github.com/oceanprotocol/ocean.js/compare/v0.19.1...v0.19.2)
37
+
38
+ > 4 October 2021
39
+
40
+ - Changing files name event.d.ts -> event.ts [`#1058`](https://github.com/oceanprotocol/ocean.js/pull/1058)
41
+ - Release 0.19.2 [`5af26f0`](https://github.com/oceanprotocol/ocean.js/commit/5af26f08e49c9eb357e2ae9cd8e39dc0b3182448)
42
+
43
+ #### [v0.19.1](https://github.com/oceanprotocol/ocean.js/compare/v0.19.0...v0.19.1)
44
+
45
+ > 4 October 2021
46
+
47
+ - bump contracts + add networks [`#1059`](https://github.com/oceanprotocol/ocean.js/pull/1059)
48
+ - Bump typedoc from 0.21.9 to 0.22.5 [`#1056`](https://github.com/oceanprotocol/ocean.js/pull/1056)
49
+ - Bump web3 from 1.5.3 to 1.6.0 [`#1052`](https://github.com/oceanprotocol/ocean.js/pull/1052)
50
+ - Bump @types/node from 16.10.1 to 16.10.2 [`#1049`](https://github.com/oceanprotocol/ocean.js/pull/1049)
51
+ - Bump @typescript-eslint/eslint-plugin from 4.31.2 to 4.32.0 [`#1045`](https://github.com/oceanprotocol/ocean.js/pull/1045)
52
+ - Bump @typescript-eslint/parser from 4.31.2 to 4.32.0 [`#1044`](https://github.com/oceanprotocol/ocean.js/pull/1044)
53
+ - Bump @types/node from 16.9.6 to 16.10.1 [`#1043`](https://github.com/oceanprotocol/ocean.js/pull/1043)
54
+ - Bump mocha from 9.1.1 to 9.1.2 [`#1042`](https://github.com/oceanprotocol/ocean.js/pull/1042)
55
+ - Release 0.19.1 [`606d5c2`](https://github.com/oceanprotocol/ocean.js/commit/606d5c2a0bbe36b1f7bb7b7b79796ef77d6170bb)
56
+
57
+ #### [v0.19.0](https://github.com/oceanprotocol/ocean.js/compare/v0.18.0...v0.19.0)
58
+
59
+ > 24 September 2021
60
+
61
+ - Custom user parameters [`#944`](https://github.com/oceanprotocol/ocean.js/pull/944)
62
+ - Release 0.19.0 [`9c94a87`](https://github.com/oceanprotocol/ocean.js/commit/9c94a8789c8dc5ca88b798196cfa5fb807811651)
63
+
7
64
  #### [v0.18.0](https://github.com/oceanprotocol/ocean.js/compare/v0.18.0-next.0...v0.18.0)
8
65
 
66
+ > 24 September 2021
67
+
9
68
  - Bump web3-core from 1.5.2 to 1.5.3 [`#1038`](https://github.com/oceanprotocol/ocean.js/pull/1038)
10
69
  - fix yaml indentation [`#1041`](https://github.com/oceanprotocol/ocean.js/pull/1041)
11
70
  - set versioning-strategy [`#1040`](https://github.com/oceanprotocol/ocean.js/pull/1040)
package/README.md CHANGED
@@ -42,6 +42,7 @@ This is in alpha state and you can expect running into problems. If you run into
42
42
  - [🛳 Production](#-production)
43
43
  - [⬆️ Releases](#️-releases)
44
44
  - [Production](#production)
45
+ - [Pre-releases](#pre-releases)
45
46
  - [🏛 License](#-license)
46
47
 
47
48
  ## 📚 Prerequisites
@@ -155,7 +156,7 @@ Running all tests requires running Ocean Protocol components beforehand with [Ba
155
156
  git clone https://github.com/oceanprotocol/barge
156
157
  cd barge
157
158
 
158
- ./start_ocean.sh --with-provider2 --no-dashboard
159
+ ./start_ocean.sh --with-provider2 --no-dashboard --with-rbac
159
160
  ```
160
161
 
161
162
  You can then proceed to run in another terminal.
@@ -229,6 +230,16 @@ The task does the following:
229
230
 
230
231
  For the GitHub releases steps a GitHub personal access token, exported as `GITHUB_TOKEN` is required. [Setup](https://github.com/release-it/release-it#github-releases)
231
232
 
233
+ ### Pre-Releases
234
+
235
+ For pre-releases, this is required for the first one like `v0.18.0-next.0`:
236
+
237
+ ```bash
238
+ ./node_modules/.bin/release-it major|minor|patch --preRelease=next
239
+ ```
240
+
241
+ Further releases afterwards can be done with `npm run release` again and selecting the appropriate next version, in this case `v0.18.0-next.1` and so on.
242
+
232
243
  ## 🏛 License
233
244
 
234
245
  ```
@@ -1,10 +1,6 @@
1
- export declare enum CredentialType {
2
- address = "address",
3
- credential3Box = "credential3Box"
4
- }
5
1
  export declare type CredentialAction = 'allow' | 'deny';
6
2
  export interface Credential {
7
- type: CredentialType;
3
+ type: string;
8
4
  values: string[];
9
5
  }
10
6
  export interface Credentials {
@@ -0,0 +1,7 @@
1
+ export interface Event {
2
+ blockNo: number;
3
+ contract: string;
4
+ from: string;
5
+ txid: string;
6
+ update: boolean;
7
+ }
@@ -1,7 +1,19 @@
1
1
  import { Metadata } from './Metadata';
2
2
  import { Status } from './Status';
3
+ export interface ServiceCustomParameter {
4
+ name: string;
5
+ type: string;
6
+ label: string;
7
+ required: boolean;
8
+ options?: any;
9
+ description: string;
10
+ }
11
+ export interface ServiceCustomParametersRequired {
12
+ userCustomParameters?: ServiceCustomParameter[];
13
+ algoCustomParameters?: ServiceCustomParameter[];
14
+ }
3
15
  export declare type ServiceType = 'authorization' | 'metadata' | 'access' | 'compute';
4
- export interface ServiceCommonAttributes {
16
+ export interface ServiceCommonAttributes extends ServiceCustomParametersRequired {
5
17
  main: {
6
18
  [key: string]: any;
7
19
  };
@@ -31,9 +43,9 @@ export interface publisherTrustedAlgorithm {
31
43
  containerSectionChecksum: string;
32
44
  }
33
45
  export interface ServiceComputePrivacy {
34
- allowRawAlgorithm: boolean;
35
- allowNetworkAccess: boolean;
36
- allowAllPublishedAlgorithms: boolean;
46
+ allowRawAlgorithm?: boolean;
47
+ allowNetworkAccess?: boolean;
48
+ allowAllPublishedAlgorithms?: boolean;
37
49
  publisherTrustedAlgorithms?: publisherTrustedAlgorithm[];
38
50
  }
39
51
  export interface ServiceComputeProvider {
@@ -4,6 +4,7 @@ export * from './BestPrice';
4
4
  export * from './Curation';
5
5
  export * from './EditableMetadata';
6
6
  export * from './EditableMetadataLinks';
7
+ export * from './Event';
7
8
  export * from './File';
8
9
  export * from './Metadata';
9
10
  export * from './MetadataAlgorithm';