diff options
Diffstat (limited to 'packages/abi-gen-wrappers')
-rw-r--r-- | packages/abi-gen-wrappers/package.json | 40 | ||||
-rw-r--r-- | packages/abi-gen-wrappers/src/index.ts | 12 | ||||
-rw-r--r-- | packages/abi-gen-wrappers/tsconfig.json | 8 |
3 files changed, 60 insertions, 0 deletions
diff --git a/packages/abi-gen-wrappers/package.json b/packages/abi-gen-wrappers/package.json new file mode 100644 index 000000000..7412e2739 --- /dev/null +++ b/packages/abi-gen-wrappers/package.json @@ -0,0 +1,40 @@ +{ + "name": "@0xproject/abi-gen-wrappers", + "version": "1.0.0", + "engines": { + "node": ">=6.12" + }, + "description": "Smart contract components of 0x protocol", + "main": "lib/src/index.js", + "directories": { + "test": "test" + }, + "scripts": { + "build": "yarn pre_build && tsc -b", + "build:ci": "yarn build", + "pre_build": "yarn generate_contract_wrappers", + "clean": "shx rm -rf lib wrappers", + "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output wrappers --backend ethers" + }, + "config": { + "abis": "../contract-artifacts/artifacts/@(AssetProxyOwner|DummyERC20Token|DummyERC721Token|ERC20Proxy|ERC20Token|ERC721Proxy|ERC721Token|Exchange|Forwarder|IValidator|IWallet|OrderValidator|WETH9|ZRXToken).json" + }, + "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-wrappers/README.md", + "devDependencies": { + "@0xproject/abi-gen": "^1.0.12", + "shx": "^0.2.2" + }, + "dependencies": { + }, + "publishConfig": { + "access": "public" + } +} diff --git a/packages/abi-gen-wrappers/src/index.ts b/packages/abi-gen-wrappers/src/index.ts new file mode 100644 index 000000000..614eb4ec0 --- /dev/null +++ b/packages/abi-gen-wrappers/src/index.ts @@ -0,0 +1,12 @@ +export * from '../wrappers/asset_proxy_owner'; +export * from '../wrappers/dummy_erc20_token'; +export * from '../wrappers/dummy_erc721_token'; +export * from '../wrappers/erc20_proxy'; +export * from '../wrappers/erc721_proxy'; +export * from '../wrappers/erc20_token'; +export * from '../wrappers/erc721_token'; +export * from '../wrappers/exchange'; +export * from '../wrappers/forwarder'; +export * from '../wrappers/order_validator'; +export * from '../wrappers/weth9'; +export * from '../wrappers/zrx_token'; diff --git a/packages/abi-gen-wrappers/tsconfig.json b/packages/abi-gen-wrappers/tsconfig.json new file mode 100644 index 000000000..241a4ae51 --- /dev/null +++ b/packages/abi-gen-wrappers/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig", + "compilerOptions": { + "outDir": "lib", + "rootDir": ".", + }, + "include": ["./src/**/*", "./wrappers/**/*"], +} |