aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/package.json
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-02-07 18:40:06 +0800
committerGitHub <noreply@github.com>2018-02-07 18:40:06 +0800
commit12d62e1157168ec9e8cd23749523b2bcda8eefe5 (patch)
tree7061d10b3958647e51644593cd7e0be890048576 /packages/contracts/package.json
parent4c9c4c487a034d926443eeb8a0154fd38c97aca3 (diff)
parent0bad911a16dd2924e5be693710a422383aba4871 (diff)
downloaddexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.tar
dexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.tar.gz
dexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.tar.bz2
dexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.tar.lz
dexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.tar.xz
dexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.tar.zst
dexon-sol-tools-12d62e1157168ec9e8cd23749523b2bcda8eefe5.zip
Merge pull request #368 from 0xProject/feature/abigen/addNetworkId
Add CLI option for networkId, add abi-gen to contracts package
Diffstat (limited to 'packages/contracts/package.json')
-rw-r--r--packages/contracts/package.json7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/contracts/package.json b/packages/contracts/package.json
index b4074193d..af7441d85 100644
--- a/packages/contracts/package.json
+++ b/packages/contracts/package.json
@@ -9,14 +9,15 @@
},
"scripts": {
"build:watch": "tsc -w",
- "prebuild": "run-s clean copy_artifacts",
- "copy_artifacts": "copyfiles './artifacts/**/*' ./lib",
+ "prebuild": "run-s clean copy_artifacts generate_contract_wrappers",
+ "copy_artifacts": "copyfiles './src/artifacts/**/*' ./lib",
"build": "tsc",
"test": "run-s compile build run_mocha",
"run_mocha": "mocha 'lib/test/**/*.js' --timeout 10000 --bail --exit",
"compile:comment": "Yarn workspaces do not link binaries correctly so we need to reference them directly https://github.com/yarnpkg/yarn/issues/3846",
- "compile": "node ../deployer/lib/src/cli.js compile",
+ "compile": "node ../deployer/lib/src/cli.js compile --contracts-dir src/contracts --artifacts-dir src/artifacts",
"clean": "rm -rf ./lib",
+ "generate_contract_wrappers": "node ../abi-gen/lib/index.js --abis 'src/artifacts/@(DummyToken|TokenTransferProxy|Exchange|TokenRegistry|MultiSigWallet|MultiSigWalletWithTimeLock|MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress|TokenRegistry|ZRXToken).json' --template contract_templates/contract.handlebars --partials 'contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated",
"migrate": "node ../deployer/lib/src/cli.js migrate",
"lint": "tslint --project . 'migrations/**/*.ts' 'test/**/*.ts' 'util/**/*.ts' 'deploy/**/*.ts'",
"test:circleci": "yarn test"