Provides a response for a single corresponding EngineCall command. More...
#include "engine_receipt.hpp"


Classes | |
| struct | CallResult |
Public Types | |
| enum | PayloadType { PayloadType::kPayloadTypeUnk, PayloadType::kPayloadTypeCallResult, PayloadType::kPayloadTypeContractAddress } |
| using | EngineLogsPtr = std::unique_ptr< interface::EngineLog > |
| using | EngineLogsCollectionType = std::vector< EngineLogsPtr > |
Public Types inherited from shared_model::interface::ModelPrimitive< EngineReceipt > | |
| using | ModelType = EngineReceipt |
Public Member Functions | |
| virtual int32_t | getCommandIndex () const =0 |
| Get command index. More... | |
| virtual types::AccountIdType | getCaller () const =0 |
| Get sender account id. More... | |
| virtual PayloadType | getPayloadType () const =0 |
| Returns the payload data type. More... | |
| virtual std::optional< CallResult > const & | getResponseData () const =0 |
| virtual std::optional< types::EvmAddressHexString > const & | getContractAddress () const =0 |
| Returns payload data. More... | |
| virtual EngineLogsCollectionType const & | getEngineLogs () const =0 |
| Return engine logs collection. More... | |
| std::string | toString () const override |
| bool | operator== (const ModelType &rhs) const override |
Public Member Functions inherited from shared_model::interface::ModelPrimitive< EngineReceipt > | |
| virtual bool | operator== (const ModelType &rhs) const=0 |
| virtual bool | operator!= (const ModelType &rhs) const |
| virtual | ~ModelPrimitive ()=default |
Static Public Member Functions | |
| static char const * | payloadTypeToStr (PayloadType pt) |
Provides a response for a single corresponding EngineCall command.
| using shared_model::interface::EngineReceipt::EngineLogsCollectionType = std::vector<EngineLogsPtr> |
| using shared_model::interface::EngineReceipt::EngineLogsPtr = std::unique_ptr<interface::EngineLog> |
|
pure virtual |
Get sender account id.
Implemented in shared_model::plain::EngineReceipt, and shared_model::proto::EngineReceipt.

|
pure virtual |
Get command index.
Implemented in shared_model::plain::EngineReceipt, and shared_model::proto::EngineReceipt.

|
pure virtual |
Returns payload data.
Implemented in shared_model::plain::EngineReceipt, and shared_model::proto::EngineReceipt.

|
pure virtual |
Return engine logs collection.
Implemented in shared_model::plain::EngineReceipt, and shared_model::proto::EngineReceipt.

|
pure virtual |
Returns the payload data type.
Implemented in shared_model::plain::EngineReceipt, and shared_model::proto::EngineReceipt.

|
pure virtual |
[optional] Get engine response data(output). Enable if getPayloadType() == kPayloadTypeCallResult.
Implemented in shared_model::plain::EngineReceipt, and shared_model::proto::EngineReceipt.

|
override |

|
inlinestatic |

|
overridevirtual |
Make string developer representation of object
Reimplemented from shared_model::interface::ModelPrimitive< EngineReceipt >.

