loom_defi_abi/lido/
wsteth.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use alloy_sol_types::sol;

sol! {
    #[derive(Debug, PartialEq, Eq)]
    interface IWStEth {
        function getWstETHByStETH(uint256 stETHAmount) external view returns (uint256);
        function getStETHByWstETH(uint256 wstETHAmount) external view returns (uint256);
        function stEthPerToken() returns (uint256);
        function tokensPerStEth() returns (uint256);
        function wrap(uint256 stETHAmount) returns (uint256);
        function unwrap(uint256 wstETHAmount) returns (uint256);
    }
}