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

#include <asset_ops.hpp>

Inheritance diagram for graphene::protocol::asset_create_operation:
graphene::protocol::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, optional< uint64_t > sub_asset_creation_fee) const
 
- Public Member Functions inherited from graphene::protocol::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
 
fc::optional< fc::future< void > > validate_parallel (uint32_t skip) 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::protocol::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

Definition at line 154 of file asset_ops.hpp.

Member Function Documentation

share_type graphene::protocol::asset_create_operation::calculate_fee ( const fee_parameters_type k,
optional< uint64_t >  sub_asset_creation_fee 
) const

Definition at line 82 of file asset_ops.cpp.

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

Definition at line 184 of file asset_ops.hpp.

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

Definition at line 110 of file asset_ops.cpp.

Member Data Documentation

optional<bitasset_options> graphene::protocol::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 179 of file asset_ops.hpp.

asset_options graphene::protocol::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 176 of file asset_ops.hpp.

extensions_type graphene::protocol::asset_create_operation::extensions

Definition at line 182 of file asset_ops.hpp.

asset graphene::protocol::asset_create_operation::fee

Definition at line 163 of file asset_ops.hpp.

bool graphene::protocol::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 181 of file asset_ops.hpp.

account_id_type graphene::protocol::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 165 of file asset_ops.hpp.

uint8_t graphene::protocol::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 169 of file asset_ops.hpp.

string graphene::protocol::asset_create_operation::symbol

The ticker symbol of this asset.

Definition at line 167 of file asset_ops.hpp.


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