BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
43 update_value( version );
92 update_value( version );
98 update_value( version );
133 if( delta_value <= 0 )
135 if(
value <= delta_value )
143 value -= delta_value;
161 update_value( version );
180 (next_auto_update_time)
181 (next_type_downgrade_time)
static constexpr uint32_t lock_forever_update_steps
ticket_status status
The status of the ticket.
a ticket for governance voting
ticket_version
Version of a ticket.
ticket_type
Type of a ticket.
static time_point_sec maximum()
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
share_type value
The current value of the ticket.
void auto_update(ticket_version version)
Update the ticket when it's time.
time_point_sec next_type_downgrade_time
When the account has ever started a downgrade or withdrawal, the scheduled auto-update time is stored...
static constexpr uint32_t seconds_to_cancel_charging
void adjust_amount(const asset &delta_amount, ticket_version version)
Adjust amount and update member variables accordingly.
static constexpr uint32_t seconds_per_charging_step
#define FC_REFLECT_DERIVED_NO_TYPENAME(TYPE, INHERITS, MEMBERS)
ticket_type current_type
The current type of the ticket.
ticket_type target_type
The target type of the ticket.
account_id_type account
The account who owns 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.
static uint8_t value_multiplier(ticket_type i, ticket_version version)
void init_new(time_point_sec now, account_id_type new_account, ticket_type new_target_type, const asset &new_amount, ticket_version version)
Initialize member variables for a ticket newly created from account balance.
void init_split(time_point_sec now, const ticket_object &old_ticket, ticket_type new_target_type, const asset &new_amount, ticket_version version)
Initialize member variables for a ticket split from another ticket.
asset amount
The token type and amount in the ticket.
static uint32_t seconds_to_downgrade(ticket_type i)
time_point_sec next_auto_update_time
The next time that the ticket will be automatically updated.
static constexpr uint32_t seconds_per_lock_forever_update_step
base for all database objects