Scorum
proposal_object.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace scorum {
8 namespace chain {
9 
10 class proposal_object : public object<proposal_object_type, proposal_object>
11 {
12 public:
13  using cref_type = std::reference_wrapper<const proposal_object>;
14 
15  CHAINBASE_DEFAULT_DYNAMIC_CONSTRUCTOR(proposal_object, (voted_accounts))
16 
17  id_type id;
19 
21 
22  fc::time_point_sec created;
23  fc::time_point_sec expiration;
24 
26 
27  fc::shared_flat_set<account_name_type> voted_accounts;
28 };
29 
30 struct by_expiration;
31 struct by_data;
32 struct by_created;
33 
34 // clang-format off
35 typedef shared_multi_index_container<proposal_object,
36  indexed_by<ordered_unique<tag<by_id>,
37  member<proposal_object,
39  &proposal_object::id>>,
40  ordered_non_unique<tag<by_expiration>,
41  member<proposal_object,
42  fc::time_point_sec,
44  ordered_non_unique<tag<by_created>,
45  member<proposal_object,
46  fc::time_point_sec,
48  >
50 // clang-format on
51 
52 } // namespace chain
53 } // namespace scorum
54 
55 // clang-format off
57  (id)
58  (creator)
59  (operation)
60  (created)
61  (expiration)
64 // clang-format on
65 CHAINBASE_SET_INDEX_TYPE(scorum::chain::proposal_object, scorum::chain::proposal_object_index)
fc::shared_flat_set< account_name_type > voted_accounts
protocol::percent_type quorum_percent
std::reference_wrapper< const proposal_object > cref_type
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
Definition: game.cpp:4
shared_multi_index_container< proposal_object, indexed_by< ordered_unique< tag< by_id >, member< proposal_object, proposal_id_type, &proposal_object::id > >, ordered_non_unique< tag< by_expiration >, member< proposal_object, fc::time_point_sec, &proposal_object::expiration > >, ordered_non_unique< tag< by_created >, member< proposal_object, fc::time_point_sec, &proposal_object::created > > > > proposal_object_index
fc::static_variant< vote_operation, comment_operation, transfer_operation, transfer_to_scorumpower_operation, withdraw_scorumpower_operation, account_create_by_committee_operation, account_create_operation, account_create_with_delegation_operation, account_update_operation, witness_update_operation, account_witness_vote_operation, account_witness_proxy_operation, delete_comment_operation, comment_options_operation, set_withdraw_scorumpower_route_to_account_operation, set_withdraw_scorumpower_route_to_dev_pool_operation, prove_authority_operation, request_account_recovery_operation, recover_account_operation, change_recovery_account_operation, escrow_approve_operation, escrow_dispute_operation, escrow_release_operation, escrow_transfer_operation, decline_voting_rights_operation, delegate_scorumpower_operation, create_budget_operation, close_budget_operation, proposal_vote_operation, proposal_create_operation, atomicswap_initiate_operation, atomicswap_redeem_operation, atomicswap_refund_operation, close_budget_by_advertising_moderator_operation, update_budget_operation, create_game_operation, cancel_game_operation, update_game_markets_operation, update_game_start_time_operation, post_game_results_operation, post_bet_operation, cancel_pending_bets_operation, delegate_sp_from_reg_pool_operation, create_nft_operation, update_nft_meta_operation, create_game_round_operation, update_game_round_result_operation, adjust_nft_experience_operation, update_nft_name_operation, author_reward_operation, comment_benefficiary_reward_operation, comment_payout_update_operation, comment_reward_operation, curation_reward_operation, hardfork_operation, producer_reward_operation, active_sp_holders_reward_operation, return_scorumpower_delegation_operation, shutdown_witness_operation, witness_miss_block_operation, expired_contract_refund_operation, acc_finished_vesting_withdraw_operation, devpool_finished_vesting_withdraw_operation, acc_to_acc_vesting_withdraw_operation, devpool_to_acc_vesting_withdraw_operation, acc_to_devpool_vesting_withdraw_operation, devpool_to_devpool_vesting_withdraw_operation, proposal_virtual_operation, budget_outgo_operation, budget_owner_income_operation, active_sp_holders_reward_legacy_operation, budget_closing_operation, bets_matched_operation, game_status_changed_operation, bet_resolved_operation, bet_cancelled_operation, bet_restored_operation, bet_updated_operation > operation
Definition: operations.hpp:112
fc::fixed_string_16 account_name_type
Definition: types.hpp:62
uint16_t percent_type
Definition: types.hpp:69
fc::static_variant< registration_committee_add_member_operation, registration_committee_exclude_member_operation, registration_committee_change_quorum_operation, development_committee_add_member_operation, development_committee_exclude_member_operation, development_committee_change_quorum_operation, development_committee_withdraw_vesting_operation, development_committee_transfer_operation, development_committee_empower_advertising_moderator_operation, development_committee_change_post_budgets_auction_properties_operation, development_committee_change_banner_budgets_auction_properties_operation, development_committee_empower_betting_moderator_operation, development_committee_change_betting_resolve_delay_operation > proposal_operation
Definition: asset.cpp:15