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
2 changes: 1 addition & 1 deletion common/src/attestations/dispute_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

use std::time::Duration;

use alloy::primitives::Address;
use eventuals::{timer, Eventual, EventualExt};
use graphql_client::GraphQLQuery;
use thegraph_core::Address;
use tokio::time::sleep;
use tracing::warn;

Expand Down
3 changes: 1 addition & 2 deletions common/src/escrow_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ use std::{
time::Duration,
};

use alloy::primitives::U256;
use alloy::primitives::{Address, U256};
use anyhow::{anyhow, Result};
use eventuals::{timer, Eventual, EventualExt};
use graphql_client::GraphQLQuery;
use thegraph_core::Address;
use thiserror::Error;
use tokio::time::sleep;
use tracing::{error, warn};
Expand Down
2 changes: 1 addition & 1 deletion common/src/indexer_service/http/tap_receipt_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ impl Header for TapReceipt {
mod test {
use std::str::FromStr;

use alloy::primitives::Address;
use axum::http::HeaderValue;
use axum_extra::headers::Header;
use thegraph_core::Address;

use crate::test_vectors::create_signed_receipt;

Expand Down
2 changes: 1 addition & 1 deletion common/src/tap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ use crate::tap::checks::sender_balance_check::SenderBalanceCheck;
use crate::tap::checks::timestamp_check::TimestampCheck;
use crate::{escrow_accounts::EscrowAccounts, prelude::Allocation};
use alloy::dyn_abi::Eip712Domain;
use alloy::primitives::Address;
use eventuals::Eventual;
use receipt_store::{DatabaseReceipt, InnerContext};
use sqlx::PgPool;
use std::fmt::Debug;
use std::time::Duration;
use std::{collections::HashMap, sync::Arc};
use tap_core::receipt::checks::ReceiptCheck;
use thegraph_core::Address;
use tokio::sync::mpsc::{self, Sender};
use tokio_util::sync::CancellationToken;
use tracing::error;
Expand Down
2 changes: 1 addition & 1 deletion common/src/tap/checks/deny_list_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use crate::escrow_accounts::EscrowAccounts;
use alloy::dyn_abi::Eip712Domain;
use alloy::primitives::Address;
use eventuals::Eventual;
use sqlx::postgres::PgListener;
use sqlx::PgPool;
Expand All @@ -15,7 +16,6 @@ use tap_core::receipt::{
state::Checking,
ReceiptWithState,
};
use thegraph_core::Address;
use tracing::error;

pub struct DenyListCheck {
Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/agent/sender_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ use std::time::Duration;
use tokio::task::JoinHandle;

use alloy::dyn_abi::Eip712Domain;
use alloy::primitives::Address;
use anyhow::Result;
use eventuals::{Eventual, EventualExt, PipeHandle};
use indexer_common::{escrow_accounts::EscrowAccounts, prelude::SubgraphClient};
use ractor::{call, Actor, ActorProcessingErr, ActorRef, MessagingErr, SupervisionEvent};
use sqlx::PgPool;
use tap_core::rav::SignedRAV;
use thegraph_core::Address;
use tracing::{error, Level};

use super::sender_allocation::{SenderAllocation, SenderAllocationArgs};
Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/agent/sender_accounts_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::{collections::HashMap, str::FromStr};
use crate::agent::sender_allocation::SenderAllocationMessage;
use crate::lazy_static;
use alloy::dyn_abi::Eip712Domain;
use alloy::primitives::Address;
use anyhow::Result;
use anyhow::{anyhow, bail};
use eventuals::{Eventual, EventualExt, PipeHandle};
Expand All @@ -16,7 +17,6 @@ use indexer_common::prelude::{Allocation, SubgraphClient};
use ractor::{Actor, ActorCell, ActorProcessingErr, ActorRef, SupervisionEvent};
use serde::Deserialize;
use sqlx::{postgres::PgListener, PgPool};
use thegraph_core::Address;
use tokio::select;
use tracing::{error, warn};

Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/agent/sender_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::{
time::{Duration, Instant},
};

use alloy::primitives::Address;
use alloy::{dyn_abi::Eip712Domain, hex::ToHexExt};
use anyhow::{anyhow, ensure, Result};
use bigdecimal::num_bigint::BigInt;
Expand All @@ -26,7 +27,6 @@ use tap_core::{
},
signed_message::EIP712SignedMessage,
};
use thegraph_core::Address;
use tracing::{debug, error, warn};

use crate::{agent::sender_account::ReceiptFees, lazy_static};
Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/tap/context/escrow.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use alloy::primitives::Address;
use async_trait::async_trait;
use tap_core::manager::adapters::EscrowHandler as EscrowAdapterTrait;
use thegraph_core::Address;

use super::{error::AdapterError, TapAgentContext};

Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/tap/context/receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ use std::{
};

use alloy::hex::ToHexExt;
use alloy::primitives::Address;
use bigdecimal::{num_bigint::ToBigInt, ToPrimitive};
use sqlx::{postgres::types::PgRange, types::BigDecimal};
use tap_core::{
manager::adapters::{safe_truncate_receipts, ReceiptDelete, ReceiptRead},
receipt::{state::Checking, Receipt, ReceiptWithState, SignedReceipt},
};
use thegraph_core::Address;

use crate::tap::signers_trimmed;

Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/tap/escrow_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

use std::sync::{Arc, RwLock};

use alloy::primitives::Address;
use async_trait::async_trait;
use eventuals::Eventual;
use indexer_common::escrow_accounts::EscrowAccounts;
use tap_core::manager::adapters::EscrowHandler as EscrowAdapterTrait;
use thegraph_core::Address;

use super::context::AdapterError;

Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/tap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0

use alloy::hex::ToHexExt;
use alloy::primitives::Address;
use anyhow::anyhow;
use eventuals::Eventual;
use indexer_common::escrow_accounts::EscrowAccounts;
use thegraph_core::Address;

pub mod context;
pub mod escrow_adapter;
Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/tap/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ use bigdecimal::num_bigint::BigInt;
use sqlx::types::BigDecimal;

use alloy::dyn_abi::Eip712Domain;
use alloy::primitives::Address;
use lazy_static::lazy_static;
use sqlx::PgPool;
use tap_core::{
rav::{ReceiptAggregateVoucher, SignedRAV},
receipt::{state::Checking, Receipt, ReceiptWithState, SignedReceipt},
signed_message::EIP712SignedMessage,
};
use thegraph_core::Address;

lazy_static! {
pub static ref ALLOCATION_ID_0: Address =
Expand Down
Loading