mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Promote 'amounts' to a new type. Codify storage format, both internal
and serialized. Define operators.
This commit is contained in:
@@ -16,6 +16,9 @@ SerializedType* STObject::makeDefaultObject(SerializedTypeID id, const char *nam
|
||||
case STI_UINT64:
|
||||
return new STUInt64(name);
|
||||
|
||||
case STI_AMOUNT:
|
||||
return new STAmount(name);
|
||||
|
||||
case STI_HASH160:
|
||||
return new STHash160(name);
|
||||
|
||||
@@ -49,6 +52,9 @@ SerializedType* STObject::makeDeserializedObject(SerializedTypeID id, const char
|
||||
case STI_UINT64:
|
||||
return STUInt64::construct(sit, name);
|
||||
|
||||
case STI_AMOUNT:
|
||||
return STAmount::construct(sit, name);
|
||||
|
||||
case STI_HASH160:
|
||||
return STHash160::construct(sit, name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user