Skip to content

Vyper interface files (.vyi) do not appear as interfaces in project #134

@fubuloubu

Description

@fubuloubu

Overview

The vyper plugin does not currently generate Vyper ABI artifacts for .vyi interface files:

contracts/
  StreamFactory.vy
  StreamManager.vy
  Validator.vyi
$ ape console
In [1]: print(project.Validator.contract_type)
ERROR: (ApeAttributeError) 'LocalProject' object has no attribute 'Validator'. Also checked extra(s) 'contracts'.

Specification

The plugin should be able to do this natively. For now, the workaround is that you can place a <Interface>.json in your contracts folder (with hopefully the same ABI) and the pm "compiler" will grab it. Obviously a potentially source for human error, but it works

Dependencies

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions