diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-05 05:14:05 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 04:36:59 +0800 |
commit | 8f0ceaf1d8261e9779213276372f4690cdf3426c (patch) | |
tree | 8773a0d4b5366be0d3821a68d31b309816f81521 /packages/abi-gen-wrappers | |
parent | 1da360435102bb6629f01d8a9d1c5d02d2a983bd (diff) | |
download | dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.tar dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.tar.gz dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.tar.bz2 dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.tar.lz dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.tar.xz dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.tar.zst dexon-sol-tools-8f0ceaf1d8261e9779213276372f4690cdf3426c.zip |
Create abi-gen-wrappers package
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/**/*"], +} |