Skip to content

Commit

Permalink
Updating types to include the price which is sent from Aquarius (#1651)
Browse files Browse the repository at this point in the history
* Updating types to include the price which is sent from Aquarius

* Adding comments for AssetPrice

* Making Price required in Stats
  • Loading branch information
jamiehewitt15 committed Nov 15, 2022
1 parent b9b55fe commit 4abe5fc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/@types/Asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,38 @@ 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.
* @type {number}
*/
orders: number

/**
* Contains information about the price of this asset.
* @type {AssetPrice}
*/
price: AssetPrice

/**
* Total amount of veOCEAN allocated on this asset.
* @type {number}
Expand Down

0 comments on commit 4abe5fc

Please sign in to comment.