diff --git a/Cargo.lock b/Cargo.lock index 3a5e6fa..c88527c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1194,7 +1194,7 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "uniswap-sdk-core" -version = "0.9.0" +version = "0.9.1" dependencies = [ "alloy-primitives", "bigdecimal", diff --git a/Cargo.toml b/Cargo.toml index f7e61d9..6aaeeae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uniswap-sdk-core" -version = "0.9.0" +version = "0.9.1" 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/base_currency.rs b/src/entities/base_currency.rs index fd33fbf..621667d 100644 --- a/src/entities/base_currency.rs +++ b/src/entities/base_currency.rs @@ -1,4 +1,4 @@ -#[derive(Clone, PartialEq)] +#[derive(Clone, PartialEq, Debug)] pub struct CurrencyLike { pub chain_id: u32, pub decimals: u8, diff --git a/src/entities/currency.rs b/src/entities/currency.rs index 6077683..68ce1cc 100644 --- a/src/entities/currency.rs +++ b/src/entities/currency.rs @@ -1,6 +1,6 @@ use crate::prelude::*; -#[derive(Clone, PartialEq)] +#[derive(Clone, PartialEq, Debug)] pub enum Currency { NativeCurrency(Ether), Token(Token), diff --git a/src/entities/fractions/currency_amount.rs b/src/entities/fractions/currency_amount.rs index f719f61..d0a6530 100644 --- a/src/entities/fractions/currency_amount.rs +++ b/src/entities/fractions/currency_amount.rs @@ -5,7 +5,7 @@ use crate::prelude::*; pub type CurrencyAmount = FractionLike>; // Struct representing metadata about a currency -#[derive(Clone, PartialEq)] +#[derive(Clone, PartialEq, Debug)] pub struct CurrencyMeta { pub currency: T, pub decimal_scale: BigUint, diff --git a/src/entities/token.rs b/src/entities/token.rs index 800010d..f6d18da 100644 --- a/src/entities/token.rs +++ b/src/entities/token.rs @@ -3,7 +3,7 @@ use crate::prelude::*; /// Represents an ERC20 token with a unique address and some metadata. pub type Token = CurrencyLike; -#[derive(Clone, PartialEq)] +#[derive(Clone, PartialEq, Debug)] pub struct TokenMeta { pub address: Address, pub buy_fee_bps: Option, diff --git a/src/entities/weth9.rs b/src/entities/weth9.rs index d138fd7..3ffe53b 100644 --- a/src/entities/weth9.rs +++ b/src/entities/weth9.rs @@ -1,6 +1,8 @@ use crate::{prelude::*, token}; /// `WETH9` represents the WETH9 contract and provides information about WETH tokens on different Ethereum chains. + +#[derive(Clone, PartialEq, Debug)] pub struct WETH9 { /// A mapping of chain IDs to corresponding WETH tokens. tokens: HashMap,