Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::wallet::vesting_balance_object_with_info Struct Reference

#include <wallet.hpp>

Inheritance diagram for graphene::wallet::vesting_balance_object_with_info:
graphene::chain::vesting_balance_object

Public Member Functions

 vesting_balance_object_with_info (const vesting_balance_object &vbo, fc::time_point_sec now)
 
 vesting_balance_object_with_info (const vesting_balance_object_with_info &vbo)=default
 
- Public Member Functions inherited from graphene::chain::vesting_balance_object
 vesting_balance_object ()
 
void deposit (const fc::time_point_sec &now, const asset &amount)
 Deposit amount into vesting balance, requiring it to vest before withdrawal. More...
 
bool is_deposit_allowed (const fc::time_point_sec &now, const asset &amount) const
 
void deposit_vested (const fc::time_point_sec &now, const asset &amount)
 Deposit amount into vesting balance, making the new funds vest immediately. More...
 
bool is_deposit_vested_allowed (const fc::time_point_sec &now, const asset &amount) const
 
void withdraw (const fc::time_point_sec &now, const asset &amount)
 
bool is_withdraw_allowed (const fc::time_point_sec &now, const asset &amount) const
 
asset get_allowed_withdraw (const time_point_sec &now) const
 

Public Attributes

asset allowed_withdraw
 
fc::time_point_sec allowed_withdraw_time
 
- Public Attributes inherited from graphene::chain::vesting_balance_object
account_id_type owner
 Account which owns and may withdraw from this vesting balance. More...
 
asset balance
 
vesting_policy policy
 The vesting policy stores details on when funds vest, and controls when they may be withdrawn. More...
 

Additional Inherited Members

- Static Public Attributes inherited from graphene::chain::vesting_balance_object
static const uint8_t space_id = protocol_ids
 
static const uint8_t type_id = vesting_balance_object_type
 

Detailed Description

Definition at line 239 of file wallet.hpp.

Constructor & Destructor Documentation

◆ vesting_balance_object_with_info() [1/2]

graphene::wallet::vesting_balance_object_with_info::vesting_balance_object_with_info ( const vesting_balance_object vbo,
fc::time_point_sec  now 
)

Definition at line 4705 of file wallet.cpp.

◆ vesting_balance_object_with_info() [2/2]

graphene::wallet::vesting_balance_object_with_info::vesting_balance_object_with_info ( const vesting_balance_object_with_info vbo)
default

Member Data Documentation

◆ allowed_withdraw

asset graphene::wallet::vesting_balance_object_with_info::allowed_withdraw

How much is allowed to be withdrawn.

Definition at line 247 of file wallet.hpp.

◆ allowed_withdraw_time

fc::time_point_sec graphene::wallet::vesting_balance_object_with_info::allowed_withdraw_time

The time at which allowed_withdrawal was calculated.

Definition at line 252 of file wallet.hpp.


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