BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Static Public Member Functions | List of all members
graphene::protocol::base_operation Struct Reference

#include <base.hpp>

Inheritance diagram for graphene::protocol::base_operation:
graphene::custom_operations::account_storage_map graphene::protocol::account_create_operation graphene::protocol::account_transfer_operation graphene::protocol::account_update_operation graphene::protocol::account_upgrade_operation graphene::protocol::account_whitelist_operation graphene::protocol::assert_operation graphene::protocol::asset_claim_fees_operation graphene::protocol::asset_claim_pool_operation graphene::protocol::asset_create_operation graphene::protocol::asset_fund_fee_pool_operation graphene::protocol::asset_global_settle_operation graphene::protocol::asset_issue_operation graphene::protocol::asset_publish_feed_operation graphene::protocol::asset_reserve_operation graphene::protocol::asset_settle_cancel_operation graphene::protocol::asset_settle_operation graphene::protocol::asset_update_bitasset_operation graphene::protocol::asset_update_feed_producers_operation graphene::protocol::asset_update_issuer_operation graphene::protocol::asset_update_operation graphene::protocol::balance_claim_operation graphene::protocol::bid_collateral_operation graphene::protocol::blind_transfer_operation graphene::protocol::call_order_update_operation graphene::protocol::committee_member_create_operation graphene::protocol::committee_member_update_global_parameters_operation graphene::protocol::committee_member_update_operation graphene::protocol::credit_deal_expired_operation graphene::protocol::credit_deal_repay_operation graphene::protocol::credit_deal_update_operation graphene::protocol::credit_offer_accept_operation graphene::protocol::credit_offer_create_operation graphene::protocol::credit_offer_delete_operation graphene::protocol::credit_offer_update_operation graphene::protocol::custom_authority_create_operation graphene::protocol::custom_authority_delete_operation graphene::protocol::custom_authority_update_operation graphene::protocol::custom_operation graphene::protocol::execute_bid_operation graphene::protocol::fba_distribute_operation graphene::protocol::fill_order_operation graphene::protocol::htlc_create_operation graphene::protocol::htlc_extend_operation graphene::protocol::htlc_redeem_operation graphene::protocol::htlc_redeemed_operation graphene::protocol::htlc_refund_operation graphene::protocol::limit_order_cancel_operation graphene::protocol::limit_order_create_operation graphene::protocol::limit_order_update_operation graphene::protocol::liquidity_pool_create_operation graphene::protocol::liquidity_pool_delete_operation graphene::protocol::liquidity_pool_deposit_operation graphene::protocol::liquidity_pool_exchange_operation graphene::protocol::liquidity_pool_update_operation graphene::protocol::liquidity_pool_withdraw_operation graphene::protocol::override_transfer_operation graphene::protocol::proposal_create_operation graphene::protocol::proposal_delete_operation graphene::protocol::proposal_update_operation graphene::protocol::samet_fund_borrow_operation graphene::protocol::samet_fund_create_operation graphene::protocol::samet_fund_delete_operation graphene::protocol::samet_fund_repay_operation graphene::protocol::samet_fund_update_operation graphene::protocol::ticket_create_operation graphene::protocol::ticket_update_operation graphene::protocol::transfer_from_blind_operation graphene::protocol::transfer_operation graphene::protocol::transfer_to_blind_operation graphene::protocol::vesting_balance_create_operation graphene::protocol::vesting_balance_withdraw_operation graphene::protocol::withdraw_permission_claim_operation graphene::protocol::withdraw_permission_create_operation graphene::protocol::withdraw_permission_delete_operation graphene::protocol::withdraw_permission_update_operation graphene::protocol::witness_create_operation graphene::protocol::witness_update_operation graphene::protocol::worker_create_operation

Public Member Functions

virtual ~base_operation ()=default
 
template<typename T >
share_type calculate_fee (const T &params) const
 
virtual void get_required_authorities (vector< authority > &) const
 
virtual void get_required_active_authorities (flat_set< account_id_type > &) const
 
virtual void get_required_owner_authorities (flat_set< account_id_type > &) const
 
virtual void validate () const
 
fc::optional< fc::future< void > > validate_parallel (uint32_t skip) const
 

Static Public Member Functions

static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

Definition at line 124 of file base.hpp.

Constructor & Destructor Documentation

◆ ~base_operation()

virtual graphene::protocol::base_operation::~base_operation ( )
virtualdefault

Member Function Documentation

◆ calculate_data_fee()

uint64_t graphene::protocol::base_operation::calculate_data_fee ( uint64_t  bytes,
uint64_t  price_per_kbyte 
)
static

Definition at line 33 of file operations.cpp.

◆ calculate_fee()

