aboutsummaryrefslogtreecommitdiffstats
path: root/packages/fill-scenarios/package.json
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-06 18:31:30 +0800
committerFabio Berger <me@fabioberger.com>2018-06-06 18:31:30 +0800
commit271fa26890c7d86fe516b51d653a308b2789d2c2 (patch)
treeeff3a17c8dd56cd1fbe4da76557b904253792cd2 /packages/fill-scenarios/package.json
parentfe437da7517b4ea8e308a7210a34e66b715d5c78 (diff)
parentcc39eea9991306eabadd912256452f67fb49c20b (diff)
downloaddexon-0x-contracts-271fa26890c7d86fe516b51d653a308b2789d2c2.tar.gz
dexon-0x-contracts-271fa26890c7d86fe516b51d653a308b2789d2c2.tar.zst
dexon-0x-contracts-271fa26890c7d86fe516b51d653a308b2789d2c2.zip
merge v2-prototype
Diffstat (limited to 'packages/fill-scenarios/package.json')
-rw-r--r--packages/fill-scenarios/package.json19
1 files changed, 12 insertions, 7 deletions
diff --git a/packages/fill-scenarios/package.json b/packages/fill-scenarios/package.json
index 4a1724971..f7b71d07a 100644
--- a/packages/fill-scenarios/package.json
+++ b/packages/fill-scenarios/package.json
@@ -1,18 +1,23 @@
{
"name": "@0xproject/fill-scenarios",
- "version": "0.0.2",
+ "version": "1.0.0",
"description": "0x order fill scenario generator",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
- "watch": "tsc -w",
- "prebuild": "run-s clean generate_contract_wrappers",
- "generate_contract_wrappers": "abi-gen --abis 'src/compact_artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|DummyToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/generated_contract_wrappers --backend ethers && prettier --write 'src/generated_contract_wrappers/**.ts'",
- "build": "tsc && copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/compact_artifacts && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
+ "watch": "yarn update_contract_wrappers && tsc -w",
+ "build": "yarn update_contract_wrappers && tsc",
+ "update_contract_wrappers": "run-s clean update_artifacts generate_contract_wrappers",
+ "update_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/2.0.0/$i.json lib/artifacts; done;",
+ "generate_contract_wrappers": "abi-gen --abis 'lib/artifacts/@(Exchange|ERC20Token|DummyERC20Token).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/generated_contract_wrappers --backend ethers && prettier --write 'src/generated_contract_wrappers/**.ts'",
+ "copy_monorepo_scripts": "copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"clean": "shx rm -rf lib scripts src/generated_contract_wrappers",
"lint": "tslint --project . --exclude **/src/generated_contract_wrappers/**/*",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
+ "config": {
+ "contracts": "Exchange ERC20Token DummyERC20Token"
+ },
"license": "Apache-2.0",
"repository": {
"type": "git",
@@ -37,8 +42,8 @@
},
"dependencies": {
"@0xproject/base-contract": "^0.3.2",
- "@0xproject/order-utils": "0.0.5",
- "@0xproject/types": "0.7.0",
+ "@0xproject/order-utils": "^0.0.6",
+ "@0xproject/types": "1.0.0",
"ethereum-types": "^0.0.1",
"@0xproject/typescript-typings": "^0.3.2",
"@0xproject/utils": "^0.6.2",