BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
Public Types | Public Member Functions | Public Attributes | List of all members
graphene::chain::hardfork_visitor Struct Reference

The hardfork_visitor struct checks whether a given operation type has been hardforked in or not. More...

#include <hardfork_visitor.hpp>

Public Types

using result_type = bool
 
using first_unforked_op = protocol::custom_authority_create_operation
 
using BSIP_40_ops = fc::typelist::list< protocol::custom_authority_create_operation, protocol::custom_authority_update_operation, protocol::custom_authority_delete_operation >
 
using hf2103_ops = fc::typelist::list< protocol::ticket_create_operation, protocol::ticket_update_operation >
 
using liquidity_pool_ops = fc::typelist::list< protocol::liquidity_pool_create_operation, protocol::liquidity_pool_delete_operation, protocol::liquidity_pool_deposit_operation, protocol::liquidity_pool_withdraw_operation, protocol::liquidity_pool_exchange_operation >
 
using samet_fund_ops = fc::typelist::list< protocol::samet_fund_create_operation, protocol::samet_fund_delete_operation, protocol::samet_fund_update_operation, protocol::samet_fund_borrow_operation, protocol::samet_fund_repay_operation >
 
using credit_offer_ops = fc::typelist::list< protocol::credit_offer_create_operation, protocol::credit_offer_delete_operation, protocol::credit_offer_update_operation, protocol::credit_offer_accept_operation, protocol::credit_deal_repay_operation, protocol::credit_deal_expired_operation >
 

Public Member Functions

 hardfork_visitor (const fc::time_point_sec &head_block_time)
 

Public Attributes

fc::time_point_sec now
 

Detailed Description

The hardfork_visitor struct checks whether a given operation type has been hardforked in or not.

This visitor can be invoked in several different ways, including operation::visit, typelist::runtime::dispatch, or direct invocation by calling the visit() method passing an operation variant, narrow operation type, operation tag, or templating on the narrow operation type

Definition at line 44 of file hardfork_visitor.hpp.

Member Typedef Documentation

◆ BSIP_40_ops

Definition at line 49 of file hardfork_visitor.hpp.

◆ credit_offer_ops

Definition at line 67 of file hardfork_visitor.hpp.

◆ first_unforked_op

Definition at line 46 of file hardfork_visitor.hpp.

◆ hf2103_ops

Definition at line 51 of file hardfork_visitor.hpp.

◆ liquidity_pool_ops

Definition at line 56 of file hardfork_visitor.hpp.

◆ result_type

Definition at line 45 of file hardfork_visitor.hpp.

◆ samet_fund_ops

Definition at line 61 of file hardfork_visitor.hpp.

Constructor & Destructor Documentation

◆ hardfork_visitor()

graphene::chain::hardfork_visitor::hardfork_visitor ( const fc::time_point_sec head_block_time)
inlineexplicit
Note
using head block time for all operations

Definition at line 71 of file hardfork_visitor.hpp.

Member Data Documentation

◆ now

fc::time_point_sec graphene::chain::hardfork_visitor::now

Definition at line 68 of file hardfork_visitor.hpp.


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