Expand description
§uniswap-rs
Unofficial Rust SDK library for Uniswap smart contracts.
Modules§
- constants
- Constants
- contracts
- Uniswap smart contracts’ bindings and addresses.
- errors
- Errors
- pair_
code_ hashes - Hashes of the deployment bytecode used to deploy pairs by the factory of the protocol. Used to calculate the CREATE2 address for a pair without making any external calls.
- utils
- Utils
- v2
- UniswapV2
- v3
- UniswapV3 - WIP
Structs§
- Dex
- Aggregates common methods to interact with the Uniswap v2 or v3 protocols and other utilities.
- Erc20
- An ERC20 token.
Enums§
- Amount
- A helper enum that wraps a U256 for determining a swap’s input / output amount.
- Protocol
- Represents an automated market maker, a protocol that facilitates peer-to-peer market making and swapping of ERC-20 tokens on the Ethereum blockchain.
- Protocol
Type - Represents a type of protocol that is, or is a fork of, Uniswap v2 or v3.