Scorum
operations.cpp
Go to the documentation of this file.
2 
4 
5 namespace scorum {
6 namespace protocol {
7 
9 {
10  typedef bool result_type;
11 
12  template <typename T> bool operator()(T&& v) const
13  {
14  return false;
15  }
16  bool operator()(const transfer_operation&) const
17  {
18  return true;
19  }
21  {
22  return true;
23  }
24 };
25 
27 {
28  return op.visit(is_market_op_visitor());
29 }
30 
32 {
33  typedef bool result_type;
34 
35  template <typename T> bool operator()(const T& v) const
36  {
37  return v.is_virtual();
38  }
39 };
40 
42 {
43  return op.visit(is_vop_visitor());
44 }
45 }
46 } // scorum::protocol
47 
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 DEFINE_OPERATION_TYPE(OperationType)
bool operator()(const transfer_to_scorumpower_operation &) const
Definition: operations.cpp:20
bool operator()(const transfer_operation &) const
Definition: operations.cpp:16
bool operator()(const T &v) const
Definition: operations.cpp:35
Transfers SCR from one account to another.