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::custom_operation Struct Reference

provides a generic way to add higher level protocols on top of witness consensusThere is no validation for this operation other than that required auths are valid and a fee is paid that is appropriate for the data contained. More...

#include <custom.hpp>

Inheritance diagram for graphene::chain::custom_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_parameters_type &k) 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 payer
 
flat_set< account_id_typerequired_auths
 
uint16_t id = 0
 
vector< char > data
 

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

provides a generic way to add higher level protocols on top of witness consensus

There is no validation for this operation other than that required auths are valid and a fee is paid that is appropriate for the data contained.

Definition at line 37 of file custom.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::chain::custom_operation::calculate_fee ( const fee_parameters_type k) const

Definition at line 32 of file custom.cpp.

◆ fee_payer()

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

Definition at line 50 of file custom.hpp.

◆ validate()

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

Definition at line 28 of file custom.cpp.

Member Data Documentation

◆ data

vector<char> graphene::chain::custom_operation::data

Definition at line 48 of file custom.hpp.

◆ fee

asset graphene::chain::custom_operation::fee

Definition at line 44 of file custom.hpp.

◆ id

uint16_t graphene::chain::custom_operation::id = 0

Definition at line 47 of file custom.hpp.

◆ payer

account_id_type graphene::chain::custom_operation::payer

Definition at line 45 of file custom.hpp.

◆ required_auths

flat_set<account_id_type> graphene::chain::custom_operation::required_auths

Definition at line 46 of file custom.hpp.


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