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

Update an existing withdraw permissionThis oeration is used to update the settings for an existing withdrawal permission. The accounts to withdraw to and from may never be updated. The fields which may be updated are the withdrawal limit (both amount and asset type may be updated), the withdrawal period length, the remaining number of periods until expiration, and the starting time of the new period. More...

#include <withdraw_permission.hpp>

Inheritance diagram for graphene::chain::withdraw_permission_update_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () 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
 
account_id_type withdraw_from_account
 This account pays the fee. Must match permission_to_update->withdraw_from_account. More...
 
account_id_type authorized_account
 The account authorized to make withdrawals. Must match permission_to_update->authorized_account. More...
 
withdraw_permission_id_type permission_to_update
 ID of the permission which is being updated. More...
 
asset withdrawal_limit
 New maximum amount the withdrawer is allowed to charge per withdrawal period. More...
 
uint32_t withdrawal_period_sec = 0
 New length of the period between withdrawals. More...
 
time_point_sec period_start_time
 New beginning of the next withdrawal period; must be in the future. More...
 
uint32_t periods_until_expiration = 0
 The new number of withdrawal periods for which this permission will be valid. 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

Update an existing withdraw permission

This oeration is used to update the settings for an existing withdrawal permission. The accounts to withdraw to and from may never be updated. The fields which may be updated are the withdrawal limit (both amount and asset type may be updated), the withdrawal period length, the remaining number of periods until expiration, and the starting time of the new period.

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

Definition at line 82 of file withdraw_permission.hpp.

Member Function Documentation

◆ fee_payer()

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

Definition at line 102 of file withdraw_permission.hpp.

◆ validate()

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

Definition at line 28 of file withdraw_permission.cpp.

Member Data Documentation

◆ authorized_account

account_id_type graphene::chain::withdraw_permission_update_operation::authorized_account

The account authorized to make withdrawals. Must match permission_to_update->authorized_account.

Definition at line 90 of file withdraw_permission.hpp.

◆ fee

asset graphene::chain::withdraw_permission_update_operation::fee

Definition at line 86 of file withdraw_permission.hpp.

◆ period_start_time

time_point_sec graphene::chain::withdraw_permission_update_operation::period_start_time

New beginning of the next withdrawal period; must be in the future.

Definition at line 98 of file withdraw_permission.hpp.

◆ periods_until_expiration

uint32_t graphene::chain::withdraw_permission_update_operation::periods_until_expiration = 0

The new number of withdrawal periods for which this permission will be valid.

Definition at line 100 of file withdraw_permission.hpp.

◆ permission_to_update

withdraw_permission_id_type graphene::chain::withdraw_permission_update_operation::permission_to_update

ID of the permission which is being updated.

Definition at line 92 of file withdraw_permission.hpp.

◆ withdraw_from_account

account_id_type graphene::chain::withdraw_permission_update_operation::withdraw_from_account

This account pays the fee. Must match permission_to_update->withdraw_from_account.

Definition at line 88 of file withdraw_permission.hpp.

◆ withdrawal_limit

asset graphene::chain::withdraw_permission_update_operation::withdrawal_limit

New maximum amount the withdrawer is allowed to charge per withdrawal period.

Definition at line 94 of file withdraw_permission.hpp.

◆ withdrawal_period_sec

uint32_t graphene::chain::withdraw_permission_update_operation::withdrawal_period_sec = 0

New length of the period between withdrawals.

Definition at line 96 of file withdraw_permission.hpp.


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