Class: KandelConfiguration
Title
Provides recommended configuration for deploying Kandel instances.
Constructorsβ
constructorβ
β’ new KandelConfiguration(configurationOverride?): KandelConfiguration
Constructor to provide specific configuration.
Parametersβ
| Name | Type | Description |
|---|---|---|
configurationOverride? | PartialKandelConfiguration | Optional configuration overrides that replace the values from the current configuration in configuration. |
Returnsβ
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:19
Propertiesβ
rawConfigurationβ
β’ rawConfiguration: PartialKandelConfiguration
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:14
Methodsβ
getMostSpecificConfigβ
βΈ getMostSpecificConfig(networkName, baseId, quoteId, tickSpacing): KandelNetworkConfiguration & Partial<KandelMarketConfiguration>
Gets the most specific available config for the network and the base/quote pair.
Parametersβ
| Name | Type | Description |
|---|---|---|
networkName | string | The name of the network. |
baseId | string | The ID of the base token. |
quoteId | string | The ID of the quote token. |
tickSpacing | number | The tick spacing of the market. |
Returnsβ
KandelNetworkConfiguration & Partial<KandelMarketConfiguration>
The most specific configuration available for the network and the base/quote pair.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:36
getConfigForBaseQuoteTickSpacingβ
βΈ getConfigForBaseQuoteTickSpacing(networkName, baseId, quoteId, tickSpacing): KandelNetworkConfiguration & KandelMarketConfiguration
Gets the config for the network and the base/quote/tickSpacing set.
Parametersβ
| Name | Type | Description |
|---|---|---|
networkName | string | The name of the network. |
baseId | string | The ID of the base token. |
quoteId | string | The ID of the quote token. |
tickSpacing | number | The tick spacing of the market. |
Returnsβ
KandelNetworkConfiguration & KandelMarketConfiguration
The configuration for the network and the base/quote/tickSpacing set.
Throws
If the full config is not available for the network and the base/quote/tickSpacing set.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:82
getConfigβ
βΈ getConfig(market): KandelNetworkConfiguration & KandelMarketConfiguration
Gets the config for the market.
Parametersβ
| Name | Type | Description |
|---|---|---|
market | Market | The market. |
Returnsβ
KandelNetworkConfiguration & KandelMarketConfiguration
The configuration for the market.
Throws
If the full config is not available for the market.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:127
getConfiguredMarketsβ
βΈ getConfiguredMarkets(mgv): { base: string ; quote: string ; tickSpacing: number }[]
Gets the list of markets that are configured for the network for the given Mangrove instance.
Parametersβ
| Name | Type | Description |
|---|---|---|
mgv | Mangrove | The Mangrove instance. |
Returnsβ
{ base: string ; quote: string ; tickSpacing: number }[]
The list of markets that are configured for the network for the given Mangrove instance.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:142
getConfiguredMarketsForNetworkβ
βΈ getConfiguredMarketsForNetwork(networkName): { base: string ; quote: string ; tickSpacing: number }[]
Gets the list of markets that are configured for the network.
Parametersβ
| Name | Type | Description |
|---|---|---|
networkName | string | The name of the network. |
Returnsβ
{ base: string ; quote: string ; tickSpacing: number }[]
The list of markets that are configured for the network.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:150
getNetworksβ
βΈ getNetworks(): string[]
Gets the networks with some configuration.
Returnsβ
string[]
Defined inβ
@mangrovedao/mangrove.js/src/kandel/kandelConfiguration.ts:171