CatapultServer  v0.5.0.1 (Elephant)
NemesisFundingObserver.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "NemesisFundingState.h"
25 
26 namespace catapult { namespace extensions {
27 
33  DECLARE_OBSERVER(NemesisFunding, model::BalanceTransferNotification)(const Key& nemesisPublicKey, NemesisFundingState& fundingState);
34 }}
catapult::extensions::NemesisFundingType::Unknown
Unknown (e.g. funding type has not yet been determined).
NemesisFundingState.h
catapult::Amount
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
ObserverTypes.h
catapult::model::BalanceTransferNotification
Notifies a balance transfer from sender to recipient.
Definition: Notifications.h:120
catapult::utils::BaseValue
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
catapult::extensions::fundingState
NemesisFundingState & fundingState
Definition: NemesisFundingObserver.cpp:28
catapult::extensions::NemesisFundingState
State used by the nemesis funding observer.
Definition: NemesisFundingState.h:39
catapult::validators::BalanceTransferNotification
model::BalanceTransferNotification BalanceTransferNotification
Definition: BalanceValidator.cpp:28
catapult::state::AccountBalances::credit
AccountBalances & credit(MosaicId mosaicId, Amount amount)
Adds amount funds to a given mosaic (mosaicId).
Definition: AccountBalances.cpp:59
catapult::extensions::NemesisFundingState::FundingType
NemesisFundingType FundingType
Nemesis block funding type.
Definition: NemesisFundingState.h:51
CATAPULT_THROW_INVALID_ARGUMENT_1
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
catapult::extensions::DECLARE_OBSERVER
DECLARE_OBSERVER(NemesisFunding, Notification)(const Key &nemesisPublicKey
Notifications.h
AccountStateCache.h
CATAPULT_THROW_INVALID_ARGUMENT
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
MAKE_OBSERVER
#define MAKE_OBSERVER(NAME, NOTIFICATION_TYPE, HANDLER)
Makes a functional observer with NAME for notifications of type NOTIFICATION_TYPE around HANDLER.
Definition: ObserverTypes.h:47
catapult
Definition: AddressExtractionExtension.cpp:28
NemesisFundingObserver.h
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::extensions::NemesisFundingState::TotalFundedMosaics
state::AccountBalances TotalFundedMosaics
Definition: NemesisFundingState.h:48
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
catapult::extensions::NemesisFundingType::Explicit
Explicitly funded (e.g. mosaic supply transaction).
catapult::extensions::NemesisFundingType::Implicit
Implicitly funded (e.g. balance transfers).