The contract artifacts should remain as standard compiler output during development. Fields should only be removed/added prior to being published in `@0x/contract-artifacts`. This PR adds the `yarn transform` script to `@0x/contract-artifacts` to facilitate this. Going forward, `abi-gen-templates` will have to support both standard artifacts and modified artifacts if they diverge, since the templates are used for `contract-artifacts`/`abi-gen-wrappers` (modified artifact) *and* development in all the `contracts/*` packages (standard artifact). This PR makes the following changes to `contract-artifacts`: - remove `evm.bytecode.linkReferences` from all artifacts - remove `evm.deployedBytecode` and `sourceTreeHashHex` from Coordinator artifact - prettify all artifacts (whitespace only changes)
44 lines
1.5 KiB
JSON
44 lines
1.5 KiB
JSON
{
|
|
"name": "@0x/contract-artifacts",
|
|
"version": "1.5.1",
|
|
"engines": {
|
|
"node": ">=6.12"
|
|
},
|
|
"description": "0x smart contract compilation artifacts",
|
|
"main": "lib/src/index.js",
|
|
"directories": {
|
|
"test": "test"
|
|
},
|
|
"scripts": {
|
|
"artifacts_copy": "node lib/src/copy.js",
|
|
"artifacts_transform": "node lib/src/transform.js ./artifacts && prettier --write ./artifacts/*.json && cp -r ./artifacts/ ../../python-packages/contract_artifacts/src/zero_ex/contract_artifacts/artifacts/",
|
|
"artifacts_update": "yarn artifacts_copy && yarn artifacts_transform && yarn build",
|
|
"build": "yarn tsc -b",
|
|
"build:ci": "yarn build",
|
|
"test": "yarn run_mocha",
|
|
"test:circleci": "yarn test",
|
|
"run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --bail --exit",
|
|
"clean": "shx rm -rf lib"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/0xProject/0x-monorepo.git"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/0xProject/0x-monorepo/issues"
|
|
},
|
|
"homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-artifacts/README.md",
|
|
"devDependencies": {
|
|
"@0x/utils": "^4.3.3",
|
|
"chai": "^4.0.1",
|
|
"lodash": "^4.17.11",
|
|
"mocha": "^4.1.0",
|
|
"shx": "^0.2.2",
|
|
"typescript": "3.0.1"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|