Skip to content

Commit

Permalink
removed from
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoparallel committed Mar 23, 2023
1 parent 33b5069 commit 4ead37c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions crates/simulate/src/agent.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#![warn(missing_docs)]
//! The data that describes agents that live in a `SimulationEnvironment`.
//! All agents must implement the `Agent` trait.

use bytes::Bytes;
use revm::primitives::{ExecutionResult, Log, TxEnv, B160, U256};

use crate::environment::{IsDeployed, SimulationContract};

/// Describes the gas settings for a transaction.
pub struct TransactSettings {
/// Gas limit for the transaction for a simulation.
pub gas_limit: u64,
/// Gas limit for the transaction for a simulation.
pub gas_price: U256,
pub value: U256,
}

/// Basic traits that every `Agent` must implement in order to properly interact with an EVM.
pub trait Agent {
fn call_contract(
&mut self,
Expand Down
1 change: 0 additions & 1 deletion crates/simulate/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ impl Default for SimulationManager {
transact_settings: TransactSettings {
gas_limit: u64::MAX,
gas_price: U256::ZERO,
value: U256::ZERO,
},
}
}
Expand Down

0 comments on commit 4ead37c

Please sign in to comment.