mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
update for purgatory
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
eccae2f7cd
commit
373939d42b
@ -6,6 +6,7 @@ import { Service, ServiceType } from './interfaces/Service'
|
||||
import Web3Provider from '../datatokens/Web3Provider'
|
||||
import { BestPrice } from './interfaces/BestPrice'
|
||||
import { DataTokenInfo } from './interfaces/DataTokenInfo'
|
||||
import { PurgatoryData } from './interfaces/PurgatoryData'
|
||||
/**
|
||||
* DID Descriptor Object.
|
||||
* Contains all the data related to an asset.
|
||||
@ -55,6 +56,10 @@ export class DDO {
|
||||
|
||||
public price: BestPrice
|
||||
|
||||
public isInPurgatory: boolean
|
||||
|
||||
public purgatoryData: PurgatoryData
|
||||
|
||||
public dataTokenInfo?: DataTokenInfo
|
||||
|
||||
public constructor(ddo: Partial<DDO> = {}) {
|
||||
|
5
src/ddo/interfaces/PurgatoryData.ts
Normal file
5
src/ddo/interfaces/PurgatoryData.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface PurgatoryData {
|
||||
did: string
|
||||
date: string
|
||||
reason: string
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user