Skip to content

Commit c3922f1

Browse files
committed
store: Document new modules.
1 parent 649f0c2 commit c3922f1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

store/postgres/src/transaction_gas.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//! Code for retrieving transaction gas information from the database.
2+
//!
3+
//! This module exposes the [`find_transaction_gas_in_block_range`] function, that queries the
4+
//! database and returns how much gas each transaction were issued with.
5+
16
use super::transaction_receipt::drain_vector;
27
use diesel::{
38
pg::{Pg, PgConnection},
@@ -96,7 +101,7 @@ struct RawTransactionGas {
96101
}
97102

98103
/// Like web3::types::Transaction, but with fewer fields.
99-
pub(crate) struct TransactionGas {
104+
struct TransactionGas {
100105
pub transaction_hash: H256,
101106
pub gas: U256,
102107
}

store/postgres/src/transaction_receipt.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//! Code for retrieving transaction receipts from the database.
2+
//!
3+
//! This module exposes:
4+
//! 1. the [`find_transaction_receipts_for_block_range`] function, that queries the database and returns
5+
//! transaction receipts for a given block range.
6+
//! 2. the [`LightTransactionReceipt`] type, which holds basic information about the retrieved
7+
//! transaction receipts.
8+
19
use diesel::{
210
pg::{Pg, PgConnection},
311
prelude::*,

0 commit comments

Comments
 (0)