MCPcopy Index your code
hub / github.com/DaniPopes/uniswap-rs

github.com/DaniPopes/uniswap-rs @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
801 symbols 1,107 edges 45 files 106 documented · 13% updated 2y ago★ 86
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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" }

Examples

Examples can be found here.

Roadmap

  • [ ] UniswapV2 protocol
    • [x] Implementation
    • [x] Documentation
    • [ ] Tests
  • [ ] UniswapV3 protocol
    • [ ] Implementation
    • [ ] Documentation
    • [ ] Tests
  • [x] Contract addresses
    • [x] Uniswap v2 and v3
    • [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.

Core symbols most depended-on inside this repo

address
called by 20
src/contracts/addresses.rs
clone
called by 13
src/v2/protocol.rs
todo_v3
called by 11
src/protocol/mod.rs
clone
called by 8
src/dex.rs
address
called by 8
src/contracts/addresses.rs
client
called by 6
src/dex.rs
client
called by 6
src/v2/protocol.rs
try_addresses
called by 5
src/protocol/protocol_type.rs

Shape

Method 391
Class 332
Function 56
Enum 22

Languages

Rust100%
TypeScript1%

Modules by API surface

src/contracts/bindings/i_uniswap_v3_pool.rs104 symbols
src/contracts/bindings/i_uniswap_v2_pair.rs100 symbols
src/contracts/bindings/i_uniswap_v2_router_02.rs78 symbols
src/contracts/bindings/i_universal_router_commands.rs67 symbols
src/contracts/bindings/i_universal_router.rs64 symbols
src/contracts/bindings/iweth.rs51 symbols
src/contracts/bindings/ierc20.rs43 symbols
src/contracts/bindings/i_uniswap_v3_factory.rs34 symbols
src/contracts/bindings/i_uniswap_v2_factory.rs34 symbols
src/dex.rs29 symbols
src/contracts/bindings/i_swap_router.rs27 symbols
src/v2/library.rs19 symbols

For agents

$ claude mcp add uniswap-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact