loom_defi_abi/
weth.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use alloy_sol_types::sol;

sol! {

    #[sol(abi = true, rpc)]
    #[derive(Debug, PartialEq, Eq)]
    interface IWETH {
        event Approval(address indexed src, address indexed guy, uint256 wad);
        event Transfer(address indexed src, address indexed dst, uint256 wad);
        event Deposit(address indexed dst, uint256 wad);
        event Withdrawal(address indexed src, uint256 wad);

        function deposit() public payable;
        function withdraw(uint wad) public;
        function totalSupply() public view returns (uint);
        function balanceOf(address account) external view returns (uint256);
    }


}