CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
31 namespace catapult {
namespace model {
97 template<
typename TDerivedNotification>
102 :
Notification(TDerivedNotification::Notification_Type, sizeof(TDerivedNotification))
465 uint32_t secondaryId)
TransactionDeadlineNotification(Timestamp deadline, utils::TimeSpan maxLifetime)
Creates a transaction deadline notification around deadline and maxLifetime.
Definition: Notifications.h:268
SourceChangeType
Source change types.
Definition: Notifications.h:453
RawBuffer Data
Signed data.
Definition: Notifications.h:350
Notifies the arrival of a transaction.
Definition: Notifications.h:231
Notification of a source change.
Definition: Notifications.h:450
SignatureNotification(const Key &signer, const Signature &signature, const RawBuffer &data, ReplayProtectionMode dataReplayProtectionMode=ReplayProtectionMode::Disabled)
Definition: Notifications.h:330
BasicBalanceNotification(const Key &sender, UnresolvedMosaicId mosaicId, Amount amount)
Creates a notification around sender, mosaicId and amount.
Definition: Notifications.h:101
BlockNotification(const Key &signer, const Key &beneficiary, Timestamp timestamp, Difficulty difficulty)
Creates a block notification around signer, beneficiary, timestamp and difficulty.
Definition: Notifications.h:197
uint8_t MinVersion
Minimum supported version.
Definition: Notifications.h:179
Amount Fee
Transaction fee.
Definition: Notifications.h:307
uint8_t EntityVersion
Entity version.
Definition: Notifications.h:176
uint32_t SecondaryId
Secondary source (e.g. index within aggregate).
Definition: Notifications.h:484
Key Source
Source.
Definition: Notifications.h:388
const Key & Signer
Block signer.
Definition: Notifications.h:208
Timestamp Deadline
Transaction deadline.
Definition: Notifications.h:257
EntityType TransactionType
Transaction type.
Definition: Notifications.h:391
MosaicType
Mosaic types.
Definition: Notifications.h:408
EntityNotification(model::NetworkIdentifier networkIdentifier, uint8_t entityVersion, uint8_t minVersion, uint8_t maxVersion)
Creates an entity notification around networkIdentifier, entityVersion, minVersion and maxVersion.
Definition: Notifications.h:163
const Key & Signer
Signer.
Definition: Notifications.h:344
Notification of a required mosaic.
Definition: Notifications.h:405
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:159
Notifies the arrival of an entity.
Definition: Notifications.h:156
EntityType
Enumeration of entity types.
Definition: EntityType.h:43
UnresolvedMosaicId MosaicId
Mosaic id.
Definition: Notifications.h:113
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:145
AddressInteractionNotification(const Key &source, EntityType transactionType, const UnresolvedAddressSet &participantsByAddress)
Creates a notification around source, transactionType and participantsByAddress.
Definition: Notifications.h:369
ReplayProtectionMode DataReplayProtectionMode
Replay protection mode applied to data.
Definition: Notifications.h:353
Represents a time duration.
Definition: TimeSpan.h:30
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:287
Notifies a balance transfer from sender to recipient.
Definition: Notifications.h:120
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:60
uint32_t NumTransactions
Number of block transactions.
Definition: Notifications.h:223
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:234
A basic balance notification.
Definition: Notifications.h:98
catapult::MosaicId MosaicId
Mosaic id (resolved).
Definition: Notifications.h:436
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:365
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:325
const Key & Beneficiary
Beneficiary.
Definition: Notifications.h:211
AccountAddressNotification(const UnresolvedAddress &address)
Creates a notification around address.
Definition: Notifications.h:64
UnresolvedAddress Recipient
Recipient.
Definition: Notifications.h:138
catapult::UnresolvedMosaicId UnresolvedMosaicId
Mosaic id (unresolved).
Definition: Notifications.h:439
uint32_t TransactionSize
Transaction size.
Definition: Notifications.h:304
const catapult::Signature & Signature
Signature.
Definition: Notifications.h:347
SourceChangeType SecondaryChangeType
Type of secondary source change.
Definition: Notifications.h:481
UnresolvedAddress Address
Address.
Definition: Notifications.h:71
NotificationType Type
Notification type.
Definition: Notifications.h:46
model::NetworkIdentifier NetworkIdentifier
Network identifier.
Definition: Notifications.h:173
utils::TimeSpan MaxLifetime
Definition: Notifications.h:280
MosaicRequiredNotification(const Key &signer, UnresolvedMosaicId mosaicId)
Creates a notification around signer and mosaicId.
Definition: Notifications.h:424
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:193
NotificationType
Enumeration of all possible notification types.
Definition: NotificationType.h:43
BalanceTransferNotification(const Key &sender, const UnresolvedAddress &recipient, UnresolvedMosaicId mosaicId, catapult::Amount amount)
Creates a notification around sender, recipient, mosaicId and amount.
Definition: Notifications.h:127
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:123
const Key & Signer
Transaction signer.
Definition: Notifications.h:301
const Hash256 & TransactionHash
Transaction hash.
Definition: Notifications.h:251
UnresolvedAddressSet ParticipantsByAddress
Participants given by address.
Definition: Notifications.h:394
ArraySet< Key > KeySet
A key set.
Definition: ArraySet.h:64
MosaicRequiredNotification(const Key &signer, MosaicId mosaicId)
Creates a notification around signer and mosaicId.
Definition: Notifications.h:416
std::unordered_set< UnresolvedAddress, utils::ArrayHasher< UnresolvedAddress > > UnresolvedAddressSet
Unordered set of unresolved addresses.
Definition: ContainerTypes.h:44
const Key & Sender
Sender.
Definition: Notifications.h:110
uint64_t size
Definition: MemoryCounters.cpp:65
Notification(NotificationType type, size_t size)
Creates a new notification with type and size.
Definition: Notifications.h:39
AccountPublicKeyNotification(const Key &publicKey)
Creates a notification around publicKey.
Definition: Notifications.h:82
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
catapult::Timestamp Timestamp
Block timestamp.
Definition: Notifications.h:214
MosaicType ProvidedMosaicType
Type of mosaic provided and attached to this notification.
Definition: Notifications.h:442
uint32_t PrimaryId
Primary source (e.g. index within block).
Definition: Notifications.h:478
A basic notification.
Definition: Notifications.h:36
SourceChangeNotification(SourceChangeType primaryChangeType, uint32_t primaryId, SourceChangeType secondaryChangeType, uint32_t secondaryId)
Creates a notification around primaryChangeType, primaryId, secondaryChangeType and secondaryId.
Definition: Notifications.h:461
Notifies the arrival of a block.
Definition: Notifications.h:190
ReplayProtectionMode
Replay protection modes.
Definition: Notifications.h:321
Amount TotalFee
Total block fee.
Definition: Notifications.h:220
uint8_t MaxVersion
Maximum supported version.
Definition: Notifications.h:182
Notification of use of an account public key.
Definition: Notifications.h:75
Notifies the arrival of a transaction fee.
Definition: Notifications.h:284
catapult::Difficulty Difficulty
Block difficulty.
Definition: Notifications.h:217
Definition: AddressExtractionExtension.cpp:28
const Key & Signer
Transaction signer.
Definition: Notifications.h:248
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:264
Notification of use of an account address.
Definition: Notifications.h:57
Notifies a balance debit by sender.
Definition: Notifications.h:142
utils::KeySet ParticipantsByKey
Participants given by public key.
Definition: Notifications.h:397
const Key & PublicKey
Public key.
Definition: Notifications.h:89
SourceChangeType PrimaryChangeType
Type of primary source change.
Definition: Notifications.h:475
size_t Size
Notification size.
Definition: Notifications.h:49
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:412
Notifies the arrival of a transaction deadline.
Definition: Notifications.h:261
EntityType TransactionType
Transaction type.
Definition: Notifications.h:254
TransactionFeeNotification(const Key &signer, uint32_t transactionSize, Amount fee, Amount maxFee)
Creates a transaction fee notification around signer, transactionSize, fee and maxFee.
Definition: Notifications.h:291
const Key & Signer
Signer.
Definition: Notifications.h:433
Timestamp Deadline
Transaction deadline.
Definition: Notifications.h:276
catapult::Amount Amount
Amount.
Definition: Notifications.h:116
AddressInteractionNotification(const Key &source, EntityType transactionType, const UnresolvedAddressSet &participantsByAddress, const utils::KeySet &participantsByKey)
Creates a notification around source, transactionType, participantsByAddress and participantsByKey.
Definition: Notifications.h:374
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:78
Amount MaxFee
Definition: Notifications.h:310
Notifies the presence of a signature.
Definition: Notifications.h:318
TransactionNotification(const Key &signer, const Hash256 &transactionHash, EntityType transactionType, Timestamp deadline)
Creates a transaction notification around signer, transactionHash, transactionType and deadline.
Definition: Notifications.h:238
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
static constexpr auto Notification_Type
Matching notification type.
Definition: Notifications.h:457
Definition: Notifications.h:362