Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::chain::asset_update_feed_producers_operation Struct Reference

Update the set of feed-producing accounts for a BitAssetBitAssets have price feeds selected by taking the median values of recommendations from a set of feed producers. This operation is used to specify which accounts may produce feeds for a given BitAsset. More...

#include <asset_ops.hpp>

Inheritance diagram for graphene::chain::asset_update_feed_producers_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
- Public Member Functions inherited from graphene::chain::base_operation
template<typename T >
share_type calculate_fee (const T &params) const
 
void get_required_authorities (vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_id_type > &) const
 
void get_required_owner_authorities (flat_set< account_id_type > &) const
 
void validate () const
 

Public Attributes

asset fee
 
account_id_type issuer
 
asset_id_type asset_to_update
 
flat_set< account_id_typenew_feed_producers
 
extensions_type extensions
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::chain::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

Update the set of feed-producing accounts for a BitAsset

BitAssets have price feeds selected by taking the median values of recommendations from a set of feed producers. This operation is used to specify which accounts may produce feeds for a given BitAsset.

Precondition
issuer MUST be an existing account, and MUST match asset_object::issuer on asset_to_update
issuer MUST NOT be the committee account
asset_to_update MUST be a BitAsset, i.e. asset_object::is_market_issued() returns true
fee MUST be nonnegative, and issuer MUST have a sufficient balance to pay it
Cardinality of new_feed_producers MUST NOT exceed chain_parameters::maximum_asset_feed_publishers
Postcondition
asset_to_update will have a set of feed producers matching new_feed_producers
All valid feeds supplied by feed producers in new_feed_producers, which were already feed producers prior to execution of this operation, will be preserved

Definition at line 338 of file asset_ops.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::chain::asset_update_feed_producers_operation::fee_payer ( ) const
inline

Definition at line 349 of file asset_ops.hpp.

◆ validate()

void graphene::chain::asset_update_feed_producers_operation::validate ( ) const

Definition at line 195 of file asset_ops.cpp.

Member Data Documentation

◆ asset_to_update

asset_id_type graphene::chain::asset_update_feed_producers_operation::asset_to_update

Definition at line 344 of file asset_ops.hpp.

◆ extensions

extensions_type graphene::chain::asset_update_feed_producers_operation::extensions

Definition at line 347 of file asset_ops.hpp.

◆ fee

asset graphene::chain::asset_update_feed_producers_operation::fee

Definition at line 342 of file asset_ops.hpp.

◆ issuer

account_id_type graphene::chain::asset_update_feed_producers_operation::issuer

Definition at line 343 of file asset_ops.hpp.

◆ new_feed_producers

flat_set<account_id_type> graphene::chain::asset_update_feed_producers_operation::new_feed_producers

Definition at line 346 of file asset_ops.hpp.


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