aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-26 04:21:32 +0800
committerGitHub <noreply@github.com>2018-07-26 04:21:32 +0800
commit1b1733ce7c2c90f91151b71b4afbcebf946dcf34 (patch)
treed53d896e5da1442bd0f54228d12ad0a0d8753a3d /packages/contract-wrappers/package.json
parent05b35c0fdcbca7980d4195e96ec791c1c2d13398 (diff)
parent5fd64a969b8f4d414b3f458e7d90dc12e1ad0873 (diff)
downloaddexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.tar
dexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.tar.gz
dexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.tar.bz2
dexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.tar.lz
dexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.tar.xz
dexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.tar.zst
dexon-sol-tools-1b1733ce7c2c90f91151b71b4afbcebf946dcf34.zip
Merge pull request #911 from 0xProject/fix-v2-beta-migration
Update/Fix V2-beta-testnet migration & Use it in all RC packages
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"