mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
added OceanTokens initialization on Ocean
This commit is contained in:
parent
fce3a09285
commit
dd5c90eb9f
@ -4,6 +4,7 @@ import OceanAccounts from "./OceanAccounts"
|
|||||||
import OceanAgreements from "./OceanAgreements"
|
import OceanAgreements from "./OceanAgreements"
|
||||||
import OceanAssets from "./OceanAssets"
|
import OceanAssets from "./OceanAssets"
|
||||||
import OceanSecretStore from "./OceanSecretStore"
|
import OceanSecretStore from "./OceanSecretStore"
|
||||||
|
import OceanTokens from "./OceanTokens"
|
||||||
|
|
||||||
import AquariusProvider from "../aquarius/AquariusProvider"
|
import AquariusProvider from "../aquarius/AquariusProvider"
|
||||||
import { SearchQuery } from "../aquarius/query/SearchQuery"
|
import { SearchQuery } from "../aquarius/query/SearchQuery"
|
||||||
@ -40,6 +41,7 @@ export default class Ocean {
|
|||||||
Ocean.instance.assets = await OceanAssets.getInstance()
|
Ocean.instance.assets = await OceanAssets.getInstance()
|
||||||
Ocean.instance.agreements = await OceanAgreements.getInstance()
|
Ocean.instance.agreements = await OceanAgreements.getInstance()
|
||||||
Ocean.instance.secretStore = await OceanSecretStore.getInstance()
|
Ocean.instance.secretStore = await OceanSecretStore.getInstance()
|
||||||
|
Ocean.instance.tokens = await OceanTokens.getInstance()
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ocean.instance
|
return Ocean.instance
|
||||||
@ -75,8 +77,13 @@ export default class Ocean {
|
|||||||
*/
|
*/
|
||||||
public secretStore: OceanSecretStore
|
public secretStore: OceanSecretStore
|
||||||
|
|
||||||
private constructor() {
|
/**
|
||||||
}
|
* Ocean tokens submodule
|
||||||
|
* @type {OceanTokens}
|
||||||
|
*/
|
||||||
|
public tokens: OceanTokens
|
||||||
|
|
||||||
|
private constructor() { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the list of accounts.
|
* Returns the list of accounts.
|
||||||
|
Loading…
Reference in New Issue
Block a user