Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] Generate a complete summary of a contract #26

Closed
maurelian opened this issue Aug 8, 2018 · 3 comments
Closed

[EPIC] Generate a complete summary of a contract #26

maurelian opened this issue Aug 8, 2018 · 3 comments

Comments

@maurelian
Copy link
Contributor

maurelian commented Aug 8, 2018

This is a bit of an epic, but the more I use surya, the more I want this.

I want to generate a summary of the resulting child contract after inheritance, including storage, and all functions.

The output would be something like this:

Exchange

    address public currentContextAddress;
    mapping (bytes4 => IAssetProxy) public assetProxies;
    mapping (bytes32 => mapping (address => bool)) public preSigned;
   ...

    MixinWrapperFunctions::fillOrKillOrder() public
    MixinAssets::withdrawERC20() external
...

   etc.

But prettier. This feature would combine elements of ftrace and dependencies, and require new storage parsing, but it would be awesome.

@GNSPS
Copy link
Collaborator

GNSPS commented Aug 8, 2018

I like this! Do you think it requires more storage parsing than ftrace, though? I feel that we could make do with the current auxiliary parsing methods.

@maurelian
Copy link
Contributor Author

I'm looking at ftrace now, and yes, it seems like the parsing in there should be sufficient to repurpose for this use case.

@maurelian maurelian changed the title Really accurate description of a contract [EPIC] Generate a complete summary of a contract Aug 23, 2018
This was referenced Aug 23, 2018
@maurelian
Copy link
Contributor Author

maurelian commented Aug 23, 2018

Includes:
[ ] #33
[ ] #37
[ ] #38
[ ] #26

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants