aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-26 00:07:12 +0800
committerFabio Berger <me@fabioberger.com>2018-07-26 00:07:12 +0800
commitdc51741b8376b5a0eaf010772f7a282dbb370205 (patch)
tree2244459960fde9e4fe3cfea13d9742f473a26544 /packages/contract-wrappers/package.json
parentdd979dbf6de1b64ca229b37ebbd5e71d0ab62d69 (diff)
downloaddexon-sol-tools-dc51741b8376b5a0eaf010772f7a282dbb370205.tar.gz
dexon-sol-tools-dc51741b8376b5a0eaf010772f7a282dbb370205.tar.zst
dexon-sol-tools-dc51741b8376b5a0eaf010772f7a282dbb370205.zip
Update artifacts in contract-wrappers, generate artifacts and improve README
Diffstat (limited to 'packages/contract-wrappers/package.json')
-rw-r--r--packages/contract-wrappers/package.json12
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/contract-wrappers/package.json b/packages/contract-wrappers/package.json
index 319f538a1..647522eca 100644
--- a/packages/contract-wrappers/package.json
+++ b/packages/contract-wrappers/package.json
@@ -13,7 +13,7 @@
"scripts": {
"watch_without_deps": "yarn pre_build && tsc -w",
"build": "yarn pre_build && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
- "pre_build": "run-s generate_contract_wrappers update_artifacts",
+ "pre_build": "run-s update_artifacts_v2_beta update_artifacts_v2 generate_contract_wrappers copy_artifacts",
"generate_contract_wrappers": "abi-gen --abis 'src/artifacts/@(Exchange|DummyERC20Token|DummyERC721Token|ZRXToken|ERC20Token|ERC721Token|WETH9|ERC20Proxy|ERC721Proxy).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers",
"lint": "tslint --project . --exclude **/src/contract_wrappers/**/* --exclude **/lib/**/*",
"test:circleci": "run-s test:coverage",
@@ -21,11 +21,17 @@
"rebuild_and_test": "run-s build test",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
- "update_artifacts": "copyfiles -u 2 './src/artifacts/**/*.json' ./lib/src/artifacts",
- "clean": "shx rm -rf _bundles lib test_temp scripts test/artifacts src/contract_wrappers/generated",
+ "update_artifacts_v2_beta": "for i in ${npm_package_config_contracts_v2_beta}; do copyfiles -u 4 ../migrations/artifacts/2.0.0-beta-testnet/$i.json src/artifacts; done;",
+ "update_artifacts_v2": "for i in ${npm_package_config_contracts_v2}; do copyfiles -u 4 ../migrations/artifacts/2.0.0/$i.json src/artifacts; done;",
+ "copy_artifacts": "copyfiles -u 2 './src/artifacts/**/*.json' ./lib/src/artifacts",
+ "clean": "shx rm -rf _bundles lib test_temp scripts test/artifacts src/contract_wrappers/generated src/artifacts",
"run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js lib/test/global_hooks.js --timeout 10000 --bail --exit",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
+ "config": {
+ "contracts_v2_beta": "Exchange ERC20Proxy ERC20Token ERC721Proxy ERC721Token WETH9 ZRXToken",
+ "contracts_v2": "DummyERC20Token DummyERC721Token"
+ },
"repository": {
"type": "git",
"url": "https://github.com/0xProject/0x-monorepo"