#sdk #ethereum #uniswap-v4

no-std uniswap-v4-sdk

Uniswap V4 SDK for Rust

2 releases

0.1.1 Dec 30, 2024
0.1.0 Dec 26, 2024

#659 in Magic Beans

Download history 237/week @ 2024-12-25 13/week @ 2025-01-01

250 downloads per month

MIT license

230KB
5.5K SLoC

Uniswap V4 SDK Rust

Rust CI docs.rs crates.io

A Rust SDK for building applications on top of Uniswap V4. Rewrite of the TypeScript V4 SDK.

It is feature-complete but missing unit tests.

Features

  • Opinionated Rust implementation of the Uniswap V4 SDK with a focus on readability and performance
  • Usage of alloy-rs types
  • Consistent API and types with the V3 SDK and SDK Core

Note on no_std

By default, this library does not depend on the standard library (std). However, the std feature can be enabled.

Contributing

Contributions are welcome. Please open an issue if you have any questions or suggestions.

Testing

Tests are run with

cargo test

Linting

Linting is done with clippy and rustfmt. To run the linter, use:

cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --all -- --check

License

This project is licensed under the MIT License.

Acknowledgements

This project is inspired by and adapted from the following projects:

Dependencies

~7–18MB
~275K SLoC