ApeWorX / ape-solidity

Solidity compiler plugin for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
17 stars 24 forks source link

feat: AST nodes [APE-967] #105

Closed antazoey closed 1 year ago

antazoey commented 1 year ago

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

antazoey commented 1 year ago

wtf why is typing-extensions always breaking everything... we dont even support Python 3.7.... 😠

Screenshot 2023-05-23 at 09 13 53