aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-08 16:45:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-10 23:46:57 +0800
commit422e5a19d4dc0461bdaecd9133bb8f19ac99baa6 (patch)
tree4c0acb9b18988b2d37f9678ad25181b2dfcb65ed /packages
parent3d58b38e4e8565e7ee10e4d6c9f57cd745957ab4 (diff)
downloaddexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.tar
dexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.tar.gz
dexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.tar.bz2
dexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.tar.lz
dexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.tar.xz
dexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.tar.zst
dexon-sol-tools-422e5a19d4dc0461bdaecd9133bb8f19ac99baa6.zip
Configure migrations with a compiler.json
Diffstat (limited to 'packages')
-rw-r--r--packages/migrations/compiler.json20
-rw-r--r--packages/migrations/package.json7
-rw-r--r--packages/migrations/src/migrate.ts2
3 files changed, 23 insertions, 6 deletions
diff --git a/packages/migrations/compiler.json b/packages/migrations/compiler.json
new file mode 100644
index 000000000..0d126f4b6
--- /dev/null
+++ b/packages/migrations/compiler.json
@@ -0,0 +1,20 @@
+{
+ "artifactsDir": "artifacts/1.0.0",
+ "contractsDir": "../contracts/src/contracts",
+ "contracts": [
+ "Exchange",
+ "DummyToken",
+ "ZRXToken",
+ "Token",
+ "WETH9",
+ "TokenTransferProxy",
+ "MultiSigWallet",
+ "MultiSigWalletWithTimeLock",
+ "MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress",
+ "MaliciousToken",
+ "TokenRegistry",
+ "Arbitrage",
+ "EtherDelta",
+ "AccountLevels"
+ ]
+}
diff --git a/packages/migrations/package.json b/packages/migrations/package.json
index 8c85aa337..e548d7365 100644
--- a/packages/migrations/package.json
+++ b/packages/migrations/package.json
@@ -11,11 +11,8 @@
"lint": "tslint --project . 'src/**/*.ts'",
"migrate": "run-s build compile script:migrate",
"script:migrate": "node ./lib/migrate.js",
- "copy_artifacts": "copyfiles 'src/artifacts/**/*' ./lib",
- "compile": "node ../deployer/lib/src/cli.js compile --contracts ${npm_package_config_contracts} --contracts-dir ../contracts/src/contracts --artifacts-dir src/artifacts"
- },
- "config": {
- "contracts": "Exchange,DummyToken,ZRXToken,Token,WETH9,TokenTransferProxy,MultiSigWallet,MultiSigWalletWithTimeLock,MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress,MaliciousToken,TokenRegistry,Arbitrage,EtherDelta,AccountLevels"
+ "copy_artifacts": "copyfiles 'artifacts/1.0.0/**/*' ./lib",
+ "compile": "node ../deployer/lib/src/cli.js compile"
},
"license": "Apache-2.0",
"devDependencies": {
diff --git a/packages/migrations/src/migrate.ts b/packages/migrations/src/migrate.ts
index 76dcbd847..014c4b1fe 100644
--- a/packages/migrations/src/migrate.ts
+++ b/packages/migrations/src/migrate.ts
@@ -9,7 +9,7 @@ import { runMigrationsAsync } from './migration';
(async () => {
const deployerOpts = {
jsonrpcUrl: 'http://localhost:8545',
- artifactsDir: path.resolve('src', 'artifacts'),
+ artifactsDir: path.resolve('artifacts', '1.0.0'),
networkId: 50,
defaults: {
gas: devConstants.GAS_ESTIMATE,