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::worker_object Class Reference

Worker object contains the details of a blockchain worker. See The Blockchain Worker System for details. More...

#include <worker_object.hpp>

Inheritance diagram for graphene::chain::worker_object:

Public Member Functions

bool is_active (fc::time_point_sec now) const
 
share_type approving_stake () const
 

Public Attributes

account_id_type worker_account
 ID of the account which owns this worker. More...
 
time_point_sec work_begin_date
 Time at which this worker begins receiving pay, if elected. More...
 
time_point_sec work_end_date
 Time at which this worker will cease to receive pay. Worker will be deleted at this time. More...
 
share_type daily_pay
 Amount in CORE this worker will be paid each day. More...
 
worker_type worker
 ID of this worker's pay balance. More...
 
string name
 Human-readable name for the worker. More...
 
string url
 URL to a web page representing this worker. More...
 
vote_id_type vote_for
 Voting ID which represents approval of this worker. More...
 
vote_id_type vote_against
 Voting ID which represents disapproval of this worker. More...
 
uint64_t total_votes_for = 0
 
uint64_t total_votes_against = 0
 

Static Public Attributes

static const uint8_t space_id = protocol_ids
 
static const uint8_t type_id = worker_object_type
 

Detailed Description

Worker object contains the details of a blockchain worker. See The Blockchain Worker System for details.

Definition at line 105 of file worker_object.hpp.

Member Function Documentation

◆ approving_stake()

share_type graphene::chain::worker_object::approving_stake ( ) const
inline

Definition at line 138 of file worker_object.hpp.

◆ is_active()

bool graphene::chain::worker_object::is_active ( fc::time_point_sec  now) const
inline

Definition at line 134 of file worker_object.hpp.

Member Data Documentation

◆ daily_pay

share_type graphene::chain::worker_object::daily_pay

Amount in CORE this worker will be paid each day.

Definition at line 118 of file worker_object.hpp.

◆ name

string graphene::chain::worker_object::name

Human-readable name for the worker.

Definition at line 122 of file worker_object.hpp.

◆ space_id

const uint8_t graphene::chain::worker_object::space_id = protocol_ids
static

Definition at line 108 of file worker_object.hpp.

◆ total_votes_against

uint64_t graphene::chain::worker_object::total_votes_against = 0

Definition at line 132 of file worker_object.hpp.

◆ total_votes_for

uint64_t graphene::chain::worker_object::total_votes_for = 0

Definition at line 131 of file worker_object.hpp.

◆ type_id

const uint8_t graphene::chain::worker_object::type_id = worker_object_type
static

Definition at line 109 of file worker_object.hpp.

◆ url

string graphene::chain::worker_object::url

URL to a web page representing this worker.

Definition at line 124 of file worker_object.hpp.

◆ vote_against

vote_id_type graphene::chain::worker_object::vote_against

Voting ID which represents disapproval of this worker.

Definition at line 129 of file worker_object.hpp.

◆ vote_for

vote_id_type graphene::chain::worker_object::vote_for

Voting ID which represents approval of this worker.

Definition at line 127 of file worker_object.hpp.

◆ work_begin_date

time_point_sec graphene::chain::worker_object::work_begin_date

Time at which this worker begins receiving pay, if elected.

Definition at line 114 of file worker_object.hpp.

◆ work_end_date

time_point_sec graphene::chain::worker_object::work_end_date

Time at which this worker will cease to receive pay. Worker will be deleted at this time.

Definition at line 116 of file worker_object.hpp.

◆ worker

worker_type graphene::chain::worker_object::worker

ID of this worker's pay balance.

Definition at line 120 of file worker_object.hpp.

◆ worker_account

account_id_type graphene::chain::worker_object::worker_account

ID of the account which owns this worker.

Definition at line 112 of file worker_object.hpp.


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