BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
graphene::chain::account_balance_object Class Reference

Tracks the balance of a single account/asset pairThis object is indexed on owner and asset_type so that black swan events in asset_type can be processed quickly. More...

#include <account_object.hpp>

Inheritance diagram for graphene::chain::account_balance_object:
graphene::db::abstract_object< account_balance_object > graphene::db::object

Public Member Functions

asset get_balance () const
 
void adjust_balance (const asset &delta)
 
- Public Member Functions inherited from graphene::db::abstract_object< account_balance_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
 
virtual void move_from (object &obj)
 
virtual variant to_variant () const
 
virtual vector< char > pack () const
 
- Public Member Functions inherited from graphene::db::object
 object ()
 
virtual ~object ()
 

Public Attributes

account_id_type owner
 
asset_id_type asset_type
 
share_type balance
 
bool maintenance_flag = false
 Whether need to process this balance object in maintenance interval. More...
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Static Public Attributes

static constexpr uint8_t space_id = implementation_ids
 
static constexpr uint8_t type_id = impl_account_balance_object_type
 

Detailed Description

Tracks the balance of a single account/asset pair

This object is indexed on owner and asset_type so that black swan events in asset_type can be processed quickly.

Definition at line 158 of file account_object.hpp.

Member Function Documentation

void graphene::chain::account_balance_object::adjust_balance ( const asset delta)

Definition at line 45 of file account_object.cpp.

asset graphene::chain::account_balance_object::get_balance ( ) const
inline

Definition at line 169 of file account_object.hpp.

Member Data Documentation

asset_id_type graphene::chain::account_balance_object::asset_type

Definition at line 165 of file account_object.hpp.

share_type graphene::chain::account_balance_object::balance

Definition at line 166 of file account_object.hpp.

bool graphene::chain::account_balance_object::maintenance_flag = false

Whether need to process this balance object in maintenance interval.

Definition at line 167 of file account_object.hpp.

account_id_type graphene::chain::account_balance_object::owner

Definition at line 164 of file account_object.hpp.

constexpr uint8_t graphene::chain::account_balance_object::space_id = implementation_ids
static

Definition at line 161 of file account_object.hpp.

constexpr uint8_t graphene::chain::account_balance_object::type_id = impl_account_balance_object_type
static

Definition at line 162 of file account_object.hpp.


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