Struct tetsy_vm::tests::FakeExt[][src]

pub struct FakeExt {
    pub store: HashMap<H256, H256>,
    pub suicides: HashSet<Address>,
    pub calls: HashSet<FakeCall>,
    pub sstore_clears: i128,
    pub depth: usize,
    pub blockhashes: HashMap<U256, H256>,
    pub codes: HashMap<Address, Arc<Bytes>>,
    pub logs: Vec<FakeLogEntry>,
    pub info: EnvInfo,
    pub schedule: Schedule,
    pub balances: HashMap<Address, U256>,
    pub tracing: bool,
    pub is_static: bool,
    // some fields omitted
}

Fake externalities test structure.

Can’t do recursive calls.

Fields

store: HashMap<H256, H256>suicides: HashSet<Address>calls: HashSet<FakeCall>sstore_clears: i128depth: usizeblockhashes: HashMap<U256, H256>codes: HashMap<Address, Arc<Bytes>>logs: Vec<FakeLogEntry>info: EnvInfoschedule: Schedulebalances: HashMap<Address, U256>tracing: boolis_static: bool

Implementations

impl FakeExt[src]

pub fn new() -> Self[src]

New fake externalities

pub fn new_byzantium() -> Self[src]

New fake externalities with byzantium schedule rules

pub fn new_constantinople() -> Self[src]

New fake externalities with constantinople schedule rules

pub fn new_istanbul() -> Self[src]

New fake externalities with Istanbul schedule rules

pub fn with_wasm(self) -> Self[src]

Alter fake externalities to allow wasm

pub fn with_chain_id(self, chain_id: u64) -> Self[src]

Set chain ID

Trait Implementations

impl Default for FakeExt[src]

impl Ext for FakeExt[src]

Auto Trait Implementations

impl RefUnwindSafe for FakeExt

impl Send for FakeExt

impl Sync for FakeExt

impl Unpin for FakeExt

impl UnwindSafe for FakeExt

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,