@oceanprotocol/lib 2.1.1 → 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 +23 -0
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/src/@types/Asset.d.ts +15 -9
- package/package.json +2 -2
|
@@ -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 {
|
|
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.
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@types/chai": "^4.3.1",
|
|
64
64
|
"@types/chai-spies": "^1.0.3",
|
|
65
65
|
"@types/crypto-js": "^4.1.1",
|
|
66
|
-
"@types/mocha": "^
|
|
66
|
+
"@types/mocha": "^10.0.0",
|
|
67
67
|
"@types/node": "^18.0.1",
|
|
68
68
|
"@types/node-fetch": "^3.0.3",
|
|
69
69
|
"@typescript-eslint/eslint-plugin": "^5.38.0",
|