diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-24 04:20:59 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 04:05:23 +0800 |
commit | fe8f2d8d898e9909636366c9ceee37a5e9481573 (patch) | |
tree | 16be81a7d12e527c65084b972b39a4fe27c3267f /packages/0x.js/contract_templates | |
parent | 2d561bc8a05e8d1fca91cde93bae2080d87be926 (diff) | |
download | dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.gz dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.bz2 dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.lz dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.xz dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.zst dexon-sol-tools-fe8f2d8d898e9909636366c9ceee37a5e9481573.zip |
Add support for ABIv2 to abi-gen
Diffstat (limited to 'packages/0x.js/contract_templates')
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/contract_templates/partials/event.handlebars b/packages/0x.js/contract_templates/partials/event.handlebars index 6d68d4c0f..3c6100e4f 100644 --- a/packages/0x.js/contract_templates/partials/event.handlebars +++ b/packages/0x.js/contract_templates/partials/event.handlebars @@ -1,5 +1,5 @@ export interface {{name}}ContractEventArgs { {{#each inputs}} - {{name}}: {{#returnType type}}{{/returnType}}; + {{name}}: {{#returnType type components}}{{/returnType}}; {{/each}} } diff --git a/packages/0x.js/contract_templates/partials/return_type.handlebars b/packages/0x.js/contract_templates/partials/return_type.handlebars index 383961a40..268ad15f7 100644 --- a/packages/0x.js/contract_templates/partials/return_type.handlebars +++ b/packages/0x.js/contract_templates/partials/return_type.handlebars @@ -1,6 +1,6 @@ {{#singleReturnValue}} -{{#returnType outputs.0.type}}{{/returnType}} +{{#returnType outputs.0.type outputs.0.components}}{{/returnType}} {{/singleReturnValue}} {{^singleReturnValue}} -[{{#each outputs}}{{#returnType type}}{{/returnType}}{{#unless @last}}, {{/unless}}{{/each}}] +[{{#each outputs}}{{#returnType type components}}{{/returnType}}{{#unless @last}}, {{/unless}}{{/each}}] {{/singleReturnValue}} diff --git a/packages/0x.js/contract_templates/partials/typed_params.handlebars b/packages/0x.js/contract_templates/partials/typed_params.handlebars index 3ea4b2e95..c100e58f7 100644 --- a/packages/0x.js/contract_templates/partials/typed_params.handlebars +++ b/packages/0x.js/contract_templates/partials/typed_params.handlebars @@ -1,3 +1,3 @@ {{#each inputs}} - {{name}}: {{#parameterType type}}{{/parameterType}}, + {{name}}: {{#parameterType type components}}{{/parameterType}}, {{/each}} |