CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace utils {
69 std::array<uint8_t, N> data;
const cache::ReadOnlyCatapultCache & Cache
Catapult cache.
Definition: ValidatorContext.h:62
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
void Base32Encode(const RawBuffer &data, const MutableRawString &encodedData)
Definition: Base32.cpp:116
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
auto find(TKey id) const
Finds the cache value identified by key.
Definition: ReadOnlyArtifactCache.h:85
MosaicId resolve(UnresolvedMosaicId mosaicId) const
Resolves mosaic id (mosaicId).
Definition: ResolverContext.cpp:41
constexpr size_t GetDecodedDataSize(size_t encodedSize)
Gets the decoded size of encoded data with size encodedSize.
Definition: Base32.h:54
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
const TCache::CacheReadOnlyType & sub() const
Gets a specific sub cache read-only view.
Definition: ReadOnlyCatapultCache.h:35
const uint32_t Base32_Encoded_Block_Size
Definition: Base32.h:29
#define DEFINE_STATEFUL_VALIDATOR_WITH_TYPE(NAME, NOTIFICATION_TYPE, HANDLER)
Defines a functional stateful validator with NAME around HANDLER for notifications of type NOTIFICATI...
Definition: ValidatorTypes.h:134
Notifies a balance transfer from sender to recipient.
Definition: Notifications.h:120
model::NetworkIdentifier networkIdentifier() const
Gets the network identifier.
Definition: ReadOnlyAccountStateCache.cpp:41
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
BasicRawBuffer< uint8_t > MutableRawBuffer
A mutable binary buffer.
Definition: RawBuffer.h:65
Contextual information passed to stateful validators.
Definition: ValidatorContext.h:32
#define CATAPULT_THROW_RUNTIME_ERROR_1(MESSAGE, PARAM1)
Macro used to throw a catapult runtime error with a single parameter.
Definition: exceptions.h:171
void Base32Decode(const RawString &encodedData, const MutableRawBuffer &data)
Definition: Base32.cpp:141
constexpr size_t GetEncodedDataSize(size_t decodedSize)
Gets the encoded size of decoded data with size decodedSize.
Definition: Base32.h:34
model::BalanceTransferNotification BalanceTransferNotification
Definition: BalanceValidator.cpp:28
Basic raw buffer that is composed of a pointer and a size.
Definition: RawBuffer.h:32
bool TryBase32Decode(const RawString &encodedData, const MutableRawBuffer &data)
Definition: Base32.cpp:137
const uint32_t Base32_Decoded_Block_Size
Definition: Base32.h:28
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
A mutable string buffer.
Definition: RawBuffer.h:82
size_t Size
Data size.
Definition: RawBuffer.h:58
A const string buffer.
Definition: RawBuffer.h:68
Synchronized cache composed of stateful account information.
Definition: AccountStateCache.h:72
T * pData
Data pointer.
Definition: RawBuffer.h:55
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
const model::ResolverContext Resolvers
Alias resolvers.
Definition: ValidatorContext.h:59
bool TryBase32Encode(const RawBuffer &data, const MutableRawString &encodedData)
Definition: Base32.cpp:112
Definition: AddressExtractionExtension.cpp:28
Notifies a balance debit by sender.
Definition: Notifications.h:142
model::BalanceDebitNotification BalanceDebitNotification
Definition: BalanceValidator.cpp:29
A read-only overlay on top of an account cache.
Definition: ReadOnlyAccountStateCache.h:36
DecodeResult
Definition: Base32.cpp:89
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
EncodeResult
Definition: Base32.cpp:70