import { EnvironmentService } from "../../services/environment/environment.service"; import { GraphQLService } from "../../services/graphql/graphql.service"; import { YamlService } from "../../services/yaml/yaml.service"; import { ConfigController } from "../config/config.controller"; import { IGanacheListen, IGanacheListenResult } from "./models"; declare type IStartLocalGanacheResult = IGanacheListenResult & IGanacheListen; export declare class GanacheController { private _graphQLService; private _yamlService; private _configController; private _environmentService; constructor(_graphQLService: GraphQLService, _yamlService: YamlService, _configController: ConfigController, _environmentService: EnvironmentService); /** * Start local ganache server * @param options The ganache listen input */ startLocalServer(options: IGanacheListen): Promise; /** * Format the ganache info * @param instance The instance */ formatGanacheInfo(instance: any): Promise; /** * Create new ganache instance */ createNew(driveId: string | undefined): Promise; /** * Create forked ganache instance * @param networkId The network id * @param block The block */ createForked(networkId: string | number, block: string | number, driveId: string | undefined): Promise; /** * Delete ganache instance * @param slug The slug */ deleteGanache(slug: string): Promise; /** * Gets the ganache by its id * @param id The id */ getGanacheById(id: string): Promise; /** * Gets the networks by drive * @param driveId The drive */ networksByDrive(driveId?: string): Promise; /** * This will create the ganache instances from the yaml file * @param yamlFilePath The yaml file path */ createFromYaml(yamlFilePath: string): Promise; /** * Validate creating ganache yaml * @param yamlContent The yaml content */ private validateCreatingGanacheYaml; /** * Get ganache slug URL * @param slug The slug */ private getGanacheUrl; } export {};