Commit Graph

643 Commits

Author SHA1 Message Date
Vahe Hovhannisyan
ecc4b458ae JS: new account_tx 2013-04-26 09:00:23 +02:00
Arthur Britto
5756cf277c Add trust auto clear. Fixes #28 2013-04-26 09:00:23 +02:00
Arthur Britto
0e56274525 Major pathfinding fixes. 2013-04-26 09:00:23 +02:00
Arthur Britto
b438bba775 UT: Fix server stopping. 2013-04-26 09:00:23 +02:00
Stefan Thomas
457296a231 JS: Expose Meta class. 2013-04-26 09:00:23 +02:00
Arthur Britto
fa16e8dc12 JS: Fix access to Transaction. 2013-04-26 09:00:23 +02:00
Arthur Britto
311d07b824 JS: Export Transaction. 2013-04-26 09:00:23 +02:00
Arthur Britto
6d693a1b8a JS: Add ImmediateOrCancel and FillOrKill to Transaction flags. 2013-04-26 09:00:23 +02:00
Arthur Britto
af0c3bf517 UT: Verify quality setting. 2013-04-26 09:00:23 +02:00
Arthur Britto
d190aa4038 JS: Adjust request_ripple_balance results. 2013-04-26 09:00:23 +02:00
Arthur Britto
85fdbac840 UT: Revise for new request_ripple_balance. 2013-04-26 09:00:23 +02:00
Arthur Britto
b6caf2be4a JS: Enhance request_ripple_balance. 2013-04-26 09:00:23 +02:00
Arthur Britto
96510b1c09 ripple-lib version 0.7.4 2013-04-26 09:00:23 +02:00
Stefan Thomas
cc5c839cde JS: Hold requests until connection is established.
This will have to change when we add multiple server support, but it does the
trick for now.
2013-04-26 09:00:23 +02:00
Stefan Thomas
b075f2623f JS: Fix orderbook subscribe on (re)connect. 2013-04-26 09:00:23 +02:00
Stefan Thomas
83a9ae838a JS: Don't count OfferCancel transactions as trades. Hurp Durp. 2013-04-26 09:00:22 +02:00
Stefan Thomas
c727fe2382 JS: Better deal with buggy WebSocket implementations. 2013-04-26 09:00:22 +02:00
Stefan Thomas
decd020c59 JS: Factored server-related logic out into separate Server class. 2013-04-26 09:00:22 +02:00
Stefan Thomas
9a7a710334 JS: state_now -> snapshot, both_sides -> both 2013-04-26 09:00:22 +02:00
Stefan Thomas
654d91079c JS: Emit orderbook events when trades happen. 2013-04-26 09:00:22 +02:00
Stefan Thomas
8bce369c9c JS: Removed some debug code. 2013-04-26 09:00:22 +02:00
Stefan Thomas
8650b2b96a JS: Realtime orderbooks. 2013-04-26 09:00:22 +02:00
Stefan Thomas
ead47deab7 JS: Fix Currency#is_valid.
Currency.is_valid("USD") returned false, because "USD" is NaN (not a Number).

We should not use NaN as a stand-in value, since it means "not a *JavaScript*
number", whereas our meaning really is "not a BigInteger object". So we should
be using null.
2013-04-26 09:00:22 +02:00
Stefan Thomas
104dcedf3a Revert SJCL downgrade. 2013-04-26 09:00:22 +02:00
Arthur Britto
5b4ebda9ff JS: Make transaction signing not require remote. 2013-04-26 09:00:22 +02:00
Arthur Britto
00965dc520 ripple-lib version 0.7.3 2013-04-26 09:00:22 +02:00
Stefan Thomas
ae6aba2573 JS: Orderbook: Get current state when subscribing. 2013-04-26 09:00:22 +02:00
Stefan Thomas
397a1ecb61 JS: Fix missing boundary bytes in PathSet serialization. 2013-04-26 09:00:22 +02:00
Stefan Thomas
d14be963f6 JS: Utility function to convert ripple epoch to JS timestamp. 2013-04-26 09:00:22 +02:00
Arthur Britto
f4a598c249 Rework RPC ledger. 2013-04-26 09:00:22 +02:00
Arthur Britto
f97f4ed26f Renumber special ledger_indexes and move RPC ledger to new format. 2013-04-26 09:00:22 +02:00
jed
d1056f6740 book subscribe 2013-04-26 09:00:22 +02:00
Arthur Britto
a8e465c27d Cosmetic. 2013-04-26 09:00:22 +02:00
Stefan Thomas
71b12fa978 JS: Feed server entropy into SJCL's entropy pool. 2013-04-26 09:00:22 +02:00
Arthur Britto
b1c7bba2e7 Change RPCs to use account instead of ident. 2013-04-26 09:00:22 +02:00
Arthur Britto
e5444c482e Increment ripple-lib version 0.7.3 2013-04-26 09:00:22 +02:00
Stefan Thomas
93459dfcba JS: Fix for multiple Account instances (which caused multiple subscriptions.) 2013-04-26 09:00:22 +02:00
Stefan Thomas
8e8a10d90d JS: Don't trigger global subscribe for remote.on('transaction').
Now that all transactions we're subscribed to for any reason come in via
`type: transaction"`, users may need to subscribe to these events without
triggering a subscription to all transactions network-wide.

So if you were subscribing to the network-wide transaction firehose via:

    remote.on('transaction', ...);

Please change this to:

    remote.on('transaction_all', ...);
2013-04-26 09:00:22 +02:00
Stefan Thomas
e194560de2 JS: Add Remote#request_book_offers. 2013-04-26 09:00:22 +02:00
Stefan Thomas
042dc3d1ce JS: Correctly route account events after change from account -> transaction. 2013-04-26 09:00:22 +02:00
Stefan Thomas
f9a34f8404 JS: Reapply parsing change for json format with optional issuer. 2013-04-26 09:00:22 +02:00
Arthur Britto
84eee280ae JS: Backout some of latest amount parsing changes. 2013-04-26 09:00:22 +02:00
Stefan Thomas
49b825293b JS: Allow Ripple URI format (25/USD) in parse_json. 2013-04-26 09:00:22 +02:00
Arthur Britto
f5047521ce JS: Rename ADDRESS_ to ACCOUNT_ to be consistent with C++. 2013-04-26 09:00:22 +02:00
Arthur Britto
6efc7344d5 JS: Add temporary support for RPC tx. 2013-04-26 09:00:22 +02:00
Arthur Britto
10077ac5db Increment ripple-lib version. 2013-04-26 09:00:22 +02:00
Arthur Britto
3a1832107d JS: Clean up ledger selection. 2013-04-26 09:00:22 +02:00
Arthur Britto
3f4c68a25c Rename jsonrpc tools. 2013-04-26 09:00:22 +02:00
Arthur Britto
5b685425b0 JS: Fix Amount.divide() and remove extra clone()s. 2013-04-26 09:00:22 +02:00
Stefan Thomas
ef7ef4ae9d JS: Fix erroneous base58 decoding and add tests for issue. 2013-04-26 09:00:21 +02:00