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

Withdraw from an account which has published a withdrawal permission. More...

#include <withdraw_permission.hpp>

Inheritance diagram for graphene::protocol::withdraw_permission_claim_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
 
- 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
 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::protocol::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 120 of file withdraw_permission.hpp.

Member Function Documentation

◆ calculate_fee()

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

Definition at line 46 of file withdraw_permission.cpp.

◆ fee_payer()

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

Definition at line 140 of file withdraw_permission.hpp.

◆ validate()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 39 of file withdraw_permission.cpp.

Member Data Documentation

◆ amount_to_withdraw

asset graphene::protocol::withdraw_permission_claim_operation::amount_to_withdraw

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

Definition at line 136 of file withdraw_permission.hpp.

◆ fee

asset graphene::protocol::withdraw_permission_claim_operation::fee

Paid by withdraw_to_account.

Definition at line 128 of file withdraw_permission.hpp.

◆ memo

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

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

Definition at line 138 of file withdraw_permission.hpp.

◆ withdraw_from_account

account_id_type graphene::protocol::withdraw_permission_claim_operation::withdraw_from_account

Must match withdraw_permission->withdraw_from_account.

Definition at line 132 of file withdraw_permission.hpp.

◆ withdraw_permission

withdraw_permission_id_type graphene::protocol::withdraw_permission_claim_operation::withdraw_permission

ID of the permission authorizing this withdrawal.

Definition at line 130 of file withdraw_permission.hpp.

◆ withdraw_to_account

account_id_type graphene::protocol::withdraw_permission_claim_operation::withdraw_to_account

Must match withdraw_permision->authorized_account.

Definition at line 134 of file withdraw_permission.hpp.


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