Skip to content

Commit dccd250

Browse files
authored
chore: bump alloy (#13)
* chore: bump `alloy` Updated `alloy` to version 0.4 along with `once_cell` to 1.20. Incremented package version from 0.3.0 to 0.4.0. Added minor formatting changes in the source files. * fix ci
1 parent f2b5427 commit dccd250

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ jobs:
5050
${{ runner.os }}-cargo-registry-
5151
5252
- name: Install Rust toolchain via rustup
53-
run: |
54-
rustup override set nightly
55-
rustup component add clippy --toolchain nightly
53+
run:
54+
rustup component add clippy
5655

5756
- name: Check linting
5857
run: cargo clippy --all-targets --all-features -- -D warnings

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uniswap-lens"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
edition = "2021"
55
authors = ["Shuhui Luo <twitter.com/aureliano_law>"]
66
description = "A library for querying Uniswap V3 using ephemeral lens contracts."
@@ -11,7 +11,7 @@ keywords = ["alloy", "ethereum", "solidity", "uniswap"]
1111
include = ["src/**/*.rs"]
1212

1313
[dependencies]
14-
alloy = { version = "0.3", features = ["contract", "rpc-types"] }
14+
alloy = { version = "0.4", features = ["contract", "rpc-types"] }
1515
anyhow = "1"
1616
thiserror = { version = "1.0", optional = true }
1717

@@ -20,9 +20,9 @@ default = []
2020
std = ["alloy/std", "thiserror"]
2121

2222
[dev-dependencies]
23-
alloy = { version = "0.3", features = ["transport-http"] }
23+
alloy = { version = "0.4", features = ["transport-http"] }
2424
dotenv = "0.15"
2525
futures = "0.3"
26-
once_cell = "1.19"
26+
once_cell = "1.20"
2727
ruint = "1.12"
2828
tokio = { version = "1", features = ["full"] }

src/pool_lens.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ where
140140
block_id
141141
)
142142
}
143+
143144
/// Get the storage slots in the `tickBitmap` mapping.
144145
///
145146
/// ## Arguments
@@ -166,6 +167,7 @@ where
166167
block_id
167168
)
168169
}
170+
169171
/// Get the storage slots in the `positions` mapping.
170172
///
171173
/// ## Arguments

src/storage_lens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ where
3838
P: Provider<T>,
3939
{
4040
// override the deployed bytecode at `address`
41-
let state = StateOverride::from([(
41+
let state = StateOverride::from_iter([(
4242
address,
4343
AccountOverride {
4444
code: Some(EphemeralStorageLens::DEPLOYED_BYTECODE.clone()),

0 commit comments

Comments
 (0)