Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::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 golos::chain::account_balance_object:

Public Member Functions

template<typename Constructor , typename Allocator >
 account_balance_object (Constructor &&c, allocator< Allocator > a)
 
 account_balance_object ()
 
protocol::asset< 0, 17, 0 > get_balance () const
 
void adjust_balance (const protocol::asset< 0, 17, 0 > &delta)
 

Public Attributes

id_type id
 
account_name_type owner
 
protocol::asset_name_type asset_name
 
share_type balance = 0
 total liquid shares held by this account More...
 

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 94 of file account_object.hpp.

Constructor & Destructor Documentation

◆ account_balance_object() [1/2]

template<typename Constructor , typename Allocator >
golos::chain::account_balance_object::account_balance_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 98 of file account_object.hpp.

◆ account_balance_object() [2/2]

golos::chain::account_balance_object::account_balance_object ( )
inline

Definition at line 102 of file account_object.hpp.

Member Function Documentation

◆ adjust_balance()

void golos::chain::account_balance_object::adjust_balance ( const protocol::asset< 0, 17, 0 > &  delta)

Definition at line 21 of file account_object.cpp.

◆ get_balance()

protocol::asset<0, 17, 0> golos::chain::account_balance_object::get_balance ( ) const
inline

Definition at line 112 of file account_object.hpp.

Member Data Documentation

◆ asset_name

protocol::asset_name_type golos::chain::account_balance_object::asset_name

Definition at line 109 of file account_object.hpp.

◆ balance

share_type golos::chain::account_balance_object::balance = 0

total liquid shares held by this account

Definition at line 110 of file account_object.hpp.

◆ id

id_type golos::chain::account_balance_object::id

Definition at line 106 of file account_object.hpp.

◆ owner

account_name_type golos::chain::account_balance_object::owner

Definition at line 108 of file account_object.hpp.


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