Skip to content

Commit 0178aed

Browse files
committed
docs: add final documentation to lib
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent cd52588 commit 0178aed

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

crates/tap-agent/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,22 @@
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+
613
use indexer_config::Config;
714
use lazy_static::lazy_static;
815
use tap_core::tap_eip712_domain;
916
use thegraph_core::alloy::sol_types::Eip712Domain;
1017

1118
lazy_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;
2029
pub mod agent;
2130
pub mod backoff;
2231
pub mod cli;
32+
/// Database helper
2333
pub mod database;
34+
/// Prometheus Metrics server
2435
pub mod metrics;
2536
pub mod tap;
2637
#[cfg(any(test, feature = "test"))]
38+
/// Test utils to interact with Tap Actors
2739
pub mod test;
2840
pub mod tracker;

crates/tap-agent/src/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#![allow(missing_docs)]
45
use std::{
56
collections::{HashMap, HashSet},
67
net::SocketAddr,

0 commit comments

Comments
 (0)