BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
29 namespace graphene {
namespace chain {
144 struct by_vote_against;
146 typedef multi_index_container<
149 ordered_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
150 ordered_non_unique< tag<by_account>, member< worker_object, account_id_type, &worker_object::worker_account > >,
151 ordered_unique< tag<by_vote_for>, member< worker_object, vote_id_type, &worker_object::vote_for > >,
152 ordered_unique< tag<by_vote_against>, member< worker_object, vote_id_type, &worker_object::vote_against > >,
153 ordered_non_unique< tag<by_end_date>, member< worker_object, time_point_sec, &worker_object::work_end_date> >
static_variant< refund_worker_type, vesting_balance_worker_type, burn_worker_type > worker_type
share_type approving_stake() const
time_point_sec work_begin_date
Time at which this worker begins receiving pay, if elected.
tracks the blockchain state in an extensible manner
void pay_worker(share_type pay, database &)
FC_REFLECT_TYPENAME(fc::log_message)
void pay_worker(share_type pay, database &db)
multi_index_container< worker_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_non_unique< tag< by_account >, member< worker_object, account_id_type, &worker_object::worker_account > >, ordered_unique< tag< by_vote_for >, member< worker_object, vote_id_type, &worker_object::vote_for > >, ordered_unique< tag< by_vote_against >, member< worker_object, vote_id_type, &worker_object::vote_against > >, ordered_non_unique< tag< by_end_date >, member< worker_object, time_point_sec, &worker_object::work_end_date > > >> worker_object_multi_index_type
#define MAP_OBJECT_ID_TO_TYPE(OBJECT)
An ID for some votable object.
share_type total_burned
Record of how much this worker has burned in his lifetime.
void pay_worker(share_type pay, database &)
A worker who sends his pay to a vesting balance.
time_point_sec work_end_date
Time at which this worker will cease to receive pay. Worker will be deleted at this time.
string url
URL to a web page representing this worker.
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
share_type daily_pay
Amount in CORE this worker will be paid each day.
vesting_balance_id_type balance
The balance this worker pays into.
worker_type worker
ID of this worker's pay balance.
bool is_active(fc::time_point_sec now) const
Worker object contains the details of a blockchain worker. See The Blockchain Worker System for detai...
string name
Human-readable name for the worker.
share_type total_burned
Record of how much this worker has burned in his lifetime.
uint64_t total_votes_against
A worker who returns all of his pay to the reserve.
A worker who permanently destroys all of his pay.
account_id_type worker_account
ID of the account which owns this worker.
vote_id_type vote_for
Voting ID which represents approval of this worker.
vote_id_type vote_against
Voting ID which represents disapproval of this worker.