Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::chain::asset_global_settle_operation Struct Reference

allows global settling of bitassets (black swan or prediction markets) More...

#include <asset_ops.hpp>

Inheritance diagram for graphene::chain::asset_global_settle_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
- Public Member Functions inherited from graphene::chain::base_operation
template<typename T >
share_type calculate_fee (const T &params) const
 
void get_required_authorities (vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_id_type > &) const
 
void get_required_owner_authorities (flat_set< account_id_type > &) const
 
void validate () const
 

Public Attributes

asset fee
 
account_id_type issuer
 must equal asset_to_settle->issuer More...
 
asset_id_type asset_to_settle
 
price settle_price
 
extensions_type extensions
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::chain::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

allows global settling of bitassets (black swan or prediction markets)

In order to use this operation, asset_to_settle must have the global_settle flag set

When this operation is executed all balances are converted into the backing asset at the settle_price and all open margin positions are called at the settle price. If this asset is used as backing for other bitassets, those bitassets will be force settled at their current feed price.

Definition at line 164 of file asset_ops.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::chain::asset_global_settle_operation::fee_payer ( ) const
inline

Definition at line 174 of file asset_ops.hpp.

◆ validate()

void graphene::chain::asset_global_settle_operation::validate ( ) const

Definition at line 200 of file asset_ops.cpp.

Member Data Documentation

◆ asset_to_settle

asset_id_type graphene::chain::asset_global_settle_operation::asset_to_settle

Definition at line 170 of file asset_ops.hpp.

◆ extensions

extensions_type graphene::chain::asset_global_settle_operation::extensions

Definition at line 172 of file asset_ops.hpp.

◆ fee

asset graphene::chain::asset_global_settle_operation::fee

Definition at line 168 of file asset_ops.hpp.

◆ issuer

account_id_type graphene::chain::asset_global_settle_operation::issuer

must equal asset_to_settle->issuer

Definition at line 169 of file asset_ops.hpp.

◆ settle_price

price graphene::chain::asset_global_settle_operation::settle_price

Definition at line 171 of file asset_ops.hpp.


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