Types

operation_history_object

Tracks the history of all logical operations on blockchain state.
All operations and virtual operations result in the creation of an operation_history_object that is maintained on disk as a stack. Each real or virtual operation is assigned a unique ID / sequence number that it can be referenced by.
Note:
    by default these objects are not tracked, the plugin must be loaded fore these objects to be maintained.
    this object is READ ONLY it can never be modified
1
class operation_history_object
2
{
3
public:
4
operation op;
5
operation_result result;
6
/** the block that caused this operation */
7
uint32_t block_num = 0;
8
/** the transaction in the block */
9
uint16_t trx_in_block = 0;
10
/** the operation within the transaction */
11
uint16_t op_in_trx = 0;
12
/** any virtual operations implied by operation in block */
13
uint16_t virtual_op = 0;
14
15
/** id of the operation_history_object containing proposal_create_operation*/
16
optional<operation_history_object> proposal_hist_id;
17
18
extensions_type extensions;
19
};
Copied!

account_transaction_history_object

A node in a linked list of operation_history_objects.
1
class account_transaction_history_object
2
{
3
public:
4
account_id_type account; /// the account this operation applies to
5
operation_history_id_type operation_id;
6
uint64_t sequence = 0; /// the operation position within the given account
7
account_transaction_history_id_type next;
8
9
extensions_type extensions;
10
};
Copied!

contract_history_object

Description is similar account_transaction_history_object.
1
class contract_history_object
2
{
3
public:
4
contract_id_type contract; /// the contract this operation applies to
5
operation_history_id_type operation_id;
6
uint64_t sequence = 0; /// the operation position within the given contract
7
contract_history_id_type next;
8
9
//id of the history object containing parent contract operation
10
//if this object refers to contract internal operation
11
optional<operation_history_id_type> parent_op_id;
12
13
extensions_type extensions;
14
};
Copied!
Last modified 11mo ago