33 namespace graphene {
namespace protocol {
71 return std::count_if( votes.begin(), votes.end(),
72 [](
vote_id_type v){
return v.type() == vote_id_type::vote_type::committee; } );
106 uint16_t referrer_percent = 0;
122 a.insert( registrar );
123 if( extensions.
value.buyback_options.valid() )
124 a.insert( extensions.
value.buyback_options->asset_to_buy_issuer );
169 {
return owner || extensions.
value.owner_special_authority.valid(); }
172 {
if( is_owner_update() ) a.insert( account ); }
175 {
if( !is_owner_update() ) a.insert( account ); }
204 white_and_black_listed = white_listed | black_listed
215 uint8_t new_listing = no_listing;
218 account_id_type
fee_payer()
const {
return authorizing_account; }
246 bool upgrade_to_lifetime_member =
false;
249 account_id_type
fee_payer()
const {
return account_to_upgrade; }
284 (no_listing)(white_listed)(black_listed)(white_and_black_listed))
290 (referrer)(referrer_percent)
297 (fee)(account)(owner)(active)(new_options)(
extensions)
301 (fee)(account_to_upgrade)(upgrade_to_lifetime_member)(
extensions) )
optional< special_authority > active_special_authority
future_extensions::flat_set_type extensions_type
account_id_type registrar
This account pays the fee. Must be a lifetime member.
extension< ext > extensions
extension< ext > extensions
Identifies a weighted set of keys and accounts that must approve operations.
extensions_type extensions
Manage an account's membership statusThis operation is used to upgrade an account to a member...
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
account_id_type fee_payer() const
bool is_cheap_name(const string &n)
Update an existing account.
account_id_type account_to_upgrade
The account to upgrade; must not already be a lifetime member.
#define GRAPHENE_PROXY_TO_SELF_ACCOUNT
Represents the canonical account for specifying you will vote directly (as opposed to a proxy) ...
optional< void_t > null_ext
optional< authority > active
New active authority. This can be updated by the current active authority.
optional< authority > owner
New owner authority. If set, this operation requires owner authority to execute.
optional< account_options > new_options
New account options.
uint16_t num_committee_voted() const
account_id_type voting_account
account_id_type fee_payer() const
provides stack-based nullable value similar to boost::optional
void get_required_active_authorities(flat_set< account_id_type > &a) const
FC_REFLECT_TYPENAME(fc::log_message)
FC_REFLECT_ENUM(graphene::net::core_message_type_enum,(trx_message_type)(block_message_type)(core_message_type_first)(item_ids_inventory_message_type)(blockchain_item_ids_inventory_message_type)(fetch_blockchain_item_ids_message_type)(fetch_items_message_type)(item_not_available_message_type)(hello_message_type)(connection_accepted_message_type)(connection_rejected_message_type)(address_request_message_type)(address_message_type)(closing_connection_message_type)(current_time_request_message_type)(current_time_reply_message_type)(check_firewall_message_type)(check_firewall_reply_message_type)(get_current_connections_request_message_type)(get_current_connections_reply_message_type)(core_message_type_last))(different_chain)(already_connected)(connected_to_self)(not_accepting_connections)(blocked)(invalid_hello_message)(client_too_old))(inbound)(outbound))(firewalled)(not_firewalled))(unable_to_connect)(connection_successful)) namespace std
account_id_type authorizing_account
The account which is specifying an opinion of another account.
These are the fields which can be updated by the active authority.
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
flat_set< vote_id_type > votes
account_id_type referrer
This account receives a portion of the fee split between registrar and referrer. Must be a member...
extensions_type extensions
#define GRAPHENE_BLOCKCHAIN_PRECISION
account_id_type fee_payer() const
account_id_type new_owner
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
extensions_type extensions
optional< void_t > null_ext
An ID for some votable object.
bool is_valid_name(const string &name)
bool is_voting() const
Whether this account is voting.
This operation is used to whitelist and blacklist accounts, primarily for transacting in whitelisted ...
account_id_type fee_payer() const
asset fee
Paid by authorizing_account.
account_id_type account
The account to update.
optional< buyback_account_options > buyback_options
void get_required_active_authorities(flat_set< account_id_type > &a) const
extensions_type extensions
bool is_owner_update() const
optional< special_authority > owner_special_authority
optional< special_authority > owner_special_authority
transfers the account to another account while clearing the white listIn theory an account can be tra...
account_id_type account_id
account_id_type fee_payer() const
optional< special_authority > active_special_authority
account_id_type account_to_list
The account being opined about.
void get_required_owner_authorities(flat_set< account_id_type > &a) const