CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace model {
30 #define DEFINE_TRANSFER_NOTIFICATION(DESCRIPTION, CODE, CHANNEL) DEFINE_NOTIFICATION_TYPE(CHANNEL, Transfer, DESCRIPTION, CODE)
38 #undef DEFINE_TRANSFER_NOTIFICATION
Notification of a transfer transaction with a message.
Definition: TransferNotifications.h:45
TransferMosaicsNotification(uint8_t mosaicsCount, const UnresolvedMosaic *pMosaics)
Creates a notification around mosaicsCount and pMosaics.
Definition: TransferNotifications.h:74
DEFINE_TRANSFER_NOTIFICATION(Message, 0x001, Validator)
Transfer was received with a message.
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
for(const auto &name :reservedRootNamespaceNames) reservedRootIds.emplace(model return MAKE_STATELESS_VALIDATOR(NamespaceName,([maxNameSize, reservedRootIds](const auto ¬ification) { if(maxNameSize< notification.NameSize||!model::IsValidName(notification.NamePtr, notification.NameSize)) return Failure_Namespace_Invalid_Name;auto name=utils::RawString(reinterpret_cast< const char * >(notification.NamePtr), notification.NameSize);if(notification.NamespaceId !=model::GenerateNamespaceId(notification.ParentId, name)) return Failure_Namespace_Name_Id_Mismatch;auto namespaceId=Namespace_Base_Id==notification.ParentId ? notification.NamespaceId :notification.ParentId;if(reservedRootIds.cend() !=reservedRootIds.find(namespaceId)) return Failure_Namespace_Root_Name_Reserved;return ValidationResult::Success;}))
Definition: NamespaceNameValidator.cpp:36
TransferMessageNotification(uint16_t messageSize)
Creates a notification around messageSize.
Definition: TransferNotifications.h:52
std::string Message
Definition: RawFile.cpp:72
static constexpr auto Notification_Type
Matching notification type.
Definition: TransferNotifications.h:70
Notification of a transfer transaction with mosaics.
Definition: TransferNotifications.h:67
uint8_t MosaicsCount
Number of mosaics.
Definition: TransferNotifications.h:82
uint16_t MessageSize
Message size in bytes.
Definition: TransferNotifications.h:59
static constexpr auto Notification_Type
Matching notification type.
Definition: TransferNotifications.h:48
A basic notification.
Definition: Notifications.h:36
DECLARE_STATELESS_VALIDATOR(MaxTransactions, Notification)(uint32_t maxTransactions)
Definition: MaxTransactionsValidator.cpp:27
Definition: AddressExtractionExtension.cpp:28
Notification of use of an account address.
Definition: Notifications.h:57
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto ¬ification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})
const UnresolvedMosaic * MosaicsPtr
Const pointer to the first mosaic.
Definition: TransferNotifications.h:85