CatapultServer  v0.5.0.1 (Elephant)
AccountOperationRestrictionTransaction.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace model {
25 
28 
29 #pragma pack(push, 1)
30 
33 
34 #pragma pack(pop)
35 }}
catapult::validators::DEFINE_STATEFUL_VALIDATOR
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto &notification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
AccountOperationRestrictionTransaction.h
AccountRestrictionCache.h
catapult::model::AccountRestrictionType::TransactionType
Account restriction type is a transaction type.
ValidatorContext.h
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
catapult::model::EntityType
EntityType
Enumeration of entity types.
Definition: EntityType.h:43
catapult::model::ModifyAccountOperationRestrictionNotification
ModifyAccountRestrictionNotification< EntityType, RestrictionAccount_Operation_Modifications_Notification > ModifyAccountOperationRestrictionNotification
Definition: AccountRestrictionNotifications.h:168
catapult::model::ModifyAccountOperationRestrictionValueNotification
ModifyAccountRestrictionValueNotification< EntityType, RestrictionAccount_Operation_Modification_Notification > ModifyAccountOperationRestrictionValueNotification
Definition: AccountRestrictionNotifications.h:119
catapult::model::ToBasicEntityType
constexpr BasicEntityType ToBasicEntityType(EntityType type)
Converts an entity type into a basic entity type.
Definition: EntityType.h:70
AccountRestrictionView.h
DEFINE_ACCOUNT_RESTRICTION_TRANSACTION
#define DEFINE_ACCOUNT_RESTRICTION_TRANSACTION(VALUE_NAME, ENTITY_TYPE_NAME, VALUE_TYPE)
Definition: AccountRestrictionSharedTransaction.h:59
AccountRestrictionSharedTransaction.h
Address.h
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
Validators.h
catapult::validators::ValidationResult::Success
Validation succeeded.
catapult::state::AccountRestrictionOperationType::Allow
Account restriction contains allowed values.
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::AccountRestrictionModification
Binary layout for an account restriction modification.
Definition: AccountRestrictionTypes.h:61
catapult::model::BasicEntityType::Transaction
Transaction type.
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::CosignatoryModificationType::Del
Remove cosignatory.