diff --git a/src/@types/Asset.ts b/src/@types/Asset.ts index 308026f3..a16cde98 100644 --- a/src/@types/Asset.ts +++ b/src/@types/Asset.ts @@ -90,6 +90,25 @@ export interface AssetDatatoken { serviceId: string } +export interface AssetPrice { + /** + * The price of the asset expressed as a number. If 0 then the price is FREE. + * @type {number} + */ + value: number + + /** + * The symbol that the price of the asset is expressed in. + * @type {string} + */ + tokenSymbol?: string + + /** + * The address of the token that the price needs to be paid in. + * @type {string} + */ + tokenAddress?: 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. @@ -97,6 +116,12 @@ export interface Stats { */ orders: number + /** + * Contains information about the price of this asset. + * @type {AssetPrice} + */ + price: AssetPrice + /** * Total amount of veOCEAN allocated on this asset. * @type {number}