-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be interesting if flattener could be used to generate the interface of a contract, just like in this example
1 pragma solidity ^0.5.0;
2
3 contract SimpleStorage {
4 uint public storedData;
5
6 constructor(uint initialValue) public {
7 storedData = initialValue;
8 }
9
10 function set(uint x) public {
11 storedData = x;
12 }
13
14 function get() public view returns (uint retVal) {
15 return storedData;
16 }
17
18 }
generated interface:
1 pragma solidity ^0.5.0;
2
3 interface SimpleStorage {
4 uint public storedData;
5 constructor(uint initialValue) public;
6 function set(uint x) public;
7 function get() public view returns (uint retVal);
8 }
(Could be part of the scaffolding instead of the flattener)
jrainville
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request