CatapultServer  v0.5.0.1 (Elephant)
FeeUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 
24 namespace catapult { namespace model { struct Transaction; } }
25 
26 namespace catapult { namespace model {
27 
29  Amount CalculateTransactionFee(BlockFeeMultiplier feeMultiplier, const Transaction& transaction);
30 
32  BlockFeeMultiplier CalculateTransactionMaxFeeMultiplier(const Transaction& transaction);
33 }}
Transaction.h
catapult::Amount
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
catapult::utils::BasicBaseValue::unwrap
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
catapult::utils::BaseValue
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
catapult::model::CalculateTransactionMaxFeeMultiplier
BlockFeeMultiplier CalculateTransactionMaxFeeMultiplier(const Transaction &transaction)
Calculates the maximum fee multiplier for transaction.
Definition: FeeUtils.cpp:30
catapult::model::Transaction::MaxFee
Amount MaxFee
Definition: Transaction.h:35
catapult::BlockFeeMultiplier
utils::BaseValue< uint32_t, BlockFeeMultiplier_tag > BlockFeeMultiplier
Definition: src/catapult/types.h:91
FeeUtils.h
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::BasicEntityType::Transaction
Transaction type.
catapult::model::CalculateTransactionFee
Amount CalculateTransactionFee(BlockFeeMultiplier feeMultiplier, const Transaction &transaction)
Calculates the fee for transaction contained in block with feeMultiplier.
Definition: FeeUtils.cpp:26
catapult::model::SizePrefixedEntity::Size
uint32_t Size
Entity size.
Definition: SizePrefixedEntity.h:33
catapult::model::Transaction
Binary layout for a transaction.
Definition: Transaction.h:32