Plugin for Ape Ethereum Framework for compiling Vyper contracts
Project description
Quick Start
Ape compiler plugin around VVM
Dependencies
- python3 version 3.8 or greater, python3-dev
Installation
via pip
You can install the latest release via pip
:
pip install ape-vyper
via setuptools
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/ape-vyper.git
cd ape-vyper
python3 setup.py install
Quick Usage
First, place Vyper contract source files (files with extension .vy
) in your Ape project's contracts folder.
An example Vyper contract can be found here.
Then, from your root Ape project folder, run the command:
ape compile
The .vy
files in your project will compile into ContractTypes
that you can deploy and interact with in Ape.
Interfaces
You can not compile interface source files directly.
Thus, you must place interface files in a directory named interfaces
in your contracts_folder
e.g. contracts/interfaces/IFace.vy
.
Then, these files can be imported in other .vy
sources files via:
import interfaces.IFace as IFace
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ape-vyper-0.6.1.tar.gz
.
File metadata
- Download URL: ape-vyper-0.6.1.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7549d271358f3d5a14de623115df0ac5e1f3bd354b480a2228f8477d4fc384 |
|
MD5 | afa3d18c34cc985eafd745d913d482fa |
|
BLAKE2b-256 | fe19f0973dcdb957cf8bc0ff7fb9ad15fb3712c9e37dc6c4a9cc617cbb7c84b6 |
File details
Details for the file ape_vyper-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: ape_vyper-0.6.1-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e5ffce4e12767b1a4ea23820b8b0b51d58071bd4f098c52ca7f4dabf9d9b11 |
|
MD5 | 9d07f440885f6c23f019f60013099e4b |
|
BLAKE2b-256 | d890e92e7b6acbdff215f73110a9f7037ee7f553e27e17a9f39235db50f996d2 |