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 
14 namespace shared_model {
15 
16  namespace crypto {
17  class Blob;
18  class Hash;
19  class PublicKey;
20  class Signed;
21  } // namespace crypto
22 
23  namespace interface {
24 
25  class Signature;
26  class Transaction;
27  class AccountAsset;
28 
29  namespace types {
35  using AccountIdType = std::string;
37  using PrecisionType = uint8_t;
39  using HeightType = uint64_t;
41  using AddressType = std::string;
45  using PublicKeyCollectionType = std::vector<PubkeyType>;
47  using RoleIdType = std::string;
49  using DomainIdType = std::string;
51  using AssetIdType = std::string;
53  using PermissionNameType = std::string;
55  using PermissionSetType = std::set<PermissionNameType>;
57  using QuorumType = uint16_t;
59  using TimestampType = uint64_t;
61  using AddressType = std::string;
63  using CounterType = uint64_t;
65  using AccountNameType = std::string;
67  using AssetNameType = std::string;
69  using DetailType = std::string;
71  using JsonType = std::string;
73  using AccountDetailKeyType = std::string;
75  using AccountDetailValueType = std::string;
77  using TransactionsNumberType = uint16_t;
79  using DescriptionType = std::string;
80 
81  enum class BatchType { ATOMIC = 0, ORDERED = 1 };
82 
83  } // namespace types
84  } // namespace interface
85 } // namespace shared_model
86 
87 #endif // IROHA_SHARED_MODEL_TYPES_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:39
Definition: hash.hpp:18
Definition: blob.hpp:24
std::string AddressType
Type of peer address.
Definition: types.hpp:41
std::string PermissionNameType
Permission type used in permission commands.
Definition: types.hpp:53
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:49
std::string DescriptionType
Type of the transfer message.
Definition: types.hpp:79
std::string DetailType
Type of detail.
Definition: types.hpp:69
std::string AccountDetailKeyType
Type of account detail key.
Definition: types.hpp:73
std::string AccountIdType
Type of account id.
Definition: types.hpp:35
Definition: range_types.hpp:19
uint8_t PrecisionType
Type of precision.
Definition: types.hpp:37
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:77
std::string AccountNameType
Type of account name.
Definition: types.hpp:65
std::set< PermissionNameType > PermissionSetType
Permission set.
Definition: types.hpp:55
uint64_t CounterType
Type of counter.
Definition: types.hpp:63
Definition: public_key.hpp:16
std::vector< PubkeyType > PublicKeyCollectionType
Type of public keys&#39; collection.
Definition: types.hpp:45
BatchType
Definition: types.hpp:81
std::string AccountDetailValueType
Type of account detail value.
Definition: types.hpp:75
Definition: command_executor.hpp:12
uint16_t QuorumType
Type of Quorum used in transaction and set quorum.
Definition: types.hpp:57
std::string JsonType
Type of JSON data.
Definition: types.hpp:71
std::string AssetNameType
Type of asset name.
Definition: types.hpp:67
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:47
uint64_t TimestampType
Type of timestamp.
Definition: types.hpp:59
std::string AssetIdType
Type of asset id.
Definition: types.hpp:51