Commit Graph

60 Commits

Author SHA1 Message Date
JoelKatz
4e7d1cb390 Add an STAmount::operator bool() const 2012-06-04 19:10:30 -07:00
JoelKatz
70d978fc71 prototype 2012-06-01 20:32:59 -07:00
JoelKatz
3583b7478f Cleanup. 2012-06-01 15:41:37 -07:00
Arthur Britto
6cb234ef82 Merge branch 'pay'
Conflicts:
	src/LedgerMaster.h
2012-05-31 01:54:44 -07:00
Arthur Britto
21d9140e4e Work toward working directories. 2012-05-30 23:18:57 -07:00
JoelKatz
bb1c226fc0 Fix STVector256::getLength 2012-05-30 16:03:51 -07:00
JoelKatz
dc734a7f0b Updates to vector type 2012-05-30 14:08:59 -07:00
JoelKatz
01f16914ce Cleanups. 2012-05-28 23:49:43 -07:00
JoelKatz
51816f1e56 Simplifications. 2012-05-27 20:09:49 -07:00
JoelKatz
02fd3e2f7a Signed get/set functions for native currency values. 2012-05-27 18:29:55 -07:00
JoelKatz
959fa8e298 Avoid the getValue confusion. Use getNValue for native, getMantissa otherwise 2012-05-27 18:23:33 -07:00
JoelKatz
64f903f21d Finish the rewrite. 2012-05-27 16:40:25 -07:00
JoelKatz
d67f06d456 More work on the new amount class. 2012-05-27 16:10:08 -07:00
JoelKatz
47fefdc26c About half of the rework to support signed floating point amounts. 2012-05-27 15:54:38 -07:00
Arthur Britto
451df81411 Add support for STVector256. 2012-05-26 02:55:36 -07:00
JoelKatz
613c3fdca9 Restore sanity to same STAmount operations. 2012-05-21 14:33:19 -07:00
Arthur Britto
1e9304f8c6 Use STPathSet in place of STPath in transactions. 2012-05-20 23:43:02 -07:00
Arthur Britto
261fab7108 Merge with new path code. 2012-05-20 23:03:05 -07:00
Arthur Britto
98ade9985e Work toward RPC send. 2012-05-20 22:59:13 -07:00
JoelKatz
9cfe26f5d6 New path code. PathSet/PathElement. 2012-05-20 20:14:19 -07:00
Arthur Britto
47b168c390 Merge branch 'pay' 2012-05-19 18:20:14 -07:00
Arthur Britto
82085f0264 Add string support for currencies to STAmount. 2012-05-19 18:16:13 -07:00
JoelKatz
ab899bb125 Updates. 2012-05-19 01:56:43 -07:00
JoelKatz
567ac3c846 STPathElement and STPath classes. Better Json-ization of serialized types. 2012-05-19 01:09:59 -07:00
JoelKatz
5118f23956 Fix a bug in STAmount::duplicate 2012-05-18 20:53:38 -07:00
Arthur Britto
abccd3aeb6 More toward using STAmount. 2012-05-18 20:17:28 -07:00
Arthur Britto
8760a5b3d2 Change over to STAmount. 2012-05-18 19:28:39 -07:00
JoelKatz
f9fadf1d71 Sorry to break the build. Boost unit testing code won't link. 2012-05-18 01:00:09 -07:00
JoelKatz
7019a46db1 Huge amount rewrite to support all currency types. 2012-05-17 23:45:13 -07:00
JoelKatz
cb4fcfddac Get rid of some ugliness in the use of ptr_vectors. I hope I didn't break anything. 2012-05-15 16:07:42 -07:00
JoelKatz
69c559a1b3 Fix the bug that was breaking Jed's build. 2012-05-11 16:30:28 -07:00
Arthur Britto
f548e27e67 Cosmetic changes. 2012-05-05 16:46:29 -07:00
JoelKatz
cf801992be Cleanups. Missing helper functions. 2012-05-03 12:40:05 -07:00
JoelKatz
fc10975bb7 Tiny cosmetic fix. 2012-04-26 18:58:56 -07:00
JoelKatz
275d509d31 Small cleanups. 2012-04-24 18:03:12 -07:00
JoelKatz
4bb078f053 *_clone functions were in the wrong place. 2012-04-24 15:57:46 -07:00
JoelKatz
18c1b104a0 NewcoinAddress functions. 2012-04-23 16:00:09 -07:00
JoelKatz
a3c0661451 A simplification. 2012-04-13 16:29:42 -07:00
JoelKatz
f5464e02b6 Unit test framework. 2012-04-12 23:41:32 -07:00
JoelKatz
f354f1578a Missing from previous commit. 2012-04-12 16:02:33 -07:00
JoelKatz
6aeded3863 Missing commit. 2012-04-11 23:38:07 -07:00
JoelKatz
6bf6d86cd9 Offer logic seems to be working now. 2012-04-10 15:26:44 -07:00
JoelKatz
b2b30ef0e6 Typo. 2012-04-09 21:14:47 -07:00
JoelKatz
005ea61f9b All currency operations except the three weirdest ones for exchanges. 2012-04-09 21:00:27 -07:00
JoelKatz
fcdf42e799 Promote 'amounts' to a new type. Codify storage format, both internal
and serialized. Define operators.
2012-04-09 19:36:51 -07:00
JoelKatz
21bb574e96 Having a function in a base class that's widely overloaded called 'getType'
is a bad idea. Change it to 'getSType'.
2012-04-08 19:56:48 -07:00
JoelKatz
d7669944de Ability to compare serialized types. 2012-04-08 16:33:28 -07:00
JoelKatz
d384860dd7 Support for STI_LEDGERENTRY. 2012-04-06 22:35:12 -07:00
JoelKatz
11cbf862e4 Full support for 128-bit types. Remove throw() specifications. 2012-04-05 21:08:34 -07:00
JoelKatz
cb28fd52a3 Make accounts there own type
so we can add new functionality  and so they can display properly.
Cleanups and missing helper function.
2012-03-27 15:51:14 -07:00