BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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 
#define FC_IMPLEMENT_EXCEPTION(TYPE, CODE, WHAT)
Definition: exception.hpp:281
Identifies a weighted set of keys and accounts that must approve operations.
Definition: authority.hpp:34
Definition: api.cpp:56
FC_IMPLEMENT_DERIVED_EXCEPTION(transaction_exception, protocol_exception, 4010000,"transaction validation exception") FC_IMPLEMENT_DERIVED_EXCEPTION(tx_missing_active_auth
groups operations that should be applied atomically
Definition: transaction.hpp:68
Claim a balance in a balance_object.
Definition: balance.hpp:38
Create a vesting balance.The chain allows a user to create a vesting balance. Normally, vesting balances are created automatically as part of cashback and worker operations. This operation allows vesting balances to be created manually as well.
Definition: vesting.hpp:74
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:74
Withdraw from a vesting balance.Withdrawal from a not-completely-mature vesting balance will result i...
Definition: vesting.hpp:101
zero_initialized_array< unsigned char, 72 > signature
Definition: elliptic.hpp:26