Skip to content

Commit 55f3aad

Browse files
committed
chore(deps): update rust crate thegraph-core to v0.x.y
Signed-off-by: Lorenzo Delgado <[email protected]>
1 parent b27ae9c commit 55f3aad

File tree

12 files changed

+974
-537
lines changed

12 files changed

+974
-537
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolver = "2"
66
opt-level = 3
77

88
[workspace.dependencies]
9-
alloy = { version = "0.2.1", features = [
9+
alloy = { version = "0.6.2", features = [
1010
"kzg",
1111
"signer-mnemonic",
1212
], default-features = false }
@@ -38,14 +38,12 @@ sqlx = { version = "0.8.2", features = [
3838
tracing = { version = "0.1.40", default-features = false }
3939
bigdecimal = "0.4.3"
4040
build-info = "0.0.39"
41-
tap_core = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "3fe6bc2", default-features = false }
41+
tap_core = { git = "https://github.com/LNSD/timeline-aggregation-protocol", rev = "a02e63e", default-features = false }
4242
tracing-subscriber = { version = "0.3", features = [
4343
"json",
4444
"env-filter",
4545
"ansi",
4646
], default-features = false }
47-
thegraph-core = { git = "https://github.com/edgeandnode/toolshed", rev = "85ee00b", features = [
48-
"subgraph-client",
49-
] }
47+
thegraph-core = "0.8.1"
5048
thegraph-graphql-http = "0.2.0"
5149
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ prometheus.workspace = true
1919
thegraph-core.workspace = true
2020
axum.workspace = true
2121
lazy_static.workspace = true
22-
thegraph-graphql-http.workspace = true
22+
thegraph-graphql-http = { workspace = true, features = ["http-client-reqwest"] }
2323
build-info.workspace = true
2424
graphql_client.workspace = true
2525

common/src/allocations/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use alloy::primitives::U256;
55
use serde::{Deserialize, Deserializer};
6-
use thegraph_core::{Address, DeploymentId};
6+
use thegraph_core::{alloy::primitives::Address, DeploymentId};
77

88
pub mod monitor;
99

common/src/allocations/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use super::Allocation;
1111
use crate::{prelude::SubgraphClient, watcher::new_watcher};
1212
use alloy::primitives::{TxHash, B256, U256};
1313
use graphql_client::GraphQLQuery;
14-
use thegraph_core::{Address, DeploymentId};
14+
use thegraph_core::{alloy::primitives::Address, DeploymentId};
1515
use tokio::sync::watch::Receiver;
1616

1717
type BigInt = U256;

common/src/attestations/signer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ use alloy::{
88
local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
99
},
1010
};
11-
use thegraph_core::{attestation, Address, Attestation, ChainId, DeploymentId};
11+
use thegraph_core::{
12+
alloy::primitives::Address, alloy::primitives::ChainId, attestation, Attestation, DeploymentId,
13+
};
1214

1315
use crate::prelude::Allocation;
1416

common/src/attestations/signers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use bip39::Mnemonic;
55
use std::sync::Arc;
66
use std::{collections::HashMap, sync::Mutex};
7-
use thegraph_core::{Address, ChainId};
7+
use thegraph_core::alloy::primitives::{Address, ChainId};
88
use tokio::sync::watch::Receiver;
99
use tracing::warn;
1010

@@ -45,7 +45,7 @@ fn modify_sigers(
4545
attestation_signers_map: &'static Mutex<HashMap<Address, AttestationSigner>>,
4646
allocations: &HashMap<Address, Allocation>,
4747
dispute_manager: &Address,
48-
) -> HashMap<thegraph_core::Address, AttestationSigner> {
48+
) -> HashMap<Address, AttestationSigner> {
4949
let mut signers = attestation_signers_map.lock().unwrap();
5050
// Remove signers for allocations that are no longer active or recently closed
5151
signers.retain(|id, _| allocations.contains_key(id));

common/src/indexer_service/http/indexer_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use std::{
2323
time::Duration,
2424
};
2525
use tap_core::{manager::Manager, receipt::checks::CheckList, tap_eip712_domain};
26-
use thegraph_core::{Address, Attestation, DeploymentId};
26+
use thegraph_core::{alloy::primitives::Address, Attestation, DeploymentId};
2727
use thiserror::Error;
2828
use tokio::net::TcpListener;
2929
use tokio::signal;

common/src/test_vectors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use tap_core::{
1515
signed_message::EIP712SignedMessage,
1616
tap_eip712_domain,
1717
};
18-
use thegraph_core::{Address, DeploymentId};
18+
use thegraph_core::{alloy::primitives::Address, DeploymentId};
1919

2020
use crate::prelude::{Allocation, AllocationStatus, SubgraphDeployment};
2121

config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
[dependencies]
77
alloy.workspace = true
88
serde.workspace = true
9-
thegraph-core.workspace = true
9+
thegraph-core = { workspace = true, features = ["serde"] }
1010
tracing.workspace = true
1111
bigdecimal = { workspace = true, features = ["serde"] }
1212
bip39 = { version = "2.0.0", features = ["rand"] }

0 commit comments

Comments
 (0)