From 6b8775ce56d87391e537074c173899256c6b9ff2 Mon Sep 17 00:00:00 2001 From: malik672 Date: Sun, 28 Apr 2024 21:14:05 +0100 Subject: [PATCH] add support for blast --- Cargo.toml | 2 +- src/entities/token.rs | 2 -- src/error.rs | 2 +- src/utils/mod.rs | 6 +++--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 153b809..6741240 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uniswap-sdk-core" -version = "0.21.0" +version = "0.22.0" edition = "2021" authors = ["malik ", "Shuhui Luo "] description = "The Uniswap SDK Core in Rust provides essential functionality for interacting with the Uniswap decentralized exchange" diff --git a/src/entities/token.rs b/src/entities/token.rs index 9792729..7ff6843 100644 --- a/src/entities/token.rs +++ b/src/entities/token.rs @@ -5,8 +5,6 @@ pub type Token = CurrencyLike; /// Represents the metadata for an ERC20 token, including its address and optional fees. #[derive(Clone, PartialEq, Debug)] - -/// Represents the metadata for an ERC20 token, including its address and optional fees. pub struct TokenMeta { /// The address of the token. pub address: Address, diff --git a/src/error.rs b/src/error.rs index b723b16..ab778d2 100644 --- a/src/error.rs +++ b/src/error.rs @@ -42,7 +42,7 @@ mod tests { assert_eq!(error.to_string(), "Addresses are equal"); } - /// Test that `Error::MaxUint` displays the correct error messagit push ge. + /// Test that `Error::MaxUint` displays the correct error message. #[test] fn test_max_uint_error() { let error = Error::MaxUint; diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 9f10dee..00f4e7a 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -1,9 +1,9 @@ -/// Module that contains various methods to comput price + pub mod compute_price_impact; -/// Module that contains various methods to sort + pub mod sorted_insert; -/// Module that contains various methods to compute square root + pub mod sqrt; #[cfg(feature = "validate_parse_address")] pub mod validate_and_parse_address;