CatapultServer
v0.5.0.1 (Elephant)
|
MosaicId optimizedMosaicId() const
Gets the optimized mosaic id.
Definition: AccountBalances.cpp:50
Key PublicKey
Public key of an account. Present if PublicKeyHeight > 0.
Definition: AccountState.h:64
utils::BaseValue< Height::ValueType, ImportanceHeight_tag > ImportanceHeight
Represents a height at which importance is calculated.
Definition: ImportanceHeight.h:29
static void Save(const AccountState &accountState, io::OutputStream &output)
Saves accountState to output.
Definition: AccountStateSerializer.cpp:222
Policy for saving and loading account state data.
Definition: AccountStateSerializer.h:41
void Write16(TIo &output, uint16_t value)
Writes value into output.
Definition: PodIoUtils.h:48
void Write8(TIo &output, uint8_t value)
Writes value into output.
Definition: PodIoUtils.h:54
Account state data.
Definition: AccountState.h:44
Height PublicKeyHeight
Height at which public key has been obtained.
Definition: AccountState.h:67
state::AccountType AccountType
Type of account.
Definition: AccountState.h:70
AccountActivityBuckets ActivityBuckets
Activity buckets of the account.
Definition: AccountState.h:79
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
static AccountState Load(io::InputStream &input)
Loads a single value from input.
Definition: AccountStateSerializer.cpp:236
auto Read32(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:74
size_t m_bucketsIndex
Definition: AccountStateSerializer.cpp:98
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
virtual void write(const RawBuffer &buffer)=0
static AccountState Load(io::InputStream &input)
Loads a single value from input.
Definition: AccountStateSerializer.cpp:210
Policy for saving and loading account state data without historical information.
Definition: AccountStateSerializer.h:29
catapult::Address Address
Address of an account.
Definition: AccountState.h:58
auto Read8(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:90
Importance current() const
Gets the current importance of the account.
Definition: AccountImportanceSnapshots.cpp:26
std::array< AccountActivityBuckets::ActivityBucket, Activity_Bucket_History_Size > m_buckets
Definition: AccountStateSerializer.cpp:99
Key LinkedAccountKey
Public key of linked account.
Definition: AccountState.h:73
static void Save(const AccountState &accountState, io::OutputStream &output)
Saves accountState to output.
Definition: AccountStateSerializer.cpp:144
std::array< AccountImportanceSnapshots::ImportanceSnapshot, Importance_History_Size > m_snapshots
Definition: AccountStateSerializer.cpp:97
constexpr size_t Rollback_Buffer_Size
Number of buffer values required to guarantee deterministic rollbacks.
Definition: src/catapult/constants.h:27
void Write(TIo &output, const utils::BasicBaseValue< TValue, TTag, TBaseValue > &value)
Writes base value into output.
Definition: PodIoUtils.h:30
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
std::function< void()> action
An action function.
Definition: functions.h:27
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
constexpr size_t Importance_History_Size
Number of historical importances associated with a single account.
Definition: src/catapult/constants.h:30
size_t size() const
Returns the number of mosaics owned.
Definition: AccountBalances.h:51
auto Read16(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:82
AccountBalances Balances
Balances of an account.
Definition: AccountState.h:82
constexpr size_t Activity_Bucket_History_Size
Definition: src/catapult/constants.h:34
AccountStateFormat
Definition: AccountStateSerializer.cpp:31
Definition: AddressExtractionExtension.cpp:28
auto Read64(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:66
void Write32(TIo &output, uint32_t value)
Writes value into output.
Definition: PodIoUtils.h:42
static constexpr uint16_t State_Version
Serialized state version.
Definition: AccountStateSerializer.h:31
Height AddressHeight
Height at which address has been obtained.
Definition: AccountState.h:61
AccountImportanceSnapshots ImportanceSnapshots
Importance snapshots of the account.
Definition: AccountState.h:76
Writer interface.
Definition: Stream.h:41
static constexpr uint16_t State_Version
Serialized state version.
Definition: AccountStateSerializer.h:43
size_t m_snapshotsIndex
Definition: AccountStateSerializer.cpp:96