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
- State changes to world state
- Receipt
- Transition Error
- ValidatorChanges (for NextEpoch command)
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.
- Transition
Result - Result of state transition. It is the return type of
pchain_runtime::Runtime::transition
. - Validator
Changes - Defines changes to validator set. It is the transition result from executing Command NextEpoch.
Functions§
- cbi_
version - Version of Contract Binary Interface