- @0x/contracts-asset-proxy@3.1.1 - @0x/contracts-coordinator@3.0.4 - @0x/contracts-dev-utils@1.0.4 - @0x/contracts-erc1155@2.0.4 - @0x/contracts-erc20-bridge-sampler@1.1.0 - @0x/contracts-erc20@3.0.4 - @0x/contracts-erc721@3.0.4 - @0x/contracts-exchange-forwarder@4.0.4 - @0x/contracts-exchange-libs@4.1.0 - @0x/contracts-exchange@3.1.0 - @0x/contracts-extensions@5.1.3 - @0x/contracts-integrations@2.2.0 - @0x/contracts-multisig@4.0.4 - @0x/contracts-staking@2.0.4 - @0x/contracts-test-utils@5.1.1 - @0x/contracts-utils@4.1.0 - 0x.js@9.0.4 - @0x/abi-gen@5.1.0 - @0x/assert@3.0.4 - @0x/asset-swapper@4.0.0 - @0x/base-contract@6.1.0 - @0x/connect@6.0.4 - @0x/contract-addresses@4.3.0 - @0x/contract-artifacts@3.4.0 - @0x/contract-wrappers-test@12.2.5 - @0x/contract-wrappers@13.4.0 - @0x/contracts-gen@2.0.4 - @0x/dev-utils@3.1.1 - @0x/instant@1.0.41 - @0x/json-schemas@5.0.4 - @0x/migrations@6.0.0 - @0x/monorepo-scripts@1.0.47 - @0x/order-utils@10.1.1 - @0x/orderbook@2.1.0 - @0x/sol-compiler@4.0.4 - @0x/sol-coverage@4.0.4 - @0x/sol-doc@3.1.1 - @0x/sol-profiler@4.0.4 - @0x/sol-trace@3.0.4 - @0x/sol-tracing-utils@7.0.4 - @0x/sra-spec@3.0.4 - @0x/subproviders@6.0.4 - @0x/utils@5.2.0 - @0x/web3-wrapper@7.0.4
122 lines
5.8 KiB
JSON
122 lines
5.8 KiB
JSON
{
|
|
"name": "@0x/abi-gen",
|
|
"version": "5.1.0",
|
|
"engines": {
|
|
"node": ">=6.12"
|
|
},
|
|
"description": "Generate contract wrappers from ABI and handlebars templates",
|
|
"main": "lib/src/index.js",
|
|
"types": "lib/src/index.d.ts",
|
|
"scripts": {
|
|
"lint": "tslint --format stylish --project .",
|
|
"fix": "tslint --fix --format stylish --project . && yarn lint-contracts",
|
|
"clean": "shx rm -rf lib && yarn test_cli:clean",
|
|
"build": "tsc -b && yarn generate_contract_wrappers && yarn prettier_contract_wrappers && yarn test_cli:build",
|
|
"build:ci": "yarn build",
|
|
"test": "run-p run_mocha && yarn test_cli",
|
|
"test:circleci": "yarn test:coverage && yarn test_cli",
|
|
"run_mocha": "(uname -s | grep -q Darwin && echo 'HACK! skipping mocha run due to https://github.com/0xProject/0x-monorepo/issues/2000') || mocha --require source-map-support/register --require make-promises-safe lib/test/*_test.js --timeout 100000 --bail --exit",
|
|
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
|
|
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
|
|
"test_cli": "run-p test_cli:test_typescript diff_contract_wrappers test_cli:lint",
|
|
"test_cli:clean": "rm -rf test-cli/test_typescript/lib",
|
|
"test_cli:build": "tsc --project test-cli/tsconfig.json",
|
|
"test_cli:test_typescript": "mocha --require source-map-support/register --require make-promises-safe test-cli/test_typescript/lib/**/*_test.js --timeout 100000 --bail --exit",
|
|
"test_cli:lint": "run-p test_cli:lint_solidity test_cli:lint_python # test_cli:lint_typescript # HACK: typescript lint disabled because prettier fails",
|
|
"test_cli:lint_solidity": "solhint -c ../../contracts/.solhint.json test-cli/fixtures/contracts/*.sol",
|
|
"test_cli:lint_typescript": "prettier --check ./test-cli/output/typescript/* --config ../../.prettierrc",
|
|
"test_cli:lint_python": "pip install -r test-cli/fixtures/python-requirements.txt && run-p test_cli:lint_python:black test_cli:lint_python:mypy test_cli:lint_python:pylint",
|
|
"test_cli:lint_python:black": "black --line-length=79 --check ./test-cli/output/python/*",
|
|
"test_cli:lint_python:mypy": "MYPYPATH=./stubs mypy ./test-cli/output/python",
|
|
"test_cli:lint_python:pylint": "PYTHONPATH=../../python-packages/contract_wrappers/src pylint --rcfile=test-cli/fixtures/pylintrc ./test-cli/output/python/*",
|
|
"rebuild_and_test": "run-s build test",
|
|
"test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
|
|
"test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
|
|
"clean:sol": "rm -rf test-cli/artifacts",
|
|
"compile:sol": "sol-compiler",
|
|
"watch:sol": "sol-compiler -w",
|
|
"prettier_contract_wrappers": "prettier --write ./test-cli/output/typescript/* --config ../../.prettierrc",
|
|
"generate_contract_wrappers": "run-p gen_typescript gen_python",
|
|
"gen_typescript": "abi-gen --abis ${npm_package_config_abis} --debug --output ./test-cli/output/typescript --backend ethers",
|
|
"gen_python": "pip install regex==2019.11.1 && pip install black && abi-gen --abis ${npm_package_config_abis} --output ./test-cli/output/python --language Python",
|
|
"diff_contract_wrappers": "git diff --exit-code ./test-cli/output",
|
|
"coverage:report:text": "istanbul report text",
|
|
"coverage:report:html": "istanbul report html && open coverage/index.html",
|
|
"profiler:report:html": "istanbul report html && open coverage/index.html",
|
|
"contracts:gen": "contracts-gen generate"
|
|
},
|
|
"config": {
|
|
"abis": "./test-cli/fixtures/artifacts/@(AbiGenDummy|LibDummy|TestLibDummy).json",
|
|
"abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually."
|
|
},
|
|
"bin": {
|
|
"abi-gen": "bin/abi-gen.js"
|
|
},
|
|
"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/abi-gen/README.md",
|
|
"dependencies": {
|
|
"@0x/types": "^3.1.1",
|
|
"@0x/typescript-typings": "^5.0.1",
|
|
"@0x/utils": "^5.2.0",
|
|
"@types/toposort": "^2.0.1",
|
|
"chalk": "^2.3.0",
|
|
"change-case": "^3.0.2",
|
|
"cli-format": "^3.0.9",
|
|
"ethereum-types": "^3.0.0",
|
|
"glob": "^7.1.2",
|
|
"handlebars": "^4.1.2",
|
|
"lodash": "^4.17.11",
|
|
"mkdirp": "^0.5.1",
|
|
"tmp": "^0.0.33",
|
|
"to-snake-case": "^1.0.0",
|
|
"toposort": "^2.0.2",
|
|
"yargs": "^10.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@0x/assert": "^3.0.4",
|
|
"@0x/base-contract": "^6.1.0",
|
|
"@0x/contracts-gen": "^2.0.4",
|
|
"@0x/dev-utils": "^3.1.1",
|
|
"@0x/json-schemas": "^5.0.4",
|
|
"@0x/sol-compiler": "^4.0.4",
|
|
"@0x/subproviders": "^6.0.4",
|
|
"@0x/tslint-config": "^4.0.0",
|
|
"@0x/web3-wrapper": "^7.0.4",
|
|
"@types/glob": "5.0.35",
|
|
"@types/mkdirp": "^0.5.2",
|
|
"@types/mocha": "^5.2.7",
|
|
"@types/node": "*",
|
|
"@types/tmp": "^0.0.33",
|
|
"@types/yargs": "^11.0.0",
|
|
"chai": "^4.0.1",
|
|
"chai-as-promised": "^7.1.0",
|
|
"chai-bignumber": "^3.0.0",
|
|
"dirty-chai": "^2.0.1",
|
|
"ethers": "~4.0.4",
|
|
"make-promises-safe": "^1.1.0",
|
|
"mocha": "^6.2.0",
|
|
"npm-run-all": "^4.1.2",
|
|
"shx": "^0.2.2",
|
|
"sinon": "^4.0.0",
|
|
"solhint": "^1.4.1",
|
|
"tslint": "5.11.0",
|
|
"typescript": "3.0.1"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"templates/*",
|
|
"*.js",
|
|
"*.ts",
|
|
"*.map"
|
|
]
|
|
}
|