diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-17 03:12:42 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-18 21:18:51 +0800 |
commit | 4b9501318d8933f949fa0f87956e9cf5298d5726 (patch) | |
tree | c1aa7888406746bc3d8caad2eb03ffbd212cb6d4 /packages/contracts/deploy/src/commands.ts | |
parent | e5eec04f92b51319dc55c46c9be7b9d6fe5a1e48 (diff) | |
download | dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.tar dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.tar.gz dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.tar.bz2 dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.tar.lz dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.tar.xz dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.tar.zst dexon-sol-tools-4b9501318d8933f949fa0f87956e9cf5298d5726.zip |
Move deployer to a separate package
Diffstat (limited to 'packages/contracts/deploy/src/commands.ts')
-rw-r--r-- | packages/contracts/deploy/src/commands.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/contracts/deploy/src/commands.ts b/packages/contracts/deploy/src/commands.ts deleted file mode 100644 index b87b9e632..000000000 --- a/packages/contracts/deploy/src/commands.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { migrator } from './../migrations/migrate'; -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.compileAllAsync(); - }, - async migrateAsync(opts: DeployerOptions): Promise<void> { - const deployer = new Deployer(opts); - await migrator.runMigrationsAsync(deployer); - }, - async deployAsync(contractName: string, args: any[], opts: DeployerOptions): Promise<void> { - const deployer = new Deployer(opts); - await deployer.deployAndSaveAsync(contractName, args); - }, -}; |