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

#include <htlc.hpp>

Inheritance diagram for graphene::protocol::htlc_create_operation:


struct  additional_options_type
struct  fee_params_t

Public Member Functions

void validate () const
account_id_type fee_payer () const
 who will pay the fee More...
share_type calculate_fee (const fee_params_t &fee_params, uint32_t fee_per_kb) 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
account_id_type from
account_id_type to
asset amount
htlc_hash preimage_hash
uint16_t preimage_size
uint32_t claim_period_seconds
extension< additional_options_typeextensions

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 45 of file htlc.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::protocol::htlc_create_operation::calculate_fee ( const fee_params_t fee_params,
uint32_t  fee_per_kb 
) const

Definition at line 37 of file htlc.cpp.

◆ fee_payer()

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

who will pay the fee

Definition at line 82 of file htlc.hpp.

◆ validate()

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

Reimplemented from graphene::protocol::base_operation.

Definition at line 32 of file htlc.cpp.

Member Data Documentation

◆ amount

asset graphene::protocol::htlc_create_operation::amount

Definition at line 59 of file htlc.hpp.

◆ claim_period_seconds

uint32_t graphene::protocol::htlc_create_operation::claim_period_seconds

Definition at line 65 of file htlc.hpp.

◆ extensions

extension<additional_options_type> graphene::protocol::htlc_create_operation::extensions

Definition at line 72 of file htlc.hpp.

◆ fee

asset graphene::protocol::htlc_create_operation::fee

Definition at line 53 of file htlc.hpp.

◆ from

account_id_type graphene::protocol::htlc_create_operation::from

Definition at line 55 of file htlc.hpp.

◆ preimage_hash

htlc_hash graphene::protocol::htlc_create_operation::preimage_hash

Definition at line 61 of file htlc.hpp.

◆ preimage_size

uint16_t graphene::protocol::htlc_create_operation::preimage_size

Definition at line 63 of file htlc.hpp.

◆ to

account_id_type graphene::protocol::htlc_create_operation::to

Definition at line 57 of file htlc.hpp.

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