diff --git a/src/ocean/OceanAssets.ts b/src/ocean/OceanAssets.ts index 477ab0c..e9e0a42 100644 --- a/src/ocean/OceanAssets.ts +++ b/src/ocean/OceanAssets.ts @@ -384,6 +384,13 @@ export class OceanAssets extends Instantiable { return txReceipt } + /** + * Edit Metadata for a DDO. + * @param {did} string DID. + * @param {newMetadata} EditableMetaData Metadata fields & new values. + * @param {Account} account Ethereum account of owner to sign and prove the ownership. + * @return {Promise} + */ public async editMetadata( did: string, newMetadata: EditableMetaData, @@ -407,6 +414,12 @@ export class OceanAssets extends Instantiable { return result } + /** + * Retire a DDO (Delete) + * @param {did} string DID. + * @param {Account} account Ethereum account of owner to sign and prove the ownership. + * @return {Promise} + */ public async retire(did: string, account: Account): Promise { const oldDdo = await this.ocean.aquarius.retrieveDDO(did) // get a signature