From d07b0cff892cd84938de8767cd4489b0fe620986 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 4 Oct 2022 11:55:44 +0300 Subject: [PATCH 1/2] add allocated --- 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..caed4269e 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 From 053cb7001120fa638538d8b83b896c322046cec5 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 4 Oct 2022 12:08:44 +0300 Subject: [PATCH 2/2] allocated nullable --- src/@types/Asset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@types/Asset.ts b/src/@types/Asset.ts index caed4269e..41040d620 100644 --- a/src/@types/Asset.ts +++ b/src/@types/Asset.ts @@ -100,7 +100,7 @@ export interface Stats { * Total amount of veOCEAN allocated on this asset. * @type {number} */ - allocated: number + allocated?: number } export interface AssetLastEvent {