Expand description
amount related structures
Structs§
- Amount
- A structure representing a decimal Amount of coins with safe operations
this allows ensuring that there is never an uncontrolled overflow or precision loss
while providing a convenient decimal interface for users
The underlying
u64raw representation if a fixed-point value with factorAMOUNT_DECIMAL_FACTORThe minimal value is 0 and the maximal value is 18446744073.709551615(std::u64::MAX/1e9) - Amount
Deserializer - Deserializer for amount
- Amount
Serializer - Serializer for amount
- Amount
Visitor 🔒
Constants§
- AMOUNT_
DECIMAL_ FACTOR - Decimals factor for the amount
- AMOUNT_
DECIMAL_ SCALE - Decimals scale for the amount