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::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::protocol::withdraw_permission_update_operation:
graphene::protocol::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::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 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::protocol::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 83 of file withdraw_permission.hpp.

Member Function Documentation

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

Definition at line 103 of file withdraw_permission.hpp.

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

Definition at line 30 of file withdraw_permission.cpp.

Member Data Documentation

account_id_type graphene::protocol::withdraw_permission_update_operation::authorized_account

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

Definition at line 91 of file withdraw_permission.hpp.

asset graphene::protocol::withdraw_permission_update_operation::fee

Definition at line 87 of file withdraw_permission.hpp.

time_point_sec graphene::protocol::withdraw_permission_update_operation::period_start_time

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

Definition at line 99 of file withdraw_permission.hpp.

uint32_t graphene::protocol::withdraw_permission_update_operation::periods_until_expiration = 0

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

Definition at line 101 of file withdraw_permission.hpp.

withdraw_permission_id_type graphene::protocol::withdraw_permission_update_operation::permission_to_update

ID of the permission which is being updated.

Definition at line 93 of file withdraw_permission.hpp.

account_id_type graphene::protocol::withdraw_permission_update_operation::withdraw_from_account

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

Definition at line 89 of file withdraw_permission.hpp.

asset graphene::protocol::withdraw_permission_update_operation::withdrawal_limit

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

Definition at line 95 of file withdraw_permission.hpp.

uint32_t graphene::protocol::withdraw_permission_update_operation::withdrawal_period_sec = 0

New length of the period between withdrawals.

Definition at line 97 of file withdraw_permission.hpp.


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