1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

expose both search methods

This commit is contained in:
Sebastian Gerske 2018-11-05 14:58:58 +01:00
parent e1b4293125
commit 1874e24b61
2 changed files with 4 additions and 2 deletions

View File

@ -102,4 +102,8 @@ export default class Ocean {
public async searchAssets(query: SearchQuery): Promise<any[]> {
return AquariusProvider.getAquarius().queryMetadata(query)
}
public async searchAssetsByText(query: SearchQuery): Promise<any[]> {
return AquariusProvider.getAquarius().queryMetadataByText(query)
}
}

View File

@ -3,7 +3,6 @@ import ServiceAgreement from "../../keeper/contracts/ServiceAgreement"
import Web3Provider from "../../keeper/Web3Provider"
import MethodReflection from "../../models/MethodReflection"
import ValuePair from "../../models/ValuePair"
import Logger from "../../utils/Logger"
import Account from "../Account"
import OceanBase from "../OceanBase"
import Condition from "./Condition"
@ -28,7 +27,6 @@ export default class ServiceAgreementTemplate extends OceanBase {
return method.dependency | method.timeout
}))
Logger.log(dependencyMatrix)
const serviceAgreement: ServiceAgreement = await ServiceAgreement.getInstance()
const receipt = await serviceAgreement.setupAgreementTemplate(