@patchworkdev/pdk
Version:
Patchwork Development Kit
24 lines • 1.45 kB
TypeScript
import { ContractSchemaImpl } from '@patchworkdev/common';
import { PatchworkProject } from '../../types';
export declare class CLIProcessor {
contractSchema: string;
projectSchema: string;
constructor(contractSchema: string, projectSchema: string);
generateSolidity(config: PatchworkProject, outputDir?: string, contract?: string): void;
generateProjectContracts(config: PatchworkProject, contract: string | undefined, outputDir: string): void;
/**
* Loads the full project configuration by resolving and loading all contract configurations
* referenced in the given project configuration.
*
* @param projectConfig - The initial project configuration containing contract references or full contracts
* @param configFile - The path to the original project config file - needed to find relative contract config paths.
* @returns The full project configuration with all contract configurations loaded.
*/
loadFullProjectConfig(project: PatchworkProject): PatchworkProject;
generateContract(schema: ContractSchemaImpl, outputDir: string): void;
generateDeployScripts(config: PatchworkProject, contractsDir: string | undefined, outputDir?: string): void;
buildContracts(targetDir?: string): Promise<void>;
isPDKRepo(rootDir: string): string | undefined;
setProjectConfigDefaults(projectConfig: PatchworkProject): PatchworkProject;
}
//# sourceMappingURL=cliProcessor.d.ts.map