BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
small_ops.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 BitShares Blockchain Foundation, 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 
30 
31 #include <fc/io/raw.hpp>
32 
33 namespace graphene { namespace protocol {
34 
35 FC_IMPLEMENT_EXCEPTION( protocol_exception, 4000000, "protocol exception" )
36 
37 FC_IMPLEMENT_DERIVED_EXCEPTION( transaction_exception, protocol_exception, 4010000,
38  "transaction validation exception" )
39 
40 FC_IMPLEMENT_DERIVED_EXCEPTION( tx_missing_active_auth, transaction_exception, 4010001,
41  "missing required active authority" )
42 FC_IMPLEMENT_DERIVED_EXCEPTION( tx_missing_owner_auth, transaction_exception, 4010002,
43  "missing required owner authority" )
44 FC_IMPLEMENT_DERIVED_EXCEPTION( tx_missing_other_auth, transaction_exception, 4010003,
45  "missing required other authority" )
46 FC_IMPLEMENT_DERIVED_EXCEPTION( tx_irrelevant_sig, transaction_exception, 4010004,
47  "irrelevant signature included" )
48 FC_IMPLEMENT_DERIVED_EXCEPTION( tx_duplicate_sig, transaction_exception, 4010005,
49  "duplicate signature included" )
50 FC_IMPLEMENT_DERIVED_EXCEPTION( invalid_committee_approval, transaction_exception, 4010006,
51  "committee account cannot directly approve transaction" )
52 FC_IMPLEMENT_DERIVED_EXCEPTION( insufficient_fee, transaction_exception, 4010007, "insufficient fee" )
53 
54 } } // graphene::protocol
55 
56 
60 
graphene::protocol::vesting_balance_withdraw_operation
Withdraw from a vesting balance.
Definition: vesting.hpp:101
graphene::protocol::vesting_balance_create_operation
Create a vesting balance.
Definition: vesting.hpp:74
fc::ecc::signature
zero_initialized_array< unsigned char, 72 > signature
Definition: elliptic.hpp:26
graphene::protocol::fba_distribute_operation
Definition: fba.hpp:30
graphene::protocol::transaction
groups operations that should be applied atomically
Definition: transaction.hpp:69
graphene::protocol::FC_IMPLEMENT_DERIVED_EXCEPTION
FC_IMPLEMENT_DERIVED_EXCEPTION(transaction_exception, protocol_exception, 4010000, "transaction validation exception") FC_IMPLEMENT_DERIVED_EXCEPTION(tx_missing_active_auth
graphene::protocol::transaction_exception
transaction_exception
Definition: small_ops.cpp:40
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:86
graphene::protocol::buyback_account_options
Definition: buyback.hpp:30
fba.hpp
FC_IMPLEMENT_EXCEPTION
#define FC_IMPLEMENT_EXCEPTION(TYPE, CODE, WHAT)
Definition: exception.hpp:281
graphene::protocol::balance_claim_operation
Claim a balance in a graphene::chain::balance_object.
Definition: balance.hpp:40
balance.hpp
graphene::protocol::authority
Identifies a weighted set of keys and accounts that must approve operations.
Definition: authority.hpp:34
buyback.hpp
exceptions.hpp
graphene
Definition: api.cpp:48
vesting.hpp
raw.hpp