CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace state {
44 :
LockInfo(account, mosaicId, amount, height)
A lock info.
Definition: LockInfo.h:36
Hash256 Secret
Secret.
Definition: SecretLockInfo.h:56
A secret lock info.
Definition: SecretLockInfo.h:29
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
constexpr ValidationResult ValidateLessThanOrEqual(TValue value, TValue maxValue, ValidationResult failureResult)
Validates that value is less than or equal to maxValue and returns failureResult on failure.
Definition: ValidatorUtils.h:28
Hash256 CompositeHash
Composite hash.
Definition: SecretLockInfo.h:62
catapult::Address Recipient
Recipient of the locked mosaic.
Definition: SecretLockInfo.h:59
Input is hashed twice with SHA-256.
model::LockHashAlgorithm HashAlgorithm
Hash algorithm.
Definition: SecretLockInfo.h:53
Definition: AddressExtractionExtension.cpp:28
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto ¬ification) { 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;})
SecretLockInfo(const Key &account, catapult::MosaicId mosaicId, catapult::Amount amount, catapult::Height height, model::LockHashAlgorithm hashAlgorithm, const Hash256 &secret, const catapult::Address &recipient)
Creates a secret lock info around account, mosaicId, amount, height, hashAlgorithm,...
Definition: SecretLockInfo.h:36
LockHashAlgorithm
Lock secret hash algorithm.
Definition: LockHashAlgorithm.h:27
SecretLockInfo()
Creates a default secret lock info.
Definition: SecretLockInfo.h:32