struct eosio::extended_asset

Class List > eosio :: extended_asset

Extended asset which stores the information of the owner of the asset.

Public Attributes

Type Name
asset quantity
name contract

Public Functions

Type Name
extended_symbol get_extended_symbol () const
extended_asset () = default
extended_asset (int64_t v, extended_symbol s)
extended_asset (asset a, name c)
void print () const

Friends

Type Name
friend DataStream & operator<<
friend DataStream & operator>>

Public Attributes Documentation

variable quantity

asset eosio::extended_asset::quantity;

The asset

variable contract

name eosio::extended_asset::contract;

The owner of the asset

Public Functions Documentation

function get_extended_symbol

extended_symbol eosio::extended_asset::get_extended_symbol() const

Get the extended symbol of the asset

Returns:

extended_symbol - The extended symbol of the asset

function extended_asset (1/3)

eosio::extended_asset::extended_asset() = default

Default constructor

function extended_asset (2/3)

eosio::extended_asset::extended_asset(
    int64_t v,
    extended_symbol s
)

Construct a new extended asset given the amount and extended symbol

function extended_asset (3/3)

eosio::extended_asset::extended_asset(
    asset a,
    name c
)

Construct a new extended asset given the asset and owner name

function print

void eosio::extended_asset::print() const

Print the extended asset

Friends Documentation

friend operator<<

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const extended_asset & t
)

friend operator>>

template<typename DataStream>
DataStream& operator>>(
    DataStream & ds,
    extended_asset & t
)

The documentation for this class was generated from the following file: libraries/eosiolib/core/eosio/asset.hpp