BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
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, protocol_ids, credit_deal_object_type > graphene::db::base_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...
 
uint8_t auto_repay
 The specified automatic repayment type. More...
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< credit_deal_object, protocol_ids, credit_deal_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< credit_deal_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
 
- Static Public Attributes inherited from graphene::db::abstract_object< credit_deal_object, protocol_ids, credit_deal_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

Detailed Description

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

Definition at line 104 of file credit_offer_object.hpp.

Member Data Documentation

◆ auto_repay

uint8_t graphene::chain::credit_deal_object::auto_repay

The specified automatic repayment type.

Definition at line 116 of file credit_offer_object.hpp.

◆ borrower

account_id_type graphene::chain::credit_deal_object::borrower

Borrower.

Definition at line 107 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 113 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 112 of file credit_offer_object.hpp.

◆ debt_amount

share_type graphene::chain::credit_deal_object::debt_amount

How much funds borrowed.

Definition at line 111 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 110 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 114 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 115 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 108 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 109 of file credit_offer_object.hpp.


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