BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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
47 
48 namespace graphene { namespace protocol {
49 
56  /* 0 */ transfer_operation,
57  /* 1 */ limit_order_create_operation,
58  /* 2 */ limit_order_cancel_operation,
59  /* 3 */ call_order_update_operation,
60  /* 4 */ fill_order_operation, // VIRTUAL
61  /* 5 */ account_create_operation,
62  /* 6 */ account_update_operation,
63  /* 7 */ account_whitelist_operation,
64  /* 8 */ account_upgrade_operation,
65  /* 9 */ account_transfer_operation,
66  /* 10 */ asset_create_operation,
67  /* 11 */ asset_update_operation,
68  /* 12 */ asset_update_bitasset_operation,
69  /* 13 */ asset_update_feed_producers_operation,
70  /* 14 */ asset_issue_operation,
71  /* 15 */ asset_reserve_operation,
72  /* 16 */ asset_fund_fee_pool_operation,
73  /* 17 */ asset_settle_operation,
74  /* 18 */ asset_global_settle_operation,
75  /* 19 */ asset_publish_feed_operation,
76  /* 20 */ witness_create_operation,
77  /* 21 */ witness_update_operation,
78  /* 22 */ proposal_create_operation,
79  /* 23 */ proposal_update_operation,
80  /* 24 */ proposal_delete_operation,
81  /* 25 */ withdraw_permission_create_operation,
82  /* 26 */ withdraw_permission_update_operation,
83  /* 27 */ withdraw_permission_claim_operation,
84  /* 28 */ withdraw_permission_delete_operation,
85  /* 29 */ committee_member_create_operation,
86  /* 30 */ committee_member_update_operation,
87  /* 31 */ committee_member_update_global_parameters_operation,
88  /* 32 */ vesting_balance_create_operation,
89  /* 33 */ vesting_balance_withdraw_operation,
90  /* 34 */ worker_create_operation,
91  /* 35 */ custom_operation,
92  /* 36 */ assert_operation,
93  /* 37 */ balance_claim_operation,
94  /* 38 */ override_transfer_operation,
95  /* 39 */ transfer_to_blind_operation,
96  /* 40 */ blind_transfer_operation,
97  /* 41 */ transfer_from_blind_operation,
98  /* 42 */ asset_settle_cancel_operation, // VIRTUAL
99  /* 43 */ asset_claim_fees_operation,
100  /* 44 */ fba_distribute_operation, // VIRTUAL
101  /* 45 */ bid_collateral_operation,
102  /* 46 */ execute_bid_operation, // VIRTUAL
103  /* 47 */ asset_claim_pool_operation,
104  /* 48 */ asset_update_issuer_operation,
105  /* 49 */ htlc_create_operation,
106  /* 50 */ htlc_redeem_operation,
107  /* 51 */ htlc_redeemed_operation, // VIRTUAL
108  /* 52 */ htlc_extend_operation,
109  /* 53 */ htlc_refund_operation, // VIRTUAL
110  /* 54 */ custom_authority_create_operation,
111  /* 55 */ custom_authority_update_operation,
112  /* 56 */ custom_authority_delete_operation,
113  /* 57 */ ticket_create_operation,
114  /* 58 */ ticket_update_operation,
115  /* 59 */ liquidity_pool_create_operation,
116  /* 60 */ liquidity_pool_delete_operation,
117  /* 61 */ liquidity_pool_deposit_operation,
118  /* 62 */ liquidity_pool_withdraw_operation,
119  /* 63 */ liquidity_pool_exchange_operation,
120  /* 64 */ samet_fund_create_operation,
121  /* 65 */ samet_fund_delete_operation,
122  /* 66 */ samet_fund_update_operation,
123  /* 67 */ samet_fund_borrow_operation,
124  /* 68 */ samet_fund_repay_operation,
125  /* 69 */ credit_offer_create_operation,
126  /* 70 */ credit_offer_delete_operation,
127  /* 71 */ credit_offer_update_operation,
128  /* 72 */ credit_offer_accept_operation,
129  /* 73 */ credit_deal_repay_operation,
130  /* 74 */ credit_deal_expired_operation, // VIRTUAL
131  /* 75 */ liquidity_pool_update_operation,
132  /* 76 */ credit_deal_update_operation,
133  /* 77 */ limit_order_update_operation
134  >;
135 
143  flat_set<account_id_type>& active,
144  flat_set<account_id_type>& owner,
145  vector<authority>& other,
146  bool ignore_custom_operation_required_auths );
147 
148  void operation_validate( const operation& op );
149 
153  struct op_wrapper
154  {
155  explicit op_wrapper(const operation& op = operation()):op(op){}
157  };
158 
159 } } // graphene::protocol
160 
163 
htlc.hpp
worker.hpp
fc::static_variant
Definition: raw_fwd.hpp:27
FC_REFLECT_TYPENAME
FC_REFLECT_TYPENAME(fc::log_message)
witness.hpp
graphene::protocol::operation_validate
void operation_validate(const operation &op)
Definition: operations.cpp:98
samet_fund.hpp
graphene::protocol::op_wrapper::op
operation op
Definition: operations.hpp:156
proposal.hpp
asset_ops.hpp
transfer.hpp
liquidity_pool.hpp
fba.hpp
confidential.hpp
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:85
assert.hpp
graphene::protocol::op_wrapper::op_wrapper
op_wrapper(const operation &op=operation())
Definition: operations.hpp:155
committee_member.hpp
balance.hpp
graphene::protocol::operation_get_required_authorities
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
base.hpp
credit_offer.hpp
account.hpp
market.hpp
custom_authority.hpp
graphene::protocol::op_wrapper
necessary to support nested operations inside the proposal_create_operation
Definition: operations.hpp:153
FC_REFLECT
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition: reflect.hpp:388
withdraw_permission.hpp
ticket.hpp
custom.hpp
graphene
Definition: api.cpp:48
vesting.hpp
graphene::protocol::operation
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, samet_fund_create_operation, samet_fund_delete_operation, samet_fund_update_operation, samet_fund_borrow_operation, samet_fund_repay_operation, credit_offer_create_operation, credit_offer_delete_operation, credit_offer_update_operation, credit_offer_accept_operation, credit_deal_repay_operation, credit_deal_expired_operation, liquidity_pool_update_operation, credit_deal_update_operation, limit_order_update_operation > operation
Definition: operations.hpp:134