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

Update options common to all assets. More...

#include <asset_ops.hpp>

Inheritance diagram for graphene::protocol::asset_update_operation:
graphene::protocol::base_operation

Classes

struct  ext
 
struct  fee_params_t
 

Public Member Functions

 asset_update_operation ()
 
account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_params_t &k) 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
 
asset_id_type asset_to_update
 
optional< account_id_type > new_issuer
 If the asset is to be given a new issuer, specify his ID here. More...
 
asset_options new_options
 
extension< extextensions
 

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

Update options common to all assets.

There are a number of options which all assets in the network use. These options are enumerated in the asset_options struct. This operation is used to update these options for an existing asset.

Note
This operation cannot be used to update BitAsset-specific options. For these options, use asset_update_bitasset_operation instead.
Precondition
issuer SHALL be an existing account and MUST match asset_object::issuer on asset_to_update
fee SHALL be nonnegative, and issuer MUST have a sufficient balance to pay it
new_options SHALL be internally consistent, as verified by validate()
Postcondition
asset_to_update will have options matching those of new_options

Definition at line 351 of file asset_ops.hpp.

Constructor & Destructor Documentation

◆ asset_update_operation()

graphene::protocol::asset_update_operation::asset_update_operation ( )
inline

Definition at line 368 of file asset_ops.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::protocol::asset_update_operation::calculate_fee ( const fee_params_t k) const

Definition at line 160 of file asset_ops.cpp.

◆ fee_payer()

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

Definition at line 379 of file asset_ops.hpp.

◆ validate()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 134 of file asset_ops.cpp.

Member Data Documentation

◆ asset_to_update

asset_id_type graphene::protocol::asset_update_operation::asset_to_update

Definition at line 372 of file asset_ops.hpp.

◆ extensions

extension<ext> graphene::protocol::asset_update_operation::extensions

Definition at line 377 of file asset_ops.hpp.

◆ fee

asset graphene::protocol::asset_update_operation::fee

Definition at line 370 of file asset_ops.hpp.

◆ issuer

account_id_type graphene::protocol::asset_update_operation::issuer

Definition at line 371 of file asset_ops.hpp.

◆ new_issuer

optional<account_id_type> graphene::protocol::asset_update_operation::new_issuer

If the asset is to be given a new issuer, specify his ID here.

Definition at line 375 of file asset_ops.hpp.

◆ new_options

asset_options graphene::protocol::asset_update_operation::new_options

Definition at line 376 of file asset_ops.hpp.


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