32 namespace graphene {
namespace protocol {
134 const std::vector<char>& preimage ) :
135 htlc_id(htlc_id), from(from), to(to), redeemer(redeemer), amount(amount),
136 htlc_preimage_hash(preimage_hash), htlc_preimage_size(preimage_size), preimage(preimage) {}
179 account_id_type
fee_payer()
const {
return update_issuer; }
193 const account_id_type& htlc_from,
const account_id_type& htlc_to,
const asset&
amount,
195 htlc_id(htlc_id),
to(htlc_from), original_htlc_recipient(htlc_to), htlc_amount(amount),
196 htlc_preimage_hash(preimage_hash), htlc_preimage_size(preimage_size) {}
207 account_id_type
to, original_htlc_recipient;
209 account_id_type
htlc_to()
const {
return original_htlc_recipient; };
230 (
fee)(htlc_id)(
from)(
to)(redeemer)(
amount)(htlc_preimage_hash)(htlc_preimage_size)(preimage))
233 (
fee)(htlc_id)(
to)(original_htlc_recipient)(htlc_amount)(htlc_preimage_hash)(htlc_preimage_size))
future_extensions::flat_set_type extensions_type
extensions_type extensions
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
share_type calculate_fee(const fee_parameters_type &k) const
std::vector< char > preimage
uint16_t htlc_preimage_size
account_id_type fee_payer() const
htlc_redeemed_operation()
uint16_t htlc_preimage_size
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)
provides stack-based nullable value similar to boost::optional
extension< additional_options_type > extensions
FC_REFLECT_TYPENAME(fc::log_message)
share_type calculate_fee(const fee_parameters_type &k) const
This is a virtual operation; there is no fee.
extensions_type extensions
account_id_type htlc_from() const
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
fc::hash160 htlc_algo_hash160
account_id_type fee_payer() const
who will pay the fee
#define GRAPHENE_BLOCKCHAIN_PRECISION
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
account_id_type fee_payer() const
Who is to pay the fee.
std::vector< char > preimage
fc::ripemd160 htlc_algo_ripemd160
uint32_t claim_period_seconds
fc::static_variant< htlc_algo_ripemd160, htlc_algo_sha1, htlc_algo_sha256, htlc_algo_hash160 > htlc_hash
fc::sha256 htlc_algo_sha256
account_id_type fee_payer() const
Who is to pay the fee.
fc::optional< memo_data > memo
share_type calculate_fee(const fee_parameters_type &fee_params, uint32_t fee_per_kb) const
account_id_type update_issuer
htlc_redeemed_operation(htlc_id_type htlc_id, account_id_type from, account_id_type to, account_id_type redeemer, asset amount, const htlc_hash &preimage_hash, uint16_t preimage_size, const std::vector< char > &preimage)
htlc_hash htlc_preimage_hash
account_id_type fee_payer() const
account_id_type htlc_to() const
htlc_hash htlc_preimage_hash