BitShares-Core  5.0.0
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:
graphene::db::abstract_object< worker_object > graphene::db::object

Public Member Functions

bool is_active (fc::time_point_sec now) const
 
share_type approving_stake () const
 
- Public Member Functions inherited from graphene::db::abstract_object< worker_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
 
virtual void move_from (object &obj)
 
virtual variant to_variant () const
 
virtual vector< char > pack () const
 
- Public Member Functions inherited from graphene::db::object
 object ()
 
virtual ~object ()
 

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
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Static Public Attributes

static constexpr uint8_t space_id = protocol_ids
 
static constexpr 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 107 of file worker_object.hpp.

Member Function Documentation

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

Definition at line 140 of file worker_object.hpp.

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

Definition at line 136 of file worker_object.hpp.

Member Data Documentation

share_type graphene::chain::worker_object::daily_pay

Amount in CORE this worker will be paid each day.

Definition at line 120 of file worker_object.hpp.

string graphene::chain::worker_object::name

Human-readable name for the worker.

Definition at line 124 of file worker_object.hpp.

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

Definition at line 110 of file worker_object.hpp.

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

Definition at line 134 of file worker_object.hpp.

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

Definition at line 133 of file worker_object.hpp.

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

Definition at line 111 of file worker_object.hpp.

string graphene::chain::worker_object::url

URL to a web page representing this worker.

Definition at line 126 of file worker_object.hpp.

vote_id_type graphene::chain::worker_object::vote_against

Voting ID which represents disapproval of this worker.

Definition at line 131 of file worker_object.hpp.

vote_id_type graphene::chain::worker_object::vote_for

Voting ID which represents approval of this worker.

Definition at line 129 of file worker_object.hpp.

time_point_sec graphene::chain::worker_object::work_begin_date

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

Definition at line 116 of file worker_object.hpp.

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 118 of file worker_object.hpp.

worker_type graphene::chain::worker_object::worker

ID of this worker's pay balance.

Definition at line 122 of file worker_object.hpp.

account_id_type graphene::chain::worker_object::worker_account

ID of the account which owns this worker.

Definition at line 114 of file worker_object.hpp.


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