BitShares-Core  6.0.1
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::protocol::credit_offer_accept_operation Struct Reference

Accept a creadit offer and create a credit deal. More...

#include <credit_offer.hpp>

Inheritance diagram for graphene::protocol::credit_offer_accept_operation:


struct  fee_parameters_type

Public Member Functions

account_id_type fee_payer () const
void validate () const override
- Public Member Functions inherited from graphene::protocol::base_operation
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 borrower
 The account who accepts the offer. More...
credit_offer_id_type offer_id
 ID of the credit offer. More...
asset borrow_amount
 The amount to borrow. More...
asset collateral
 The collateral. More...
uint32_t max_fee_rate = 0
 The maximum acceptable fee rate. More...
uint32_t min_duration_seconds = 0
 The minimum acceptable duration. 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

Accept a creadit offer and create a credit deal.

Definition at line 122 of file credit_offer.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::protocol::credit_offer_accept_operation::fee_payer ( ) const

Definition at line 136 of file credit_offer.hpp.

◆ validate()

void graphene::protocol::credit_offer_accept_operation::validate ( ) const

Reimplemented from graphene::protocol::base_operation.

Definition at line 144 of file credit_offer.cpp.

Member Data Documentation

◆ borrow_amount

asset graphene::protocol::credit_offer_accept_operation::borrow_amount

The amount to borrow.

Definition at line 129 of file credit_offer.hpp.

◆ borrower

account_id_type graphene::protocol::credit_offer_accept_operation::borrower

The account who accepts the offer.

Definition at line 127 of file credit_offer.hpp.

◆ collateral

asset graphene::protocol::credit_offer_accept_operation::collateral

The collateral.

Definition at line 130 of file credit_offer.hpp.

◆ extensions

extensions_type graphene::protocol::credit_offer_accept_operation::extensions

Unused. Reserved for future use.

Definition at line 134 of file credit_offer.hpp.

◆ fee

asset graphene::protocol::credit_offer_accept_operation::fee

Operation fee.

Definition at line 126 of file credit_offer.hpp.

◆ max_fee_rate

uint32_t graphene::protocol::credit_offer_accept_operation::max_fee_rate = 0

The maximum acceptable fee rate.

Definition at line 131 of file credit_offer.hpp.

◆ min_duration_seconds

uint32_t graphene::protocol::credit_offer_accept_operation::min_duration_seconds = 0

The minimum acceptable duration.

Definition at line 132 of file credit_offer.hpp.

◆ offer_id

credit_offer_id_type graphene::protocol::credit_offer_accept_operation::offer_id

ID of the credit offer.

Definition at line 128 of file credit_offer.hpp.

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