Amount m_supply
Definition: MosaicEntry.h:42
#define CATAPULT_THROW_INVALID_ARGUMENT_2(MESSAGE, PARAM1, PARAM2)
Macro used to throw a catapult invalid argument with two parameters.
Definition: exceptions.h:187
void decreaseSupply(Amount delta)
Definition: MosaicEntry.cpp:35
A tuple composed of a mosaic definition and its current state.
Definition: MosaicEntry.h:50
MosaicEntry(MosaicId id, const MosaicDefinition &definition)
Creates a mosaic entry around mosaic id and mosaic definition.
Definition: MosaicEntry.cpp:46
MosaicDefinition m_definition
Definition: MosaicEntry.h:67
Mixin for storing and modifying a supply in MosaicEntry.
Definition: MosaicEntry.h:29
bool isActive(Height height) const
Returns true if entry is active at height.
Definition: MosaicEntry.cpp:61
const MosaicDefinition & definition() const
Gets the mosaic definition.
Definition: MosaicEntry.cpp:57
MosaicId mosaicId() const
Gets the mosaic id.
Definition: MosaicEntry.cpp:52
void increaseSupply(Amount delta)
Increases the supply by delta.
Definition: MosaicEntry.cpp:31
Amount supply() const
Gets the mosaic supply.
Definition: MosaicEntry.cpp:27
MosaicId m_id
Definition: MosaicEntry.h:66