Bitshares-Core  2.0.181105
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:

Public Member Functions

asset get_balance () const
 
void adjust_balance (const asset &delta)
 

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...
 

Static Public Attributes

static const uint8_t space_id = implementation_ids
 
static const 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 121 of file account_object.hpp.

Member Function Documentation

◆ adjust_balance()

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

Definition at line 45 of file account_object.cpp.

◆ get_balance()

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

Definition at line 132 of file account_object.hpp.

Member Data Documentation

◆ asset_type

asset_id_type graphene::chain::account_balance_object::asset_type

Definition at line 128 of file account_object.hpp.

◆ balance

share_type graphene::chain::account_balance_object::balance

Definition at line 129 of file account_object.hpp.

◆ maintenance_flag

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

Whether need to process this balance object in maintenance interval.

Definition at line 130 of file account_object.hpp.

◆ owner

account_id_type graphene::chain::account_balance_object::owner

Definition at line 127 of file account_object.hpp.

◆ space_id

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

Definition at line 124 of file account_object.hpp.

◆ type_id

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

Definition at line 125 of file account_object.hpp.


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