Skip to content

Commit

Permalink
refactor: rename Account to SenderAllocationRelationship
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Nov 2, 2023
1 parent da11a93 commit 226a8ff
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 119 deletions.
7 changes: 5 additions & 2 deletions tap-agent/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ use indexer_common::prelude::{
escrow_accounts, indexer_allocations, DeploymentDetails, SubgraphClient,
};

use crate::{aggregator_endpoints, config, database, tap::accounts_manager};
use crate::{
aggregator_endpoints, config, database,
tap::sender_allocation_relationships_manager::SenderAllocationRelationshipsManager,
};

pub async fn start_agent(config: &'static config::Cli) {
let pgpool = database::connect(&config.postgres).await;
Expand Down Expand Up @@ -78,7 +81,7 @@ pub async fn start_agent(config: &'static config::Cli) {
verifying_contract: config.receipts.receipts_verifier_address,
};

let _accounts_manager = accounts_manager::AccountsManager::new(
let _sender_allocation_relationships_manager = SenderAllocationRelationshipsManager::new(
config,
pgpool,
indexer_allocations,
Expand Down
4 changes: 2 additions & 2 deletions tap-agent/src/tap/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

mod account;
pub mod accounts_manager;
mod escrow_adapter;
mod rav_storage_adapter;
mod receipt_checks_adapter;
mod receipt_storage_adapter;
mod sender_allocation_relationship;
pub mod sender_allocation_relationships_manager;

#[cfg(test)]
pub mod test_utils;
Loading

0 comments on commit 226a8ff

Please sign in to comment.