import { HttpAdapter } from "../http/HttpAdapter"; import { Logger } from "../logger/Logger"; import { SquidBridge, SquidChain, SquidConfiguration, SquidDex, SquidToken, SquidWrapper } from "../../database"; /** * Configuration adapter responsible to load configuration from the config server. */ export declare class ConfigurationAdapter { private readonly logger; private readonly configServerUrl; httpAdapter: HttpAdapter; config: { [key: string]: any; }; constructor(logger: Logger, configServerUrl: string, config?: { [key: string]: any; }, auth?: { username: string; password: string; }); private get; /** * Loads the entire configuration object with chains, tokens, dexes, wrappers, bridges and dexes. */ getConfig(): Promise; /** * Loads the list of chains (with tokens). */ getChains(): Promise; /** * Loads the list of wrappers with chains and tokens. */ getWrappers(): Promise; /** * Loads the list of bridges with tokens. */ getBridges(): Promise; /** * Load the list of tokens with chains. */ getTokens(): Promise; /** * Loads the lst of dexes and chains. */ getDexes(): Promise; /** * Loads a chain by id. * @param id the chain id. */ getChain(id: string): Promise; /** * Loads a wrapper by a given id. * @param id the wrapper id. */ getWrapper(id: string): Promise; /** * Loads a bridge by a given id. * @param id the bridge id. */ getBridge(id: string): Promise; /** * Loads a token by a given id. * @param id the token id. */ getToken(id: string): Promise; /** * Loads a dex by a given id. * @param id the dex id. */ getDex(id: string): Promise; getObjects(path: string): Promise; getObject(path: string, id: string): Promise; }