Get AST data and create objects from ethpm-types for each contract type
How I did it
For the input JSON, you have to put "ast" at the source level; not the contract level, for it to work.
This means Ape is slightly bloated in that will have duplicate AST info when contracts are stored in the same file.
this will be needed for contract flattening (i think, based on looking at past implementation), that is why i added it
How to verify it
Can now play with the AST node in contracts.
Checklist
[ ] Passes all linting checks (pre-commit and CI jobs)
[ ] New test cases have been added and are passing
[ ] Documentation has been updated
[ ] PR title follows Conventional Commit standard (will be automatically included in the changelog)
What I did
How I did it
For the input JSON, you have to put
"ast"
at the source level; not the contract level, for it to work. This means Ape is slightly bloated in that will have duplicate AST info when contracts are stored in the same file.this will be needed for contract flattening (i think, based on looking at past implementation), that is why i added it
How to verify it
Can now play with the AST node in contracts.
Checklist