[−][src]Struct casper_execution_engine::core::engine_state::EngineState
Implementations
impl<S> EngineState<S> where
S: StateProvider,
S::Error: Into<Error>,
[src]
S: StateProvider,
S::Error: Into<Error>,
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]
&self,
protocol_version: ProtocolVersion
) -> Result<Option<WasmConfig>, Error>
pub fn get_protocol_data(
&self,
protocol_version: ProtocolVersion
) -> Result<Option<ProtocolData>, Error>
[src]
&self,
protocol_version: ProtocolVersion
) -> Result<Option<ProtocolData>, Error>
pub fn commit_genesis(
&self,
correlation_id: CorrelationId,
genesis_config_hash: Blake2bHash,
protocol_version: ProtocolVersion,
ee_config: &ExecConfig
) -> Result<GenesisResult, Error>
[src]
&self,
correlation_id: CorrelationId,
genesis_config_hash: Blake2bHash,
protocol_version: ProtocolVersion,
ee_config: &ExecConfig
) -> Result<GenesisResult, Error>
pub fn commit_upgrade(
&self,
correlation_id: CorrelationId,
upgrade_config: UpgradeConfig
) -> Result<UpgradeResult, Error>
[src]
&self,
correlation_id: CorrelationId,
upgrade_config: UpgradeConfig
) -> Result<UpgradeResult, Error>
pub fn tracking_copy(
&self,
hash: Blake2bHash
) -> Result<Option<TrackingCopy<S::Reader>>, Error>
[src]
&self,
hash: Blake2bHash
) -> Result<Option<TrackingCopy<S::Reader>>, Error>
pub fn run_query(
&self,
correlation_id: CorrelationId,
query_request: QueryRequest
) -> Result<QueryResult, Error>
[src]
&self,
correlation_id: CorrelationId,
query_request: QueryRequest
) -> Result<QueryResult, Error>
pub fn run_execute(
&self,
correlation_id: CorrelationId,
exec_request: ExecuteRequest
) -> Result<ExecutionResults, RootNotFound>
[src]
&self,
correlation_id: CorrelationId,
exec_request: ExecuteRequest
) -> Result<ExecutionResults, RootNotFound>
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]
&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>
pub fn get_purse_balance(
&self,
correlation_id: CorrelationId,
state_hash: Blake2bHash,
purse_uref: URef
) -> Result<BalanceResult, Error>
[src]
&self,
correlation_id: CorrelationId,
state_hash: Blake2bHash,
purse_uref: URef
) -> Result<BalanceResult, Error>
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]
&self,
correlation_id: CorrelationId,
executor: &Executor,
preprocessor: &Preprocessor,
protocol_version: ProtocolVersion,
prestate_hash: Blake2bHash,
blocktime: BlockTime,
deploy_item: DeployItem
) -> Result<ExecutionResult, RootNotFound>
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]
&self,
correlation_id: CorrelationId,
executor: &Executor,
preprocessor: &Preprocessor,
protocol_version: ProtocolVersion,
prestate_hash: Blake2bHash,
blocktime: BlockTime,
deploy_item: DeployItem,
proposer: PublicKey
) -> Result<ExecutionResult, RootNotFound>
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]
&self,
correlation_id: CorrelationId,
pre_state_hash: Blake2bHash,
effects: AdditiveMap<Key, Transform>
) -> Result<CommitResult, Error> where
Error: From<S::Error>,
pub fn get_era_validators(
&self,
correlation_id: CorrelationId,
get_era_validators_request: GetEraValidatorsRequest
) -> Result<EraValidators, GetEraValidatorsError>
[src]
&self,
correlation_id: CorrelationId,
get_era_validators_request: GetEraValidatorsRequest
) -> Result<EraValidators, GetEraValidatorsError>
Obtains validator weights for given era.
pub fn commit_step(
&self,
correlation_id: CorrelationId,
step_request: StepRequest
) -> Result<StepResult, Error>
[src]
&self,
correlation_id: CorrelationId,
step_request: StepRequest
) -> Result<StepResult, Error>
Trait Implementations
Auto Trait Implementations
impl<S> RefUnwindSafe for EngineState<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for EngineState<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for EngineState<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for EngineState<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for EngineState<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,