ethers-utils 0.2.0

Extensions for ethers
Documentation
use ethers::prelude::abigen;

abigen!(ERC20, r#"[
function name() public view returns (string)
function symbol() public view returns (string)
function decimals() public view returns (uint8)
function totalSupply() public view returns (uint256)
function balanceOf(address _owner) public view returns (uint256 balance)
function transfer(address _to, uint256 _value) public returns (bool success)
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success)
function approve(address _spender, uint256 _value) public returns (bool success)
function allowance(address _owner, address _spender) public view returns (uint256 remaining)

event Transfer(address indexed _from, address indexed _to, uint256 _value)
event Approval(address indexed _owner, address indexed _spender, uint256 _value)
]"#; );

#[cfg(test)]
mod test {
    use super::*;

    #[test]
    fn erc20() {
        type _ERC20<M> = ERC20<M>;
    }
}