1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! # VERBS
//!
//! Ethereum agent based modelling library
//!
//! Verbs is a library designed to aid the
//! implementation of agent based models
//! of the ethereum blockchain with a focus
//! on performance and quick development
//! of simulations.
//!
//! Verbs is built around the
//! [revm](https://github.com/bluealloy/revm)
//! implementation of the Ethereum virtual
//! machine, agents interact directly with
//! EVM, avoiding the overhead of messaging
//! or multi-threading.
//!
//! ## Loading Contracts
//!
//! Verbs makes use of [alloy_sol_types] to convert
//! ABI strings/files to Rust classes that can
//! encode/decode function arguments etc.
//!
//! An ABI rust representation can generated using the `sol!`
//! macro, for example
//!
//! ```
//! use alloy_sol_types::sol;
//!
//! sol!(
//!     ContractName,
//!     r#"[
//!         {
//!             "inputs": [],
//!             "name": "getValue",
//!             "outputs": [
//!                 {
//!                     "internalType": "int256",
//!                     "name": "",
//!                     "type": "int256"
//!                 }
//!             ],
//!             "stateMutability": "view",
//!             "type": "function"
//!         }
//!     ]"#
//! );
//!
//! // Encodes call arguments
//! ContractName::getValueCall {};
//! ```

pub mod agent;
pub mod contract;
mod db;
pub mod env;
pub mod sim_runner;
pub mod utils;

pub use db::{ForkDb, LocalDB, RequestCache, DB};