BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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 consensus More...

#include <custom.hpp>

Inheritance diagram for graphene::protocol::custom_operation:
graphene::protocol::base_operation

Classes

struct  fee_params_t
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_params_t &k) const
 
void get_required_active_authorities (flat_set< account_id_type > &auths) const
 
- Public Member Functions inherited from graphene::protocol::base_operation
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_owner_authorities (flat_set< account_id_type > &) 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

◆ calculate_fee()

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

Definition at line 34 of file custom.cpp.

◆ fee_payer()

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

Definition at line 51 of file custom.hpp.

◆ get_required_active_authorities()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 54 of file custom.hpp.

◆ validate()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 30 of file custom.cpp.

Member Data Documentation

◆ data

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

Definition at line 49 of file custom.hpp.

◆ fee

asset graphene::protocol::custom_operation::fee

Definition at line 45 of file custom.hpp.

◆ id

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

Definition at line 48 of file custom.hpp.

◆ payer

account_id_type graphene::protocol::custom_operation::payer

Definition at line 46 of file custom.hpp.

◆ required_auths

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: