PSkinnerTech / vyper-rs

A rust library to interact with the Vyper compiler!

Home Page:https://docs.rs/vyper-rs/0.2.0/vyper_rs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vyper-rs

A rust library to interact with the Vyper compiler!

Dependencies

  1. Python3
  2. Vyper Compiler

To install Python, please check out the Python github

To install Vyper, please check out the official installation guide

Documentation

When building from source, you can view the documentation built into cargo with cargo doc --open. This will be published to docs.rs alongside the crate itself.

The two important modules in this package are venv and vyper. They serve a similar purpose, but the difference is that the former takes place inside a virtual environment generated by the program.

Important Methods

Vyper::new(contract_path: impl Into< PathBuf >, desired_abi_path: impl Into< PathBuf >)

Vyper::compile(&mut self) -> Result<()>

Vyper::abi(&self) -> Result<()>

Vyper::abi_json(&self) -> Result< Value >

Vyper::storage_layout(&self) -> Result<()>

Vyper::interface(&self) -> Result<()>

Venv::new()

Venv::init(self)

Venv::ivyper_venv(self)

Venv::ivyper_pip(self)

Venv::compile(contract: &mut Vyper) -> Result<()>

. . .

About

A rust library to interact with the Vyper compiler!

https://docs.rs/vyper-rs/0.2.0/vyper_rs/


Languages

Language:Rust 93.6%Language:Vyper 6.4%