hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::ProtoProposalFactory< Validator > Class Template Reference

#include "proto_proposal_factory.hpp"

Inheritance diagram for shared_model::proto::ProtoProposalFactory< Validator >:
Inheritance graph
Collaboration diagram for shared_model::proto::ProtoProposalFactory< Validator >:
Collaboration graph

Public Types

using TransactionsCollectionType = interface::ProposalFactory::TransactionsCollectionType
 
using UnsafeTransactionsCollectionType = interface::UnsafeProposalFactory::TransactionsCollectionType
 
- Public Types inherited from shared_model::interface::ProposalFactory
template<typename T >
using FactoryResult = iroha::expected::Result< T, std::string >
 
using TransactionsCollectionType = boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & >
 
- Public Types inherited from shared_model::interface::UnsafeProposalFactory
using TransactionsCollectionType = boost::any_range< Transaction, boost::forward_traversal_tag, const Transaction & >
 

Public Member Functions

FactoryResult< std::unique_ptr< interface::Proposal > > createProposal (interface::types::HeightType height, interface::types::TimestampType created_time, TransactionsCollectionType transactions) override
 
std::unique_ptr< interface::ProposalunsafeCreateProposal (interface::types::HeightType height, interface::types::TimestampType created_time, UnsafeTransactionsCollectionType transactions) override
 
FactoryResult< std::unique_ptr< interface::Proposal > > createProposal (const iroha::protocol::Proposal &proposal)
 
- Public Member Functions inherited from shared_model::interface::ProposalFactory
virtual ~ProposalFactory ()=default
 
- Public Member Functions inherited from shared_model::interface::UnsafeProposalFactory
virtual ~UnsafeProposalFactory ()=default
 

Member Typedef Documentation

Member Function Documentation

template<typename Validator >
FactoryResult<std::unique_ptr<interface::Proposal> > shared_model::proto::ProtoProposalFactory< Validator >::createProposal ( interface::types::HeightType  height,
interface::types::TimestampType  created_time,
TransactionsCollectionType  transactions 
)
inlineoverridevirtual
template<typename Validator >
FactoryResult<std::unique_ptr<interface::Proposal> > shared_model::proto::ProtoProposalFactory< Validator >::createProposal ( const iroha::protocol::Proposal &  proposal)
inline

Create and validate proposal using protobuf object

template<typename Validator >
std::unique_ptr<interface::Proposal> shared_model::proto::ProtoProposalFactory< Validator >::unsafeCreateProposal ( interface::types::HeightType  height,
interface::types::TimestampType  created_time,
UnsafeTransactionsCollectionType  transactions 
)
inlineoverridevirtual

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