Crates.io | uniswap-core |
lib.rs | uniswap-core |
version | 0.6.1 |
source | src |
created_at | 2024-01-02 11:01:04.050432 |
updated_at | 2024-01-02 11:01:04.050432 |
description | The Uniswap SDK Core in Rust provides essential functionality for interacting with the Uniswap decentralized exchange |
homepage | |
repository | |
max_upload_size | |
id | 1086128 |
size | 79,836 |
An Unofficial Uniswap SDK Core in Rust provides essential functionality for interacting with the Uniswap decentralized exchange.
Warning
This is an unofficial uniswap library
Add this to your Cargo.toml
[dependencies]
uniswap-core = "0.6.0";
And this to your code:
use ethers::prelude::*;
The code below shows an example of how you can validate an address
// The `prelude` module provides a convenient way to import a number
// of common dependencies at once. This can be useful if you are working
// with multiple parts of the library and want to avoid having
// to import each dependency individually.
use uniswap_core::prelude::*;
fn main() {
let valid_address: &str = "0x1234567890123456789012345678901234567890";
assert!(check_valid_ethereum_address(valid_address).is_ok());
}
The Uniswap SDK Core in Rust is inspired by the original Uniswap SDK and aims to provide similar functionality in the Rust programming language.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! If you find a bug or have suggestions for improvements, feel free to open an issue or submit a pull request on the GitHub repository.