Expand description
Implementation of state transition functions.
The transition function basically executes sequence of commands across phases: Pre-Charge -> Command(s) -> Charge. The Commands to execute includes Account Command, Staking Command and Protocol Command. During execution of Account Command, internal transactions can happens inside a contract call.
Modulesยง
- account
- Implementation of executing Account Commands.
- contract
- Defines structs for contract instantiation and contract call which are used in executing Commands Phase.
- execute
- Implementation of execution process on a sequence of Commands. The process starts from Pre-Charge phase, and then goes into Commands Phases, and finally Charge Phase.
- internal
- Implementation of internal transactions such as transferring tokens from contract and invoking another contract from contract.
- phase
- Defines structures and functions which are useful in state transition across common phases.
- protocol
- Implementation of executing Protocol Commands.
- staking
- Implementation of executing Staking Commands.
- state
- Defines a struct as Execution State which is being updated during execution.