BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::app::extended_asset_object Struct Reference

#include <api_objects.hpp>

Inheritance diagram for graphene::app::extended_asset_object:
graphene::chain::asset_object graphene::db::abstract_object< asset_object > graphene::db::object

Public Member Functions

 extended_asset_object ()
 extended_asset_object (const asset_object &a)
 extended_asset_object (asset_object &&a)
- Public Member Functions inherited from graphene::chain::asset_object
bool is_market_issued () const
bool can_force_settle () const
bool can_global_settle () const
bool charges_market_fees () const
bool is_transfer_restricted () const
bool can_override () const
bool allow_confidential () const
bool can_update_max_supply () const
bool can_create_new_supply () const
bool can_owner_update_mcr () const
bool can_owner_update_icr () const
bool can_owner_update_mssr () const
asset amount (share_type a) const
 Helper function to get an asset object with the given amount in this asset's type. More...
asset amount_from_string (string amount_string) const
string amount_to_string (share_type amount) const
 Convert an asset to a textual representation, i.e. "123.45". More...
string amount_to_string (const asset &amount) const
 Convert an asset to a textual representation, i.e. "123.45". More...
string amount_to_pretty_string (share_type amount) const
 Convert an asset to a textual representation with symbol, i.e. "123.45 USD". More...
string amount_to_pretty_string (const asset &amount) const
 Convert an asset to a textual representation with symbol, i.e. "123.45 USD". More...
asset_id_type get_id () const
void validate () const
template<class DB >
const asset_bitasset_data_objectbitasset_data (const DB &db) const
template<class DB >
const asset_dynamic_data_objectdynamic_data (const DB &db) const
template<class DB >
share_type reserved (const DB &db) const
template<class DB >
bool can_accumulate_fee (const DB &db, const asset &fee) const
template<class DB >
void accumulate_fee (DB &db, const asset &fee) const
- Public Member Functions inherited from graphene::db::abstract_object< asset_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
virtual void move_from (object &obj)
virtual variant to_variant () const
virtual vector< char > pack () const
- Public Member Functions inherited from graphene::db::object
 object ()
virtual ~object ()

Public Attributes

optional< share_typetotal_in_collateral
optional< share_typetotal_backing_collateral
- Public Attributes inherited from graphene::chain::asset_object
string symbol
 Ticker symbol for this asset, i.e. "USD". More...
uint8_t precision = 0
 Maximum number of digits after the decimal point (must be <= 12) More...
account_id_type issuer
 ID of the account which issued this asset. More...
asset_options options
asset_dynamic_data_id_type dynamic_asset_data_id
 Current supply, fee pool, and collected fees are stored in a separate object as they change frequently. More...
optional< asset_bitasset_data_id_type > bitasset_data_id
 Extra data associated with BitAssets. This field is non-null if and only if is_market_issued() returns true. More...
optional< account_id_type > buyback_account
- Public Attributes inherited from graphene::db::object
object_id_type id

Additional Inherited Members

- Static Public Member Functions inherited from graphene::chain::asset_object
static bool is_valid_symbol (const string &symbol)
- Static Public Attributes inherited from graphene::chain::asset_object
static const uint8_t space_id = protocol_ids
static const uint8_t type_id = asset_object_type
- Static Public Attributes inherited from graphene::db::object
static const uint8_t space_id = 0
static const uint8_t type_id = 0

Detailed Description

Definition at line 144 of file api_objects.hpp.

Constructor & Destructor Documentation

graphene::app::extended_asset_object::extended_asset_object ( )

Definition at line 146 of file api_objects.hpp.

graphene::app::extended_asset_object::extended_asset_object ( const asset_object a)

Definition at line 147 of file api_objects.hpp.

graphene::app::extended_asset_object::extended_asset_object ( asset_object &&  a)

Definition at line 148 of file api_objects.hpp.

Member Data Documentation

optional<share_type> graphene::app::extended_asset_object::total_backing_collateral

Definition at line 151 of file api_objects.hpp.

optional<share_type> graphene::app::extended_asset_object::total_in_collateral

Definition at line 150 of file api_objects.hpp.

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