6#ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_POP_REWARDS_HPP_
7#define ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_POP_REWARDS_HPP_
15#include "veriblock/pop/serde.hpp"
16#include "veriblock/pop/validation_state.hpp"
29 using payout_info_t = std::vector<uint8_t>;
30 using amount_t = uint64_t;
32 std::map<payout_info_t, amount_t> payouts;
34 void add(
const payout_info_t& address, amount_t amount);
41 explicit operator decltype(payouts)() {
return payouts; }
42 auto begin() ->
decltype(payouts.begin()) {
return payouts.begin(); }
43 auto end() ->
decltype(payouts.end()) {
return payouts.end(); }
44 auto begin()
const ->
decltype(payouts.begin()) {
return payouts.begin(); }
45 auto end()
const ->
decltype(payouts.end()) {
return payouts.end(); }
53 friend bool DeserializeFromVbkEncoding(
ReadStream& stream,
Class that is used for storing validation state.
Binary writer that is useful for binary serialization.
A container for Pop payouts information.
void toVbkEncoding(WriteStream &stream) const
Convert PopRewards to data stream.
Binary reading stream, that is useful during binary deserialization.