CatapultServer  v0.5.0.1 (Elephant)
plugins/txes/mosaic/src/validators/Results.h
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef CUSTOM_RESULT_DEFINITION
24 
25 namespace catapult { namespace validators {
26 
27 #endif
28 #define DEFINE_MOSAIC_RESULT(DESCRIPTION, CODE) DEFINE_VALIDATION_RESULT(Failure, Mosaic, DESCRIPTION, CODE, None)
30 
31  // region common
32 
34  DEFINE_MOSAIC_RESULT(Invalid_Duration, 1);
35 
37  DEFINE_MOSAIC_RESULT(Invalid_Name, 2);
38 
40  DEFINE_MOSAIC_RESULT(Name_Id_Mismatch, 3);
41 
43  DEFINE_MOSAIC_RESULT(Expired, 4);
44 
46  DEFINE_MOSAIC_RESULT(Owner_Conflict, 5);
47 
49  DEFINE_MOSAIC_RESULT(Id_Mismatch, 6);
50 
51  // endregion
52 
53  // region mosaic
54 
56  DEFINE_MOSAIC_RESULT(Parent_Id_Conflict, 100);
57 
59  DEFINE_MOSAIC_RESULT(Invalid_Property, 101);
60 
62  DEFINE_MOSAIC_RESULT(Invalid_Flags, 102);
63 
65  DEFINE_MOSAIC_RESULT(Invalid_Divisibility, 103);
66 
68  DEFINE_MOSAIC_RESULT(Invalid_Supply_Change_Direction, 104);
69 
71  DEFINE_MOSAIC_RESULT(Invalid_Supply_Change_Amount, 105);
72 
74  DEFINE_MOSAIC_RESULT(Invalid_Id, 106);
75 
77  DEFINE_MOSAIC_RESULT(Modification_Disallowed, 107);
78 
80  DEFINE_MOSAIC_RESULT(Modification_No_Changes, 108);
81 
83  DEFINE_MOSAIC_RESULT(Supply_Immutable, 109);
84 
86  DEFINE_MOSAIC_RESULT(Supply_Negative, 110);
87 
89  DEFINE_MOSAIC_RESULT(Supply_Exceeded, 111);
90 
92  DEFINE_MOSAIC_RESULT(Non_Transferable, 112);
93 
95  DEFINE_MOSAIC_RESULT(Max_Mosaics_Exceeded, 113);
96 
97  // endregion
98 
99 #ifndef CUSTOM_RESULT_DEFINITION
100 }}
101 #endif
catapult::validators::DEFINE_MOSAIC_RESULT
DEFINE_MOSAIC_RESULT(Invalid_Duration, 1)
Validation failed because the duration has an invalid value.
ValidationResult.h
catapult
Definition: AddressExtractionExtension.cpp:28