hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
types.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_TYPES_HPP
7 #define IROHA_SHARED_MODEL_TYPES_HPP
8 
9 #include <cstdint>
10 #include <set>
11 #include <string>
12 #include <vector>
13 
15 
16 namespace shared_model {
17 
18  namespace crypto {
19  class Blob;
20  class Hash;
21  class PublicKey;
22  class Signed;
23  } // namespace crypto
24 
25  namespace interface {
26 
27  class Signature;
28  class Transaction;
29  class AccountAsset;
30 
31  namespace types {
39  using PrecisionType = uint8_t;
41  using HeightType = uint64_t;
47  using PublicKeyCollectionType = std::vector<PubkeyType>;
57  using PermissionSetType = std::set<PermissionNameType>;
59  using QuorumType = uint16_t;
61  using TimestampType = uint64_t;
63  using AddressType = std::string;
65  using CounterType = uint64_t;
79  using TransactionsNumberType = uint16_t;
82 
83  enum class BatchType { ATOMIC = 0, ORDERED = 1 };
84 
85  } // namespace types
86  } // namespace interface
87 } // namespace shared_model
88 
89 #endif // IROHA_SHARED_MODEL_TYPES_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:41
Definition: hash.hpp:18
Definition: blob.hpp:24
std::string AddressType
Type of peer address.
Definition: types.hpp:43
std::string PermissionNameType
Permission type used in permission commands.
Definition: types.hpp:55
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:51
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
std::string DescriptionType
Type of the transfer message.
Definition: types.hpp:81
std::string DetailType
Type of detail.
Definition: types.hpp:71
std::string AccountDetailKeyType
Type of account detail key.
Definition: types.hpp:75
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
Definition: range_types.hpp:19
std::vector< uint8_t > Blob
Definition: client_api.hpp:13
uint8_t PrecisionType
Type of precision.
Definition: types.hpp:39
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:79
std::string AccountNameType
Type of account name.
Definition: types.hpp:67
std::set< PermissionNameType > PermissionSetType
Permission set.
Definition: types.hpp:57
uint64_t CounterType
Type of counter.
Definition: types.hpp:65
Definition: public_key.hpp:16
std::vector< PubkeyType > PublicKeyCollectionType
Type of public keys&#39; collection.
Definition: types.hpp:47
BatchType
Definition: types.hpp:83
std::string AccountDetailValueType
Type of account detail value.
Definition: types.hpp:77
Definition: command_executor.hpp:12
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 AssetNameType
Type of asset name.
Definition: types.hpp:69
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:49
uint64_t TimestampType
Type of timestamp.
Definition: types.hpp:61
std::string AssetIdType
Type of asset id.
Definition: types.hpp:53