BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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_params_t
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_params_t &k, const optional< uint64_t > &sub_asset_creation_fee) const
 
- Public Member Functions inherited from graphene::protocol::base_operation
virtual ~base_operation ()=default
 
template<typename T >
share_type calculate_fee (const T &params) const
 
virtual void get_required_authorities (vector< authority > &) const
 
virtual void get_required_active_authorities (flat_set< account_id_type > &) const
 
virtual void get_required_owner_authorities (flat_set< account_id_type > &) 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
 Options only available for BitAssets. MUST be non-null if and only if the asset is market-issued. More...
 
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 192 of file asset_ops.hpp.

Member Function Documentation

◆ calculate_fee()

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

Definition at line 82 of file asset_ops.cpp.

◆ fee_payer()

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

Definition at line 222 of file asset_ops.hpp.

◆ validate()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 110 of file asset_ops.cpp.

Member Data Documentation

◆ bitasset_opts

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

Options only available for BitAssets. MUST be non-null if and only if the asset is market-issued.

Definition at line 217 of file asset_ops.hpp.

◆ common_options

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 215 of file asset_ops.hpp.

◆ extensions

extensions_type graphene::protocol::asset_create_operation::extensions

Definition at line 220 of file asset_ops.hpp.

◆ fee

asset graphene::protocol::asset_create_operation::fee

Definition at line 201 of file asset_ops.hpp.

◆ is_prediction_market

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 219 of file asset_ops.hpp.

◆ issuer

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 203 of file asset_ops.hpp.

◆ precision

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 207 of file asset_ops.hpp.

◆ symbol

string graphene::protocol::asset_create_operation::symbol

The ticker symbol of this asset.

Definition at line 205 of file asset_ops.hpp.


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