template<typename T >
share_type graphene::protocol::base_operation::calculate_fee ( const T &  params) const
inline

Definition at line 128 of file base.hpp.

◆ get_required_active_authorities()

virtual void graphene::protocol::base_operation::get_required_active_authorities ( flat_set< account_id_type > &  ) const
inlinevirtual

◆ get_required_authorities()

virtual void graphene::protocol::base_operation::get_required_authorities ( vector< authority > &  ) const
inlinevirtual

◆ get_required_owner_authorities()

virtual void graphene::protocol::base_operation::get_required_owner_authorities ( flat_set< account_id_type > &  ) const
inlinevirtual

◆ validate()

virtual void graphene::protocol::base_operation::validate ( ) const
inlinevirtual

Reimplemented in graphene::protocol::credit_deal_update_operation, graphene::protocol::credit_deal_expired_operation, graphene::protocol::credit_deal_repay_operation, graphene::protocol::credit_offer_accept_operation, graphene::protocol::limit_order_update_operation, graphene::protocol::samet_fund_repay_operation, graphene::protocol::credit_offer_update_operation, graphene::protocol::samet_fund_borrow_operation, graphene::protocol::samet_fund_update_operation, graphene::protocol::credit_offer_delete_operation, graphene::protocol::samet_fund_delete_operation, graphene::protocol::credit_offer_create_operation, graphene::protocol::samet_fund_create_operation, graphene::protocol::asset_claim_pool_operation, graphene::protocol::asset_update_issuer_operation, graphene::protocol::asset_claim_fees_operation, graphene::protocol::asset_reserve_operation, graphene::protocol::asset_issue_operation, graphene::protocol::asset_publish_feed_operation, graphene::protocol::asset_update_feed_producers_operation, graphene::protocol::asset_update_bitasset_operation, graphene::protocol::asset_update_operation, graphene::protocol::asset_fund_fee_pool_operation, graphene::protocol::asset_settle_cancel_operation, graphene::protocol::asset_settle_operation, graphene::protocol::account_transfer_operation, graphene::protocol::execute_bid_operation, graphene::protocol::bid_collateral_operation, graphene::protocol::blind_transfer_operation, graphene::protocol::account_upgrade_operation, graphene::protocol::asset_global_settle_operation, graphene::protocol::fill_order_operation, graphene::protocol::asset_create_operation, graphene::protocol::account_whitelist_operation, graphene::protocol::htlc_refund_operation, graphene::protocol::call_order_update_operation, graphene::protocol::transfer_from_blind_operation, graphene::protocol::htlc_extend_operation, graphene::protocol::proposal_delete_operation, graphene::protocol::withdraw_permission_delete_operation, graphene::protocol::account_update_operation, graphene::protocol::transfer_to_blind_operation, graphene::protocol::limit_order_cancel_operation, graphene::protocol::liquidity_pool_exchange_operation, graphene::protocol::withdraw_permission_claim_operation, graphene::protocol::htlc_redeemed_operation, graphene::protocol::proposal_update_operation, graphene::protocol::liquidity_pool_withdraw_operation, graphene::protocol::custom_authority_delete_operation, graphene::protocol::account_create_operation, graphene::protocol::htlc_redeem_operation, graphene::protocol::vesting_balance_withdraw_operation, graphene::protocol::limit_order_create_operation, graphene::protocol::liquidity_pool_deposit_operation, graphene::protocol::assert_operation, graphene::protocol::withdraw_permission_update_operation, graphene::protocol::custom_authority_update_operation, graphene::protocol::override_transfer_operation, graphene::protocol::proposal_create_operation, graphene::protocol::worker_create_operation, graphene::protocol::committee_member_update_global_parameters_operation, graphene::protocol::liquidity_pool_update_operation, graphene::protocol::vesting_balance_create_operation, graphene::protocol::ticket_update_operation, graphene::protocol::htlc_create_operation, graphene::protocol::witness_update_operation, graphene::protocol::committee_member_update_operation, graphene::protocol::withdraw_permission_create_operation, graphene::protocol::liquidity_pool_delete_operation, graphene::protocol::transfer_operation, graphene::protocol::custom_authority_create_operation, graphene::protocol::ticket_create_operation, graphene::protocol::balance_claim_operation, graphene::protocol::custom_operation, graphene::protocol::liquidity_pool_create_operation, graphene::protocol::committee_member_create_operation, graphene::protocol::witness_create_operation, graphene::custom_operations::account_storage_map, and graphene::protocol::fba_distribute_operation.

Definition at line 135 of file base.hpp.

◆ validate_parallel()

fc::optional< fc::future< void > > graphene::protocol::base_operation::validate_parallel ( uint32_t  skip) const

Definition at line 40 of file operations.cpp.


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