BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
30 #include <graphene/chain/hardfork.hpp>
34 namespace graphene {
namespace chain {
41 FC_ASSERT( HARDFORK_CORE_2103_PASSED(block_time),
"Not allowed until hardfork 2103" );
63 aso.total_pol_value += new_ticket_object.
value;
66 return new_ticket_object.id;
107 obj.init_split( block_time, *
_ticket, op.
target_type, *op.amount_for_new_target, version );
126 if( delta_value != 0 )
#define FC_CAPTURE_AND_RETHROW(...)
generic_operation_result do_apply(const ticket_update_operation &op)
tracks the blockchain state in an extensible manner
time_point_sec head_block_time() const
share_type total_pol_value
Total value of tickets whose current type is not lock_forever.
ticket_id_type ticket
The ticket to update.
time_point_sec next_maintenance_time
a ticket for governance voting
optional< asset > amount_for_new_target
The amount to be used for the new target.
ticket_version
Version of a ticket.
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.
share_type value
The current value of the ticket.
account_id_type account
The account who owns the ticket.
Updates an existing ticket.
void adjust_amount(const asset &delta_amount, ticket_version version)
Adjust amount and update member variables accordingly.
ticket_type current_type
The current type of the ticket.
ticket_type target_type
The target type of the ticket.
flat_set< object_id_type > updated_objects
const ticket_object * _ticket
unsigned_int target_type
New target ticket type, see ticket_type.
account_id_type account
The account who owns the ticket.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
void_result do_evaluate(const ticket_create_operation &op)
account_id_type account
The account who creates the ticket.
flat_set< object_id_type > new_objects
asset amount
The amount of the ticket.
void update_target_type(time_point_sec now, ticket_type new_target_type, ticket_version version)
Set a new target type and update member variables accordingly.
void_result do_evaluate(const ticket_update_operation &op)
asset amount
The token type and amount in the ticket.
object_id_type do_apply(const ticket_create_operation &op)
const account_statistics_object & get_account_stats_by_owner(account_id_type owner) const
generic_operation_result process_tickets()
const dynamic_global_property_object & get_dynamic_global_properties() const
flat_set< object_id_type > removed_objects
void modify(const T &obj, const Lambda &m)
share_type total_core_pol
Total amount of core token in other tickets.