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

assert that some conditions are true.This operation performs no changes to the database state, but can but used to verify pre or post conditions for other operations. More...

#include <assert.hpp>

Inheritance diagram for graphene::chain::assert_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 fee_paying_account
 
vector< predicatepredicates
 
flat_set< account_id_typerequired_auths
 
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

assert that some conditions are true.

This operation performs no changes to the database state, but can but used to verify pre or post conditions for other operations.

Definition at line 91 of file assert.hpp.

Member Function Documentation

◆ calculate_fee()

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

The fee for assert operations is proportional to their size, but cheaper than a data fee because they require no storage

Definition at line 60 of file assert.cpp.

◆ fee_payer()

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

Definition at line 101 of file assert.hpp.

◆ validate()

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

Definition at line 49 of file assert.cpp.

Member Data Documentation

◆ extensions

extensions_type graphene::chain::assert_operation::extensions

Definition at line 99 of file assert.hpp.

◆ fee

asset graphene::chain::assert_operation::fee

Definition at line 95 of file assert.hpp.

◆ fee_paying_account

account_id_type graphene::chain::assert_operation::fee_paying_account

Definition at line 96 of file assert.hpp.

◆ predicates

vector<predicate> graphene::chain::assert_operation::predicates

Definition at line 97 of file assert.hpp.

◆ required_auths

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

Definition at line 98 of file assert.hpp.


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