Skip to content

Commit

Permalink
store: Document new modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Jun 16, 2021
1 parent 649f0c2 commit c3922f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion store/postgres/src/transaction_gas.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! Code for retrieving transaction gas information from the database.
//!
//! This module exposes the [`find_transaction_gas_in_block_range`] function, that queries the
//! database and returns how much gas each transaction were issued with.

use super::transaction_receipt::drain_vector;
use diesel::{
pg::{Pg, PgConnection},
Expand Down Expand Up @@ -96,7 +101,7 @@ struct RawTransactionGas {
}

/// Like web3::types::Transaction, but with fewer fields.
pub(crate) struct TransactionGas {
struct TransactionGas {
pub transaction_hash: H256,
pub gas: U256,
}
Expand Down
8 changes: 8 additions & 0 deletions store/postgres/src/transaction_receipt.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! Code for retrieving transaction receipts from the database.
//!
//! This module exposes:
//! 1. the [`find_transaction_receipts_for_block_range`] function, that queries the database and returns
//! transaction receipts for a given block range.
//! 2. the [`LightTransactionReceipt`] type, which holds basic information about the retrieved
//! transaction receipts.

use diesel::{
pg::{Pg, PgConnection},
prelude::*,
Expand Down

0 comments on commit c3922f1

Please sign in to comment.