Skip to content

Commit

Permalink
Merge pull request #11 from shuhuiluo/feature/pool
Browse files Browse the repository at this point in the history
Implement pool swap functions and add relevant tests
  • Loading branch information
shuhuiluo authored Jan 10, 2024
2 parents e32e8a7 + d983e99 commit 32974a5
Show file tree
Hide file tree
Showing 10 changed files with 708 additions and 138 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
${{ runner.os }}-cargo-registry-
- name: Build
run: cargo build
run: cargo build --all-features

- name: Run tests
run: cargo test
run: cargo test --all-features
59 changes: 39 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uniswap-v3-sdk"
version = "0.8.2"
version = "0.9.0"
edition = "2021"
authors = ["Shuhui Luo <twitter.com/aureliano_law>"]
description = "Uniswap V3 SDK for Rust"
Expand All @@ -10,12 +10,15 @@ repository = "https://github.com/shuhuiluo/uniswap-v3-sdk-rs"
keywords = ["uniswap-v3", "ethereum", "rust", "sdk"]
exclude = [".github", ".gitignore", "rustfmt.toml"]

[package.metadata.docs.rs]
all-features = true

[dependencies]
alloy-primitives = "0.5.4"
alloy-sol-types = "0.5.4"
anyhow = "1.0"
aperture-lens = "0.4.0"
ethers = "2.0"
aperture-lens = { version = "0.4.0", optional = true }
ethers = { version = "2.0", optional = true }
num-bigint = "0.4.4"
num-integer = "0.1.45"
num-traits = "0.2.17"
Expand All @@ -25,6 +28,9 @@ thiserror = "1.0.53"
uniswap-sdk-core = "0.7.0"
uniswap_v3_math = "0.4.1"

[features]
extensions = ["aperture-lens", "ethers"]

[dev-dependencies]
criterion = "0.5.1"
tokio = { version = "1.35", features = ["full"] }
Expand Down
Loading

0 comments on commit 32974a5

Please sign in to comment.