6#ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_COIN_HPP_
7#define ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_COIN_HPP_
12#include <veriblock/pop/fmt.hpp>
13#include <veriblock/pop/serde.hpp>
26 std::string toPrettyString()
const;
28 explicit Coin(int64_t atomicUnits) : units(atomicUnits) {}
36 size_t estimateSize()
const;
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 VBK atomic units
void toVbkEncoding(WriteStream &stream) const
Convert Coin to data stream using BtcTx Coin byte format.
bool operator==(const Coin &other) const noexcept
Compare two Coins for equality.
Binary reading stream, that is useful during binary deserialization.