BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Types | Public Member Functions | Protected Member Functions | List of all members
graphene::wallet::detail::operation_printer Struct Reference

#include <operation_printer.hpp>

Public Types

typedef std::string result_type
 Return the decrypted memo if a memo exists, otherwise return an empty string. More...
 

Public Member Functions

 operation_printer (std::ostream &out, const wallet_api_impl &wallet, const graphene::chain::operation_history_object &obj)
 
template<typename T >
std::string operator() (const T &op) const
 
std::string operator() (const graphene::protocol::transfer_operation &op) const
 
std::string operator() (const graphene::protocol::override_transfer_operation &op) const
 
std::string operator() (const graphene::protocol::transfer_from_blind_operation &op) const
 
std::string operator() (const graphene::protocol::transfer_to_blind_operation &op) const
 
std::string operator() (const graphene::protocol::account_create_operation &op) const
 
std::string operator() (const graphene::protocol::account_update_operation &op) const
 
std::string operator() (const graphene::protocol::asset_create_operation &op) const
 
std::string operator() (const graphene::protocol::asset_update_operation &op) const
 
std::string operator() (const graphene::protocol::asset_update_bitasset_operation &op) const
 
std::string operator() (const graphene::protocol::asset_update_feed_producers_operation &op) const
 
std::string operator() (const graphene::protocol::asset_publish_feed_operation &op) const
 
std::string operator() (const graphene::protocol::asset_fund_fee_pool_operation &op) const
 
std::string operator() (const graphene::protocol::asset_claim_pool_operation &op) const
 
std::string operator() (const graphene::protocol::asset_issue_operation &op) const
 
std::string operator() (const graphene::protocol::asset_reserve_operation &op) const
 
std::string operator() (const graphene::protocol::asset_settle_operation &op) const
 
std::string operator() (const graphene::protocol::call_order_update_operation &op) const
 
std::string operator() (const graphene::protocol::limit_order_create_operation &op) const
 
std::string operator() (const graphene::protocol::limit_order_cancel_operation &op) const
 
std::string operator() (const graphene::protocol::fill_order_operation &op) const
 
std::string operator() (const graphene::protocol::proposal_update_operation &op) const
 
std::string operator() (const graphene::protocol::htlc_create_operation &op) const
 
std::string operator() (const graphene::protocol::htlc_redeem_operation &op) const
 
std::string operator() (const graphene::protocol::htlc_redeemed_operation &op) const
 

Protected Member Functions

std::string print_memo (const fc::optional< graphene::protocol::memo_data > &memo) const
 
void print_preimage (const std::vector< char > &preimage) const
 
void print_redeem (const graphene::protocol::htlc_id_type &id, const std::string &redeemer, const std::vector< char > &preimage, const graphene::protocol::asset &op_fee) const
 
void print_result () const
 

Detailed Description

Definition at line 56 of file operation_printer.hpp.

Member Typedef Documentation

◆ result_type

Return the decrypted memo if a memo exists, otherwise return an empty string.

Definition at line 77 of file operation_printer.hpp.

Constructor & Destructor Documentation

◆ operation_printer()

graphene::wallet::detail::operation_printer::operation_printer ( std::ostream &  out,
const wallet_api_impl wallet,
const graphene::chain::operation_history_object obj 
)
inline

Definition at line 68 of file operation_printer.hpp.

Member Function Documentation

◆ operator()() [1/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::account_create_operation op) const

Definition at line 172 of file operation_printer.cpp.

◆ operator()() [2/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::account_update_operation op) const

Definition at line 182 of file operation_printer.cpp.

◆ operator()() [3/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_claim_pool_operation op) const

Definition at line 250 of file operation_printer.cpp.

◆ operator()() [4/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_create_operation op) const

Definition at line 189 of file operation_printer.cpp.

◆ operator()() [5/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_fund_fee_pool_operation op) const

Definition at line 241 of file operation_printer.cpp.

◆ operator()() [6/25]

string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_issue_operation op) const

Definition at line 216 of file operation_printer.cpp.

◆ operator()() [7/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_publish_feed_operation op) const

Definition at line 275 of file operation_printer.cpp.

◆ operator()() [8/25]

string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_reserve_operation op) const

Definition at line 226 of file operation_printer.cpp.

◆ operator()() [9/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_settle_operation op) const

Definition at line 233 of file operation_printer.cpp.

◆ operator()() [10/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_update_bitasset_operation op) const

Definition at line 209 of file operation_printer.cpp.

◆ operator()() [11/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_update_feed_producers_operation op) const

Definition at line 259 of file operation_printer.cpp.

◆ operator()() [12/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::asset_update_operation op) const

Definition at line 202 of file operation_printer.cpp.

◆ operator()() [13/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::call_order_update_operation op) const

Definition at line 285 of file operation_printer.cpp.

◆ operator()() [14/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::fill_order_operation op) const

Definition at line 311 of file operation_printer.cpp.

◆ operator()() [15/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::htlc_create_operation op) const

Definition at line 340 of file operation_printer.cpp.

◆ operator()() [16/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::htlc_redeem_operation op) const

Definition at line 328 of file operation_printer.cpp.

◆ operator()() [17/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::htlc_redeemed_operation op) const

Definition at line 334 of file operation_printer.cpp.

◆ operator()() [18/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::limit_order_cancel_operation op) const

Definition at line 303 of file operation_printer.cpp.

◆ operator()() [19/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::limit_order_create_operation op) const

Definition at line 294 of file operation_printer.cpp.

◆ operator()() [20/25]

string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::override_transfer_operation op) const

Definition at line 162 of file operation_printer.cpp.

◆ operator()() [21/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::proposal_update_operation op) const

Definition at line 321 of file operation_printer.cpp.

◆ operator()() [22/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::transfer_from_blind_operation op) const

Definition at line 134 of file operation_printer.cpp.

◆ operator()() [23/25]

string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::transfer_operation op) const

Definition at line 153 of file operation_printer.cpp.

◆ operator()() [24/25]

std::string graphene::wallet::detail::operation_printer::operator() ( const graphene::protocol::transfer_to_blind_operation op) const

Definition at line 142 of file operation_printer.cpp.

◆ operator()() [25/25]

template<typename T >
std::string graphene::wallet::detail::operation_printer::operator() ( const T &  op) const
inline

Definition at line 80 of file operation_printer.hpp.

◆ print_memo()

string graphene::wallet::detail::operation_printer::print_memo ( const fc::optional< graphene::protocol::memo_data > &  memo) const
protected

Definition at line 76 of file operation_printer.cpp.

◆ print_preimage()

void graphene::wallet::detail::operation_printer::print_preimage ( const std::vector< char > &  preimage) const
protected

Definition at line 108 of file operation_printer.cpp.

◆ print_redeem()

void graphene::wallet::detail::operation_printer::print_redeem ( const graphene::protocol::htlc_id_type &  id,
const std::string &  redeemer,
const std::vector< char > &  preimage,
const graphene::protocol::asset op_fee 
) const
protected

Definition at line 124 of file operation_printer.cpp.

◆ print_result()

void graphene::wallet::detail::operation_printer::print_result ( ) const
protected

Definition at line 66 of file operation_printer.cpp.


The documentation for this struct was generated from the following files: