Module transition

Source
Expand description

Implementation of state transition function.

The struct Runtime is an entry point to trigger state transition. It provides method to intake a Transaction with blockchain parameters and then executes over the World State. As a result, it commits a deterministic change of state to the World State which can be inputted to the next state transition.

The result of state transition includes

Runtime also provides method to execute a view call.

Structs§

Runtime
A Runtime for state transition. Instants of runtime share the same execution logic, but differ in configurations such as data cache for smart contract and memory limit to WASM execution.
TransitionResult
Result of state transition. It is the return type of pchain_runtime::Runtime::transition.
ValidatorChanges
Defines changes to validator set. It is the transition result from executing Command NextEpoch.

Functions§

cbi_version
Version of Contract Binary Interface