aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-25 07:30:30 +0800
committerFabio Berger <me@fabioberger.com>2018-05-25 07:30:30 +0800
commit35121f0b780102f0235ab3d5f26441cbb3f090e9 (patch)
tree9f1e56a98683fbee69a6b5fc051dc81064643734 /packages/migrations/package.json
parent3cc8af819c9f62f42e7cb3d03f896b35cfc10d05 (diff)
parentc4a7574f7bd3939eac9417241144197bbb22edb1 (diff)
downloaddexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.tar
dexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.tar.gz
dexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.tar.bz2
dexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.tar.lz
dexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.tar.xz
dexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.tar.zst
dexon-sol-tools-35121f0b780102f0235ab3d5f26441cbb3f090e9.zip
Merge branch 'v2-prototype' into feature/contracts/eip712-order-hash
* v2-prototype: Temporarily disable installation tests Pin connect in sra-report Fix a typo Pin types in sra-report Fix linter issues Unpin types version in @0xproject/connect Pin types version in website Do a fake version bump on types so that yarn doesn't try to install updated version for not yet migrated packages Migrate migrations to v2 # Conflicts: # packages/contracts/src/utils/order_utils.ts
Diffstat (limited to 'packages/migrations/package.json')
-rw-r--r--packages/migrations/package.json24
1 files changed, 18 insertions, 6 deletions
diff --git a/packages/migrations/package.json b/packages/migrations/package.json
index 08f7aa6b2..54866110e 100644
--- a/packages/migrations/package.json
+++ b/packages/migrations/package.json
@@ -10,18 +10,28 @@
"scripts": {
"watch": "tsc -w",
"prebuild": "run-s clean copy_artifacts generate_contract_wrappers",
- "copy_artifacts": "copyfiles 'artifacts/1.0.0/**/*' ./lib",
+ "copy_artifacts": "copyfiles 'artifacts/**/*' ./lib",
"build": "tsc",
"clean": "shx rm -rf lib src/contract_wrappers",
"lint": "tslint --project .",
- "migrate": "run-s build compile script:migrate",
- "script:migrate": "node ./lib/migrate.js",
- "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers --backend ethers && prettier --write 'src/contract_wrappers/**.ts'",
+ "migrate:v1": "run-s build compile script:migrate:v1",
+ "migrate:v2": "run-s build compile script:migrate:v2",
+ "script:migrate:v1": "node ./lib/migrate.js --contracts-version 1.0.0",
+ "script:migrate:v2": "node ./lib/migrate.js --contracts-version 2.0.0",
+ "generate_contract_wrappers": "run-p generate_contract_wrappers:*",
+ "generate_contract_wrappers:v1":
+ "abi-gen --abis ${npm_package_config_abis_v1} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/v1/contract_wrappers --backend ethers && prettier --write 'src/v1/contract_wrappers/**.ts'",
+ "generate_contract_wrappers:v2":
+ "abi-gen --abis ${npm_package_config_abis_v2} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/v2/contract_wrappers --backend ethers && prettier --write 'src/v2/contract_wrappers/**.ts'",
"compile": "sol-compiler"
},
"config": {
- "abis":
- "artifacts/1.0.0/@(DummyERC20Token|TokenTransferProxy_v1|Exchange_v1|TokenRegistry|MultiSigWallet|MultiSigWalletWithTimeLock|MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress|TokenRegistry|ZRXToken|WETH9).json"
+ "abis": {
+ "v1":
+ "artifacts/1.0.0/@(DummyERC20Token|TokenTransferProxy_v1|Exchange_v1|TokenRegistry|MultiSigWallet|MultiSigWalletWithTimeLock|MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress|TokenRegistry|ZRXToken|WETH9).json",
+ "v2":
+ "artifacts/2.0.0/@(DummyERC20Token|DummyERC721Token|ERC20Proxy|ERC721Proxy|Exchange|MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress|ZRXToken|WETH9).json"
+ }
},
"license": "Apache-2.0",
"devDependencies": {
@@ -29,6 +39,8 @@
"@0xproject/dev-utils": "^0.4.2",
"@0xproject/tslint-config": "^0.4.18",
"@0xproject/types": "^0.7.0",
+ "@types/yargs": "^10.0.0",
+ "yargs": "^10.0.3",
"make-promises-safe": "^1.1.0",
"npm-run-all": "^4.1.2",
"shx": "^0.2.2",