openethereum/src/evm/params.rs

31 lines
519 B
Rust
Raw Normal View History

2016-01-09 00:51:09 +01:00
use util::hash::*;
use util::uint::*;
use util::bytes::*;
#[derive(Clone)]
pub struct EvmParams {
pub address: Address,
pub sender: Address,
pub origin: Address,
pub gas: U256,
pub gas_price: U256,
pub value: U256,
pub code: Bytes,
2016-01-09 17:55:47 +01:00
pub data: Bytes
2016-01-09 00:51:09 +01:00
}
impl EvmParams {
2016-01-09 17:55:47 +01:00
pub fn new() -> EvmParams {
2016-01-09 00:51:09 +01:00
EvmParams {
address: Address::new(),
sender: Address::new(),
origin: Address::new(),
gas: U256::zero(),
gas_price: U256::zero(),
value: U256::zero(),
code: vec![],
data: vec![],
}
}
}