These docs are for v1.3.0. Click to read the latest docs for v1.6.

Extended Asset

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

struct eosio::extended_asset
  : public eosio::asset

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

Summary

MembersDescriptions
public account_name contractThe owner of the asset.
public inline extended_symbol get_extended_symbol() constGet the extended symbol of the asset.
public extended_asset() = defaultConstruct a new extended asset object.
public inline extended_asset(int64_t v,extended_symbol s)Construct a new extended asset object.
public inline extended_asset(asset a,account_name c)Construct a new extended asset object.
public inline void print() constPrint the extended asset
public inline extended_asset operator-() constUnary minus operator.

Members

The owner of the asset

public inline extended_symbol get_extended_symbol() const

Get the extended symbol of the asset

Returns

extended_symbol - The extended symbol of the asset

public extended_asset() = default

Construct a new extended asset object.

Default constructor

public inline extended_asset(int64_t v,extended_symbol s)

Construct a new extended asset given the amount and extended symbol

public inline extended_asset(asset a,account_name c)

Construct a new extended asset given the asset and owner name

public inline void print() const

Print the extended asset

public inline extended_asset operator-() const

Unary minus operator

Returns

extended_asset - New extended asset with its amount is the negative amount of this extended asset