veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::PopPayouts Struct Reference

A container for Pop payouts information. More...

Detailed Description

Definition at line 28 of file pop_payouts.hpp.

#include <pop_payouts.hpp>

+ Collaboration diagram for altintegration::PopPayouts:

Public Types

using payout_info_t = std::vector< uint8_t >
 
using amount_t = uint64_t
 

Public Member Functions

void add (const payout_info_t &address, amount_t amount)
 
size_t size () const
 
bool empty () const
 
operator decltype() payouts ()
 
auto begin () -> decltype(payouts.begin())
 
auto end () -> decltype(payouts.end())
 
auto begin () const -> decltype(payouts.begin())
 
auto end () const -> decltype(payouts.end())
 
void toVbkEncoding (WriteStream &stream) const
 Convert PopRewards to data stream. More...
 

Public Attributes

std::map< payout_info_t, amount_t > payouts
 

Friends

bool DeserializeFromVbkEncoding (ReadStream &stream, PopPayouts &out, ValidationState &state)
 

Member Typedef Documentation

◆ amount_t

using altintegration::PopPayouts::amount_t = uint64_t

Definition at line 30 of file pop_payouts.hpp.

◆ payout_info_t

using altintegration::PopPayouts::payout_info_t = std::vector<uint8_t>

Definition at line 29 of file pop_payouts.hpp.

Member Function Documentation

◆ begin() [1/2]

auto altintegration::PopPayouts::begin ( ) -> decltype(payouts.begin())
inline

Definition at line 42 of file pop_payouts.hpp.

42{ return payouts.begin(); }

◆ begin() [2/2]

auto altintegration::PopPayouts::begin ( ) const -> decltype(payouts.begin())
inline

Definition at line 44 of file pop_payouts.hpp.

44{ return payouts.begin(); }

◆ end() [1/2]

auto altintegration::PopPayouts::end ( ) -> decltype(payouts.end())
inline

Definition at line 43 of file pop_payouts.hpp.

43{ return payouts.end(); }

◆ end() [2/2]

auto altintegration::PopPayouts::end ( ) const -> decltype(payouts.end())
inline

Definition at line 45 of file pop_payouts.hpp.

45{ return payouts.end(); }

◆ payouts()

operator decltype() altintegration::PopPayouts::payouts ( )
inlineexplicit

Definition at line 41 of file pop_payouts.hpp.

41{ return payouts; }

◆ toVbkEncoding()

void altintegration::PopPayouts::toVbkEncoding ( WriteStream stream) const
Parameters
streamdata stream to write into

Member Data Documentation

◆ payouts

std::map<payout_info_t, amount_t> altintegration::PopPayouts::payouts

Definition at line 32 of file pop_payouts.hpp.


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