BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | 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, protocol_ids, worker_object_type > graphene::db::base_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, protocol_ids, worker_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< worker_object >
std::unique_ptr< objectclone () 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< objectclone () const =0
 
virtual fc::variant to_variant () const =0
 
virtual std::vector< char > pack () const =0
 

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
 

Additional Inherited Members

- Static Public Attributes inherited from graphene::db::abstract_object< worker_object, protocol_ids, worker_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

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

◆ approving_stake()

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

Definition at line 137 of file worker_object.hpp.

◆ is_active()

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

Definition at line 133 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 117 of file worker_object.hpp.

◆ name

string graphene::chain::worker_object::name

Human-readable name for the worker.

Definition at line 121 of file worker_object.hpp.

◆ total_votes_against

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

Definition at line 131 of file worker_object.hpp.

◆ total_votes_for

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

Definition at line 130 of file worker_object.hpp.

◆ url

string graphene::chain::worker_object::url

URL to a web page representing this worker.

Definition at line 123 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 128 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 126 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 113 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 115 of file worker_object.hpp.

◆ worker

worker_type graphene::chain::worker_object::worker

ID of this worker's pay balance.

Definition at line 119 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 111 of file worker_object.hpp.


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