CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 class NotificationSubscriber;
27 class TransactionRegistry;
31 namespace catapult {
namespace model {
const TransactionRegistry & m_transactionRegistry
Definition: NotificationPublisher.cpp:143
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
A notification subscriber.
Definition: NotificationSubscriber.h:27
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
EntityType
Enumeration of entity types.
Definition: EntityType.h:43
CustomNotificationPublisher m_customPublisher
Definition: NotificationPublisher.cpp:187
BasicNotificationPublisher m_basicPublisher
Definition: NotificationPublisher.cpp:186
virtual void publish(const WeakEntityInfo &entityInfo, NotificationSubscriber &sub) const =0
Sends all notifications from entityInfo to sub.
utils::BaseValue< uint64_t, UnresolvedMosaicId_tag > UnresolvedMosaicId
Definition: src/catapult/types.h:82
constexpr BasicEntityType ToBasicEntityType(EntityType type)
Converts an entity type into a basic entity type.
Definition: EntityType.h:70
Only custom notifications are published.
Only basic notifications are published.
virtual ~NotificationPublisher()=default
#define CATAPULT_THROW_RUNTIME_ERROR_1(MESSAGE, PARAM1)
Macro used to throw a catapult runtime error with a single parameter.
Definition: exceptions.h:171
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
UnresolvedMosaicId m_feeMosaicId
Definition: NotificationPublisher.cpp:144
A notification publisher.
Definition: NotificationPublisher.h:46
Account restriction is interpreted as blocking operation.
Definition: AddressExtractionExtension.cpp:28
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
std::unique_ptr< NotificationPublisher > CreateNotificationPublisher(const TransactionRegistry &transactionRegistry, UnresolvedMosaicId feeMosaicId, PublicationMode mode)
Definition: NotificationPublisher.cpp:191
model::BalanceDebitNotification BalanceDebitNotification
Definition: BalanceValidator.cpp:29
BlockTransactionsInfo CalculateBlockTransactionsInfo(const Block &block)
Calculates information about transactions stored in block.
Definition: BlockUtils.cpp:75
Amount CalculateTransactionFee(BlockFeeMultiplier feeMultiplier, const Transaction &transaction)
Calculates the fee for transaction contained in block with feeMultiplier.
Definition: FeeUtils.cpp:26
PublicationMode
Publication modes.
Definition: NotificationPublisher.h:34
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
BasicEntityType
Definition: EntityType.h:31
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62