CatapultServer  v0.5.0.1 (Elephant)
RemoteTransactionApi.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "RemoteApi.h"
24 #include "catapult/thread/Future.h"
25 
26 namespace catapult { namespace ionet { class PacketIo; } }
27 
28 namespace catapult { namespace api {
29 
32  protected:
35  {}
36 
37  public:
41  BlockFeeMultiplier minFeeMultiplier,
42  model::ShortHashRange&& knownShortHashes) const = 0;
43  };
44 
47  std::unique_ptr<RemoteTransactionApi> CreateRemoteTransactionApi(
48  ionet::PacketIo& io,
49  const Key& remotePublicKey,
50  const model::TransactionRegistry& registry);
51 }}
PacketEntityUtils.h
RemoteTransactionApi.h
catapult::model::EntityRange
Represents a range of entities.
Definition: EntityRange.h:31
RemoteApi.h
PacketPayloadFactory.h
catapult::utils::BaseValue< uint32_t, BlockFeeMultiplier_tag >
catapult::api::CreateRemoteTransactionApi
std::unique_ptr< RemoteTransactionApi > CreateRemoteTransactionApi(ionet::PacketIo &io, const Key &remotePublicKey, const model::TransactionRegistry &registry)
Definition: RemoteTransactionApi.cpp:81
catapult::model::TransactionRange
EntityRange< Transaction > TransactionRange
An entity range composed of transactions.
Definition: RangeTypes.h:32
catapult::api::RegistryDependentTraits::RegistryDependentTraits
RegistryDependentTraits(const model::TransactionRegistry &registry)
Creates traits around registry.
Definition: RemoteApiUtils.h:34
catapult::api::RemoteTransactionApi::RemoteTransactionApi
RemoteTransactionApi(const Key &remotePublicKey)
Creates a remote api for the node with specified public key (remotePublicKey).
Definition: RemoteTransactionApi.h:34
catapult::ionet::PacketIo
An interface for reading and writing packets.
Definition: PacketIo.h:31
m_impl
RemoteRequestDispatcher m_impl
Definition: RemoteTransactionApi.cpp:77
catapult::api::RemoteTransactionApi
An api for retrieving transaction information from a remote node.
Definition: RemoteTransactionApi.h:31
catapult::api::RemoteTransactionApi::unconfirmedTransactions
virtual thread::future< model::TransactionRange > unconfirmedTransactions(BlockFeeMultiplier minFeeMultiplier, model::ShortHashRange &&knownShortHashes) const =0
catapult::thread::future
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
m_registry
const model::TransactionRegistry & m_registry
Definition: RemoteTransactionApi.cpp:76
catapult::api::RemoteApi::remotePublicKey
const Key & remotePublicKey() const
Gets the remote node public key.
Definition: RemoteApi.h:38
catapult::BlockFeeMultiplier
utils::BaseValue< uint32_t, BlockFeeMultiplier_tag > BlockFeeMultiplier
Definition: src/catapult/types.h:91
Friendly_Name
static constexpr auto Friendly_Name
Definition: RemoteTransactionApi.cpp:36
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::api::RemoteApi
An api for retrieving information from a remote node.
Definition: RemoteApi.h:27
catapult::model::TransactionRegistry
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
Future.h
RemoteRequestDispatcher.h
Packet_Type
static constexpr auto Packet_Type
Definition: RemoteTransactionApi.cpp:35
catapult::utils::ByteArray
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
catapult::model::ShortHashRange
EntityRange< utils::ShortHash > ShortHashRange
An entity range composed of short hashes.
Definition: RangeTypes.h:38
RangeTypes.h
RemoteApiUtils.h