From f8772d88505e59c3bd9669f949635205b80b1946 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 27 Jun 2018 10:54:53 +0300 Subject: Rename {{*}}ContractEventArgs to {{*}}EventArgs and append {{contractName}} to each event name (ERC721TransferEventArgs instead of TransferContractEventArgs) --- packages/contract_templates/contract.handlebars | 4 ++-- packages/contract_templates/partials/event.handlebars | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/contract_templates') 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}} -- cgit v1.2.3