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

Uploaded Source

Built Distribution

ape_vyper-0.6.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ape-vyper-0.6.0.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

Hashes for ape-vyper-0.6.0.tar.gz
Algorithm Hash digest
SHA256 b315e2f5b39fc068e759a6ed4f4c72c9752b2b5233aabced055aed1ce2dfa00b
MD5 4ed0cbabff7fe35b8d9fe4a263b014f5
BLAKE2b-256 edc4a002f5423d5f1ce5ec02565f09edf20179dd78a4f9f70c7785a3e591f227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ape_vyper-0.6.0-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

Hashes for ape_vyper-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75c5f0edcfc78090c5d70b8056614149872530cf4026034450083fd8948c0dd3
MD5 7130952278ad0b9eea9838ccfb6b2707
BLAKE2b-256 ce383915bb815d48e8a0b231d4ecefab5f32264c6490bbd1266b5bd6a38a4a33

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