diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-05 17:47:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 17:47:45 +0800 |
commit | 44a736c53b8901ee36dbe009ad570930bbc8e676 (patch) | |
tree | 81f81fe12fda96ee9618cc0690eeb40a75a9869b /packages/abi-gen/README.md | |
parent | 38cbd42d81d5bdb76d863836969e746e6c1244a6 (diff) | |
parent | 6c6fb2e2879a84422c5f608f91f17ab4cc96df5b (diff) | |
download | dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.tar dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.tar.gz dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.tar.bz2 dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.tar.lz dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.tar.xz dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.tar.zst dexon-sol-tools-44a736c53b8901ee36dbe009ad570930bbc8e676.zip |
Merge pull request #661 from feuGeneA/patch-1
Fix broken link to `contract_templates`
Diffstat (limited to 'packages/abi-gen/README.md')
-rw-r--r-- | packages/abi-gen/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/abi-gen/README.md b/packages/abi-gen/README.md index 4240ba7ba..c5dd7f0f5 100644 --- a/packages/abi-gen/README.md +++ b/packages/abi-gen/README.md @@ -5,7 +5,7 @@ It's heavily inspired by [Geth abigen](https://github.com/ethereum/go-ethereum/w You can write your custom handlebars templates which will allow you to seamlessly integrate the generated code into your existing codebase with existing conventions. For an example of the generated [wrapper files](https://github.com/0xProject/0x-monorepo/tree/development/packages/0x.js/src/contract_wrappers/generated) check out 0x.js. -[Here](https://github.com/0xProject/0x-monorepo/tree/development/packages/0x.js/contract_templates) are the templates used to generate those files. +[Here](https://github.com/0xProject/0x-monorepo/tree/development/packages/contract_templates) are the templates used to generate those files. ## Installation @@ -45,7 +45,7 @@ You need to also specify the location of your main template used for every contr ## How to write custom templates? -The best way to get started is to copy [0x.js templates](https://github.com/0xProject/0x-monorepo/tree/development/packages/0x.js/contract_templates) and start adjusting them for your needs. +The best way to get started is to copy [0x.js templates](https://github.com/0xProject/0x-monorepo/tree/development/packages/contract_templates) and start adjusting them for your needs. We use [handlebars](http://handlebarsjs.com/) template engine under the hood. You need to have a master template called `contract.mustache`. it will be used to generate each contract wrapper. Although - you don't need and probably shouldn't write all your logic in a single template file. You can write [partial templates](http://handlebarsjs.com/partials.html) and as long as they are within a partials folder - they will be registered and available. |