CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace mongo {
namespace mappers {
29 bsoncxx::document::value
ToDbModel(
const state::AccountState& accountState);
Key PublicKey
Public key of an account. Present if PublicKeyHeight > 0.
Definition: AccountState.h:64
bson_stream::array_context & StreamMosaic(bson_stream::array_context &context, MosaicId id, Amount amount)
Streams a mosaic composed of id and amount to context.
Definition: MapperUtils.cpp:102
Container holding information about account.
Definition: AccountBalances.h:31
Account state data.
Definition: AccountState.h:44
Stack of account activity buckets.
Definition: AccountActivityBuckets.h:29
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
int64_t ToInt64(TBaseValue value)
Converts base value to int64_t.
Definition: MapperUtils.h:75
catapult::Address Address
Address of an account.
Definition: AccountState.h:58
Key LinkedAccountKey
Public key of linked account.
Definition: AccountState.h:73
Stack of account importance snapshots.
Definition: AccountImportanceSnapshots.h:28
AccountBalances Balances
Balances of an account.
Definition: AccountState.h:82
Definition: AddressExtractionExtension.cpp:28
bsoncxx::types::b_binary ToBinary(const uint8_t *pData, size_t size)
Converts raw array (pData) of size elements into bson binary type.
Definition: MapperUtils.cpp:30
bsoncxx::document::value ToDbModel(const state::AccountState &accountState)
Maps an account state (accountState) to the corresponding db model value.
Definition: AccountStateMapper.cpp:81
Height AddressHeight
Height at which address has been obtained.
Definition: AccountState.h:61
AccountImportanceSnapshots ImportanceSnapshots
Importance snapshots of the account.
Definition: AccountState.h:76