Commit Graph

96 Commits

Author SHA1 Message Date
Arthur Britto
5c39a6ce92 Fix JSON parsing of pathsets. 2012-10-31 16:41:08 -07:00
JoelKatz
15547ce839 Type STObject helper functions, 'empty' and 'hasMatchingEntry'.
A small 'isFieldAllowed' bugfix.
2012-10-26 13:31:24 -07:00
JoelKatz
601181c691 Cleanups. 2012-10-25 19:13:36 -07:00
Arthur Britto
249725b66b Rename NewcoinAddress to RippleAddress. 2012-10-25 18:31:20 -07:00
JoelKatz
6da5d508a7 Improve the warning messages when STObject::setType fails. 2012-10-23 11:49:16 -07:00
JoelKatz
756e628f93 Add an STObject::operator== that is sensible. 2012-10-23 11:22:37 -07:00
JoelKatz
56b5b5c597 Mark the code that doesn't work because it can't get to transResultInfoA.
(Only needed for JSON->binary transaction metadata which nobody may ever want anyway.)
2012-10-16 16:23:42 -07:00
JoelKatz
0ae65b5fd0 Some UInt8 support was missing. 2012-10-16 14:33:51 -07:00
JoelKatz
1f89317c07 Fix JSON for arrays. 2012-10-16 13:55:34 -07:00
JoelKatz
7e29b4fae7 Some additional helper functions. 2012-10-16 13:07:22 -07:00
JoelKatz
b6dc333b68 Add a 'sort' function to an STArray. They can be used in cases where
order is significant or where they're sorted.
2012-10-16 03:52:46 -07:00
JoelKatz
5e44599456 Switch to new conditional logging. 2012-10-14 18:28:47 -07:00
Arthur Britto
2af15db40a Rename everything from newcoin to ripple except the protocol buffers. 2012-10-12 15:48:33 -07:00
Arthur Britto
edabc770aa Cosmetic. 2012-10-12 15:08:56 -07:00
JoelKatz
c43934ab6f Fix lots of places I used 'empty' instead of 'clear'. This is why I like 'isEmpty'. 2012-10-11 05:06:24 -07:00
JoelKatz
34a3124c11 Allow fields to be freely created for objects that aren't required to conform to a template. 2012-10-06 18:34:27 -07:00
JoelKatz
16fbd7a862 Remove the automatic convert to serialized transasction 2012-10-06 17:32:24 -07:00
JoelKatz
972a504b97 Log which required field is missing. 2012-10-06 17:05:28 -07:00
JoelKatz
20a50f0f90 Return a SerializedTransaction if the original json was a transaction. 2012-10-06 14:31:52 -07:00
Arthur Britto
95d1127dad Parse UINT64 as hex. 2012-10-05 18:25:33 -07:00
JoelKatz
af5175eeee Fix a JSON buglet. 2012-10-05 02:44:24 -07:00
JoelKatz
de379037f8 Improve error messages. Support non-binary fields. Improve unit test. 2012-10-05 02:32:14 -07:00
JoelKatz
16510cd92e Add 'sfSignature' to the list of signature fields. (Should probably be an SField flag.) 2012-10-04 23:45:27 -07:00
JoelKatz
2d861a44f4 Bugfix for makeFieldAbsent. New unit test. 2012-10-04 17:02:14 -07:00
JoelKatz
bf7c32daa1 The five last missing bits of the JSON input code. 2012-10-04 15:31:36 -07:00
MJK
fca0f6fffc fix typo in strValue's name 2012-10-03 15:14:08 -07:00
JoelKatz
f0320f0b7f More JSON work. 2012-10-03 13:53:06 -07:00
JoelKatz
17a99e686b More STAmount JSON work. 2012-10-02 03:49:46 -07:00
JoelKatz
d9b0d39cf6 JSON->Account 2012-10-02 01:01:27 -07:00
JoelKatz
3bed31ae4a Detect more error conditions. 2012-10-02 00:31:30 -07:00
JoelKatz
e2c257f50b Fix a bug Jed reported. More JSON work. Redo format layouts. 2012-10-01 20:09:24 -07:00
JoelKatz
e7c9ee09f6 New JSON functionality. 2012-10-01 16:53:54 -07:00
JoelKatz
e04b695434 Burninate "Value" in "*ValueField*" functions. It was just pointless extra typing.
What else would you set/get in a field, by name, other than its value?
2012-10-01 15:35:30 -07:00
JoelKatz
79c35f2689 Remove all IField/ITField functions. They are now obsolete.
Use the correponding STObject functions.
2012-10-01 15:21:22 -07:00
JoelKatz
c4275c6d80 More work on the JSON conversion code. 2012-10-01 08:32:23 -07:00
JoelKatz
98d8823be0 Get ready for Json decode. 2012-10-01 02:19:17 -07:00
JoelKatz
5cc421bc76 Temporary fix to some issues caused by transaction flattening.
Will work out details with Arthur.
2012-09-30 22:42:06 -07:00
JoelKatz
98655aed4d Correctly check validity for type during setType. 2012-09-29 01:30:17 -07:00
JoelKatz
3e305871c3 Missing sort. 2012-09-29 00:30:21 -07:00
JoelKatz
29a5b60154 Fix txn signature breakage. 2012-09-29 00:05:54 -07:00
JoelKatz
aa8401066e Bugfixes. 2012-09-28 23:48:19 -07:00
JoelKatz
609edfddbd Cleanups. 2012-09-28 22:40:14 -07:00
JoelKatz
dc2e47b67c Hash functions. 2012-09-28 19:12:38 -07:00
JoelKatz
8c2eda1f93 Fix signature/hash generation. 2012-09-28 14:26:19 -07:00
JoelKatz
b88d6486a6 Rather than a polymorphic downcast, just fill in the object in place. 2012-09-27 20:55:10 -07:00
JoelKatz
2c2bfab52f STArrays should only hold STObject's 2012-09-27 20:47:11 -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
a40120b6c9 Cleanups and fixes. 2012-09-27 14:11:10 -07:00
JoelKatz
ad4952b958 Cleanups. 2012-09-26 15:09:27 -07:00
JoelKatz
ba77d3e438 Make it compile. 2012-09-26 12:47:55 -07:00