vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.9k stars 802 forks source link

Vyper interface compilation #4232

Open romanagureev opened 2 months ago

romanagureev commented 2 months ago

Simple Summary

Check correctness of .vyi file.

Motivation

There is no way to check if .vyi file alone was written correctly.

Specification

Something like:

 vyper Interface.vyi
PatrickAlphaC commented 2 months ago

Would also be helpful to be able to get the abi from an interface, ie:

vyper Interface.vyi --abi
charles-cooper commented 1 month ago

tentatively tagging for inclusion in 0.4.1

romanagureev commented 1 month ago

Note: discussed with Charles that should compile only with flags -f ast,annotated_ast,interface,external_interface

charles-cooper commented 1 month ago

And abi!