Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add allocated #1630

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions src/@types/Asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
kremalicious marked this conversation as resolved.
Show resolved Hide resolved
}

export interface AssetLastEvent {
tx: string
block: number
Expand Down Expand Up @@ -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
Expand Down