BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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, protocol_ids, vesting_balance_object_type > graphene::db::base_abstract_object< vesting_balance_object > graphene::db::object

Public Member Functions

 vesting_balance_object_with_info (const vesting_balance_object &vbo, const fc::time_point_sec &now)
 
- 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, protocol_ids, vesting_balance_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< vesting_balance_object >
std::unique_ptr< objectclone () const override
 
void move_from (object &obj) override
 
fc::variant to_variant () const override
 
std::vector< char > pack () const override
 
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
- Public Member Functions inherited from graphene::db::object
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
virtual ~object ()=default
 
virtual std::unique_ptr< objectclone () const =0
 
virtual fc::variant to_variant () const =0
 
virtual std::vector< char > pack () const =0
 

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::db::abstract_object< vesting_balance_object, protocol_ids, vesting_balance_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

Detailed Description

Definition at line 238 of file wallet_structs.hpp.

Constructor & Destructor Documentation

◆ vesting_balance_object_with_info()

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

Definition at line 1952 of file wallet.cpp.

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 245 of file wallet_structs.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 250 of file wallet_structs.hpp.


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