@oceanprotocol/lib 2.2.0 → 2.2.1

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,14 @@ 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
+ #### [v2.2.1](https://github.com/oceanprotocol/ocean.js/compare/v2.2.0...v2.2.1)
8
+
9
+ - add allocated [`#1630`](https://github.com/oceanprotocol/ocean.js/pull/1630)
10
+
7
11
  #### [v2.2.0](https://github.com/oceanprotocol/ocean.js/compare/v2.1.1...v2.2.0)
8
12
 
13
+ > 3 October 2022
14
+
9
15
  - remove ropsten & rinkeby from ConfigHelper [`#1617`](https://github.com/oceanprotocol/ocean.js/pull/1617)
10
16
  - Bump @types/node from 18.7.16 to 18.8.0 [`#1628`](https://github.com/oceanprotocol/ocean.js/pull/1628)
11
17
  - Bump @types/mocha from 9.1.1 to 10.0.0 [`#1624`](https://github.com/oceanprotocol/ocean.js/pull/1624)
@@ -16,6 +22,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
16
22
  - Bump eslint from 8.23.1 to 8.24.0 [`#1622`](https://github.com/oceanprotocol/ocean.js/pull/1622)
17
23
  - Bump eslint-config-oceanprotocol from 2.0.3 to 2.0.4 [`#1620`](https://github.com/oceanprotocol/ocean.js/pull/1620)
18
24
  - Bump vm2 from 3.9.9 to 3.9.11 [`#1616`](https://github.com/oceanprotocol/ocean.js/pull/1616)
25
+ - Release 2.2.0 [`87e188d`](https://github.com/oceanprotocol/ocean.js/commit/87e188d0067672f8da8df2ad19c7af7bcb3a14bd)
19
26
 
20
27
  #### [v2.1.1](https://github.com/oceanprotocol/ocean.js/compare/v2.1.0...v2.1.1)
21
28
 
@@ -75,6 +75,18 @@ export interface AssetDatatoken {
75
75
  */
76
76
  serviceId: string;
77
77
  }
78
+ export interface Stats {
79
+ /**
80
+ * How often an asset was consumed, meaning how often it was either downloaded or used as part of a compute job.
81
+ * @type {number}
82
+ */
83
+ orders: number;
84
+ /**
85
+ * Total amount of veOCEAN allocated on this asset.
86
+ * @type {number}
87
+ */
88
+ allocated?: number;
89
+ }
78
90
  export interface AssetLastEvent {
79
91
  tx: string;
80
92
  block: number;
@@ -99,16 +111,10 @@ export interface Asset extends DDO {
99
111
  */
100
112
  event: AssetLastEvent;
101
113
  /**
102
- * The stats section contains different statistics fields.
103
- * @type {string}
114
+ * The stats section contains different statistics fields. This section is added by Aquarius
115
+ * @type {Stats}
104
116
  */
105
- stats: {
106
- /**
107
- * How often an asset was consumed, meaning how often it was either downloaded or used as part of a compute job.
108
- * @type {string}
109
- */
110
- orders: number;
111
- };
117
+ stats: Stats;
112
118
  /**
113
119
  * Contains information about an asset's purgatory status defined in
114
120
  * [`list-purgatory`](https://github.com/oceanprotocol/list-purgatory).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",