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

#include <buyback_object.hpp>

Inheritance diagram for graphene::chain::buyback_object:
graphene::db::abstract_object< buyback_object, implementation_ids, impl_buyback_object_type > graphene::db::base_abstract_object< buyback_object > graphene::db::object

Public Attributes

asset_id_type asset_to_buy
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< buyback_object, implementation_ids, impl_buyback_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< buyback_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
 
- Static Public Attributes inherited from graphene::db::abstract_object< buyback_object, implementation_ids, impl_buyback_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

Detailed Description

buyback_authority_object only exists to help with a specific indexing problem. We want to be able to iterate over all assets that have a buyback program. However, assets which have a buyback program are very rare. So rather than indexing asset_object by the buyback field (requiring additional bookkeeping for every asset), we instead maintain a buyback_object pointing to each asset which has buyback (requiring additional bookkeeping only for every asset which has buyback).

This class is an implementation detail.

Definition at line 43 of file buyback_object.hpp.

Member Data Documentation

◆ asset_to_buy

asset_id_type graphene::chain::buyback_object::asset_to_buy

Definition at line 47 of file buyback_object.hpp.


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