BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
27 namespace graphene {
namespace protocol {
30 template<
typename ...T>
37 template<
typename Operation>
40 const typename Operation::fee_params_t&
cget(
const fee_parameters::flat_set_type& parameters)
const
42 auto itr = parameters.find(
typename Operation::fee_params_t() );
44 return itr->template get<typename Operation::fee_params_t>();
71 if ( itr != parameters.end() )
76 return bid_collateral_dummy;
86 if ( itr != parameters.end() )
101 if ( itr != parameters.end() )
106 return asset_claim_pool_dummy;
136 if ( itr != parameters.end() )
140 return htlc_create_operation_fee_dummy;
150 if ( itr != parameters.end() )
154 return htlc_redeem_operation_fee_dummy;
163 if ( itr != parameters.end() )
167 return htlc_extend_operation_fee_dummy;
200 template<
typename Operation>
201 const typename Operation::fee_params_t&
get()
const
205 template<
typename Operation>
206 typename Operation::fee_params_t&
get()
210 template<
typename Operation>
213 auto itr =
parameters.find(
typename Operation::fee_params_t());
const asset_update_issuer_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
contains all of the parameters necessary to calculate the fee for any operation
The price struct stores asset prices in the BitShares system.
FC_REFLECT_TYPENAME(fc::log_message)
const asset_claim_pool_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
Update issuer of an asset.
static price unit_price(asset_id_type a=asset_id_type())
The unit price for an asset type A is defined to be a price such that for any asset m,...
Operation::fee_params_t & get()
asset set_fee(operation &op, const price &core_exchange_rate=price::unit_price()) const
Updates an existing ticket.
fee_parameters::flat_set_type parameters
const Operation::fee_params_t & get() const
const Operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
uint32_t scale
fee * scale / GRAPHENE_100_PERCENT
const ticket_update_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
const htlc_create_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
account_create_operation::fee_params_t & get(fee_parameters::flat_set_type ¶meters) const
transform_to_fee_parameters< operation >::type fee_parameters
const htlc_extend_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
const htlc_redeem_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
const ticket_create_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
const bid_collateral_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
asset calculate_fee(const operation &op) const
const account_create_operation::fee_params_t & cget(const fee_parameters::flat_set_type ¶meters) const
static const fee_schedule & get_default()
#define GRAPHENE_100_PERCENT
Transfers BTS from the fee pool of a specified asset back to the issuer's balance.