revm_statetest_types/
account_info.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use revm::primitives::{Bytes, HashMap, U256};
use serde::Deserialize;

use crate::deserializer::deserialize_str_as_u64;

/// Account information.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct AccountInfo {
    pub balance: U256,
    pub code: Bytes,
    #[serde(deserialize_with = "deserialize_str_as_u64")]
    pub nonce: u64,
    pub storage: HashMap<U256, U256>,
}