BitShares-Core  6.0.1
BitShares blockchain implementation and command-line interface software
Public Attributes | Static Public Attributes | List of all members
graphene::chain::credit_deal_object Class Reference

A credit deal describes the details of a borrower's borrowing of funds from a credit offer. More...

#include <credit_offer_object.hpp>

Inheritance diagram for graphene::chain::credit_deal_object:
graphene::db::abstract_object< credit_deal_object > graphene::db::object

Public Attributes

account_id_type borrower
 Borrower. More...
 
credit_offer_id_type offer_id
 ID of the credit offer. More...
 
account_id_type offer_owner
 Owner of the credit offer, redundant info for ease of querying. More...
 
asset_id_type debt_asset
 Asset type of the debt, redundant info for ease of querying. More...
 
share_type debt_amount
 How much funds borrowed. More...
 
asset_id_type collateral_asset
 Asset type of the collateral. More...
 
share_type collateral_amount
 How much funds in collateral. More...
 
uint32_t fee_rate = 0
 Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM. More...
 
time_point_sec latest_repay_time
 The deadline when the debt should be repaid. More...
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Static Public Attributes

static constexpr uint8_t space_id = protocol_ids
 
static constexpr uint8_t type_id = credit_deal_object_type
 

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< credit_deal_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 ()
 

Detailed Description

A credit deal describes the details of a borrower's borrowing of funds from a credit offer.

Definition at line 107 of file credit_offer_object.hpp.

Member Data Documentation

◆ borrower

account_id_type graphene::chain::credit_deal_object::borrower

Borrower.

Definition at line 113 of file credit_offer_object.hpp.

◆ collateral_amount

share_type graphene::chain::credit_deal_object::collateral_amount

How much funds in collateral.

Definition at line 119 of file credit_offer_object.hpp.

◆ collateral_asset

asset_id_type graphene::chain::credit_deal_object::collateral_asset

Asset type of the collateral.

Definition at line 118 of file credit_offer_object.hpp.

◆ debt_amount

share_type graphene::chain::credit_deal_object::debt_amount

How much funds borrowed.

Definition at line 117 of file credit_offer_object.hpp.

◆ debt_asset

asset_id_type graphene::chain::credit_deal_object::debt_asset

Asset type of the debt, redundant info for ease of querying.

Definition at line 116 of file credit_offer_object.hpp.

◆ fee_rate

uint32_t graphene::chain::credit_deal_object::fee_rate = 0

Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.

Definition at line 120 of file credit_offer_object.hpp.

◆ latest_repay_time

time_point_sec graphene::chain::credit_deal_object::latest_repay_time

The deadline when the debt should be repaid.

Definition at line 121 of file credit_offer_object.hpp.

◆ offer_id

credit_offer_id_type graphene::chain::credit_deal_object::offer_id

ID of the credit offer.

Definition at line 114 of file credit_offer_object.hpp.

◆ offer_owner

account_id_type graphene::chain::credit_deal_object::offer_owner

Owner of the credit offer, redundant info for ease of querying.

Definition at line 115 of file credit_offer_object.hpp.

◆ space_id

constexpr uint8_t graphene::chain::credit_deal_object::space_id = protocol_ids
static

Definition at line 110 of file credit_offer_object.hpp.

◆ type_id

constexpr uint8_t graphene::chain::credit_deal_object::type_id = credit_deal_object_type
static

Definition at line 111 of file credit_offer_object.hpp.


The documentation for this class was generated from the following file: