Arthur Britto
c3d03a9f28
Fix parseJson for Amount.
2012-10-17 14:55:00 -07:00
JoelKatz
730c6f3a52
Bugfix in STAmount::compare
2012-10-12 20:19:36 -07:00
JoelKatz
08acbcd839
Fix the sense.
2012-10-12 19:58:41 -07:00
JoelKatz
bfee7a3082
I apologize for the disaster that was toUInt64. It has been nuked from orbit.
2012-10-12 18:24:32 -07:00
JoelKatz
ab01c7c4a7
I believe our comparisons were broken for STAmount, for example, 0 XNS would
...
compare greater than 1 XNS! For non-native currencies, -2 would be greater
than -1, which is wrong. This should fix it. We definitely need to make some
test cases. Arthur, please look over this code and make sure I didn't miss
something.
2012-10-12 09:21:29 -07:00
Arthur Britto
7fc13e3528
Clean up getJson() for STAmount.
2012-10-11 20:07:41 -07:00
Arthur Britto
8714e40bcf
Improve amount parsing (accept e notation).
2012-10-09 16:04:46 -07:00
JoelKatz
6b282a0359
Bugfix: Don't access elements array out of bounds.
2012-10-05 02:21:09 -07:00
Arthur Britto
66fd6146fa
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-10-03 14:45:10 -07:00
Arthur Britto
5b1ac0b1e5
Add transfer support to offer taking.
2012-10-03 14:44:59 -07:00
JoelKatz
d7d5a0d2b1
Finish STAmount JSON parser.
2012-10-02 20:15:51 -07:00
JoelKatz
ddab25ab44
Break out the portion that sets the value from the STAmount code.
...
Fix its mishandling of negative amounts.
Support array types in STAmount JSON input.
2012-10-02 04:28:01 -07:00
JoelKatz
17a99e686b
More STAmount JSON work.
2012-10-02 03:49:46 -07:00
JoelKatz
670adae353
Cleanup.
2012-10-02 00:31:18 -07:00
Arthur Britto
0b49c0dee9
Get rid of unneeded signature parameter for NicknameSet.
2012-10-01 15:05:53 -07:00
Arthur Britto
61e939285e
Fix operator-() for XNS.
2012-10-01 13:22:36 -07:00
JoelKatz
b6c73c87d4
auto_ptr semantics are a bit odd
2012-09-28 23:35:40 -07:00
JoelKatz
609edfddbd
Cleanups.
2012-09-28 22:40:14 -07:00
JoelKatz
b6653732b0
New serializer work.
...
Rework add/addRaw/addData per discussion with Arthur.
New STObject add/deserialize code.
STArray add/deserialize code.
Allow arrays of normal fields.
Other small fixes.
2012-09-27 15:43:29 -07:00
JoelKatz
5d0adc449b
Merge branch 'master' of github.com:jedmccaleb/NewCoin into serialize
2012-09-27 14:15:56 -07:00
JoelKatz
a40120b6c9
Cleanups and fixes.
2012-09-27 14:11:10 -07:00
Arthur Britto
22c22bd734
WS: Add support ledger_entry to return a ripple_state.
2012-09-27 13:36:04 -07:00
JoelKatz
632d506234
Make this compile.
2012-09-26 15:08:43 -07:00
JoelKatz
c10ff5bac9
More serialization rework.
2012-09-26 14:22:04 -07:00
JoelKatz
19b9facdef
name -> fName
2012-09-26 12:47:17 -07:00
JoelKatz
2446db0bbe
More serialization work.
2012-09-25 19:27:09 -07:00
JoelKatz
c757d363af
Parts of the new serialization code. Does not compile yet.
2012-09-25 16:48:24 -07:00
JoelKatz
9432d35f14
You don't need to customize operator=(const&) since the base class does it for you.
2012-09-24 14:45:44 -07:00
JoelKatz
7ef8001505
Audit all construction cases, fix broken ones.
2012-09-24 14:36:48 -07:00
JoelKatz
3c5ea7020f
Start of STAmount issuer fixes.
2012-09-24 14:30:24 -07:00
Arthur Britto
7a479d6035
Fixes for rippling through an offer.
2012-09-06 21:32:07 -07:00
Arthur Britto
1c963cc1a0
Merge branch 'master' into ripple
2012-09-04 16:16:13 -07:00
Arthur Britto
61831eaa3c
Obsolete redeem and issue flag support from ripple paths.
2012-09-03 13:57:01 -07:00
JoelKatz
9977463122
You no longer need .getFullText() on an operator<< to an ostream.
...
There's like 25 of them in TransactionEngine.cpp that can be removed when convenient
2012-09-03 02:30:17 -07:00
Arthur Britto
cf450106c4
Require issuer when specifying currency when creating STAmount.
2012-08-25 14:49:45 -07:00
Arthur Britto
e4b8d874e7
Encode issuer in STAmount. Breaking protocol and db version change.
2012-08-23 14:55:03 -07:00
Arthur Britto
58644fc806
Fix transaction engine sense of ripple balances.
2012-08-20 16:23:23 -07:00
JoelKatz
aa1f923306
A better fix so that every type doesn't have to have its own operator=.
...
This fixes it in one place and allows many such helpers to be removed.
2012-08-19 22:47:59 -07:00
Arthur Britto
f2902ca014
Make json full text for STAccount more legible.
2012-08-17 17:08:23 -07:00
JoelKatz
d477172f65
Cleanups and whitespace fixes.
2012-08-09 19:20:53 -07:00
JoelKatz
1aa15c62e1
Implement STAmount::getRate.
2012-08-09 16:03:00 -07:00
Arthur Britto
101ce61953
Cosmetic.
2012-07-20 14:25:10 -07:00
Arthur Britto
a61cf78299
Better handling of full values for amounts.
2012-07-20 14:16:34 -07:00
Arthur Britto
71e499a421
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-07-18 19:12:33 -07:00
Arthur Britto
7236eed852
Fixes for applyOffer.
2012-07-18 19:12:27 -07:00
JoelKatz
ab61b7ca46
Let's test divide too, while we're at it.
2012-07-18 17:47:15 -07:00
Arthur Britto
1714695d9b
Merge branch 'master' of github.com:jedmccaleb/NewCoin
2012-07-18 17:40:24 -07:00
Arthur Britto
d62c6a974e
Add logging for offer create.
2012-07-18 17:40:21 -07:00
JoelKatz
ccc799e404
Fix a bug Arthur reported.
2012-07-18 17:37:30 -07:00
Arthur Britto
d0db6e4476
Rework caching of SLEs during transaction processing.
2012-07-18 14:49:50 -07:00