CatapultServer  v0.5.0.1 (Elephant)
AccountRestrictionTypes.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include <vector>
24 #include <stdint.h>
25 
26 namespace catapult { namespace model {
27 
28 #pragma pack(push, 1)
29 
31  enum class AccountRestrictionType : uint8_t {
33  Address = 0x01,
34 
36  MosaicId = 0x02,
37 
39  TransactionType = 0x04,
40 
42  Sentinel = 0x05,
43 
45  Block = 0x80
46  };
47 
49 
50 
51  enum class AccountRestrictionModificationType : uint8_t {
53  Add,
54 
56  Del
57  };
58 
60  template<typename TRestrictionValue>
62  public:
65 
67  TRestrictionValue Value;
68  };
69 
70 #pragma pack(pop)
71 
74  public:
77 
79  std::vector<uint8_t> Value;
80  };
81 }}
catapult::model::AccountRestrictionType::Sentinel
Account restriction type sentinel.
catapult::model::RawAccountRestrictionModification::ModificationType
AccountRestrictionModificationType ModificationType
Modification type.
Definition: AccountRestrictionTypes.h:76
catapult::model::AccountRestrictionType
AccountRestrictionType
Account restriction types.
Definition: AccountRestrictionTypes.h:31
catapult::model::AccountRestrictionType::TransactionType
Account restriction type is a transaction type.
MAKE_BITWISE_ENUM
#define MAKE_BITWISE_ENUM(ENUM_TYPE)
Defines bitwise helpers for ENUM_TYPE.
Definition: BitwiseEnum.h:25
catapult::utils::BaseValue< uint64_t, MosaicId_tag >
BitwiseEnum.h
catapult::model::AccountRestrictionModification::Value
TRestrictionValue Value
Restriction value.
Definition: AccountRestrictionTypes.h:67
catapult::model::AccountRestrictionModification::ModificationType
AccountRestrictionModificationType ModificationType
Modification type.
Definition: AccountRestrictionTypes.h:64
catapult::model::AccountRestrictionModificationType
AccountRestrictionModificationType
Account restriction modification type.
Definition: AccountRestrictionTypes.h:51
catapult::model::RawAccountRestrictionModification
Raw account restriction modification.
Definition: AccountRestrictionTypes.h:73
catapult::model::Block
Binary layout for a block.
Definition: Block.h:69
catapult::model::RawAccountRestrictionModification::Value
std::vector< uint8_t > Value
Restriction value.
Definition: AccountRestrictionTypes.h:79
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::AccountRestrictionModification
Binary layout for an account restriction modification.
Definition: AccountRestrictionTypes.h:61
catapult::utils::ByteArray< Address_Decoded_Size, Address_tag >
catapult::model::CosignatoryModificationType::Del
Remove cosignatory.
catapult::model::CosignatoryModificationType::Add
Add cosignatory.