hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::plain::EngineReceipt Class Referencefinal

#include "engine_receipt.hpp"

Inheritance diagram for shared_model::plain::EngineReceipt:
Inheritance graph
Collaboration diagram for shared_model::plain::EngineReceipt:
Collaboration graph

Public Member Functions

 EngineReceipt (interface::types::CommandIndexType cmd_index, interface::types::AccountIdType const &caller, std::optional< interface::types::EvmDataHexString > const &callee, std::optional< interface::types::EvmDataHexString > const &contract_address, std::optional< interface::types::EvmDataHexString > const &e_response)
 
int32_t getCommandIndex () const override
 Get command index. More...
 
interface::types::AccountIdType getCaller () const override
 Get sender account id. More...
 
interface::EngineReceipt::PayloadType getPayloadType () const override
 Returns the payload data type. More...
 
interface::EngineReceipt::EngineLogsCollectionType const & getEngineLogs () const override
 Return engine logs collection. More...
 
interface::EngineReceipt::EngineLogsCollectionTypegetMutableLogs ()
 
std::optional< interface::EngineReceipt::CallResult > const & getResponseData () const override
 
std::optional< interface::types::EvmAddressHexString > const & getContractAddress () const override
 Returns payload data. More...
 
- Public Member Functions inherited from shared_model::interface::EngineReceipt
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
 

Additional Inherited Members

- Public Types inherited from shared_model::interface::EngineReceipt
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
 
- Static Public Member Functions inherited from shared_model::interface::EngineReceipt
static char const * payloadTypeToStr (PayloadType pt)
 

Constructor & Destructor Documentation

◆ EngineReceipt()

shared_model::plain::EngineReceipt::EngineReceipt ( interface::types::CommandIndexType  cmd_index,
interface::types::AccountIdType const &  caller,
std::optional< interface::types::EvmDataHexString > const &  callee,
std::optional< interface::types::EvmDataHexString > const &  contract_address,
std::optional< interface::types::EvmDataHexString > const &  e_response 
)

Member Function Documentation

◆ getCaller()

shared_model::interface::types::AccountIdType EngineReceipt::getCaller ( ) const
overridevirtual

Get sender account id.

Implements shared_model::interface::EngineReceipt.

◆ getCommandIndex()

int32_t EngineReceipt::getCommandIndex ( ) const
overridevirtual

Get command index.

Implements shared_model::interface::EngineReceipt.

◆ getContractAddress()

std::optional< shared_model::interface::types::EvmAddressHexString > const & EngineReceipt::getContractAddress ( ) const
overridevirtual

Returns payload data.

Implements shared_model::interface::EngineReceipt.

◆ getEngineLogs()

shared_model::interface::EngineReceipt::EngineLogsCollectionType const & EngineReceipt::getEngineLogs ( ) const
overridevirtual

Return engine logs collection.

Implements shared_model::interface::EngineReceipt.

◆ getMutableLogs()

◆ getPayloadType()

shared_model::interface::EngineReceipt::PayloadType EngineReceipt::getPayloadType ( ) const
overridevirtual

Returns the payload data type.

Implements shared_model::interface::EngineReceipt.

◆ getResponseData()

std::optional< shared_model::interface::EngineReceipt::CallResult > const & EngineReceipt::getResponseData ( ) const
overridevirtual

[optional] Get engine response data(output). Enable if getPayloadType() == kPayloadTypeCallResult.

Implements shared_model::interface::EngineReceipt.


The documentation for this class was generated from the following files: