BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
graphene::chain::custom_authority_object Class Reference

Tracks account custom authorities. More...

#include <custom_authority_object.hpp>

Inheritance diagram for graphene::chain::custom_authority_object:
graphene::db::abstract_object< custom_authority_object, protocol_ids, custom_authority_object_type > graphene::db::base_abstract_object< custom_authority_object > graphene::db::object

Public Member Functions

bool is_valid (time_point_sec now) const
 Check whether the custom authority is valid. More...
 
vector< restrictionget_restrictions () const
 Get the restrictions as a vector rather than a map. More...
 
restriction_predicate_function get_predicate () const
 Get predicate, from cache if possible, and update cache if not (modifies const object!) More...
 
void update_predicate_cache () const
 Regenerate predicate function and update predicate cache. More...
 
void clear_predicate_cache ()
 Clear the cache of the predicate function. More...
 
- Public Member Functions inherited from graphene::db::abstract_object< custom_authority_object, protocol_ids, custom_authority_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< custom_authority_object >
std::unique_ptr< objectclone () const override
 
void move_from (object &obj) override
 
fc::variant to_variant () const override
 
std::vector< char > pack () const override
 
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
- Public Member Functions inherited from graphene::db::object
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
virtual ~object ()=default
 
virtual std::unique_ptr< objectclone () const =0
 
virtual fc::variant to_variant () const =0
 
virtual std::vector< char > pack () const =0
 

Public Attributes

account_id_type account
 
bool enabled
 
time_point_sec valid_from
 
time_point_sec valid_to
 
unsigned_int operation_type
 
authority auth
 
flat_map< uint16_t, restrictionrestrictions
 
uint16_t restriction_counter = 0
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Additional Inherited Members

- Static Public Attributes inherited from graphene::db::abstract_object< custom_authority_object, protocol_ids, custom_authority_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

Detailed Description

Tracks account custom authorities.

Definition at line 39 of file custom_authority_object.hpp.

Member Function Documentation

◆ clear_predicate_cache()

void graphene::chain::custom_authority_object::clear_predicate_cache ( )
inline

Clear the cache of the predicate function.

Definition at line 78 of file custom_authority_object.hpp.

◆ get_predicate()

restriction_predicate_function graphene::chain::custom_authority_object::get_predicate ( ) const
inline

Get predicate, from cache if possible, and update cache if not (modifies const object!)

Definition at line 67 of file custom_authority_object.hpp.

◆ get_restrictions()

vector<restriction> graphene::chain::custom_authority_object::get_restrictions ( ) const
inline

Get the restrictions as a vector rather than a map.

Definition at line 60 of file custom_authority_object.hpp.

◆ is_valid()

bool graphene::chain::custom_authority_object::is_valid ( time_point_sec  now) const
inline

Check whether the custom authority is valid.

Definition at line 57 of file custom_authority_object.hpp.

◆ update_predicate_cache()

void graphene::chain::custom_authority_object::update_predicate_cache ( ) const
inline

Regenerate predicate function and update predicate cache.

Definition at line 74 of file custom_authority_object.hpp.

Member Data Documentation

◆ account

account_id_type graphene::chain::custom_authority_object::account

Definition at line 47 of file custom_authority_object.hpp.

◆ auth

authority graphene::chain::custom_authority_object::auth

Definition at line 52 of file custom_authority_object.hpp.

◆ enabled

bool graphene::chain::custom_authority_object::enabled

Definition at line 48 of file custom_authority_object.hpp.

◆ operation_type

unsigned_int graphene::chain::custom_authority_object::operation_type

Definition at line 51 of file custom_authority_object.hpp.

◆ restriction_counter

uint16_t graphene::chain::custom_authority_object::restriction_counter = 0

Definition at line 54 of file custom_authority_object.hpp.

◆ restrictions

flat_map<uint16_t, restriction> graphene::chain::custom_authority_object::restrictions

Definition at line 53 of file custom_authority_object.hpp.

◆ valid_from

time_point_sec graphene::chain::custom_authority_object::valid_from

Definition at line 49 of file custom_authority_object.hpp.

◆ valid_to

time_point_sec graphene::chain::custom_authority_object::valid_to

Definition at line 50 of file custom_authority_object.hpp.


The documentation for this class was generated from the following file: