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_create_operation Struct Reference

#include <asset_ops.hpp>

Inheritance diagram for graphene::chain::asset_create_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_parameters_type &k) 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
 This account must sign and pay the fee for this operation. Later, this account may update the asset. More...
 
string symbol
 The ticker symbol of this asset. More...
 
uint8_t precision = 0
 Number of digits to the right of decimal point, must be less than or equal to 12. More...
 
asset_options common_options
 
optional< bitasset_optionsbitasset_opts
 
bool is_prediction_market = false
 For BitAssets, set this to true if the asset implements a Prediction Market; false otherwise. More...
 
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

Definition at line 119 of file asset_ops.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::chain::asset_create_operation::calculate_fee ( const fee_parameters_type k) const

Definition at line 80 of file asset_ops.cpp.

◆ fee_payer()

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

Definition at line 149 of file asset_ops.hpp.

◆ validate()

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

Definition at line 99 of file asset_ops.cpp.

Member Data Documentation

◆ bitasset_opts

optional<bitasset_options> graphene::chain::asset_create_operation::bitasset_opts

Options only available for BitAssets. MUST be non-null if and only if the market_issued flag is set in common_options.flags

Definition at line 144 of file asset_ops.hpp.

◆ common_options

asset_options graphene::chain::asset_create_operation::common_options

Options common to all assets.

Note
common_options.core_exchange_rate technically needs to store the asset ID of this new asset. Since this ID is not known at the time this operation is created, create this price as though the new asset has instance ID 1, and the chain will overwrite it with the new asset's ID.

Definition at line 141 of file asset_ops.hpp.

◆ extensions

extensions_type graphene::chain::asset_create_operation::extensions

Definition at line 147 of file asset_ops.hpp.

◆ fee

asset graphene::chain::asset_create_operation::fee

Definition at line 128 of file asset_ops.hpp.

◆ is_prediction_market

bool graphene::chain::asset_create_operation::is_prediction_market = false

For BitAssets, set this to true if the asset implements a Prediction Market; false otherwise.

Definition at line 146 of file asset_ops.hpp.

◆ issuer

account_id_type graphene::chain::asset_create_operation::issuer

This account must sign and pay the fee for this operation. Later, this account may update the asset.

Definition at line 130 of file asset_ops.hpp.

◆ precision

uint8_t graphene::chain::asset_create_operation::precision = 0

Number of digits to the right of decimal point, must be less than or equal to 12.

Definition at line 134 of file asset_ops.hpp.

◆ symbol

string graphene::chain::asset_create_operation::symbol

The ticker symbol of this asset.

Definition at line 132 of file asset_ops.hpp.


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