|
BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Tracks account custom authorities. More...
#include <custom_authority_object.hpp>
Public Member Functions | |
| bool | is_valid (time_point_sec now) const |
| Check whether the custom authority is valid. More... | |
| vector< restriction > | get_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< object > | clone () 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< object > | clone () 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, restriction > | restrictions |
| 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 |
Tracks account custom authorities.
Definition at line 39 of file custom_authority_object.hpp.
|
inline |
Clear the cache of the predicate function.
Definition at line 78 of file custom_authority_object.hpp.
|
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.
|
inline |
Get the restrictions as a vector rather than a map.
Definition at line 60 of file custom_authority_object.hpp.
|
inline |
Check whether the custom authority is valid.
Definition at line 57 of file custom_authority_object.hpp.
|
inline |
Regenerate predicate function and update predicate cache.
Definition at line 74 of file custom_authority_object.hpp.
| account_id_type graphene::chain::custom_authority_object::account |
Definition at line 47 of file custom_authority_object.hpp.
| authority graphene::chain::custom_authority_object::auth |
Definition at line 52 of file custom_authority_object.hpp.
| bool graphene::chain::custom_authority_object::enabled |
Definition at line 48 of file custom_authority_object.hpp.
| unsigned_int graphene::chain::custom_authority_object::operation_type |
Definition at line 51 of file custom_authority_object.hpp.
| uint16_t graphene::chain::custom_authority_object::restriction_counter = 0 |
Definition at line 54 of file custom_authority_object.hpp.
| flat_map<uint16_t, restriction> graphene::chain::custom_authority_object::restrictions |
Definition at line 53 of file custom_authority_object.hpp.
| time_point_sec graphene::chain::custom_authority_object::valid_from |
Definition at line 49 of file custom_authority_object.hpp.
| time_point_sec graphene::chain::custom_authority_object::valid_to |
Definition at line 50 of file custom_authority_object.hpp.
1.8.17