aboutsummaryrefslogblamecommitdiffstats
path: root/packages/deployer/src/commands.ts
blob: 8e544a60ba14811bbeed6261f1c206b4209a7776 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                 



                                                              
                                      
      




                                                                                                
import { Compiler } from './compiler';
import { Deployer } from './deployer';
import { CompilerOptions, DeployerOptions } from './utils/types';

export const commands = {
    async compileAsync(opts: CompilerOptions): Promise<void> {
        const compiler = new Compiler(opts);
        await compiler.compileAsync();
    },
    async deployAsync(contractName: string, args: any[], opts: DeployerOptions): Promise<void> {
        const deployer = new Deployer(opts);
        await deployer.deployAndSaveAsync(contractName, args);
    },
};