29 #include <boost/multi_index/composite_key.hpp> 31 namespace graphene {
namespace chain {
49 protocol_ids, operation_history_object_type>
55 const time_point_sec& bt )
96 implementation_ids, impl_account_history_object_type>
101 uint64_t sequence = 0;
111 ordered_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
112 ordered_unique< tag<by_block>,
114 member< operation_history_object, uint32_t, &operation_history_object::block_num>,
115 member< operation_history_object, uint16_t, &operation_history_object::trx_in_block>,
116 member< operation_history_object, uint16_t, &operation_history_object::op_in_trx>,
117 member< operation_history_object, uint32_t, &operation_history_object::virtual_op>
120 ordered_unique< tag<by_time>,
122 member< operation_history_object, time_point_sec, &operation_history_object::block_time>,
123 member< object, object_id_type, &object::id >
125 composite_key_compare<
126 std::greater< time_point_sec >,
127 std::greater< object_id_type >
142 ordered_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
143 ordered_unique< tag<by_seq>,
144 composite_key< account_history_object,
145 member< account_history_object, account_id_type, &account_history_object::account>,
146 member< account_history_object, uint64_t, &account_history_object::sequence>
149 ordered_unique< tag<by_op>,
150 composite_key< account_history_object,
151 member< account_history_object, account_id_type, &account_history_object::account>,
152 member< account_history_object, operation_history_id_type, &account_history_object::operation_id>
154 composite_key_compare<
155 std::less< account_id_type >,
156 std::greater< operation_history_id_type >
159 ordered_non_unique< tag<by_opid>,
160 member< account_history_object, operation_history_id_type, &account_history_object::operation_id>
tracks the history of all logical operations on blockchain stateAll operations and virtual operations...
multi_index_container< account_history_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_unique< tag< by_seq >, composite_key< account_history_object, member< account_history_object, account_id_type, &account_history_object::account >, member< account_history_object, uint64_t, &account_history_object::sequence > > >, ordered_unique< tag< by_op >, composite_key< account_history_object, member< account_history_object, account_id_type, &account_history_object::account >, member< account_history_object, operation_history_id_type, &account_history_object::operation_id > >, composite_key_compare< std::less< account_id_type >, std::greater< operation_history_id_type > > >, ordered_non_unique< tag< by_opid >, member< account_history_object, operation_history_id_type, &account_history_object::operation_id > > > > account_history_multi_idx_type
#define MAP_OBJECT_ID_TO_TYPE(OBJECT)
operation_history_object()=default
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 >
time_point_sec block_time
account_history_id_type next
the operation position within the given account
operation_history_id_type operation_id
the account this operation applies to
FC_REFLECT_TYPENAME(fc::log_message)
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
a node in a linked list of operation_history_objectsAccount history is important for users and wallet...
operation_history_object(const operation &o)
operation_history_object(const operation &o, uint32_t bn, uint16_t tib, uint16_t oit, uint32_t vo, bool iv, const time_point_sec &bt)
multi_index_container< operation_history_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_unique< tag< by_block >, composite_key< operation_history_object, member< operation_history_object, uint32_t, &operation_history_object::block_num >, member< operation_history_object, uint16_t, &operation_history_object::trx_in_block >, member< operation_history_object, uint16_t, &operation_history_object::op_in_trx >, member< operation_history_object, uint32_t, &operation_history_object::virtual_op > > >, ordered_unique< tag< by_time >, composite_key< operation_history_object, member< operation_history_object, time_point_sec, &operation_history_object::block_time >, member< object, object_id_type, &object::id > >, composite_key_compare< std::greater< time_point_sec >, std::greater< object_id_type > > > > > operation_history_mlti_idx_type