Skip to content

Commit 138a1fa

Browse files
committed
fix: import own items via workspace not crate
Signed-off-by: Joseph Livesey <[email protected]>
1 parent 6406f29 commit 138a1fa

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ tap_eip712_message = { version = "0.2.1", path = "tap_eip712_message" }
5050
tap_core = { version = "4.1.2", path = "tap_core" }
5151
tap_graph = { version = "0.3.2", path = "tap_graph", features = ["v2"] }
5252
tap_receipt = { version = "1.1.2", path = "tap_receipt" }
53-
thegraph-core = "0.15.0"
53+
thegraph-core = { version = "0.15.0", features = [
54+
"alloy-eip712",
55+
"alloy-signer-mnemonic",
56+
] }
5457
thiserror = "2.0.12"
5558
tokio = { version = "1.44.2", features = ["macros", "signal"] }
5659
tonic = { version = "0.13.0", features = ["transport", "zstd"] }

tap_aggregator/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ serde.workspace = true
2828
serde_json.workspace = true
2929
strum.workspace = true
3030
tap_core.workspace = true
31+
tap_eip712_message.workspace = true
3132
tap_graph.workspace = true
32-
thegraph-core = { workspace = true, features = ["alloy-eip712"] }
33+
thegraph-core.workspace = true
3334
tokio.workspace = true
3435
tonic.workspace = true
3536
tower.workspace = true

tap_aggregator/src/aggregator/v1.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ use std::collections::HashSet;
66
use anyhow::{bail, Ok, Result};
77
use rayon::prelude::*;
88
use tap_core::{receipt::WithUniqueId, signed_message::Eip712SignedMessage};
9+
use tap_eip712_message::{Eip712Domain, PrivateKeySigner};
910
use tap_graph::{Receipt, ReceiptAggregateVoucher};
10-
use thegraph_core::alloy::{
11-
dyn_abi::Eip712Domain, primitives::Address, signers::local::PrivateKeySigner,
12-
sol_types::SolStruct,
13-
};
11+
use thegraph_core::alloy::{primitives::Address, sol_types::SolStruct};
1412

1513
pub fn check_and_aggregate_receipts(
1614
domain_separator: &Eip712Domain,

tap_eip712_message/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
//!
99
//! # Example
1010
//! ```rust
11-
//! # use thegraph_core::alloy::{dyn_abi::Eip712Domain, primitives::Address, signers::local::PrivateKeySigner};
11+
//! # use tap_eip712_message::{Eip712SignedMessage, PrivateKeySigner, Eip712Domain};
12+
//! # use thegraph_core::alloy::primitives::Address;
1213
//! # let domain_separator = Eip712Domain::default();
13-
//! use tap_eip712_message::Eip712SignedMessage;
1414
//! # let wallet = PrivateKeySigner::random();
1515
//! # let wallet_address = wallet.address();
1616
//! # let message = msg::Receipt::new(Address::from([0x11u8; 20]), 100).unwrap();
@@ -23,7 +23,7 @@
2323
//!
2424
2525
use serde::{Deserialize, Serialize};
26-
use thegraph_core::alloy::{
26+
pub use thegraph_core::alloy::{
2727
dyn_abi::Eip712Domain,
2828
primitives::{Address, Signature},
2929
signers::{local::PrivateKeySigner, SignerSync},

tap_integration_tests/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ tokio.workspace = true
2222

2323
[dev-dependencies]
2424
rstest.workspace = true
25-
thegraph-core = { workspace = true, features = ["alloy-signer-mnemonic"] }
2625

2726
[[test]]
2827
name = "integration_tests"

0 commit comments

Comments
 (0)