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::override_transfer_operation Class Reference

Allows the issuer of an asset to transfer an asset from any account to any account if they have override_authority. More...

#include <transfer.hpp>

Inheritance diagram for graphene::protocol::override_transfer_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) 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
 
account_id_type from
 Account to transfer asset from. More...
 
account_id_type to
 Account to transfer asset to. More...
 
asset amount
 The amount of asset to transfer from from to to. More...
 
optional< memo_datamemo
 User provided data encrypted to the memo key of the "to" account. 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

Allows the issuer of an asset to transfer an asset from any account to any account if they have override_authority.

Precondition
amount.asset_id->issuer == issuer
issuer != from because this is pointless, use a normal transfer operation

Definition at line 77 of file transfer.hpp.

Member Function Documentation

share_type graphene::protocol::override_transfer_operation::calculate_fee ( const fee_parameters_type k) const

Definition at line 48 of file transfer.cpp.

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

Definition at line 97 of file transfer.hpp.

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

Definition at line 57 of file transfer.cpp.

Member Data Documentation

asset graphene::protocol::override_transfer_operation::amount

The amount of asset to transfer from from to to.

Definition at line 91 of file transfer.hpp.

extensions_type graphene::protocol::override_transfer_operation::extensions

Definition at line 95 of file transfer.hpp.

asset graphene::protocol::override_transfer_operation::fee

Definition at line 84 of file transfer.hpp.

account_id_type graphene::protocol::override_transfer_operation::from

Account to transfer asset from.

Definition at line 87 of file transfer.hpp.

account_id_type graphene::protocol::override_transfer_operation::issuer

Definition at line 85 of file transfer.hpp.

optional<memo_data> graphene::protocol::override_transfer_operation::memo

User provided data encrypted to the memo key of the "to" account.

Definition at line 94 of file transfer.hpp.

account_id_type graphene::protocol::override_transfer_operation::to

Account to transfer asset to.

Definition at line 89 of file transfer.hpp.


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