Skip to content

VIP: Change contract keyword to interface #1825

@fubuloubu

Description

@fubuloubu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions