CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace model {
32 #define DEFINE_MOSAIC_NOTIFICATION(DESCRIPTION, CODE, CHANNEL) DEFINE_NOTIFICATION_TYPE(CHANNEL, Mosaic, DESCRIPTION, CODE)
49 #undef DEFINE_MOSAIC_NOTIFICATION
const MosaicPropertiesHeader & PropertiesHeader
Mosaic properties header.
Definition: MosaicNotifications.h:72
MosaicId GenerateMosaicId(const Key &owner, MosaicNonce nonce) noexcept
Generates a mosaic id given owner and nonce.
Definition: MosaicIdGenerator.cpp:26
MosaicSupplyChangeDirection
Supply change directions.
Definition: MosaicTypes.h:27
UnresolvedAddress Recipient
Recipient.
Definition: MosaicNotifications.h:195
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
Notification of a mosaic nonce and id.
Definition: MosaicNotifications.h:113
Notification of a mosaic definition.
Definition: MosaicNotifications.h:83
static constexpr auto Notification_Type
Matching notification type.
Definition: MosaicNotifications.h:180
MosaicSupplyChangeDirection Direction
Supply change direction.
Definition: MosaicNotifications.h:166
Amount Delta
Amount of the change.
Definition: MosaicNotifications.h:169
utils::BaseValue< uint64_t, MosaicId_tag > MosaicId
Definition: src/catapult/types.h:79
MosaicSupplyChangeNotification(const Key &signer, UnresolvedMosaicId mosaicId, MosaicSupplyChangeDirection direction, Amount delta)
Creates a notification around signer, mosaicId, direction and delta.
Definition: MosaicNotifications.h:150
A basic balance notification.
Definition: Notifications.h:98
Notification of a mosaic supply change.
Definition: MosaicNotifications.h:143
Mosaic property composed of an id and a value.
Definition: MosaicProperty.h:69
catapult::MosaicNonce MosaicNonce
Mosaic nonce.
Definition: MosaicNotifications.h:132
MosaicProperties Properties
Mosaic properties.
Definition: MosaicNotifications.h:105
static constexpr auto Notification_Type
Matching notification type.
Definition: MosaicNotifications.h:116
MosaicDefinitionNotification(const Key &signer, MosaicId mosaicId, const MosaicProperties &properties)
Creates a notification around signer, mosaicId and properties.
Definition: MosaicNotifications.h:90
MosaicRentalFeeNotification(const Key &sender, const UnresolvedAddress &recipient, UnresolvedMosaicId mosaicId, catapult::Amount amount)
Creates a notification around sender, recipient, mosaicId and amount.
Definition: MosaicNotifications.h:184
static constexpr auto Notification_Type
Matching notification type.
Definition: MosaicNotifications.h:146
MosaicPropertiesNotification(const MosaicPropertiesHeader &propertiesHeader, const MosaicProperty *pProperties)
Creates a notification around propertiesHeader and pProperties.
Definition: MosaicNotifications.h:64
const Key & Signer
Signer.
Definition: MosaicNotifications.h:99
catapult::MosaicId MosaicId
Mosaic id.
Definition: MosaicNotifications.h:135
static constexpr auto Notification_Type
Matching notification type.
Definition: MosaicNotifications.h:60
DEFINE_MOSAIC_NOTIFICATION(Properties, 0x0012, Validator)
Mosaic properties were provided.
static constexpr auto Notification_Type
Matching notification type.
Definition: MosaicNotifications.h:86
const Key & Signer
Signer.
Definition: MosaicNotifications.h:160
Notification of a mosaic rental fee.
Definition: MosaicNotifications.h:177
A basic notification.
Definition: Notifications.h:36
const Key & Signer
Signer.
Definition: MosaicNotifications.h:129
catapult::MosaicId MosaicId
Id of the mosaic.
Definition: MosaicNotifications.h:102
Definition: AddressExtractionExtension.cpp:28
const MosaicProperty * PropertiesPtr
Const pointer to the optional properties.
Definition: MosaicNotifications.h:75
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;})
Definition: MosaicNotifications.h:57
Container for mosaic properties.
Definition: MosaicProperties.h:46
UnresolvedMosaicId MosaicId
Id of the affected mosaic.
Definition: MosaicNotifications.h:163
MosaicNonceNotification(const Key &signer, MosaicNonce mosaicNonce, catapult::MosaicId mosaicId)
Creates a notification around signer, mosaicNonce and mosaicId.
Definition: MosaicNotifications.h:120