aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/deploy/src/commands.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-17 03:12:42 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-18 21:18:51 +0800
commit4b9501318d8933f949fa0f87956e9cf5298d5726 (patch)
treec1aa7888406746bc3d8caad2eb03ffbd212cb6d4 /packages/contracts/deploy/src/commands.ts
parente5eec04f92b51319dc55c46c9be7b9d6fe5a1e48 (diff)
downloaddexon-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.ts19
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);
- },
-};