Skip to content

Commit ccddf38

Browse files
committed
chore(deps): use latest thegraph-core crate version
Signed-off-by: Lorenzo Delgado <[email protected]>
1 parent 9d762e5 commit ccddf38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+278
-228
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ resolver = "2"
1717
opt-level = 3
1818

1919
[workspace.dependencies]
20-
alloy = { version = "=0.5.4", features = [
21-
"kzg",
22-
"signer-mnemonic",
23-
"dyn-abi",
24-
"sol-types",
25-
"signer-local",
26-
"eip712",
27-
"rlp",
28-
"signers",
29-
], default-features = false }
3020
clap = "4.4.3"
3121
lazy_static = "1.4.0"
3222
axum = { version = "0.7.9", default-features = false, features = [
@@ -62,14 +52,23 @@ uuid = { version = "1.11.0", features = ["v7"] }
6252
tracing = { version = "0.1.40", default-features = false }
6353
bigdecimal = "0.4.3"
6454
build-info = "0.0.39"
65-
tap_core = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "61b47b3", default-features = false }
66-
tap_aggregator = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "61b47b3", default-features = false }
55+
tap_core = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "1c6e29f", default-features = false }
56+
tap_aggregator = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "1c6e29f", default-features = false }
6757
tracing-subscriber = { version = "0.3", features = [
6858
"json",
6959
"env-filter",
7060
"ansi",
7161
], default-features = false }
72-
thegraph-core = { git = "https://github.com/edgeandnode/toolshed", rev = "1663534fc1738e2db1b11cb54b5bb478ee970d40" }
62+
thegraph-core = { version = "0.9.6", features = [
63+
"attestation",
64+
"alloy-eip712",
65+
"alloy-sol-types",
66+
"alloy-rlp",
67+
"alloy-signers",
68+
"alloy-signer-local",
69+
"alloy-signer-mnemonic",
70+
"serde"
71+
] }
7372
thegraph-graphql-http = { version = "0.3.2", features = ["reqwest"] }
7473
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }
7574
bip39 = "2.0.0"

crates/allocation/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ edition = "2021"
66
[dependencies]
77
indexer-query = { path = "../query" }
88
serde = { workspace = true, features = ["derive"] }
9-
alloy.workspace = true
109
thegraph-core.workspace = true
1110
anyhow.workspace = true

crates/allocation/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
use std::str::FromStr;
55

6-
use alloy::primitives::{Address, U256};
76
use indexer_query::allocations_query;
87
use serde::{Deserialize, Deserializer};
9-
use thegraph_core::DeploymentId;
8+
use thegraph_core::{
9+
alloy::primitives::{Address, U256},
10+
DeploymentId,
11+
};
1012

1113
#[derive(Clone, Debug, PartialEq, Eq)]
1214
pub struct Allocation {

crates/attestation/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edition = "2021"
55

66
[dependencies]
77
indexer-allocation = { path = "../allocation" }
8-
alloy.workspace = true
98
thegraph-core.workspace = true
109
anyhow.workspace = true
1110

crates/attestation/src/lib.rs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use alloy::{
5-
primitives::{Address, ChainId},
6-
signers::{
7-
k256,
8-
local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
4+
use indexer_allocation::Allocation;
5+
use thegraph_core::{
6+
alloy::{
7+
primitives::{Address, ChainId},
8+
signers::{
9+
k256,
10+
local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
11+
},
12+
sol_types::Eip712Domain,
913
},
10-
sol_types::Eip712Domain,
14+
attestation,
15+
attestation::Attestation,
16+
DeploymentId,
1117
};
12-
use indexer_allocation::Allocation;
13-
use thegraph_core::{attestation, Attestation, DeploymentId};
1418

1519
pub fn derive_key_pair(
1620
indexer_mnemonic: &str,
@@ -119,10 +123,10 @@ fn wallet_for_allocation(
119123
mod tests {
120124
use std::str::FromStr;
121125

122-
use alloy::primitives::{address, U256};
123126
use indexer_allocation::{Allocation, AllocationStatus, SubgraphDeployment};
124127
use test_assets::DISPUTE_MANAGER_ADDRESS;
125128
use test_log::test;
129+
use thegraph_core::alloy::primitives::{address, U256};
126130

127131
use super::*;
128132

crates/config/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "1.2.2"
44
edition = "2021"
55

66
[dependencies]
7-
alloy.workspace = true
87
serde.workspace = true
98
thegraph-core.workspace = true
109
tracing.workspace = true

crates/config/src/config.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::{
1010
time::Duration,
1111
};
1212

13-
use alloy::primitives::Address;
1413
use bigdecimal::{BigDecimal, FromPrimitive, ToPrimitive};
1514
use bip39::Mnemonic;
1615
use figment::{
@@ -21,7 +20,7 @@ use regex::Regex;
2120
use serde::Deserialize;
2221
use serde_repr::Deserialize_repr;
2322
use serde_with::{serde_as, DurationSecondsWithFrac};
24-
use thegraph_core::DeploymentId;
23+
use thegraph_core::{alloy::primitives::Address, DeploymentId};
2524
use url::Url;
2625

2726
use crate::NonZeroGRT;
@@ -423,9 +422,9 @@ pub struct RavRequestConfig {
423422
mod tests {
424423
use std::{env, fs, path::PathBuf};
425424

426-
use alloy::primitives::address;
427425
use figment::value::Uncased;
428426
use sealed_test::prelude::*;
427+
use thegraph_core::alloy::primitives::address;
429428
use tracing_test::traced_test;
430429

431430
use super::{DatabaseConfig, SHARED_PREFIX};

crates/dips/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
alloy.workspace = true
87
thiserror.workspace = true
98
anyhow.workspace = true
10-
alloy-sol-types = "=0.8.15"
11-
alloy-rlp = "0.3.9"
9+
alloy-rlp = "0.3.10"
1210
thegraph-core.workspace = true

crates/dips/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ use std::{
66
time::{Duration, SystemTime, UNIX_EPOCH},
77
};
88

9-
pub use alloy;
10-
use alloy::{
9+
use thegraph_core::alloy::{
1110
core::primitives::Address,
1211
primitives::PrimitiveSignature as Signature,
13-
rlp::{RlpDecodable, RlpEncodable},
12+
rlp::{Encodable, RlpDecodable, RlpEncodable},
1413
signers::SignerSync,
15-
sol_types::{sol, Eip712Domain, SolStruct},
14+
sol,
15+
sol_types::{Eip712Domain, SolStruct},
1616
};
17-
pub use alloy_rlp;
18-
use alloy_rlp::Encodable;
1917
use thiserror::Error;
2018

2119
sol! {
@@ -216,12 +214,14 @@ impl SignedCancellationRequest {
216214
mod test {
217215
use std::time::{Duration, SystemTime, UNIX_EPOCH};
218216

219-
use alloy::{
220-
primitives::{Address, FixedBytes, U256},
221-
signers::local::PrivateKeySigner,
222-
sol_types::SolStruct,
217+
use thegraph_core::{
218+
alloy::{
219+
primitives::{Address, FixedBytes, U256},
220+
signers::local::PrivateKeySigner,
221+
sol_types::SolStruct,
222+
},
223+
attestation::eip712_domain,
223224
};
224-
use thegraph_core::attestation::eip712_domain;
225225

226226
use crate::{
227227
AgreementVoucherValidationError, CancellationRequest, CancellationRequestValidationError,

0 commit comments

Comments
 (0)