6#ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_OUTPUT_HPP_
7#define ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_OUTPUT_HPP_
12#include <veriblock/pop/json.hpp>
34 : address(std::move(_address)), coin(_coin) {}
49 size_t estimateSize()
const;
51 std::string toPrettyString()
const;
55template <
typename JsonValue>
57 JsonValue obj = json::makeEmptyObject<JsonValue>();
58 json::putStringKV(obj,
"address", o.address.
toString());
59 json::putIntKV(obj,
"coin", o.coin.units);
Class that is used for storing validation state.
Binary writer that is useful for binary serialization.
bool DeserializeFromVbkEncoding(ReadStream &stream, AltBlockAddon &out, ValidationState &state)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Represents address on VBK chain.
std::string toString() const noexcept
Convert VBK address to text representation.
represents VBK atomic units
void toVbkEncoding(WriteStream &stream) const
Convert Output to data stream using Output VBK byte format.
bool operator==(const Output &other) const noexcept
Compare two Outputs for equality.
Binary reading stream, that is useful during binary deserialization.