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.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

ape_vyper-0.5.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ape-vyper-0.5.1.tar.gz
  • Upload date:
  • Size: 18.8 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.1.tar.gz
Algorithm Hash digest
SHA256 4e41297c063586fc4843c9e7d6ecb514cfd70eb92f99cb402809f9c9d9b0ec79
MD5 c9bf8bad895cd88a999bd0a9daf5833c
BLAKE2b-256 7abf308b88f11f71bf3ba296df43fd9a034f27a573feed486f5d4037236adb15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ape_vyper-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2dd0d7c6fa2215e8cb256900b394956cf976b344fa754b478d3c14ca8760d1c9
MD5 659172b5b92604bec85fb9adf57c00c8
BLAKE2b-256 5de2feb92de1ffb083243d6e4be55407bfc468e15ff95eef8e8ab6b420331df2

See more details on using hashes here.

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