Skip to main content

Module gas_report

Module gas_report 

Source
Expand description

Gas reports.

Re-exportsยง

use crate::constants::CHEATCODE_ADDRESS; ๐Ÿ”’
use crate::constants::HARDHAT_CONSOLE_ADDRESS; ๐Ÿ”’
use crate::traces::CallTraceArena; ๐Ÿ”’
use crate::traces::CallTraceDecoder; ๐Ÿ”’
use crate::traces::CallTraceNode; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::map::HashSet; ๐Ÿ”’
use comfy_table::Cell; ๐Ÿ”’
use comfy_table::CellAlignment; ๐Ÿ”’
use comfy_table::Color; ๐Ÿ”’
use comfy_table::Table; ๐Ÿ”’
use comfy_table::presets::ASCII_FULL; ๐Ÿ”’
use comfy_table::presets::ASCII_MARKDOWN; ๐Ÿ”’
use foundry_common::TestFunctionExt; ๐Ÿ”’
use foundry_common::calc; ๐Ÿ”’
use foundry_common::get_contract_name; ๐Ÿ”’
use foundry_common::shell; ๐Ÿ”’
use foundry_evm::traces::CallKind; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde_json::json; ๐Ÿ”’
use std::collections::BTreeMap; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’

Structsยง

ContractInfo
GasInfo
GasReport
Represents the gas report for a set of contracts.

Functionsยง

format_table_output ๐Ÿ”’