hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::generators::TransactionGenerator Class Reference

#include "transaction_generator.hpp"

Collaboration diagram for iroha::model::generators::TransactionGenerator:
Collaboration graph

Public Member Functions

Transaction generateGenesisTransaction (ts64_t timestamp, std::vector< std::string > peers_address, logger::LoggerPtr keys_manager_logger)
 
Transaction generateTransaction (ts64_t timestamp, std::string creator_account_id, std::vector< std::shared_ptr< Command >> commands)
 
Transaction generateTransaction (std::string creator_account_id, std::vector< std::shared_ptr< Command >> commands)
 

Member Function Documentation

◆ generateGenesisTransaction()

Transaction iroha::model::generators::TransactionGenerator::generateGenesisTransaction ( ts64_t  timestamp,
std::vector< std::string >  peers_address,
logger::LoggerPtr  keys_manager_logger 
)

Generate genesis transaction, contain all necessary commands for new Iroha network

Parameters
timestamp
peers_address
Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateTransaction() [1/2]

Transaction iroha::model::generators::TransactionGenerator::generateTransaction ( ts64_t  timestamp,
std::string  creator_account_id,
std::vector< std::shared_ptr< Command >>  commands 
)

Generate transaction from give meta data and commands list

Parameters
timestamp
creator_account_id
commands
Returns
Here is the caller graph for this function:

◆ generateTransaction() [2/2]

Transaction iroha::model::generators::TransactionGenerator::generateTransaction ( std::string  creator_account_id,
std::vector< std::shared_ptr< Command >>  commands 
)

Generate transaction from give meta data and commands list

Parameters
timestamp
creator_account_id
commands
Returns
Here is the call graph for this function:

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