Skip to main content

Plugin for Ape Ethereum Framework for compiling Vyper contracts

Project description

Ape Vyper

Ape compiler plugin around VVM

Dependencies

  • python3 version 3.7.2 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

Development

Please see the contributing guide to learn more how to contribute to this project. Comments, questions, criticisms and pull requests are welcomed.

License

This project is licensed under the Apache 2.0.

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

Uploaded Source

Built Distribution

ape_vyper-0.4.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ape-vyper-0.4.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.9.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.8.13

File hashes

Hashes for ape-vyper-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d18d43344b6d67b611853363c81c8520f2210231639c789eb8d45c9bf10c1f40
MD5 b2f0d9b3b460bed1ba98feabd185af0e
BLAKE2b-256 56bda3256d598aa4beed42ea0d381b90f9fa6e3126214fc27ad9316f42cc6f80

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ape_vyper-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.9.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.8.13

File hashes

Hashes for ape_vyper-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11134c480a9fe041c65d07f3e61f1b67d602d92ea665bedc4e55bf9f7c653e59
MD5 2cf00fe87b752de86569eedf8da4f0f7
BLAKE2b-256 224ca2f2219a9ca63860daa116adef47972bd86c59b5c1a03009868f4d7292ac

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