CatapultServer  v0.5.0.1 (Elephant)
ReceiptType.h File Reference
Include dependency graph for ReceiptType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::model
 

Macros

#define DEFINE_RECEIPT_TYPE(BASIC_TYPE, FACILITY, DESCRIPTION, CODE)
 Defines receipt type given BASIC_TYPE, FACILITY, DESCRIPTION and CODE. More...
 

Enumerations

enum  catapult::model::BasicReceiptType : uint8_t {
  catapult::model::BasicReceiptType::Other = 0x0, catapult::model::BasicReceiptType::BalanceTransfer = 0x1, catapult::model::BasicReceiptType::BalanceCredit = 0x2, catapult::model::BasicReceiptType::BalanceDebit = 0x3,
  catapult::model::BasicReceiptType::ArtifactExpiry = 0x4, catapult::model::BasicReceiptType::Inflation = 0x5, catapult::model::BasicReceiptType::Aggregate = 0xE, catapult::model::BasicReceiptType::AliasResolution = 0xF
}
 
enum  catapult::model::ReceiptType : uint16_t
 Enumeration of receipt types. More...
 

Functions

constexpr ReceiptType catapult::model::MakeReceiptType (BasicReceiptType basicReceiptType, FacilityCode facilityCode, uint8_t code)
 Makes receipt type given basicReceiptType, facilityCode and code. More...
 
 catapult::model::DEFINE_RECEIPT_TYPE (BalanceCredit, Core, Harvest_Fee, 1)
 Harvest fee credit. More...
 
 catapult::model::DEFINE_RECEIPT_TYPE (Inflation, Core, Inflation, 1)
 Inflation. More...
 
 catapult::model::DEFINE_RECEIPT_TYPE (Aggregate, Core, Transaction_Group, 1)
 Transaction group. More...
 
 catapult::model::DEFINE_RECEIPT_TYPE (AliasResolution, Core, Address_Alias_Resolution, 1)
 Address alias resolution. More...
 
 catapult::model::DEFINE_RECEIPT_TYPE (AliasResolution, Core, Mosaic_Alias_Resolution, 2)
 Mosaic alias resolution. More...
 
std::ostream & catapult::model::operator<< (std::ostream &out, ReceiptType receiptType)
 Insertion operator for outputting receiptType to out. More...
 

Macro Definition Documentation

◆ DEFINE_RECEIPT_TYPE

#define DEFINE_RECEIPT_TYPE (   BASIC_TYPE,
  FACILITY,
  DESCRIPTION,
  CODE 
)
Value:
constexpr auto Receipt_Type_##DESCRIPTION = model::MakeReceiptType( \
(model::BasicReceiptType::BASIC_TYPE), \
(model::FacilityCode::FACILITY), \
CODE)

Defines receipt type given BASIC_TYPE, FACILITY, DESCRIPTION and CODE.

catapult::model::MakeReceiptType
constexpr ReceiptType MakeReceiptType(BasicReceiptType basicReceiptType, FacilityCode facilityCode, uint8_t code)
Makes receipt type given basicReceiptType, facilityCode and code.
Definition: ReceiptType.h:61