Skip to main content

Crate example_uniswap_v2_usdc_swap

Crate example_uniswap_v2_usdc_swap 

Source
Expand description

Example of uniswap getReserves() call emulation.

Re-exportsยง

pub(crate) use alloy_eips::BlockId; ๐Ÿ”’
pub(crate) use network::Ethereum; ๐Ÿ”’
pub(crate) use DynProvider; ๐Ÿ”’
pub(crate) use Provider; ๐Ÿ”’
pub(crate) use ProviderBuilder; ๐Ÿ”’
pub(crate) use sol; ๐Ÿ”’
pub(crate) use SolCall; ๐Ÿ”’
pub(crate) use SolValue; ๐Ÿ”’
pub(crate) use anyhow; ๐Ÿ”’
pub(crate) use Result; ๐Ÿ”’
pub(crate) use context::TxEnv; ๐Ÿ”’
pub(crate) use ExecutionResult; ๐Ÿ”’
pub(crate) use Output; ๐Ÿ”’
pub(crate) use AlloyDB; ๐Ÿ”’
pub(crate) use CacheDB; ๐Ÿ”’
pub(crate) use database_interface::WrapDatabaseAsync; ๐Ÿ”’
pub(crate) use address; ๐Ÿ”’
pub(crate) use keccak256; ๐Ÿ”’
pub(crate) use Address; ๐Ÿ”’
pub(crate) use Bytes; ๐Ÿ”’
pub(crate) use StorageKey; ๐Ÿ”’
pub(crate) use TxKind; ๐Ÿ”’
pub(crate) use U256; ๐Ÿ”’
pub(crate) use state::AccountInfo; ๐Ÿ”’
pub(crate) use Context; ๐Ÿ”’
pub(crate) use ExecuteCommitEvm; ๐Ÿ”’
pub(crate) use ExecuteEvm; ๐Ÿ”’
pub(crate) use MainBuilder; ๐Ÿ”’
pub(crate) use MainContext; ๐Ÿ”’
pub(crate) use std::ops::Div; ๐Ÿ”’

Functionsยง

balance_of ๐Ÿ”’
get_amount_out ๐Ÿ”’
get_reserves ๐Ÿ”’
main ๐Ÿ”’
swap ๐Ÿ”’
transfer ๐Ÿ”’

Type Aliasesยง

AlloyCacheDB ๐Ÿ”’