BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
graphene::api_helper_indexes::amount_in_collateral_index Class Reference

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>

Inheritance diagram for graphene::api_helper_indexes::amount_in_collateral_index:
graphene::db::secondary_index

Public Member Functions

virtual void object_inserted (const object &obj) override
 
virtual void object_removed (const object &obj) override
 
virtual void about_to_modify (const object &before) override
 
virtual 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 ()
 
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)
 

Detailed Description

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.

Definition at line 36 of file api_helper_indexes.hpp.

Member Function Documentation

void graphene::api_helper_indexes::amount_in_collateral_index::about_to_modify ( const object &  before)
overridevirtual

Definition at line 71 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 81 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 88 of file api_helper_indexes.cpp.

void graphene::api_helper_indexes::amount_in_collateral_index::object_inserted ( const object &  obj)
overridevirtual

Definition at line 31 of file api_helper_indexes.cpp.

void graphene::api_helper_indexes::amount_in_collateral_index::object_modified ( const object &  after)
overridevirtual

Definition at line 76 of file api_helper_indexes.cpp.

void graphene::api_helper_indexes::amount_in_collateral_index::object_removed ( const object &  obj)
overridevirtual

Definition at line 53 of file api_helper_indexes.cpp.


The documentation for this class was generated from the following files: