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