BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Withdraw from an account which has published a withdrawal permission. More...
#include <withdraw_permission.hpp>
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 ¶ms) 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_data > | memo |
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) |
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.
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.
|
inline |
Definition at line 140 of file withdraw_permission.hpp.
|
virtual |
Reimplemented from graphene::protocol::base_operation.
Definition at line 39 of file withdraw_permission.cpp.
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.
asset graphene::protocol::withdraw_permission_claim_operation::fee |
Paid by withdraw_to_account.
Definition at line 128 of file withdraw_permission.hpp.
Memo for withdraw_from_account. Should generally be encrypted with withdraw_from_account->memo_key.
Definition at line 138 of file withdraw_permission.hpp.
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_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.
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.