BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
operations.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cryptonomex, Inc., and contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 #pragma once
45 
46 namespace graphene { namespace protocol {
47 
53  typedef fc::static_variant<
54  transfer_operation,
55  limit_order_create_operation,
56  limit_order_cancel_operation,
57  call_order_update_operation,
58  fill_order_operation, // VIRTUAL
59  account_create_operation,
60  account_update_operation,
61  account_whitelist_operation,
62  account_upgrade_operation,
63  account_transfer_operation,
64  asset_create_operation,
65  asset_update_operation,
66  asset_update_bitasset_operation,
67  asset_update_feed_producers_operation,
68  asset_issue_operation,
69  asset_reserve_operation,
70  asset_fund_fee_pool_operation,
71  asset_settle_operation,
72  asset_global_settle_operation,
73  asset_publish_feed_operation,
74  witness_create_operation,
75  witness_update_operation,
76  proposal_create_operation,
77  proposal_update_operation,
78  proposal_delete_operation,
79  withdraw_permission_create_operation,
80  withdraw_permission_update_operation,
81  withdraw_permission_claim_operation,
82  withdraw_permission_delete_operation,
83  committee_member_create_operation,
84  committee_member_update_operation,
85  committee_member_update_global_parameters_operation,
86  vesting_balance_create_operation,
87  vesting_balance_withdraw_operation,
88  worker_create_operation,
89  custom_operation,
90  assert_operation,
91  balance_claim_operation,
92  override_transfer_operation,
93  transfer_to_blind_operation,
94  blind_transfer_operation,
95  transfer_from_blind_operation,
96  asset_settle_cancel_operation, // VIRTUAL
97  asset_claim_fees_operation,
98  fba_distribute_operation, // VIRTUAL
99  bid_collateral_operation,
100  execute_bid_operation, // VIRTUAL
101  asset_claim_pool_operation,
102  asset_update_issuer_operation,
103  htlc_create_operation,
104  htlc_redeem_operation,
105  htlc_redeemed_operation, // VIRTUAL
106  htlc_extend_operation,
107  htlc_refund_operation, // VIRTUAL
108  custom_authority_create_operation,
109  custom_authority_update_operation,
110  custom_authority_delete_operation,
111  ticket_create_operation,
112  ticket_update_operation,
113  liquidity_pool_create_operation,
114  liquidity_pool_delete_operation,
115  liquidity_pool_deposit_operation,
116  liquidity_pool_withdraw_operation,
117  liquidity_pool_exchange_operation
119 
121 
129  flat_set<account_id_type>& active,
130  flat_set<account_id_type>& owner,
131  vector<authority>& other,
132  bool ignore_custom_operation_required_auths );
133 
134  void operation_validate( const operation& op );
135 
139  struct op_wrapper
140  {
141  public:
144  };
145 
146 } } // graphene::protocol
147 
149 FC_REFLECT( graphene::protocol::op_wrapper, (op) )
150 
151 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::op_wrapper )
op_wrapper(const operation &op=operation())
Definition: operations.hpp:142
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition: reflect.hpp:386
necessary to support nested operations inside the proposal_create_operation
Definition: operations.hpp:139
Definition: api.cpp:56
fc::static_variant< transfer_operation, limit_order_create_operation, limit_order_cancel_operation, call_order_update_operation, fill_order_operation, account_create_operation, account_update_operation, account_whitelist_operation, account_upgrade_operation, account_transfer_operation, asset_create_operation, asset_update_operation, asset_update_bitasset_operation, asset_update_feed_producers_operation, asset_issue_operation, asset_reserve_operation, asset_fund_fee_pool_operation, asset_settle_operation, asset_global_settle_operation, asset_publish_feed_operation, witness_create_operation, witness_update_operation, proposal_create_operation, proposal_update_operation, proposal_delete_operation, withdraw_permission_create_operation, withdraw_permission_update_operation, withdraw_permission_claim_operation, withdraw_permission_delete_operation, committee_member_create_operation, committee_member_update_operation, committee_member_update_global_parameters_operation, vesting_balance_create_operation, vesting_balance_withdraw_operation, worker_create_operation, custom_operation, assert_operation, balance_claim_operation, override_transfer_operation, transfer_to_blind_operation, blind_transfer_operation, transfer_from_blind_operation, asset_settle_cancel_operation, asset_claim_fees_operation, fba_distribute_operation, bid_collateral_operation, execute_bid_operation, asset_claim_pool_operation, asset_update_issuer_operation, htlc_create_operation, htlc_redeem_operation, htlc_redeemed_operation, htlc_extend_operation, htlc_refund_operation, custom_authority_create_operation, custom_authority_update_operation, custom_authority_delete_operation, ticket_create_operation, ticket_update_operation, liquidity_pool_create_operation, liquidity_pool_delete_operation, liquidity_pool_deposit_operation, liquidity_pool_withdraw_operation, liquidity_pool_exchange_operation > operation
Definition: operations.hpp:118
FC_REFLECT_TYPENAME(fc::log_message)
void operation_validate(const operation &op)
Definition: operations.cpp:98
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:73
void operation_get_required_authorities(const operation &op, flat_set< account_id_type > &active, flat_set< account_id_type > &owner, vector< authority > &other, bool ignore_custom_operation_required_auths)
Definition: operations.cpp:103