Promote 'amounts' to a new type. Codify storage format, both internal

and serialized. Define operators.
This commit is contained in:
JoelKatz
2012-04-09 19:36:51 -07:00
parent 3e91ddc6d7
commit fcdf42e799
5 changed files with 147 additions and 8 deletions

View File

@@ -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);