Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/dipper-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dipper-core = { version = "0.1.0", path = "../../dipper-core" }
dipper-iisa = { path = "../../dipper-iisa" }
dipper-pgmq = { path = "../../dipper-pgmq" }
dipper-pgregistry = { path = "../../dipper-pgregistry" }
dipper-producer = { path = "../../dipper-producer" }
dipper-rpc = { version = "0.1.0", path = "../../dipper-rpc", features = ["admin-rpc", "indexer-rpc"] }
futures-lite = { version = "2.4.0", default-features = false }
graph-networks-registry.workspace = true
Expand Down
8 changes: 8 additions & 0 deletions bin/dipper-service/src/admin_rpc_server/context.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{collections::BTreeSet, sync::Arc};

use dipper_core::state::FromState;
use dipper_producer::events::SubgraphIndexingAgreementEventsProducer;
use thegraph_core::alloy::primitives::Address;

use super::handlers::{IndexingAgreementsCtx, IndexingRequestsCtx};
Expand All @@ -23,6 +24,10 @@ pub struct Ctx<R, W> {

/// The message queue worker
pub worker: W,

/// Subgraph Indexing Agreements Events emitter for sending on the topic, if configured and enabled
pub subgraph_indexing_agreements_events_emitter:
Arc<dyn SubgraphIndexingAgreementEventsProducer>,
}

impl<R, W> FromState<Ctx<R, W>> for IndexingRequestsCtx<R, W>
Expand All @@ -37,6 +42,9 @@ where
registry: ctx.registry.clone(),
worker: ctx.worker.clone(),
max_candidates: ctx.max_candidates,
subgraph_indexing_agreements_events_emitter: ctx
.subgraph_indexing_agreements_events_emitter
.clone(),
}
}
}
Expand Down
Loading
Loading