CatapultServer  v0.5.0.1 (Elephant)
TransactionUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "ContainerTypes.h"
23 
24 namespace catapult {
25  namespace model {
26  class NotificationPublisher;
27  struct Transaction;
28  }
29 }
30 
31 namespace catapult { namespace model {
32 
34  UnresolvedAddressSet ExtractAddresses(const Transaction& transaction, const NotificationPublisher& notificationPublisher);
35 }}
ResolverContext.h
NotificationPublisher.h
catapult::UnresolvedAddress
utils::ByteArray< Address_Decoded_Size, UnresolvedAddress_tag > UnresolvedAddress
Definition: src/catapult/types.h:66
Transaction.h
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
NotificationSubscriber.h
catapult::model::ExtractAddresses
UnresolvedAddressSet ExtractAddresses(const Transaction &transaction, const NotificationPublisher &notificationPublisher)
Extracts all addresses that are involved in transaction using notificationPublisher.
Definition: TransactionUtils.cpp:64
catapult::model::NotificationPublisher::publish
virtual void publish(const WeakEntityInfo &entityInfo, NotificationSubscriber &sub) const =0
Sends all notifications from entityInfo to sub.
catapult::model::WeakEntityInfoT
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
m_addresses
UnresolvedAddressSet m_addresses
Definition: TransactionUtils.cpp:60
catapult::model::WeakEntityInfoT::entity
constexpr const TEntity & entity() const
Gets the entity.
Definition: WeakEntityInfo.h:82
Address.h
PublicKey
Key PublicKey
Definition: PacketReaders.cpp:36
catapult::model::UnresolvedAddressSet
std::unordered_set< UnresolvedAddress, utils::ArrayHasher< UnresolvedAddress > > UnresolvedAddressSet
Unordered set of unresolved addresses.
Definition: ContainerTypes.h:44
catapult::model::PublicKeyToAddress
Address PublicKeyToAddress(const Key &publicKey, NetworkIdentifier networkIdentifier)
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
Definition: Address.cpp:50
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
m_networkIdentifier
NetworkIdentifier m_networkIdentifier
Definition: TransactionUtils.cpp:59
catapult::model::NotificationPublisher
A notification publisher.
Definition: NotificationPublisher.h:46
ContainerTypes.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::BasicEntityType::Transaction
Transaction type.
TransactionUtils.h
catapult::model::AccountRestrictionType::Address
Account restriction type is an address.
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
catapult::model::Transaction
Binary layout for a transaction.
Definition: Transaction.h:32