vyper-rs
A rust library to interact with the Vyper compiler!
Dependencies
Please ensure that the Vyper compiler is installed and added to PATH!
To install the Vyper compiler, please see the official documentation
Usage
Vyper::new(contract_path: Path, abi_path: Path)
takes in two file Paths: the first one for the vyper contract you want to compile, the second one is for the desired path/filename for the abi.json (generated from the abi method).
Vyper::compile(&mut self)
takes a mutable reference to self, compiles the smart contract and clones the bytecode into the struct.
Vyper::abi(&self)
takes an immutable reference to self, generates an abi in json for the vyper smart contract.