Scorum
operations.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace scorum {
8 namespace protocol {
9 
13 using operation = fc::static_variant<vote_operation,
15 
19 
24 
28 
33 
35 
43 
46 
49 
52 
56 
59 
65 
68 
70 
73 
78 
99 
104 
111 
112  >;
113 
114 /*void operation_get_required_authorities( const operation& op,
115  flat_set<string>& active,
116  flat_set<string>& owner,
117  flat_set<string>& posting,
118  vector<authority>& other );
119 
120 void operation_validate( const operation& op );*/
121 
122 bool is_market_operation(const operation& op);
123 
124 bool is_virtual_operation(const operation& op);
125 } // namespace protocol
126 } // namespace scorum
127 
128 /*namespace fc {
129  void to_variant( const scorum::protocol::operation& var, fc::variant& vo );
130  void from_variant( const fc::variant& var, scorum::protocol::operation& vo );
131 }*/
132 
134 FC_REFLECT_TYPENAME(scorum::protocol::operation)
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
bool is_virtual_operation(const operation &op)
Definition: operations.cpp:41
bool is_market_operation(const operation &op)
Definition: operations.cpp:26
Definition: asset.cpp:15
#define DECLARE_OPERATION_TYPE(OperationType)
Creates new account by registration committee.
Updates account keys or/and metadata.
This operation cancel unmatched bets by id.
Changes recovery account. Will be changed in 30 days.
Closes advertising budget by moderator, remaining funds will be returned to creator.
Closes advertising budget, remaining funds will be returned to creator.
This operation creates game object.
This operation create new game round.
Delegates scorumpower from one account to the other.
With this operation moderator provides game results(wincases)
Proves authority to remove challenge.
Recovers an account to a new authority using a previous authority.
Transfers SCR from one account to another.
Updates advertising budget metadata.
This operation updates game markets list.
This operation update game round results.
This operation updates game start time.
This operation update NFT metadata.