mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
21 lines
491 B
TypeScript
21 lines
491 B
TypeScript
import ConfigProvider from "../ConfigProvider"
|
|
import Aquarius from "./Aquarius"
|
|
|
|
export default class AquariusProvider {
|
|
|
|
public static setAquarius(aquarius: Aquarius) {
|
|
|
|
AquariusProvider.aquarius = aquarius
|
|
}
|
|
|
|
public static getAquarius() {
|
|
|
|
if (!AquariusProvider.aquarius) {
|
|
AquariusProvider.aquarius = new Aquarius(ConfigProvider.getConfig())
|
|
}
|
|
return AquariusProvider.aquarius
|
|
}
|
|
|
|
private static aquarius: Aquarius = null
|
|
}
|