[−][src]Enum casper_node::effect::requests::ContractRuntimeRequest
A contract runtime request.
Variants
Get ProtocolData by ProtocolVersion.
Fields of GetProtocolData
protocol_version: ProtocolVersionThe protocol version.
responder: Responder<Result<Option<Box<ProtocolData>>, Error>>Responder to call with the result.
Commit genesis chainspec.
Fields of CommitGenesis
An ExecuteRequest that contains multiple deploys that will be executed.
Fields of Execute
execute_request: Box<ExecuteRequest>Execution request containing deploys.
responder: Responder<Result<ExecutionResults, RootNotFound>>Responder to call with the execution result.
A request to commit existing execution transforms.
Fields of Commit
state_root_hash: DigestA valid state root hash.
effects: AdditiveMap<Key, Transform>Effects obtained through ExecutionResult
responder: Responder<Result<CommitResult, Error>>Responder to call with the commit result.
A request to run upgrade.
Fields of Upgrade
upgrade_config: Box<UpgradeConfig>Upgrade config.
responder: Responder<Result<UpgradeResult, Error>>Responder to call with the upgrade result.
A query request.
Fields of Query
query_request: QueryRequestQuery request.
responder: Responder<Result<QueryResult, Error>>Responder to call with the query result.
A balance request.
Fields of GetBalance
balance_request: BalanceRequestBalance request.
responder: Responder<Result<BalanceResult, Error>>Responder to call with the balance result.
Returns validator weights.
Fields of GetEraValidators
request: EraValidatorsRequestGet validators weights request.
responder: Responder<Result<EraValidators, GetEraValidatorsError>>Responder to call with the result.
Returns validator weights for given era.
Fields of GetValidatorWeightsByEraId
request: ValidatorWeightsByEraIdRequestGet validators weights request.
responder: Responder<Result<Option<ValidatorWeights>, GetEraValidatorsError>>Responder to call with the result.
Performs a step consisting of calculating rewards, slashing and running the auction at the end of an era.
Fields of Step
step_request: StepRequestThe step request.
responder: Responder<Result<StepResult, Error>>Responder to call with the result.
Check if validator is bonded in the future era (identified by era_id).
Fields of IsBonded
state_root_hash: DigestState root hash of the LFB.
public_key: PublicKeyValidator public key.
era_id: EraIdEra ID in which validator should be bonded in.
protocol_version: ProtocolVersionProtocol version at the state_root_hash.
responder: Responder<Result<bool, GetEraValidatorsError>>Responder,
Trait Implementations
impl Debug for ContractRuntimeRequest[src]
impl Display for ContractRuntimeRequest[src]
impl From<ContractRuntimeRequest> for Event[src]
pub fn from(original: ContractRuntimeRequest) -> Event[src]
impl From<ContractRuntimeRequest> for Event[src]
pub fn from(request: ContractRuntimeRequest) -> Self[src]
impl From<ContractRuntimeRequest> for InitializerEvent[src]
pub fn from(request: ContractRuntimeRequest) -> Self[src]
impl From<ContractRuntimeRequest> for Event[src]
pub fn from(request: ContractRuntimeRequest) -> Event[src]
impl From<ContractRuntimeRequest> for Event[src]
pub fn from(request: ContractRuntimeRequest) -> Event[src]
impl Serialize for ContractRuntimeRequest[src]
Auto Trait Implementations
impl !RefUnwindSafe for ContractRuntimeRequest[src]
impl Send for ContractRuntimeRequest[src]
impl Sync for ContractRuntimeRequest[src]
impl Unpin for ContractRuntimeRequest[src]
impl !UnwindSafe for ContractRuntimeRequest[src]
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> 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> Serialize for T where
T: Serialize + ?Sized, [src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,