BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::protocol::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::protocol::custom_operation:
graphene::protocol::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
 
void get_required_active_authorities (flat_set< account_id_type > &auths) const
 
- Public Member Functions inherited from graphene::protocol::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
 
fc::optional< fc::future< void > > validate_parallel (uint32_t skip) const
 

Public Attributes

asset fee
 
account_id_type payer
 
flat_set< account_id_type > required_auths
 
uint16_t id = 0
 
vector< char > data
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::protocol::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 38 of file custom.hpp.

Member Function Documentation

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

Definition at line 34 of file custom.cpp.

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

Definition at line 51 of file custom.hpp.

void graphene::protocol::custom_operation::get_required_active_authorities ( flat_set< account_id_type > &  auths) const
inline

Definition at line 54 of file custom.hpp.

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

Definition at line 30 of file custom.cpp.

Member Data Documentation

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

Definition at line 49 of file custom.hpp.

asset graphene::protocol::custom_operation::fee

Definition at line 45 of file custom.hpp.

uint16_t graphene::protocol::custom_operation::id = 0

Definition at line 48 of file custom.hpp.

account_id_type graphene::protocol::custom_operation::payer

Definition at line 46 of file custom.hpp.

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

Definition at line 47 of file custom.hpp.


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