uniswap-rs icon indicating copy to clipboard operation
uniswap-rs copied to clipboard

Unofficial Rust SDK library for Uniswap smart contracts.

uniswap-rs

Crates.io MIT License CI Status

Unofficial Rust SDK library for Uniswap smart contracts.

Quickstart

Add this to your Cargo.toml:

[dependencies]
uniswap-rs = { git = "https://github.com/danipopes/uniswap-rs" }

And this to your code:

use uniswap_rs::prelude::*;

Examples

Examples can be found here.

Roadmap

  • [ ] UniswapV2 protocol
    • [x] Implementation
    • [x] Documentation
    • [ ] Tests
  • [ ] UniswapV3 protocol
    • [ ] Implementation
    • [ ] Documentation
    • [ ] Tests
  • [ ] UniversalRouter
    • [x] Implementation
    • [x] Documentation
    • [ ] Tests
  • [x] Contract addresses
    • [x] Uniswap
    • [x] Sushiswap
    • [x] Pancakeswap
    • [x] Quickswap
    • [x] Spookyswap
    • [x] Traderjoe
  • [ ] Features
    • [x] Serde, Addressbook and new_with_chain
    • [ ] V2 and V3, separated

License

This project is licensed under the MIT license.