Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ape-vyper-0.5.2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

ape_vyper-0.5.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file ape-vyper-0.5.2.tar.gz.

File metadata

  • Download URL: ape-vyper-0.5.2.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for ape-vyper-0.5.2.tar.gz
Algorithm Hash digest
SHA256 a85951111f09d2cf01fea2609c1e1b0631ec626b778073a49f3eeee1b9ef21c6
MD5 45f355b8201fb08a20d950546d45b9d5
BLAKE2b-256 366fcb74de1f280f69315d4deef86967fb645a8d9691ebcbcdca02a371033c83

See more details on using hashes here.

Provenance

File details

Details for the file ape_vyper-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ape_vyper-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for ape_vyper-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 069b81e7d676e80a26f9dddcab1e203c53595463cfcaca955d78a524e43f5e2a
MD5 58e5238d290b18ba60c2c12cbb918e10
BLAKE2b-256 2b47f48408d48014a4c7f79672c4b9e8f41cd7e520ba0d0f13339704058528a8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page