An open API service indexing awesome lists of open source software.

https://github.com/camerodev/uniswap-rs

Unofficial Rust SDK library for Uniswap smart contracts.
https://github.com/camerodev/uniswap-rs

Last synced: about 1 month ago
JSON representation

Unofficial Rust SDK library for Uniswap smart contracts.

Awesome Lists containing this project

README

        

# uniswap-rs

[![Crates.io][crates-badge]][crates-url]
[![MIT License][mit-badge]][mit-url]
[![CI Status][actions-badge]][actions-url]

[crates-badge]: https://img.shields.io/crates/v/uniswap-rs.svg
[crates-url]: https://crates.io/crates/uniswap-rs
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[mit-url]: https://github.com/danipopes/uniswap-rs/blob/master/LICENSE
[actions-badge]: https://github.com/danipopes/uniswap-rs/workflows/CI/badge.svg
[actions-url]: https://github.com/danipopes/uniswap-rs/actions?query=workflow%3ACI+branch%3Amaster

Unofficial Rust SDK library for Uniswap smart contracts.

## Quickstart

Add this to your Cargo.toml:

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

And this to your code:

```rust
use uniswap_rs::prelude::*;
```

## Examples

Examples can be found [here][examples].

[examples]: https://github.com/danipopes/uniswap-rs/tree/master/examples

## Roadmap

- [ ] [UniswapV2 protocol](https://docs.uniswap.org/contracts/v2/overview)
- [x] Implementation
- [x] Documentation
- [ ] Tests
- [ ] [UniswapV3 protocol](https://docs.uniswap.org/contracts/v3/overview)
- [ ] Implementation
- [ ] Documentation
- [ ] Tests
- [ ] [UniversalRouter](https://docs.uniswap.org/contracts/universal-router/overview)
- [x] Implementation
- [x] Documentation
- [ ] Tests
- [x] [Contract addresses](src/contracts/addresses.json)
- [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](https://github.com/danipopes/uniswap-rs/blob/master/LICENSE).