BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Tracks the balance of a single account/asset pair. More...
#include <account_object.hpp>
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, implementation_ids, impl_account_balance_object_type > | |
abstract_object () | |
object_id< SpaceID, TypeID > | get_id () const |
Public Member Functions inherited from graphene::db::base_abstract_object< account_balance_object > | |
std::unique_ptr< object > | clone () const override |
void | move_from (object &obj) override |
fc::variant | to_variant () const override |
std::vector< char > | pack () const override |
object ()=default | |
object (uint8_t space_id, uint8_t type_id) | |
Public Member Functions inherited from graphene::db::object | |
object ()=default | |
object (uint8_t space_id, uint8_t type_id) | |
virtual | ~object ()=default |
virtual std::unique_ptr< object > | clone () const =0 |
virtual fc::variant | to_variant () const =0 |
virtual std::vector< char > | pack () const =0 |
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 |
Additional Inherited Members | |
Static Public Attributes inherited from graphene::db::abstract_object< account_balance_object, implementation_ids, impl_account_balance_object_type > | |
static constexpr uint8_t | space_id |
static constexpr uint8_t | type_id |
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 157 of file account_object.hpp.
void graphene::chain::account_balance_object::adjust_balance | ( | const asset & | delta | ) |
Definition at line 45 of file account_object.cpp.
|
inline |
Definition at line 167 of file account_object.hpp.
asset_id_type graphene::chain::account_balance_object::asset_type |
Definition at line 162 of file account_object.hpp.
share_type graphene::chain::account_balance_object::balance |
Definition at line 163 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 165 of file account_object.hpp.
account_id_type graphene::chain::account_balance_object::owner |
Definition at line 161 of file account_object.hpp.