Skip to content

Commit

Permalink
Added some comments to the generated output to make it a bit easier t…
Browse files Browse the repository at this point in the history
…o navigate the generated output.
  • Loading branch information
thekevinbrown committed Apr 23, 2019
1 parent 4a6ff12 commit 318b82d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contracts/typeGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const generateTypes = async (contractIdentifier: string) => {

result.push(`import { ${imports.join(', ')} } from 'lamington';`);
result.push('');
result.push('// Table row types');

// Generate table row types from ABI
for (const table of contractTables) {
Expand Down Expand Up @@ -111,8 +112,10 @@ export const generateTypes = async (contractIdentifier: string) => {

const contractInterface = {
[`export interface ${pascalCase(contractName)} extends Contract`]: [
'// Actions',
...generatedContractActions,
'',
'// Tables',
...generatedTables,
],
};
Expand Down

0 comments on commit 318b82d

Please sign in to comment.