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

#include "proto_engine_receipt.hpp"

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

Public Types

using TransportType = iroha::protocol::EngineReceipt
 
- 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
 

Public Member Functions

 EngineReceipt (const TransportType &proto)
 
 EngineReceipt (const EngineReceipt &o)
 
int32_t getCommandIndex () const override
 Get command index. More...
 
shared_model::interface::types::AccountIdType getCaller () const override
 Get sender account id. More...
 
shared_model::interface::EngineReceipt::PayloadType getPayloadType () const override
 Returns the payload data type. More...
 
shared_model::interface::EngineReceipt::EngineLogsCollectionType const & getEngineLogs () const override
 Return engine logs collection. More...
 
std::optional< shared_model::interface::EngineReceipt::CallResult > const & getResponseData () const override
 
std::optional< shared_model::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

- Static Public Member Functions inherited from shared_model::interface::EngineReceipt
static char const * payloadTypeToStr (PayloadType pt)
 

Member Typedef Documentation

◆ TransportType

using shared_model::proto::EngineReceipt::TransportType = iroha::protocol::EngineReceipt

Constructor & Destructor Documentation

◆ EngineReceipt() [1/2]

EngineReceipt::EngineReceipt ( const TransportType proto)
explicit

◆ EngineReceipt() [2/2]

EngineReceipt::EngineReceipt ( const EngineReceipt o)
explicit

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.

◆ 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: