Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::chain::account_object Class Reference

This class represents an account on the object graphAccounts are the primary unit of authority on the graphene system. Users must have an account in order to use assets, trade in the markets, vote for committee_members, etc. More...

#include <account_object.hpp>

Inheritance diagram for golos::chain::account_object:

Public Member Functions

 account_object ()=delete
 
template<typename Constructor , typename Allocator >
 account_object (Constructor &&c, allocator< Allocator > a)
 
share_type witness_vote_weight () const
 This function should be used only when the account votes for a witness directly. More...
 
share_type proxied_vsf_votes_total () const
 
protocol::asset< 0, 17, 0 > effective_vesting_shares () const
 

Public Attributes

id_type id
 
account_name_type name
 The account's name. This name must be unique among all account names on the graph. May not be empty. More...
 
public_key_type memo_key
 
shared_string json_metadata
 
account_name_type proxy
 
time_point_sec last_account_update
 
time_point_sec created
 
bool mined = true
 
bool owner_challenged = false
 
bool active_challenged = false
 
time_point_sec last_owner_proved = time_point_sec::min()
 
time_point_sec last_active_proved = time_point_sec::min()
 
account_name_type recovery_account
 
account_name_type reset_account = STEEMIT_NULL_ACCOUNT
 
time_point_sec last_account_recovery
 
uint32_t comment_count = 0
 
uint32_t lifetime_vote_count = 0
 
uint32_t post_count = 0
 
bool can_vote = true
 
uint16_t voting_power = STEEMIT_100_PERCENT
 current voting power of this account, it falls after every vote More...
 
time_point_sec last_vote_time
 used to increase the voting power of this account the longer it goes without voting. More...
 
protocol::asset< 0, 17, 0 > balance = protocol::asset<0, 17, 0>(0, STEEM_SYMBOL_NAME)
 total liquid shares held by this account More...
 
protocol::asset< 0, 17, 0 > savings_balance = protocol::asset<0, 17, 0>(0, STEEM_SYMBOL_NAME)
 total liquid shares held by this account More...
 
protocol::asset< 0, 17, 0 > sbd_balance = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)
 
uint128_t sbd_seconds
 total sbd balance More...
 
time_point_sec sbd_seconds_last_update
 the last time the sbd_seconds was updated More...
 
time_point_sec sbd_last_interest_payment
 used to pay interest at most once per month More...
 
protocol::asset< 0, 17, 0 > savings_sbd_balance = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)
 
uint128_t savings_sbd_seconds
 total sbd balance More...
 
time_point_sec savings_sbd_seconds_last_update
 the last time the sbd_seconds was updated More...
 
time_point_sec savings_sbd_last_interest_payment
 used to pay interest at most once per month More...
 
uint8_t savings_withdraw_requests = 0
 
share_type curation_rewards = 0
 
share_type posting_rewards = 0
 
protocol::asset< 0, 17, 0 > vesting_shares = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)
 total vesting shares held by this account, controls its voting power More...
 
protocol::asset< 0, 17, 0 > delegated_vesting_shares = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)
 
protocol::asset< 0, 17, 0 > received_vesting_shares = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)
 
protocol::asset< 0, 17, 0 > vesting_withdraw_rate = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)
 at the time this is updated it can be at most vesting_shares/104 More...
 
time_point_sec next_vesting_withdrawal = fc::time_point_sec::maximum()
 after every withdrawal this is incremented by 1 week More...
 
share_type withdrawn = 0
 
share_type to_withdraw = 0
 Track how many shares have been withdrawn. More...
 
uint16_t withdraw_routes = 0
 Might be able to look this up with operation history. More...
 
fc::array< share_type, STEEMIT_MAX_PROXY_RECURSION_DEPTH > proxied_vsf_votes
 
uint16_t witnesses_voted_for = 0
 
time_point_sec last_post
 
optional< flat_set< protocol::asset_name_type > > allowed_assets
 
flat_set< account_name_type > whitelisting_accounts
 
set< account_name_type > whitelisted_accounts
 
set< account_name_type > blacklisted_accounts
 
flat_set< account_name_type > blacklisting_accounts
 

Detailed Description

This class represents an account on the object graph

Accounts are the primary unit of authority on the graphene system. Users must have an account in order to use assets, trade in the markets, vote for committee_members, etc.

Definition at line 127 of file account_object.hpp.

Constructor & Destructor Documentation

◆ account_object() [1/2]

golos::chain::account_object::account_object ( )
delete

◆ account_object() [2/2]

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

Definition at line 133 of file account_object.hpp.

Member Function Documentation

◆ effective_vesting_shares()

protocol::asset<0, 17, 0> golos::chain::account_object::effective_vesting_shares ( ) const
inline

Definition at line 266 of file account_object.hpp.

◆ proxied_vsf_votes_total()

share_type golos::chain::account_object::proxied_vsf_votes_total ( ) const
inline

Definition at line 260 of file account_object.hpp.

◆ witness_vote_weight()

share_type golos::chain::account_object::witness_vote_weight ( ) const
inline

This function should be used only when the account votes for a witness directly.

Definition at line 254 of file account_object.hpp.

Member Data Documentation

◆ active_challenged

bool golos::chain::account_object::active_challenged = false

Definition at line 151 of file account_object.hpp.

◆ allowed_assets

optional<flat_set<protocol::asset_name_type> > golos::chain::account_object::allowed_assets

This is a set of assets which the account is allowed to have. This is utilized to restrict buyback accounts to the assets that trade in their markets. In the future we may expand this to allow accounts to e.g. voluntarily restrict incoming transfers.

Definition at line 220 of file account_object.hpp.

◆ balance

protocol::asset<0, 17, 0> golos::chain::account_object::balance = protocol::asset<0, 17, 0>(0, STEEM_SYMBOL_NAME)

total liquid shares held by this account

Definition at line 165 of file account_object.hpp.

◆ blacklisting_accounts

flat_set<account_name_type> golos::chain::account_object::blacklisting_accounts

This is a set of all accounts which have 'blacklisted' this account. Blacklisting is only used in core validation for the purpose of forbidding accounts from holding and transacting in whitelisted assets. This account cannot update this set, and it will be preserved even if the account is transferred. Other accounts may add or remove their IDs from this set.

Definition at line 251 of file account_object.hpp.

◆ can_vote

bool golos::chain::account_object::can_vote = true

Definition at line 161 of file account_object.hpp.

◆ comment_count

uint32_t golos::chain::account_object::comment_count = 0

Definition at line 157 of file account_object.hpp.

◆ created

time_point_sec golos::chain::account_object::created

Definition at line 148 of file account_object.hpp.

◆ curation_rewards

share_type golos::chain::account_object::curation_rewards = 0

Definition at line 196 of file account_object.hpp.

◆ delegated_vesting_shares

protocol::asset<0, 17, 0> golos::chain::account_object::delegated_vesting_shares = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)

Definition at line 200 of file account_object.hpp.

◆ id

id_type golos::chain::account_object::id

Definition at line 136 of file account_object.hpp.

◆ json_metadata

shared_string golos::chain::account_object::json_metadata

Definition at line 143 of file account_object.hpp.

◆ last_account_recovery

time_point_sec golos::chain::account_object::last_account_recovery

Definition at line 156 of file account_object.hpp.

◆ last_account_update

time_point_sec golos::chain::account_object::last_account_update

Definition at line 146 of file account_object.hpp.

◆ last_active_proved

time_point_sec golos::chain::account_object::last_active_proved = time_point_sec::min()

Definition at line 153 of file account_object.hpp.

◆ last_owner_proved

time_point_sec golos::chain::account_object::last_owner_proved = time_point_sec::min()

Definition at line 152 of file account_object.hpp.

◆ last_post

time_point_sec golos::chain::account_object::last_post

Definition at line 213 of file account_object.hpp.

◆ last_vote_time

time_point_sec golos::chain::account_object::last_vote_time

used to increase the voting power of this account the longer it goes without voting.

Definition at line 163 of file account_object.hpp.

◆ lifetime_vote_count

uint32_t golos::chain::account_object::lifetime_vote_count = 0

Definition at line 158 of file account_object.hpp.

◆ memo_key

public_key_type golos::chain::account_object::memo_key

Definition at line 142 of file account_object.hpp.

◆ mined

bool golos::chain::account_object::mined = true

Definition at line 149 of file account_object.hpp.

◆ name

account_name_type golos::chain::account_object::name

The account's name. This name must be unique among all account names on the graph. May not be empty.

Definition at line 141 of file account_object.hpp.

◆ next_vesting_withdrawal

time_point_sec golos::chain::account_object::next_vesting_withdrawal = fc::time_point_sec::maximum()

after every withdrawal this is incremented by 1 week

Definition at line 204 of file account_object.hpp.

◆ owner_challenged

bool golos::chain::account_object::owner_challenged = false

Definition at line 150 of file account_object.hpp.

◆ post_count

uint32_t golos::chain::account_object::post_count = 0

Definition at line 159 of file account_object.hpp.

◆ posting_rewards

share_type golos::chain::account_object::posting_rewards = 0

Definition at line 197 of file account_object.hpp.

◆ proxied_vsf_votes

fc::array<share_type, STEEMIT_MAX_PROXY_RECURSION_DEPTH> golos::chain::account_object::proxied_vsf_votes

Definition at line 209 of file account_object.hpp.

◆ proxy

account_name_type golos::chain::account_object::proxy

Definition at line 144 of file account_object.hpp.

◆ received_vesting_shares

protocol::asset<0, 17, 0> golos::chain::account_object::received_vesting_shares = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)

Definition at line 201 of file account_object.hpp.

◆ recovery_account

account_name_type golos::chain::account_object::recovery_account

Definition at line 154 of file account_object.hpp.

◆ reset_account

account_name_type golos::chain::account_object::reset_account = STEEMIT_NULL_ACCOUNT

Definition at line 155 of file account_object.hpp.

◆ savings_balance

protocol::asset<0, 17, 0> golos::chain::account_object::savings_balance = protocol::asset<0, 17, 0>(0, STEEM_SYMBOL_NAME)

total liquid shares held by this account

Definition at line 166 of file account_object.hpp.

◆ to_withdraw

share_type golos::chain::account_object::to_withdraw = 0

Track how many shares have been withdrawn.

Definition at line 206 of file account_object.hpp.

◆ vesting_shares

protocol::asset<0, 17, 0> golos::chain::account_object::vesting_shares = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)

total vesting shares held by this account, controls its voting power

Definition at line 199 of file account_object.hpp.

◆ vesting_withdraw_rate

protocol::asset<0, 17, 0> golos::chain::account_object::vesting_withdraw_rate = protocol::asset<0, 17, 0>(0, VESTS_SYMBOL)

at the time this is updated it can be at most vesting_shares/104

Definition at line 203 of file account_object.hpp.

◆ voting_power

uint16_t golos::chain::account_object::voting_power = STEEMIT_100_PERCENT

current voting power of this account, it falls after every vote

Definition at line 162 of file account_object.hpp.

◆ whitelisting_accounts

flat_set<account_name_type> golos::chain::account_object::whitelisting_accounts

This is a set of all accounts which have 'whitelisted' this account. Whitelisting is only used in core validation for the purpose of authorizing accounts to hold and transact in whitelisted assets. This account cannot update this set, except by transferring ownership of the account, which will clear it. Other accounts may add or remove their IDs from this set.

Definition at line 228 of file account_object.hpp.

◆ withdraw_routes

uint16_t golos::chain::account_object::withdraw_routes = 0

Might be able to look this up with operation history.

Definition at line 207 of file account_object.hpp.

◆ withdrawn

share_type golos::chain::account_object::withdrawn = 0

Definition at line 205 of file account_object.hpp.

◆ witnesses_voted_for

uint16_t golos::chain::account_object::witnesses_voted_for = 0

Definition at line 211 of file account_object.hpp.


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