1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/src/aquarius/AquariusProvider.ts
2018-10-26 11:57:26 +02:00

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
}