66//! This module provides an in-memory implementation of the TAP manager context.
77//! It is useful for testing and development purposes.
88
9+ use std:: {
10+ collections:: HashMap ,
11+ ops:: RangeBounds ,
12+ sync:: { Arc , RwLock } ,
13+ } ;
14+
15+ use alloy:: primitives:: Address ;
16+ use async_trait:: async_trait;
17+
918use crate :: {
1019 manager:: adapters:: * ,
1120 rav:: SignedRAV ,
1221 receipt:: { checks:: StatefulTimestampCheck , state:: Checking , ReceiptWithState } ,
1322 signed_message:: MessageId ,
1423} ;
15- use alloy:: primitives:: Address ;
16- use async_trait:: async_trait;
17- use std:: ops:: RangeBounds ;
18- use std:: sync:: RwLock ;
19- use std:: { collections:: HashMap , sync:: Arc } ;
2024
2125pub type EscrowStorage = Arc < RwLock < HashMap < Address , u128 > > > ;
2226pub type QueryAppraisals = Arc < RwLock < HashMap < MessageId , u128 > > > ;
@@ -259,6 +263,13 @@ impl EscrowHandler for InMemoryContext {
259263}
260264
261265pub mod checks {
266+ use std:: {
267+ collections:: { HashMap , HashSet } ,
268+ sync:: { Arc , RwLock } ,
269+ } ;
270+
271+ use alloy:: { dyn_abi:: Eip712Domain , primitives:: Address } ;
272+
262273 use crate :: {
263274 receipt:: {
264275 checks:: { Check , CheckError , CheckResult , ReceiptCheck } ,
@@ -267,11 +278,6 @@ pub mod checks {
267278 } ,
268279 signed_message:: MessageId ,
269280 } ;
270- use alloy:: { dyn_abi:: Eip712Domain , primitives:: Address } ;
271- use std:: {
272- collections:: { HashMap , HashSet } ,
273- sync:: { Arc , RwLock } ,
274- } ;
275281
276282 pub fn get_full_list_of_checks (
277283 domain_separator : Eip712Domain ,
0 commit comments