BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::protocol::credit_offer_create_operation Struct Reference

Create a new credit offer. More...

#include <credit_offer.hpp>

Inheritance diagram for graphene::protocol::credit_offer_create_operation:
graphene::protocol::base_operation

Classes

struct  fee_params_t
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const override
 
share_type calculate_fee (const fee_params_t &k) const
 
- Public Member Functions inherited from graphene::protocol::base_operation
virtual ~base_operation ()=default
 
template<typename T >
share_type calculate_fee (const T &params) const
 
virtual void get_required_authorities (vector< authority > &) const
 
virtual void get_required_active_authorities (flat_set< account_id_type > &) const
 
virtual void get_required_owner_authorities (flat_set< account_id_type > &) const
 
fc::optional< fc::future< void > > validate_parallel (uint32_t skip) const
 

Public Attributes

asset fee
 Operation fee. More...
 
account_id_type owner_account
 Owner of the credit offer. More...
 
asset_id_type asset_type
 Asset type in the credit offer. More...
 
share_type balance
 Usable amount in the credit offer. More...
 
uint32_t fee_rate = 0
 Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM. More...
 
uint32_t max_duration_seconds = 0
 The time limit that borrowed funds should be repaid. More...
 
share_type min_deal_amount
 Minimum amount to borrow for each new deal. More...
 
bool enabled = false
 Whether this offer is available. More...
 
time_point_sec auto_disable_time
 The time when this offer will be disabled automatically. More...
 
flat_map< asset_id_type, priceacceptable_collateral
 Types and rates of acceptable collateral. More...
 
flat_map< account_id_type, share_typeacceptable_borrowers
 Allowed borrowers and their maximum amounts to borrow. No limitation if empty. More...
 
extensions_type extensions
 Unused. Reserved for future use. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::protocol::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

Create a new credit offer.

A credit offer is a fund that can be used by other accounts who provide certain collateral.

Definition at line 36 of file credit_offer.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::protocol::credit_offer_create_operation::calculate_fee ( const fee_params_t k) const

Definition at line 79 of file credit_offer.cpp.

◆ fee_payer()

account_id_type graphene::protocol::credit_offer_create_operation::fee_payer ( ) const
inline

Definition at line 61 of file credit_offer.hpp.

◆ validate()

void graphene::protocol::credit_offer_create_operation::validate ( ) const
overridevirtual

Reimplemented from graphene::protocol::base_operation.

Definition at line 63 of file credit_offer.cpp.

Member Data Documentation

◆ acceptable_borrowers

flat_map<account_id_type, share_type> graphene::protocol::credit_offer_create_operation::acceptable_borrowers

Allowed borrowers and their maximum amounts to borrow. No limitation if empty.

Definition at line 57 of file credit_offer.hpp.

◆ acceptable_collateral

flat_map<asset_id_type, price> graphene::protocol::credit_offer_create_operation::acceptable_collateral

Types and rates of acceptable collateral.

Definition at line 54 of file credit_offer.hpp.

◆ asset_type

asset_id_type graphene::protocol::credit_offer_create_operation::asset_type

Asset type in the credit offer.

Definition at line 45 of file credit_offer.hpp.

◆ auto_disable_time

time_point_sec graphene::protocol::credit_offer_create_operation::auto_disable_time

The time when this offer will be disabled automatically.

Definition at line 51 of file credit_offer.hpp.

◆ balance

share_type graphene::protocol::credit_offer_create_operation::balance

Usable amount in the credit offer.

Definition at line 46 of file credit_offer.hpp.

◆ enabled

bool graphene::protocol::credit_offer_create_operation::enabled = false

Whether this offer is available.

Definition at line 50 of file credit_offer.hpp.

◆ extensions

extensions_type graphene::protocol::credit_offer_create_operation::extensions

Unused. Reserved for future use.

Definition at line 59 of file credit_offer.hpp.

◆ fee

asset graphene::protocol::credit_offer_create_operation::fee

Operation fee.

Definition at line 43 of file credit_offer.hpp.

◆ fee_rate

uint32_t graphene::protocol::credit_offer_create_operation::fee_rate = 0

Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.

Definition at line 47 of file credit_offer.hpp.

◆ max_duration_seconds

uint32_t graphene::protocol::credit_offer_create_operation::max_duration_seconds = 0

The time limit that borrowed funds should be repaid.

Definition at line 48 of file credit_offer.hpp.

◆ min_deal_amount

share_type graphene::protocol::credit_offer_create_operation::min_deal_amount

Minimum amount to borrow for each new deal.

Definition at line 49 of file credit_offer.hpp.

◆ owner_account

account_id_type graphene::protocol::credit_offer_create_operation::owner_account

Owner of the credit offer.

Definition at line 44 of file credit_offer.hpp.


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