abi

Macro abi 

Source
macro_rules! abi {
    ($p1: expr) => { ... };
    (venv $p1: expr) => { ... };
    ($($p1: expr),+) => { ... };
    (venv $($p1: expr),+) => { ... };
}
Expand description

The abi! macro is used to compile one more more Vyper contracts and get or generate the ABI.

Input: any length sequence of expressions that evaluate to a Path.

Keywords: paris, venv, get.

venv - compile contract using an instance of the Vyper compiler inside a venv.

 use vyper_rs::venv::*;
 use vyper_rs::vyper::*;
 use vyper_rs::*;
 use vyper_rs::vyper_errors::VyperErrors;
 use std::path::{PathBuf, Path};
 use serde_json::Value;
async fn try_me() -> Result<(), VyperErrors> {
    let _: Value = abi!("./multisig.vy");
    let _: Value = abi!(venv "./multisig.vy");
    let _: Vec<Value> = abi!("./multisig.vy", "./multisig.vy");   
    let _: Vec<Value> = abi!(venv "./multisig.vy", "./multisig.vy");   
    Ok(())
}