inspect.rs 746 B

123456789101112131415161718192021222324
  1. use {
  2. crate::{api::ChainId, config::ConfigOptions},
  3. clap::Args,
  4. };
  5. #[derive(Args, Clone, Debug)]
  6. #[command(next_help_heading = "Inspect Options")]
  7. #[group(id = "Inspect")]
  8. pub struct InspectOptions {
  9. #[command(flatten)]
  10. pub config: ConfigOptions,
  11. /// Check the requests on this chain, or all chains if not specified.
  12. #[arg(long = "chain-id")]
  13. pub chain_id: Option<ChainId>,
  14. /// The number of requests to inspect starting from the most recent request.
  15. #[arg(long = "num-requests", default_value = "1000")]
  16. pub num_requests: u64,
  17. /// The number of calls to make in each batch when using multicall.
  18. #[arg(long = "multicall-batch-size", default_value = "100")]
  19. pub multicall_batch_size: u64,
  20. }