Crate uniswap_rs

source ·
Expand description

uniswap-rs

Unofficial Rust SDK library for Uniswap smart contracts.

Modules

Constants
Uniswap smart contracts’ bindings and addresses.
Errors
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
UniswapV2
UniswapV3 - WIP

Structs

Aggregates common methods to interact with the Uniswap v2 or v3 protocols and other utilities.
An ERC20 token.

Enums

A helper enum that wraps a [U256] for determining a swap’s input / output amount.
Represents an automated market maker, a protocol that facilitates peer-to-peer market making and swapping of ERC-20 tokens on the Ethereum blockchain.
Represents a type of protocol that is, or is a fork of, Uniswap v2 or v3.