diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-27 15:54:53 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 22:52:51 +0800 |
commit | f8772d88505e59c3bd9669f949635205b80b1946 (patch) | |
tree | 171c10d80c94a07e2aeb9bddfad88dc713945d95 /packages/contract_templates | |
parent | ce2f4088641b17ecf043deca6714a4881cac4be0 (diff) | |
download | dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.gz dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.bz2 dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.lz dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.xz dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.tar.zst dexon-sol-tools-f8772d88505e59c3bd9669f949635205b80b1946.zip |
Rename {{*}}ContractEventArgs to {{*}}EventArgs and append {{contractName}} to each event name (ERC721TransferEventArgs instead of TransferContractEventArgs)
Diffstat (limited to 'packages/contract_templates')
-rw-r--r-- | packages/contract_templates/contract.handlebars | 4 | ||||
-rw-r--r-- | packages/contract_templates/partials/event.handlebars | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars index 997088c8f..544ca0305 100644 --- a/packages/contract_templates/contract.handlebars +++ b/packages/contract_templates/contract.handlebars @@ -10,9 +10,9 @@ import * as _ from 'lodash'; // tslint:enable:no-unused-variable {{#if events}} -export type {{contractName}}ContractEventArgs = +export type {{contractName}}EventArgs = {{#each events}} - | {{name}}ContractEventArgs{{#if @last}};{{/if}} + | {{@root.contractName}}{{name}}EventArgs{{#if @last}};{{/if}} {{/each}} export enum {{contractName}}Events { diff --git a/packages/contract_templates/partials/event.handlebars b/packages/contract_templates/partials/event.handlebars index 69a99d937..61d523ca2 100644 --- a/packages/contract_templates/partials/event.handlebars +++ b/packages/contract_templates/partials/event.handlebars @@ -1,4 +1,4 @@ -export interface {{name}}ContractEventArgs extends DecodedLogArgs { +export interface {{@root.contractName}}{{name}}EventArgs extends DecodedLogArgs { {{#each inputs}} {{name}}: {{#returnType type components}}{{/returnType}}; {{/each}} |