evm-trader 0.1.1

Implement most of the commonly used practical transaction-related functions of the EVM network, all EVM traders will need this.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod mainnet {
    /// mainnet uniswap v2 factory address
    pub const MAINNET_UNISWAP_V2_FACTORY_ADDRESS: &str =
        "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f";
    /// mainnet uniswap v3 factory address
    pub const MAINNET_UNISWAP_V3_FACTORY_ADDRESS: &str =
        "0x1F98431c8aD98523631AE4a59f267346ea31F984";
    /// mainnet WETH address
    pub const WETH_ADDRESS: &str = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
    /// mainnet USDC address
    pub const USDC_ADDRESS: &str = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
    /// mainnet USDT address
    pub const USDT_ADDRESS: &str = "0xdAC17F958D2ee523a2206206994597C13D831ec7";
    /// mainnet DAI address
    pub const DAI_ADDRESS: &str = "0x6B175474E89094C44Da98b954EedeAC495271d0F";
    /// mainnet WBTC address
    pub const WBTC_ADDRESS: &str = "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599";
}