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::htlc_refund_operation Struct Reference

#include <htlc.hpp>

Inheritance diagram for graphene::protocol::htlc_refund_operation:
graphene::protocol::base_operation

Classes

struct  fee_params_t
 

Public Member Functions

 htlc_refund_operation ()
 
 htlc_refund_operation (const htlc_id_type &htlc_id, const account_id_type &htlc_from, const account_id_type &htlc_to, const asset &amount, const htlc_hash &preimage_hash, uint16_t preimage_size)
 
account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_params_t &k) const
 This is a virtual operation; there is no fee. More...
 
account_id_type htlc_from () const
 
account_id_type htlc_to () 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
 
htlc_id_type htlc_id
 
account_id_type to
 
account_id_type original_htlc_recipient
 
asset htlc_amount
 
htlc_hash htlc_preimage_hash
 
uint16_t htlc_preimage_size
 

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

Definition at line 187 of file htlc.hpp.

Constructor & Destructor Documentation

◆ htlc_refund_operation() [1/2]

graphene::protocol::htlc_refund_operation::htlc_refund_operation ( )
inline

Definition at line 191 of file htlc.hpp.

◆ htlc_refund_operation() [2/2]

graphene::protocol::htlc_refund_operation::htlc_refund_operation ( const htlc_id_type &  htlc_id,
const account_id_type &  htlc_from,
const account_id_type &  htlc_to,
const asset amount,
const htlc_hash preimage_hash,
uint16_t  preimage_size 
)
inline

Definition at line 192 of file htlc.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::protocol::htlc_refund_operation::calculate_fee ( const fee_params_t k) const
inline

This is a virtual operation; there is no fee.

Definition at line 202 of file htlc.hpp.

◆ fee_payer()

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

Definition at line 198 of file htlc.hpp.

◆ htlc_from()

account_id_type graphene::protocol::htlc_refund_operation::htlc_from ( ) const
inline

Definition at line 208 of file htlc.hpp.

◆ htlc_to()

account_id_type graphene::protocol::htlc_refund_operation::htlc_to ( ) const
inline

Definition at line 209 of file htlc.hpp.

◆ validate()

void graphene::protocol::htlc_refund_operation::validate ( ) const
inlinevirtual

Reimplemented from graphene::protocol::base_operation.

Definition at line 199 of file htlc.hpp.

Member Data Documentation

◆ fee

asset graphene::protocol::htlc_refund_operation::fee

Definition at line 204 of file htlc.hpp.

◆ htlc_amount

asset graphene::protocol::htlc_refund_operation::htlc_amount

Definition at line 209 of file htlc.hpp.

◆ htlc_id

htlc_id_type graphene::protocol::htlc_refund_operation::htlc_id

Definition at line 206 of file htlc.hpp.

◆ htlc_preimage_hash

htlc_hash graphene::protocol::htlc_refund_operation::htlc_preimage_hash

Definition at line 211 of file htlc.hpp.

◆ htlc_preimage_size

uint16_t graphene::protocol::htlc_refund_operation::htlc_preimage_size

Definition at line 212 of file htlc.hpp.

◆ original_htlc_recipient

account_id_type graphene::protocol::htlc_refund_operation::original_htlc_recipient

Definition at line 207 of file htlc.hpp.

◆ to

account_id_type graphene::protocol::htlc_refund_operation::to

Definition at line 207 of file htlc.hpp.


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