BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
33 namespace graphene {
namespace chain {
88 for_id = vote_id_type(vote_id_type::worker, p.next_available_vote_id++);
89 against_id = vote_id_type(vote_id_type::worker, p.next_available_vote_id++);
93 w.worker_account = o.
owner;
100 w.vote_against = against_id;
111 d.current_supply -= pay;
defines vesting in terms of coin-days accrued which allows for dynamic deposit/withdraw
#define FC_CAPTURE_AND_RETHROW(...)
fc::uint128_t coin_seconds_earned
tracks the blockchain state in an extensible manner
time_point_sec head_block_time() const
const T & get(const object_id_type &id) const
void pay_worker(share_type pay, database &)
void pay_worker(share_type pay, database &db)
const T & create(F &&constructor)
void adjust_balance(account_id_type account, asset delta)
Adjust a particular account's balance in a given asset by a delta.
An ID for some votable object.
void deposit(const fc::time_point_sec &now, const asset &amount)
Deposit amount into vesting balance, requiring it to vest before withdrawal.
Create a new worker object.
worker_initializer initializer
This should be set to the initializer appropriate for the type of worker to be created.
share_type total_burned
Record of how much this worker has burned in his lifetime.
void pay_worker(share_type pay, database &)
microseconds days(int64_t d)
A worker who sends his pay to a vesting balance.
fc::time_point_sec coin_seconds_earned_last_update
tracks the asset information that changes frequently
const asset_dynamic_data_object & get_core_dynamic_data() const
time_point_sec work_end_date
void_result do_evaluate(const operation_type &o)
vesting_balance_id_type balance
The balance this worker pays into.
worker_type worker
ID of this worker's pay balance.
int64_t to_seconds() const
result_type operator()(const T &) const
worker_init_visitor(worker_object &w, database &d)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
Worker object contains the details of a blockchain worker. See The Blockchain Worker System for detai...
result_type operator()(const vesting_balance_worker_initializer &i) const
share_type total_burned
Record of how much this worker has burned in his lifetime.
Maintains global state information (committee_member list, current fees)
uint16_t pay_vesting_period_days
#define GRAPHENE_NULL_ACCOUNT
Represents the canonical account with NO authority (nobody can access funds in null account)
visitor::result_type visit(visitor &v)
const global_property_object & get_global_properties() const
time_point_sec work_begin_date
object_id_type do_apply(const operation_type &o)
account_id_type worker_account
ID of the account which owns this worker.
void modify(const T &obj, const Lambda &m)