Skip to content

Commit edb5f03

Browse files
authored
refactor: split common into multiple crates (#501)
1 parent 210c8f3 commit edb5f03

Some content is hidden

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

49 files changed

+312
-356
lines changed

.release-please-manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"crates/tap-agent": "1.7.3",
3-
"crates/common": "1.4.0",
43
"crates/config": "1.2.1",
54
"crates/service": "1.3.2"
65
}

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[workspace]
22
members = [
3-
"crates/common",
3+
"crates/allocation",
4+
"crates/attestation",
45
"crates/config",
56
"crates/dips",
7+
"crates/monitor",
68
"crates/query",
79
"crates/service",
810
"crates/tap-agent",
9-
"crates/types",
10-
"crates/tests/tap-utils",
11+
"crates/test-assets",
12+
"crates/watcher",
1113
]
1214
resolver = "2"
1315

@@ -68,3 +70,4 @@ thegraph-core = { git = "https://github.com/edgeandnode/toolshed", rev = "166353
6870
] }
6971
thegraph-graphql-http = "0.2.0"
7072
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }
73+
bip39 = "2.0.0"

crates/types/Cargo.toml renamed to crates/allocation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "indexer-types"
2+
name = "indexer-allocation"
33
version = "0.1.0"
44
edition = "2021"
55

File renamed without changes.

crates/attestation/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "indexer-attestation"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
indexer-allocation = { path = "../allocation" }
8+
alloy.workspace = true
9+
thegraph-core.workspace = true
10+
anyhow.workspace = true
11+
12+
13+
[dev-dependencies]
14+
test-log = { version = "0.2.12", default-features = false }
15+
test-assets = { path = "../test-assets" }

crates/common/src/attestation/signer.rs renamed to crates/attestation/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use alloy::{
1010
};
1111
use thegraph_core::{attestation, Address, Attestation, ChainId, DeploymentId};
1212

13-
use indexer_types::Allocation;
13+
use indexer_allocation::Allocation;
1414

1515
pub fn derive_key_pair(
1616
indexer_mnemonic: &str,
@@ -121,8 +121,8 @@ mod tests {
121121
use std::str::FromStr;
122122
use test_log::test;
123123

124-
use crate::test_vectors::DISPUTE_MANAGER_ADDRESS;
125-
use indexer_types::{Allocation, AllocationStatus, SubgraphDeployment};
124+
use indexer_allocation::{Allocation, AllocationStatus, SubgraphDeployment};
125+
use test_assets::DISPUTE_MANAGER_ADDRESS;
126126

127127
use super::*;
128128

crates/common/CHANGELOG.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

crates/common/Cargo.toml

Lines changed: 0 additions & 36 deletions
This file was deleted.

crates/common/src/attestation/mod.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)