Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: update dependencies and fix doc test #109

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ jobs:
run: cargo test --features std
- name: Run tests for extensions
run: cargo test --features extensions --lib extensions -- --test-threads=1
- name: Run doc tests
run: cargo test --doc --all-features
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uniswap-v3-sdk"
version = "2.7.0"
version = "2.8.0"
edition = "2021"
authors = ["Shuhui Luo <twitter.com/aureliano_law>"]
description = "Uniswap V3 SDK for Rust"
Expand All @@ -15,7 +15,7 @@ exclude = [".github", ".gitignore", "rustfmt.toml"]
all-features = true

[dependencies]
alloy = { version = "0.6", optional = true, features = ["contract"] }
alloy = { version = "0.7", optional = true, features = ["contract"] }
alloy-primitives = "0.8"
alloy-sol-types = "0.8"
anyhow = { version = "1.0", optional = true }
Expand All @@ -30,7 +30,7 @@ regex = { version = "1.11", optional = true }
rustc-hash = "2.0"
serde_json = { version = "1.0", optional = true }
thiserror = { version = "2", default-features = false }
uniswap-lens = { version = "0.7", optional = true }
uniswap-lens = { version = "0.8", optional = true }
uniswap-sdk-core = "3.2.0"

[features]
Expand All @@ -39,8 +39,8 @@ extensions = ["alloy", "anyhow", "base64", "regex", "serde_json", "uniswap-lens"
std = ["alloy?/std", "thiserror/std", "uniswap-sdk-core/std", "uniswap-lens?/std"]

[dev-dependencies]
alloy-signer = "0.6"
alloy-signer-local = "0.6"
alloy-signer = "0.7"
alloy-signer-local = "0.7"
criterion = "0.5.1"
dotenv = "0.15.0"
tokio = { version = "1.40", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ It is feature-complete with unit tests matching the TypeScript SDK.
Add the following to your `Cargo.toml` file:

```toml
uniswap-v3-sdk = { version = "2.7.0", features = ["extensions", "std"] }
uniswap-v3-sdk = { version = "2.8.0", features = ["extensions", "std"] }
```

### Usage
Expand Down
8 changes: 4 additions & 4 deletions src/extensions/price_tick_conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ pub fn price_to_closest_tick_safe(price: &Price<Token, Token>) -> Result<I24, Er
/// let min_price = Price::new(
/// token0.clone(),
/// token1.clone(),
/// MIN_PRICE.denominator(),
/// MIN_PRICE.numerator(),
/// MIN_PRICE.denominator().clone(),
/// MIN_PRICE.numerator().clone(),
/// );
/// let max_price = Price::new(
/// token0.clone(),
/// token1.clone(),
/// MAX_PRICE.denominator(),
/// MAX_PRICE.numerator(),
/// MAX_PRICE.denominator().clone(),
/// MAX_PRICE.numerator().clone(),
shuhuiluo marked this conversation as resolved.
Show resolved Hide resolved
/// );
///
/// assert_eq!(
Expand Down
Loading