CatapultServer  v0.5.0.1 (Elephant)
MosaicTypes.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <stdint.h>
23 
24 namespace catapult { namespace model {
25 
27  enum class MosaicSupplyChangeDirection : uint8_t {
29  Decrease,
30 
32  Increase
33  };
34 }}
catapult::model::MosaicSupplyChangeDirection
MosaicSupplyChangeDirection
Supply change directions.
Definition: MosaicTypes.h:27
catapult::validators::IsValidationResultSuccess
constexpr bool IsValidationResultSuccess(ValidationResult result)
Returns a value indicating whether the validation result is a success.
Definition: ValidationResult.h:90
catapult::Amount
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
ValidatorContext.h
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
catapult::model::MosaicSupplyChangeDirection::Decrease
Decreases the supply.
MAKE_STATEFUL_VALIDATOR
#define MAKE_STATEFUL_VALIDATOR(NAME, HANDLER)
Definition: ValidatorTypes.h:123
catapult::cache::ReadOnlyArtifactCache::ReadOnlyFindIterator
Find iterator returned by ReadOnlyArtifactCache::find.
Definition: ReadOnlyArtifactCache.h:33
catapult::validators::DECLARE_STATEFUL_VALIDATOR
DECLARE_STATEFUL_VALIDATOR(Address, Notification)(model
Definition: AddressValidator.cpp:29
catapult::utils::BaseValue< uint64_t, UnresolvedMosaicId_tag >
MosaicCache.h
catapult::model::MosaicSupplyChangeDirection::Increase
Increases the supply.
catapult::validators::ActiveMosaicView::tryGet
validators::ValidationResult tryGet(MosaicId id, Height height, FindIterator &iter) const
Tries to get an entry iterator (iter) for an active mosaic with id at height.
Definition: ActiveMosaicView.cpp:30
catapult::validators::BalanceTransferNotification
model::BalanceTransferNotification BalanceTransferNotification
Definition: BalanceValidator.cpp:28
AccountStateCache.h
ReadOnlyCatapultCache.h
catapult::validators::ValidationResult::Success
Validation succeeded.
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::AccountAddressNotification
Notification of use of an account address.
Definition: Notifications.h:57
ActiveMosaicView.h
catapult::validators::DEFINE_STATELESS_VALIDATOR
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto &notification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})
catapult::model::MosaicFlags::Transferable
Mosaic is transferable.
catapult::Key
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
Validators.h
catapult::validators::ActiveMosaicView
A view on top of a catapult cache cache for retrieving active mosaics.
Definition: ActiveMosaicView.h:34