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_update_operation Struct Reference

Update a credit offer. More...

#include <credit_offer.hpp>

Inheritance diagram for graphene::protocol::credit_offer_update_operation:
graphene::protocol::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const override
 
share_type calculate_fee (const fee_parameters_type &k) const
 
- 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 owner_account
 Owner of the credit offer. More...
 
credit_offer_id_type offer_id
 ID of the credit offer. More...
 
optional< assetdelta_amount
 Delta amount, optional. More...
 
optional< uint32_t > fee_rate
 New fee rate, optional. More...
 
optional< uint32_t > max_duration_seconds
 New repayment time limit, optional. More...
 
optional< share_typemin_deal_amount
 Minimum amount to borrow for each new deal, optional. More...
 
optional< bool > enabled
 Whether this offer is available, optional. More...
 
optional< time_point_secauto_disable_time
 New time to disable automatically, optional. More...
 
optional< flat_map< asset_id_type, price > > acceptable_collateral
 New types and rates of acceptable collateral, optional. More...
 
optional< flat_map< account_id_type, share_type > > acceptable_borrowers
 New allowed borrowers and their maximum amounts to borrow, optional. 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

Update a credit offer.

Definition at line 88 of file credit_offer.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::protocol::credit_offer_update_operation::calculate_fee ( const fee_parameters_type k) const

Definition at line 137 of file credit_offer.cpp.

◆ fee_payer()

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

Definition at line 113 of file credit_offer.hpp.

◆ validate()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 91 of file credit_offer.cpp.

Member Data Documentation

◆ acceptable_borrowers

optional<flat_map<account_id_type, share_type> > graphene::protocol::credit_offer_update_operation::acceptable_borrowers

New allowed borrowers and their maximum amounts to borrow, optional.

Definition at line 109 of file credit_offer.hpp.

◆ acceptable_collateral

optional<flat_map<asset_id_type, price> > graphene::protocol::credit_offer_update_operation::acceptable_collateral

New types and rates of acceptable collateral, optional.

Definition at line 106 of file credit_offer.hpp.

◆ auto_disable_time

optional<time_point_sec> graphene::protocol::credit_offer_update_operation::auto_disable_time

New time to disable automatically, optional.

Definition at line 103 of file credit_offer.hpp.

◆ delta_amount

optional<asset> graphene::protocol::credit_offer_update_operation::delta_amount

Delta amount, optional.

Definition at line 98 of file credit_offer.hpp.

◆ enabled

optional<bool> graphene::protocol::credit_offer_update_operation::enabled

Whether this offer is available, optional.

Definition at line 102 of file credit_offer.hpp.

◆ extensions

extensions_type graphene::protocol::credit_offer_update_operation::extensions

Unused. Reserved for future use.

Definition at line 111 of file credit_offer.hpp.

◆ fee

asset graphene::protocol::credit_offer_update_operation::fee

Operation fee.

Definition at line 95 of file credit_offer.hpp.

◆ fee_rate

optional<uint32_t> graphene::protocol::credit_offer_update_operation::fee_rate

New fee rate, optional.

Definition at line 99 of file credit_offer.hpp.

◆ max_duration_seconds

optional<uint32_t> graphene::protocol::credit_offer_update_operation::max_duration_seconds

New repayment time limit, optional.

Definition at line 100 of file credit_offer.hpp.

◆ min_deal_amount

optional<share_type> graphene::protocol::credit_offer_update_operation::min_deal_amount

Minimum amount to borrow for each new deal, optional.

Definition at line 101 of file credit_offer.hpp.

◆ offer_id

credit_offer_id_type graphene::protocol::credit_offer_update_operation::offer_id

ID of the credit offer.

Definition at line 97 of file credit_offer.hpp.

◆ owner_account

account_id_type graphene::protocol::credit_offer_update_operation::owner_account

Owner of the credit offer.

Definition at line 96 of file credit_offer.hpp.


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