Skip to content
Merged
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
13 changes: 8 additions & 5 deletions crates/tap-agent/src/agent/sender_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ use tap_core::{
},
signed_message::Eip712SignedMessage,
};
use thegraph_core::alloy::{hex::ToHexExt, primitives::Address, sol_types::Eip712Domain};
use thegraph_core::{
alloy::{hex::ToHexExt, primitives::Address, sol_types::Eip712Domain},
CollectionId,
};
use thiserror::Error;
use tokio::sync::watch::Receiver;

Expand Down Expand Up @@ -1263,7 +1266,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
"#,
BigDecimal::from(min_timestamp),
BigDecimal::from(max_timestamp),
self.allocation_id.to_string(),
CollectionId::from(self.allocation_id).encode_hex(),
self.indexer_address.encode_hex(),
&signers,
)
Expand All @@ -1288,7 +1291,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
collection_id = $1
AND signer_address IN (SELECT unnest($2::text[]))
"#,
self.allocation_id.to_string(),
CollectionId::from(self.allocation_id).encode_hex(),
&signers
)
.fetch_one(&self.pgpool)
Expand Down Expand Up @@ -1337,7 +1340,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
AND signer_address IN (SELECT unnest($4::text[]))
AND timestamp_ns > $5
"#,
self.allocation_id.to_string(),
CollectionId::from(self.allocation_id).encode_hex(),
self.indexer_address.encode_hex(),
last_id,
&signers,
Expand Down Expand Up @@ -1388,7 +1391,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
AND payer = $2
AND service_provider = $3
"#,
self.allocation_id.to_string(),
CollectionId::from(self.allocation_id).encode_hex(),
self.sender.encode_hex(),
self.indexer_address.encode_hex(),
)
Expand Down
Loading