|
BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Worker object contains the details of a blockchain worker. See The Blockchain Worker System for details. More...
#include <worker_object.hpp>
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< object > | clone () 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< object > | clone () 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 |
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.
|
inline |
Definition at line 137 of file worker_object.hpp.
|
inline |
Definition at line 133 of file worker_object.hpp.
| 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.
| string graphene::chain::worker_object::name |
Human-readable name for the worker.
Definition at line 121 of file worker_object.hpp.
| uint64_t graphene::chain::worker_object::total_votes_against = 0 |
Definition at line 131 of file worker_object.hpp.
| uint64_t graphene::chain::worker_object::total_votes_for = 0 |
Definition at line 130 of file worker_object.hpp.
| string graphene::chain::worker_object::url |
URL to a web page representing this worker.
Definition at line 123 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 128 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 126 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 113 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 115 of file worker_object.hpp.
| worker_type graphene::chain::worker_object::worker |
ID of this worker's pay balance.
Definition at line 119 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 111 of file worker_object.hpp.
1.8.17