6 #ifndef IROHA_COMMON_OBJECTS_FACTORY_HPP 7 #define IROHA_COMMON_OBJECTS_FACTORY_HPP 53 const Amount &balance) = 0;
82 #endif // IROHA_COMMONOBJECTSFACTORY_HPP virtual FactoryResult< std::unique_ptr< Account > > createAccount(const types::AccountIdType &account_id, const types::DomainIdType &domain_id, types::QuorumType quorum, const types::JsonType &jsonData)=0
std::string AddressType
Type of peer address.
Definition: types.hpp:43
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:51
Definition: amount.hpp:20
virtual FactoryResult< std::unique_ptr< AccountAsset > > createAccountAsset(const types::AccountIdType &account_id, const types::AssetIdType &asset_id, const Amount &balance)=0
iroha::expected::Result< T, std::string > FactoryResult
Definition: common_objects_factory.hpp:29
virtual FactoryResult< std::unique_ptr< Peer > > createPeer(const types::AddressType &address, const types::PubkeyType &public_key)=0
Definition: common_objects_factory.hpp:26
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
virtual ~CommonObjectsFactory()=default
Definition: signed.hpp:17
uint8_t PrecisionType
Type of precision.
Definition: types.hpp:39
virtual FactoryResult< std::unique_ptr< Asset > > createAsset(const types::AssetIdType &asset_id, const types::DomainIdType &domain_id, types::PrecisionType precision)=0
Definition: public_key.hpp:16
virtual FactoryResult< std::unique_ptr< Signature > > createSignature(const interface::types::PubkeyType &key, const interface::Signature::SignedType &signed_data)=0
Definition: command_executor.hpp:12
virtual FactoryResult< std::unique_ptr< Domain > > createDomain(const types::DomainIdType &domain_id, const types::RoleIdType &default_role)=0
uint16_t QuorumType
Type of Quorum used in transaction and set quorum.
Definition: types.hpp:59
std::string JsonType
Type of JSON data.
Definition: types.hpp:73
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:49
std::string AssetIdType
Type of asset id.
Definition: types.hpp:53