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::withdraw_permission_claim_operation Struct Reference

Withdraw from an account which has published a withdrawal permissionThis operation is used to withdraw from an account which has authorized such a withdrawal. It may be executed at most once per withdrawal period for the given permission. On execution, amount_to_withdraw is transferred from withdraw_from_account to withdraw_to_account, assuming amount_to_withdraw is within the withdrawal limit. The withdrawal permission will be updated to note that the withdrawal for the current period has occurred, and further withdrawals will not be permitted until the next withdrawal period, assuming the permission has not expired. This operation may be executed at any time within the current withdrawal period. More...

#include <withdraw_permission.hpp>

Inheritance diagram for graphene::chain::withdraw_permission_claim_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
 Paid by withdraw_to_account. More...
 
withdraw_permission_id_type withdraw_permission
 ID of the permission authorizing this withdrawal. More...
 
account_id_type withdraw_from_account
 Must match withdraw_permission->withdraw_from_account. More...
 
account_id_type withdraw_to_account
 Must match withdraw_permision->authorized_account. More...
 
asset amount_to_withdraw
 Amount to withdraw. Must not exceed withdraw_permission->withdrawal_limit. More...
 
optional< memo_datamemo
 Memo for withdraw_from_account. Should generally be encrypted with withdraw_from_account->memo_key. More...
 

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

Withdraw from an account which has published a withdrawal permission

This operation is used to withdraw from an account which has authorized such a withdrawal. It may be executed at most once per withdrawal period for the given permission. On execution, amount_to_withdraw is transferred from withdraw_from_account to withdraw_to_account, assuming amount_to_withdraw is within the withdrawal limit. The withdrawal permission will be updated to note that the withdrawal for the current period has occurred, and further withdrawals will not be permitted until the next withdrawal period, assuming the permission has not expired. This operation may be executed at any time within the current withdrawal period.

Fee is paid by withdraw_to_account, which is required to authorize this operation

Definition at line 119 of file withdraw_permission.hpp.

Member Function Documentation

◆ calculate_fee()

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

Definition at line 44 of file withdraw_permission.cpp.

◆ fee_payer()

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

Definition at line 139 of file withdraw_permission.hpp.

◆ validate()

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

Definition at line 37 of file withdraw_permission.cpp.

Member Data Documentation

◆ amount_to_withdraw

asset graphene::chain::withdraw_permission_claim_operation::amount_to_withdraw

Amount to withdraw. Must not exceed withdraw_permission->withdrawal_limit.

Definition at line 135 of file withdraw_permission.hpp.

◆ fee

asset graphene::chain::withdraw_permission_claim_operation::fee

Paid by withdraw_to_account.

Definition at line 127 of file withdraw_permission.hpp.

◆ memo

optional<memo_data> graphene::chain::withdraw_permission_claim_operation::memo

Memo for withdraw_from_account. Should generally be encrypted with withdraw_from_account->memo_key.

Definition at line 137 of file withdraw_permission.hpp.

◆ withdraw_from_account

account_id_type graphene::chain::withdraw_permission_claim_operation::withdraw_from_account

Must match withdraw_permission->withdraw_from_account.

Definition at line 131 of file withdraw_permission.hpp.

◆ withdraw_permission

withdraw_permission_id_type graphene::chain::withdraw_permission_claim_operation::withdraw_permission

ID of the permission authorizing this withdrawal.

Definition at line 129 of file withdraw_permission.hpp.

◆ withdraw_to_account

account_id_type graphene::chain::withdraw_permission_claim_operation::withdraw_to_account

Must match withdraw_permision->authorized_account.

Definition at line 133 of file withdraw_permission.hpp.


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