ethers-abirpc 0.3.0

ethers-rs provider encapsulation for ethereum smart contrcats
Documentation
1
2
3
4
5
6
7
8
9
10
use ethers_abirpc::prelude::*;

#[tokio::test]
async fn test_abigen() -> Result<(), Box<dyn std::error::Error>> {
    Abigen::new("ERC20Token", "./tests/abi/Erc20Token.json")?
        .generate()?
        .write_to_file("./tests/abi.rs")?;

    Ok(())
}