Simple Summary
Use interface as the keyword for defining an interface.
Motivation
VIP #885 added Interfaces to Vyper, but it chose the contract keyword, which in retrospect seems inconsistent with it's intended purpose.
Specification
Just change the keyword. Consider deprecating it first. It would look like:
interface MyInterface:
def do_stuff(): modifying
Backwards Compatibility
This VIP would not be backwards compatible and would require a small change from users.
Dependencies
Depends on #885, which is already implemented
Copyright
Copyright and related rights waived via CC0
Simple Summary
Use
interfaceas the keyword for defining an interface.Motivation
VIP #885 added Interfaces to Vyper, but it chose the
contractkeyword, which in retrospect seems inconsistent with it's intended purpose.Specification
Just change the keyword. Consider deprecating it first. It would look like:
Backwards Compatibility
This VIP would not be backwards compatible and would require a small change from users.
Dependencies
Depends on #885, which is already implemented
Copyright
Copyright and related rights waived via CC0