@oceanprotocol/lib 2.5.1 → 2.5.2
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 +9 -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 +22 -0
- package/package.json +1 -1
|
@@ -76,12 +76,34 @@ export interface AssetDatatoken {
|
|
|
76
76
|
*/
|
|
77
77
|
serviceId: string;
|
|
78
78
|
}
|
|
79
|
+
export interface AssetPrice {
|
|
80
|
+
/**
|
|
81
|
+
* The price of the asset expressed as a number. If 0 then the price is FREE.
|
|
82
|
+
* @type {number}
|
|
83
|
+
*/
|
|
84
|
+
value: number;
|
|
85
|
+
/**
|
|
86
|
+
* The symbol that the price of the asset is expressed in.
|
|
87
|
+
* @type {string}
|
|
88
|
+
*/
|
|
89
|
+
tokenSymbol?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The address of the token that the price needs to be paid in.
|
|
92
|
+
* @type {string}
|
|
93
|
+
*/
|
|
94
|
+
tokenAddress?: string;
|
|
95
|
+
}
|
|
79
96
|
export interface Stats {
|
|
80
97
|
/**
|
|
81
98
|
* How often an asset was consumed, meaning how often it was either downloaded or used as part of a compute job.
|
|
82
99
|
* @type {number}
|
|
83
100
|
*/
|
|
84
101
|
orders: number;
|
|
102
|
+
/**
|
|
103
|
+
* Contains information about the price of this asset.
|
|
104
|
+
* @type {AssetPrice}
|
|
105
|
+
*/
|
|
106
|
+
price: AssetPrice;
|
|
85
107
|
/**
|
|
86
108
|
* Total amount of veOCEAN allocated on this asset.
|
|
87
109
|
* @type {number}
|