aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/contract_templates
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-24 04:20:59 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 04:05:23 +0800
commitfe8f2d8d898e9909636366c9ceee37a5e9481573 (patch)
tree16be81a7d12e527c65084b972b39a4fe27c3267f /packages/0x.js/contract_templates
parent2d561bc8a05e8d1fca91cde93bae2080d87be926 (diff)
downloaddexon-0x-contracts-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.gz
dexon-0x-contracts-fe8f2d8d898e9909636366c9ceee37a5e9481573.tar.zst
dexon-0x-contracts-fe8f2d8d898e9909636366c9ceee37a5e9481573.zip
Add support for ABIv2 to abi-gen
Diffstat (limited to 'packages/0x.js/contract_templates')
-rw-r--r--packages/0x.js/contract_templates/partials/event.handlebars2
-rw-r--r--packages/0x.js/contract_templates/partials/return_type.handlebars4
-rw-r--r--packages/0x.js/contract_templates/partials/typed_params.handlebars2
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}}