BitShares-Core  5.0.0
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_structs.hpp>

Inheritance diagram for graphene::wallet::vesting_balance_object_with_info:
graphene::chain::vesting_balance_object graphene::db::abstract_object< vesting_balance_object > graphene::db::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 Member Functions inherited from graphene::db::abstract_object< vesting_balance_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
virtual void move_from (object &obj)
virtual variant to_variant () const
virtual vector< char > pack () const
- Public Member Functions inherited from graphene::db::object
 object ()
virtual ~object ()

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...
vesting_balance_type balance_type = vesting_balance_type::unspecified
 type of the vesting balance More...
- Public Attributes inherited from graphene::db::object
object_id_type id

Additional Inherited Members

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

Detailed Description

Definition at line 239 of file wallet_structs.hpp.

Constructor & Destructor Documentation

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 1939 of file wallet.cpp.

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

Member Data Documentation

asset graphene::wallet::vesting_balance_object_with_info::allowed_withdraw

How much is allowed to be withdrawn.

Definition at line 247 of file wallet_structs.hpp.

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_structs.hpp.

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