BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
This secondary index tracks how much of each asset is locked up as collateral for MPAs, and how much collateral is backing an MPA in total. More...
#include <api_helper_indexes.hpp>
Public Member Functions | |
void | object_inserted (const object &obj) override |
void | object_removed (const object &obj) override |
void | about_to_modify (const object &before) override |
void | object_modified (const object &after) override |
share_type | get_amount_in_collateral (const asset_id_type &asset) const |
share_type | get_backing_collateral (const asset_id_type &asset) const |
Public Member Functions inherited from graphene::db::secondary_index | |
virtual | ~secondary_index ()=default |
virtual void | object_inserted (const object &obj) |
virtual void | object_removed (const object &obj) |
virtual void | about_to_modify (const object &before) |
virtual void | object_modified (const object &after) |
This secondary index tracks how much of each asset is locked up as collateral for MPAs, and how much collateral is backing an MPA in total.
flat_map
considering there aren't too many MPAs and PMs in the system thus the performance would be acceptable. Definition at line 38 of file api_helper_indexes.hpp.
|
override |
Definition at line 73 of file api_helper_indexes.cpp.
share_type graphene::api_helper_indexes::amount_in_collateral_index::get_amount_in_collateral | ( | const asset_id_type & | asset | ) | const |
Definition at line 83 of file api_helper_indexes.cpp.
share_type graphene::api_helper_indexes::amount_in_collateral_index::get_backing_collateral | ( | const asset_id_type & | asset | ) | const |
Definition at line 90 of file api_helper_indexes.cpp.
|
override |
Definition at line 33 of file api_helper_indexes.cpp.
|
override |
Definition at line 78 of file api_helper_indexes.cpp.
|
override |
Definition at line 55 of file api_helper_indexes.cpp.