loom_defi_abi/curve/
common.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use alloy_sol_macro::sol;

sol! {
    #[sol(abi = true, rpc)]
    #[derive(Debug, PartialEq, Eq)]
    interface ICurveFactory {
        function pool_list(uint256) external view returns (address);
        function pool_count() external view returns (uint256);
    }
}

sol! {
    #[sol(abi = true, rpc)]
    #[derive(Debug, PartialEq, Eq)]
    interface ICurveAddressProvider {
        function get_address(uint256) external view returns (address);
    }
}

sol! {
    #[sol(abi = true, rpc)]
    #[derive(Debug, PartialEq, Eq)]
    interface ICurveCommon {
        function coins(uint256) external view returns (bytes);
        function balances(uint256) external view returns (uint256);
        function get_balances() external view returns (bytes);
    }
}

sol! {
    #[sol(abi = true, rpc)]
    #[derive(Debug, PartialEq, Eq)]
    interface ICurveCommonI128 {
        function coins(int128) external view returns (bytes);
        function balances(int128) external view returns (uint256);
    }
}