import { IDefaultOwner } from "../../controllers/config/models"; import { NetworkService } from "../network/network.service"; import { ResourceType } from "./enums/resource-type"; import { TerminalGraphQLClientService } from "./graphql-client.service"; import { IDeployContractRequestInput, INewGanacheInstanceInput } from "./models"; export declare class GraphQLService { private _graphQLClientService; private _networkService; constructor(_graphQLClientService: TerminalGraphQLClientService, _networkService: NetworkService); /** * Add new ganache instance * @param params The ganache instance object * @param driveId The drive id */ addNewGanacheInstance(params: INewGanacheInstanceInput, driveId: string): Promise; /** * Add new forked ganache instance * @param params The ganache instance object * @param driveId The drive id */ addForkedGanacheInstance(params: INewGanacheInstanceInput, driveId: string): Promise; /** * Delete ganache instance * @param slug The ganache slug path */ deleteGanacheInstance(slug: string): Promise; /** * Deploy the contract * @param params The deploy control request object * @param driveId The drive id * @param defaultOwner The default owner object */ deployContractRequest(params: IDeployContractRequestInput, driveId: string, defaultOwner: IDefaultOwner): Promise; /** * Gets contract watches by ethereum address * @param address The ethereum address */ getContractWatchesByAddresses(address: string | string[]): Promise; /** * Get all the drives */ allDrives(): Promise; /** * Gets the ganache by its id * @param ganacheId The ganache id */ getGanacheById(ganacheId: string): Promise; /** * add a draft resource * @param folderId The parent folder id * @param type The resouce type */ addDraftResource(folderId: string, type: ResourceType): Promise; /** * add folder * @param parentId The parent folder id * @param name folder name */ addFolder(parentId: string, name: string): Promise<{ folder: { id: string; }; }>; /** * returns all teams */ allTeams(): Promise>; /** * Gets the networks by drive * @param driveId The drive id */ networksByDrive(driveId: string): Promise; }