From 1d692b72cf3b99e7af892715476bcbcea79239d1 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 4 Oct 2022 12:58:30 +0300 Subject: [PATCH] add allocated (#1630) * add allocated * allocated nullable --- src/@types/Asset.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/@types/Asset.ts b/src/@types/Asset.ts index efa78a392..41040d620 100644 --- a/src/@types/Asset.ts +++ b/src/@types/Asset.ts @@ -89,6 +89,20 @@ export interface AssetDatatoken { serviceId: string } +export interface Stats { + /** + * How often an asset was consumed, meaning how often it was either downloaded or used as part of a compute job. + * @type {number} + */ + orders: number + + /** + * Total amount of veOCEAN allocated on this asset. + * @type {number} + */ + allocated?: number +} + export interface AssetLastEvent { tx: string block: number @@ -117,16 +131,10 @@ export interface Asset extends DDO { event: AssetLastEvent /** - * The stats section contains different statistics fields. - * @type {string} + * The stats section contains different statistics fields. This section is added by Aquarius + * @type {Stats} */ - stats: { - /** - * How often an asset was consumed, meaning how often it was either downloaded or used as part of a compute job. - * @type {string} - */ - orders: number - } + stats: Stats /** * Contains information about an asset's purgatory status defined in