File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 33
44#![ warn( missing_docs) ] // Warns if any public item lacks documentation
55
6+ //! # Tap-Agent
7+ //! This software is used to monitor receipts inserted in the database
8+ //! and to keep track of all the values across different allocations.
9+ //!
10+ //! It's main goal is that the value never goes below the balance available
11+ //! in the escrow account for a given sender.
12+
613use indexer_config:: Config ;
714use lazy_static:: lazy_static;
815use tap_core:: tap_eip712_domain;
916use thegraph_core:: alloy:: sol_types:: Eip712Domain ;
1017
1118lazy_static ! {
19+ /// Static configuration
1220 pub static ref CONFIG : Config = cli:: get_config( ) . expect( "Failed to load configuration" ) ;
21+ /// Static EIP_712_DOMAIN used with config values
1322 pub static ref EIP_712_DOMAIN : Eip712Domain = tap_eip712_domain(
1423 CONFIG . blockchain. chain_id as u64 ,
1524 CONFIG . blockchain. receipts_verifier_address,
@@ -20,9 +29,12 @@ pub mod adaptative_concurrency;
2029pub mod agent;
2130pub mod backoff;
2231pub mod cli;
32+ /// Database helper
2333pub mod database;
34+ /// Prometheus Metrics server
2435pub mod metrics;
2536pub mod tap;
2637#[ cfg( any( test, feature = "test" ) ) ]
38+ /// Test utils to interact with Tap Actors
2739pub mod test;
2840pub mod tracker;
Original file line number Diff line number Diff line change 11// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22// SPDX-License-Identifier: Apache-2.0
33
4+ #![ allow( missing_docs) ]
45use std:: {
56 collections:: { HashMap , HashSet } ,
67 net:: SocketAddr ,
You can’t perform that action at this time.
0 commit comments