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

#include "command_generator.hpp"

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

Public Member Functions

std::shared_ptr< CommandgenerateAddPeer (const Peer &peer)
 
std::shared_ptr< CommandgenerateAddSignatory (const std::string &account_id, const pubkey_t &key)
 
std::shared_ptr< CommandgenerateRemoveSignatory (const std::string &account_id, const pubkey_t &key)
 
std::shared_ptr< CommandgenerateCreateAccount (const std::string &account_name, const std::string &domain_id, const pubkey_t &key)
 
std::shared_ptr< CommandgenerateCreateDomain (const std::string &domain_id, const std::string &default_role)
 
std::shared_ptr< CommandgenerateCreateAsset (const std::string &asset_name, const std::string &domain_name, uint8_t precision)
 
template<typename Type , typename... ParamTypes>
std::shared_ptr< CommandgenerateCommand (ParamTypes...args)
 
std::shared_ptr< CommandgenerateCreateAdminRole (std::string role_name)
 
std::shared_ptr< CommandgenerateCreateUserRole (std::string role_name)
 
std::shared_ptr< CommandgenerateCreateAssetCreatorRole (std::string role_name)
 
std::shared_ptr< CommandgenerateSetQuorum (const std::string &account_id, uint32_t quorum)
 
std::shared_ptr< CommandgenerateAddAssetQuantity (const std::string &asset_id, const std::string &amount)
 
std::shared_ptr< CommandgenerateSubtractAssetQuantity (const std::string &asset_id, const std::string &amount)
 
std::shared_ptr< CommandgenerateTransferAsset (const std::string &src_account_id, const std::string &target_account_id, const std::string &asset_id, const std::string &amount)
 
std::shared_ptr< CommandgenerateAppendRole (const std::string &account_id, const std::string &role_name)
 

Member Function Documentation

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateAddAssetQuantity ( const std::string asset_id,
const std::string amount 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateAddPeer ( const Peer peer)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateAddSignatory ( const std::string account_id,
const pubkey_t key 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateAppendRole ( const std::string account_id,
const std::string role_name 
)

Here is the caller graph for this function:

template<typename Type , typename... ParamTypes>
std::shared_ptr<Command> iroha::model::generators::CommandGenerator::generateCommand ( ParamTypes...  args)
inline

Here is the call graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateCreateAccount ( const std::string account_name,
const std::string domain_id,
const pubkey_t key 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateCreateAdminRole ( std::string  role_name)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateCreateAsset ( const std::string asset_name,
const std::string domain_name,
uint8_t  precision 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateCreateAssetCreatorRole ( std::string  role_name)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateCreateDomain ( const std::string domain_id,
const std::string default_role 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateCreateUserRole ( std::string  role_name)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateRemoveSignatory ( const std::string account_id,
const pubkey_t key 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateSetQuorum ( const std::string account_id,
uint32_t  quorum 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateSubtractAssetQuantity ( const std::string asset_id,
const std::string amount 
)

Here is the caller graph for this function:

std::shared_ptr< Command > iroha::model::generators::CommandGenerator::generateTransferAsset ( const std::string src_account_id,
const std::string target_account_id,
const std::string asset_id,
const std::string amount 
)

Generate transfer assets from source account_id to target account_id

Parameters
src_account_id- source account identifier
target_account_id- target account identifier
asset_id- asset identifier to transfer
amount- amount of assets to transfer
Returns

Here is the caller graph for this function:


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