@@ -35,9 +35,9 @@ use crate::agent::sender_account::SenderAccountMessage;
3535use crate :: agent:: sender_accounts_manager:: NewReceiptNotification ;
3636use crate :: agent:: unaggregated_receipts:: UnaggregatedReceipts ;
3737use crate :: {
38+ tap:: context:: checks:: AllocationId ,
3839 tap:: context:: { checks:: Signature , TapAgentContext } ,
3940 tap:: signers_trimmed,
40- tap:: { context:: checks:: AllocationId , escrow_adapter:: EscrowAdapter } ,
4141} ;
4242use thiserror:: Error ;
4343
@@ -137,7 +137,6 @@ pub struct SenderAllocationArgs {
137137 pub sender : Address ,
138138 pub escrow_accounts : Receiver < EscrowAccounts > ,
139139 pub escrow_subgraph : & ' static SubgraphClient ,
140- pub escrow_adapter : EscrowAdapter ,
141140 pub domain_separator : Eip712Domain ,
142141 pub sender_account_ref : ActorRef < SenderAccountMessage > ,
143142 pub sender_aggregator : jsonrpsee:: http_client:: HttpClient ,
@@ -340,7 +339,6 @@ impl SenderAllocationState {
340339 sender,
341340 escrow_accounts,
342341 escrow_subgraph,
343- escrow_adapter,
344342 domain_separator,
345343 sender_account_ref,
346344 sender_aggregator,
@@ -368,7 +366,6 @@ impl SenderAllocationState {
368366 allocation_id,
369367 sender,
370368 escrow_accounts. clone ( ) ,
371- escrow_adapter,
372369 ) ;
373370 let latest_rav = context. last_rav ( ) . await . unwrap_or_default ( ) ;
374371 let tap_manager = TapManager :: new (
@@ -869,13 +866,9 @@ pub mod tests {
869866 sender_accounts_manager:: NewReceiptNotification ,
870867 unaggregated_receipts:: UnaggregatedReceipts ,
871868 } ,
872- tap:: {
873- escrow_adapter:: EscrowAdapter ,
874- test_utils:: {
875- create_rav, create_received_receipt, store_invalid_receipt, store_rav,
876- store_receipt, ALLOCATION_ID_0 , INDEXER , SENDER , SIGNER ,
877- TAP_EIP712_DOMAIN_SEPARATOR ,
878- } ,
869+ tap:: test_utils:: {
870+ create_rav, create_received_receipt, store_invalid_receipt, store_rav, store_receipt,
871+ ALLOCATION_ID_0 , INDEXER , SENDER , SIGNER , TAP_EIP712_DOMAIN_SEPARATOR ,
879872 } ,
880873 } ;
881874 use futures:: future:: join_all;
@@ -995,8 +988,6 @@ pub mod tests {
995988 ) )
996989 . 1 ;
997990
998- let escrow_adapter = EscrowAdapter :: new ( escrow_accounts_rx. clone ( ) , SENDER . 1 ) ;
999-
1000991 let sender_account_ref = match sender_account {
1001992 Some ( sender) => sender,
1002993 None => create_mock_sender_account ( ) . await . 1 ,
@@ -1011,7 +1002,6 @@ pub mod tests {
10111002 sender : SENDER . 1 ,
10121003 escrow_accounts : escrow_accounts_rx,
10131004 escrow_subgraph,
1014- escrow_adapter,
10151005 domain_separator : TAP_EIP712_DOMAIN_SEPARATOR . clone ( ) ,
10161006 sender_account_ref,
10171007 sender_aggregator,
0 commit comments