From 5e73a2fc4df1e711031ac6ef1be98e838ee62280 Mon Sep 17 00:00:00 2001 From: Shuhui Luo <107524008+shuhuiluo@users.noreply.github.com> Date: Thu, 4 Jan 2024 07:20:05 -0800 Subject: [PATCH] Prepare to publish --- .github/workflows/rust.yml | 4 ++-- Cargo.lock | 23 ++--------------------- Cargo.toml | 10 +++++++--- src/extensions/mod.rs | 6 +++--- src/lib.rs | 2 +- 5 files changed, 15 insertions(+), 30 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8e8a668..6f2fca6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,7 +38,7 @@ jobs: override: true - name: Build - run: cargo build --verbose + run: cargo build - name: Run tests - run: cargo test --verbose + run: cargo test diff --git a/Cargo.lock b/Cargo.lock index 31cb35b..fc30ada 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,19 +164,6 @@ version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" -[[package]] -name = "aperture-lens" -version = "0.3.0" -source = "git+https://github.com/Aperture-Finance/Aperture-Lens?branch=main#8b02e9dcc1023f68c05ca3ee2f658f23ee97fb5a" -dependencies = [ - "anyhow", - "dotenv", - "ethers", - "futures", - "serde", - "tokio", -] - [[package]] name = "ark-ff" version = "0.3.0" @@ -984,12 +971,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "dotenv" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" - [[package]] name = "dunce" version = "1.0.4" @@ -3943,7 +3924,8 @@ checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "uniswap-sdk-core" version = "0.6.1" -source = "git+https://github.com/malik672/uniswap-sdk-core-rust?branch=master#d70b78ccca08d457aef22f5721fe752dfd6ab4dd" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ce2bebb7001ced20c4762c7f669229abcb3bcd659d4bab6107aa483f08a35a1" dependencies = [ "alloy-primitives", "bigdecimal", @@ -3968,7 +3950,6 @@ dependencies = [ "alloy-primitives", "alloy-sol-types", "anyhow", - "aperture-lens", "criterion", "ethers", "num-bigint", diff --git a/Cargo.toml b/Cargo.toml index 8ba8963..fa5c18a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,12 @@ name = "uniswap-v3-sdk" version = "0.7.0" edition = "2021" authors = ["Shuhui Luo "] -description = "Uniswap v3 SDK for Rust" +description = "Uniswap V3 SDK for Rust" license = "MIT" +readme = "README.md" +repository = "https://github.com/shuhuiluo/uniswap-v3-sdk-rs" +keywords = ["uniswap-v3", "ethereum", "rust", "sdk"] +exclude = [".github", ".gitignore", "rustfmt.toml"] [dependencies] alloy-dyn-abi = "0.5.4" @@ -12,14 +16,14 @@ alloy-json-abi = "0.5.4" alloy-primitives = "0.5.4" alloy-sol-types = "0.5.4" anyhow = "1.0" -aperture-lens = { git = "https://github.com/Aperture-Finance/Aperture-Lens", branch = "main" } +#aperture-lens = { git = "https://github.com/Aperture-Finance/Aperture-Lens", branch = "main" } ethers = { version = "2.0", features = ["default"] } num-bigint = "0.4.4" num-traits = "0.2.17" once_cell = "1.19.0" ruint = "1.11.1" thiserror = "1.0.53" -uniswap-sdk-core = { git = "https://github.com/malik672/uniswap-sdk-core-rust", branch = "master" } +uniswap-sdk-core = "0.6.1" uniswap_v3_math = "0.4.1" [dev-dependencies] diff --git a/src/extensions/mod.rs b/src/extensions/mod.rs index d3af07b..c4d74f6 100644 --- a/src/extensions/mod.rs +++ b/src/extensions/mod.rs @@ -1,3 +1,3 @@ -mod ephemeral_tick_data_provider; - -pub use ephemeral_tick_data_provider::EphemeralTickDataProvider; +// mod ephemeral_tick_data_provider; +// +// pub use ephemeral_tick_data_provider::EphemeralTickDataProvider; diff --git a/src/lib.rs b/src/lib.rs index c617d4e..e590b34 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,5 +11,5 @@ pub mod extensions; pub mod utils; pub mod prelude { - pub use crate::{constants::*, entities::*, extensions::*, utils::*}; + pub use crate::{constants::*, entities::*, utils::*}; }