A rust library to interact with the Vyper compiler!
- Python3
- Vyper Compiler
To install Python, please check out the Python github
To install Vyper, please check out the official installation guide
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.
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<()>
. . .