Skip to content

Commit ca2ce8c

Browse files
committed
feat: upgrade to alloy 1.1.3
1 parent a2930e1 commit ca2ce8c

9 files changed

Lines changed: 77 additions & 73 deletions

File tree

Cargo.lock

Lines changed: 67 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resolver = "2"
1313
rindexer = { path = "../core" }
1414

1515
# external dependencies
16-
alloy = { version = "1.0.41", features = ["full"] }
16+
alloy = { version = "1.1.3", features = ["full"] }
1717
alloy-chains = "0.2.15"# pegged to version in "foundry-block-explorers"
1818
foundry-block-explorers = "0.22.0"
1919
clap = { version = "4.5.50", features = ["derive"] }

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mockito = "1.7.0"
1717

1818
[dependencies]
1919
# TODO: Trim down alloy features needed later, for now opt iun to all.
20-
alloy = { version = "1.0.41", features = ["full", "json-rpc"] }
20+
alloy = { version = "1.1.3", features = ["full", "json-rpc"] }
2121
async-trait = "0.1.89"
2222
aws-config = "1.8.8"
2323
aws-sdk-sns = "1.88.0"

core/src/database/sql_type_wrapper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{abi::ABIInput, event::callback_registry::TxInformation, types::core:
55
#[allow(deprecated)]
66
use alloy::{
77
dyn_abi::DynSolValue,
8-
primitives::{Address, Bytes, B128, B160, B256, B512, I256, U256, U512},
8+
primitives::{Address, Bytes, B128, B256, B512, I256, U256, U512},
99
};
1010
use bytes::{BufMut, BytesMut};
1111
use chrono::{DateTime, Utc};
@@ -79,14 +79,14 @@ pub enum EthereumSqlTypeWrapper {
7979
B128(B128),
8080
#[deprecated(note = "Use Address instead")]
8181
#[allow(deprecated)]
82-
H160(B160),
82+
H160(Address),
8383
B256(B256),
8484
B256Bytes(B256),
8585
B512(B512),
8686
VecB128(Vec<B128>),
8787
#[deprecated(note = "Use Address instead")]
8888
#[allow(deprecated)]
89-
VecH160(Vec<B160>),
89+
VecH160(Vec<Address>),
9090
VecB256(Vec<B256>),
9191
VecB256Bytes(Vec<B256>),
9292
VecB512(Vec<B512>),

documentation/docs/pages/docs/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
### Features
77
-------------------------------------------------
8+
- feat: upgrade to alloy 1.1.3
89

910
### Bug fixes
1011
-------------------------------------------------

documentation/docs/pages/docs/start-building/rust-project-deep-dive/ethers-alloy-migration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ this will the newer `alloy` crate. It should be pegged to the same version used
2222
Replace in `Cargo.toml`
2323
```diff
2424
- ethers = "2.0.14"
25-
+ alloy = { version = "1.0.41", features = ["full"] }
25+
+ alloy = { version = "1.1.3", features = ["full"] }
2626
```
2727

2828
Then any references to ethers types in your own code can be replaced with the alloy types. You can read more

examples/clickhouse_factory_indexing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ rindexer = { path = "../../core" }
99

1010
# external dependencies
1111
tokio = { version = "1", features = ["full"] }
12-
alloy = { version = "1.0.41", features = ["full"] }
12+
alloy = { version = "1.1.3", features = ["full"] }
1313
serde = { version = "1.0", features = ["derive"] }

examples/rindexer_factory_indexing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ rindexer = { path = "../../core" }
99

1010
# external dependencies
1111
tokio = { version = "1", features = ["full"] }
12-
alloy = { version = "1.0.41", features = ["full"] }
12+
alloy = { version = "1.1.3", features = ["full"] }
1313
serde = { version = "1.0", features = ["derive"] }

examples/rindexer_rust_playground/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rindexer = { path = "../../core" }
99

1010
# external dependencies
1111
tokio = { version = "1", features = ["full"] }
12-
alloy = { version = "1.0.41", features = ["full"] }
12+
alloy = { version = "1.1.3", features = ["full"] }
1313

1414
[features]
1515
reth = ["rindexer/reth"]

0 commit comments

Comments
 (0)