Closed tloriato closed 1 month ago
@tloriato sorry for one more transfer, but yes the vyper plugin does not currently compile .vyi
interfaces e.g. https://github.com/pcaversaccio/snekmate/blob/main/src/snekmate/tokens/interfaces/IERC20Permit.vyi
Easy fix, will get someone on that
@tloriato can you confirm if ape-vyper
is at least v0.8.1 with ape plugins list
?
@fubuloubu Yes, it's vyper 0.8.3
. I'm available now to join any discord or anything that might happen.
No worries about the transfer, thank you very much for the attention and I'm sorry for the delay in answering.
Easy fix, will get someone on that
I wouldn't know where to start yet, otherwise I would try. Sorry!
@dtdang is looking at it, connect in discord to see if you can debug?
@tloriato The PR linked should fix the issue if you would like to test it out and make sure it also works on your end.
@tloriato sorry for one more transfer, but yes the vyper plugin does not currently compile
.vyi
interfaces e.g.
This isn't true, we added support for .vyi
files at the same time as Vyper 0.4 support.
Ape 0.8 uses the root project path as the base path, and you can import from there.
So if interfaces/
is within contracts/
, you import like
from contracts.interfaces import
Environment information
ape
and plugin versions:ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
I'm terribly sorry to be opening an issue, but I have exhausted Google and hit a wall 2 hours ago.
I have a boilerplate Ape framework created with
ape init
and the necessary plugins to run Vyper. I can successfully compile examples of Vyper copied-and-paste from the official documentation. Myape-config.yaml
is extremely simple with just thesolidity: version: 0.8.1
I installed snekmate with the suggested pip method via
pip install snekmate
.I'm trying to create a test ERC20 to validate my development setup. The
ERC20.vy
inside the/contracts
folder is:When running
ape compile
I ge thte following:I'm not sure what I'm doing wrong. I'm uploading this "boilerplate" struct to a personal repository for easiness.
The issue was raised on the snekmate repository first but I was instructed to come here: https://github.com/pcaversaccio/snekmate/issues/262
Code example to reproduce the issue:
(careful not using python virtual environments!)