Skip to content

Commit

Permalink
chore: add badges and documentation to README, update dependencies (#22)
Browse files Browse the repository at this point in the history
Added badges for crates.io and docs.rs to the README, as well as detailed sections on features, testing, and contribution guidelines. Upgraded the `uniswap-v3-sdk` dependency to version 3.0.0 in Cargo.toml for compatibility improvements.
  • Loading branch information
shuhuiluo authored Dec 26, 2024
1 parent 3277390 commit 8294009
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ derive_more = "1.0.0"
rustc-hash = "2.1.0"
thiserror = { version = "2", default-features = false }
uniswap-sdk-core = "3.2.0"
uniswap-v3-sdk = "2.9.1"
uniswap-v3-sdk = "3.0.0"

[dev-dependencies]
alloy-signer = "0.8"
Expand Down
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
# Uniswap V4 SDK Rust

[![Rust CI](https://github.com/shuhuiluo/uniswap-v4-sdk-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/shuhuiluo/uniswap-v4-sdk-rs/actions/workflows/rust.yml)
[![docs.rs](https://img.shields.io/docsrs/uniswap-v4-sdk)](https://docs.rs/uniswap-v4-sdk/latest/uniswap_v4_sdk/)
[![crates.io](https://img.shields.io/crates/v/uniswap-v4-sdk.svg)](https://crates.io/crates/uniswap-v4-sdk)

A Rust SDK for building applications on top of Uniswap V4. Rewrite of the
TypeScript [V4 SDK](https://github.com/Uniswap/sdks).

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](https://github.com/alloy-rs) types
- Consistent API and types with the [V3 SDK](https://github.com/shuhuiluo/uniswap-v3-sdk-rs)
and [SDK Core](https://github.com/malik672/uniswap-sdk-core-rust)

## 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

```shell
cargo test
```

### Linting

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

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

## License

This project is licensed under the [MIT License](LICENSE).

## Acknowledgements

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

- [Uniswap V4 SDK](https://github.com/Uniswap/sdks)
- [Uniswap V3 SDK Rust](https://github.com/shuhuiluo/uniswap-v3-sdk-rs)
- [Uniswap SDK Core Rust](https://github.com/malik672/uniswap-sdk-core-rust)

0 comments on commit 8294009

Please sign in to comment.