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

Require logger argument in Aquarius constructor.

Improve Aquarius constructor comment/documentation.
This commit is contained in:
Jorge Shirai 2020-01-15 15:24:32 +01:00
parent 9cd18b62f5
commit e0f533b469
No known key found for this signature in database
GPG Key ID: CC28B81AAFF7CD83

View File

@ -22,7 +22,7 @@ export interface SearchQuery {
}
/**
* Provides a interface with Aquarius.
* Provides an interface with Aquarius.
* Aquarius provides an off-chain database store for metadata about data assets.
*/
export class Aquarius {
@ -34,7 +34,12 @@ export class Aquarius {
return this.aquariusUri
}
constructor(aquariusUri: string, logger?: Logger) {
/**
* Instantiate Aquarius (independently of Ocean) for off-chain interaction.
* @param {String} aquariusUri
* @param {Logger} logger
*/
constructor(aquariusUri: string, logger: Logger) {
this.fetch = new WebServiceConnector(logger)
this.logger = logger
this.aquariusUri = aquariusUri