CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace model {
struct BlockElement; } }
26 namespace catapult {
namespace mongo {
namespace mappers {
29 bsoncxx::document::value
ToDbModel(
const model::BlockElement& blockElement);
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
const model::Block & Block
Block entity.
Definition: Elements.h:63
int64_t ToInt64(TBaseValue value)
Converts base value to int64_t.
Definition: MapperUtils.h:75
std::vector< Hash256 > SubCacheMerkleRoots
Merkle roots for all sub caches at the current block.
Definition: Elements.h:72
std::vector< TransactionElement > Transactions
Transaction elements.
Definition: Elements.h:75
int32_t ToInt32(TBaseValue value)
Converts base value to int32_t.
Definition: MapperUtils.h:67
bson_stream::document & StreamVerifiableEntity(bson_stream::document &builder, const model::VerifiableEntity &entity)
Streams a verifiable entity to builder.
Definition: MapperUtils.cpp:85
size_t CountTotalStatements(const BlockStatement &statement)
Counts the total number of statements in statement.
Definition: BlockStatement.cpp:95
std::vector< Hash256 > CalculateMerkleTree(const BlockStatement &statement)
Calculates the merkle tree for statement.
Definition: BlockStatement.cpp:89
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
Definition: AddressExtractionExtension.cpp:28
BlockTransactionsInfo CalculateBlockTransactionsInfo(const Block &block)
Calculates information about transactions stored in block.
Definition: BlockUtils.cpp:75
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
std::shared_ptr< const BlockStatement > OptionalStatement
Definition: Elements.h:79