[][src]Struct casper_execution_engine::core::engine_state::EngineState

pub struct EngineState<S> { /* fields omitted */ }

Implementations

impl<S> EngineState<S> where
    S: StateProvider,
    S::Error: Into<Error>, 
[src]

pub fn new(state: S, config: EngineConfig) -> EngineState<S>[src]

pub fn config(&self) -> &EngineConfig[src]

pub fn wasm_config(
    &self,
    protocol_version: ProtocolVersion
) -> Result<Option<WasmConfig>, Error>
[src]

pub fn get_protocol_data(
    &self,
    protocol_version: ProtocolVersion
) -> Result<Option<ProtocolData>, Error>
[src]

pub fn commit_genesis(
    &self,
    correlation_id: CorrelationId,
    genesis_config_hash: Blake2bHash,
    protocol_version: ProtocolVersion,
    ee_config: &ExecConfig
) -> Result<GenesisResult, Error>
[src]

pub fn commit_upgrade(
    &self,
    correlation_id: CorrelationId,
    upgrade_config: UpgradeConfig
) -> Result<UpgradeResult, Error>
[src]

pub fn tracking_copy(
    &self,
    hash: Blake2bHash
) -> Result<Option<TrackingCopy<S::Reader>>, Error>
[src]

pub fn run_query(
    &self,
    correlation_id: CorrelationId,
    query_request: QueryRequest
) -> Result<QueryResult, Error>
[src]

pub fn run_execute(
    &self,
    correlation_id: CorrelationId,
    exec_request: ExecuteRequest
) -> Result<ExecutionResults, RootNotFound>
[src]

pub fn get_module(
    &self,
    tracking_copy: Rc<RefCell<TrackingCopy<<S as StateProvider>::Reader>>>,
    deploy_item: &ExecutableDeployItem,
    account: &Account,
    correlation_id: CorrelationId,
    preprocessor: &Preprocessor,
    protocol_version: &ProtocolVersion
) -> Result<GetModuleResult, Error>
[src]

pub fn get_purse_balance(
    &self,
    correlation_id: CorrelationId,
    state_hash: Blake2bHash,
    purse_uref: URef
) -> Result<BalanceResult, Error>
[src]

pub fn transfer(
    &self,
    correlation_id: CorrelationId,
    executor: &Executor,
    preprocessor: &Preprocessor,
    protocol_version: ProtocolVersion,
    prestate_hash: Blake2bHash,
    blocktime: BlockTime,
    deploy_item: DeployItem
) -> Result<ExecutionResult, RootNotFound>
[src]

pub fn deploy(
    &self,
    correlation_id: CorrelationId,
    executor: &Executor,
    preprocessor: &Preprocessor,
    protocol_version: ProtocolVersion,
    prestate_hash: Blake2bHash,
    blocktime: BlockTime,
    deploy_item: DeployItem,
    proposer: PublicKey
) -> Result<ExecutionResult, RootNotFound>
[src]

pub fn apply_effect(
    &self,
    correlation_id: CorrelationId,
    pre_state_hash: Blake2bHash,
    effects: AdditiveMap<Key, Transform>
) -> Result<CommitResult, Error> where
    Error: From<S::Error>, 
[src]

pub fn get_era_validators(
    &self,
    correlation_id: CorrelationId,
    get_era_validators_request: GetEraValidatorsRequest
) -> Result<EraValidators, GetEraValidatorsError>
[src]

Obtains validator weights for given era.

pub fn commit_step(
    &self,
    correlation_id: CorrelationId,
    step_request: StepRequest
) -> Result<StepResult, Error>
[src]

Trait Implementations

impl<S: Debug> Debug for EngineState<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for EngineState<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for EngineState<S> where
    S: Send
[src]

impl<S> Sync for EngineState<S> where
    S: Sync
[src]

impl<S> Unpin for EngineState<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for EngineState<S> where
    S: UnwindSafe
[src]

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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,