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:
parent
9cd18b62f5
commit
e0f533b469
@ -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.
|
* Aquarius provides an off-chain database store for metadata about data assets.
|
||||||
*/
|
*/
|
||||||
export class Aquarius {
|
export class Aquarius {
|
||||||
@ -34,7 +34,12 @@ export class Aquarius {
|
|||||||
return this.aquariusUri
|
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.fetch = new WebServiceConnector(logger)
|
||||||
this.logger = logger
|
this.logger = logger
|
||||||
this.aquariusUri = aquariusUri
|
this.aquariusUri = aquariusUri
|
||||||
|
Loading…
x
Reference in New Issue
Block a user