revm_statetest_types/
test.rs

1use revm::primitives::{Address, Bytes, HashMap, B256};
2use serde::Deserialize;
3
4use crate::{transaction::TxPartIndices, AccountInfo};
5
6/// State test indexed state result deserialization.
7#[derive(Debug, PartialEq, Eq, Deserialize)]
8#[serde(rename_all = "camelCase", deny_unknown_fields)]
9pub struct Test {
10    pub expect_exception: Option<String>,
11
12    /// Indexes
13    pub indexes: TxPartIndices,
14    /// Post state hash
15    pub hash: B256,
16    /// Post state
17    #[serde(default)]
18    pub post_state: HashMap<Address, AccountInfo>,
19
20    /// Logs root
21    pub logs: B256,
22
23    /// Output state.
24    ///
25    /// Note: Not used.
26    #[serde(default)]
27    state: HashMap<Address, AccountInfo>,
28
29    /// Tx bytes
30    pub txbytes: Option<Bytes>,
31}