Commit Graph

367 Commits

Author SHA1 Message Date
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
Stefan Thomas
7882786b1e JS: Hotfix for sequence issue. 2013-04-26 09:00:21 +02:00
Stefan Thomas
4eb29890c0 JS: More tests for equals. 2013-04-26 09:00:21 +02:00
Stefan Thomas
33e8154fd1 JS: Prevent Amount#negate from creating amounts that are negative zero. 2013-04-26 09:00:21 +02:00
Stefan Thomas
4f09337aea JS: Add a way for the test suite to change Amount#equals, so it ignores issuers. 2013-04-26 09:00:21 +02:00
Stefan Thomas
86c3203a68 JS: Fix Amount#equals and Amount#not_equals_why to pass all tests. 2013-04-26 09:00:21 +02:00
Stefan Thomas
0a13875c53 JS: More tests for Amount#equals and Amount#not_equals_why. 2013-04-26 09:00:21 +02:00
Stefan Thomas
76fd1896f8 JS: Amount - handle plain numbers as arguments to ratio_human and product_human. 2013-04-26 09:00:21 +02:00
Stefan Thomas
d394b074db JS: Failing test. Amount#equals does not compare exponent. 2013-04-26 09:00:21 +02:00
Stefan Thomas
f7a26468d7 JS: Added class OrderBook for listening to order books. 2013-04-26 09:00:21 +02:00
Stefan Thomas
102e62cf9c JS: Correct object reference in Account. 2013-04-26 09:00:21 +02:00
Arthur Britto
7583f667af JS: Fix Add for Amount. 2013-04-26 09:00:21 +02:00
Arthur Britto
870e74c8f8 JS: Fix add of zero for non-XRP. 2013-04-26 09:00:21 +02:00
Arthur Britto
b759a9001a JS: Amount set_currency() nows sets _is_native. 2013-04-26 09:00:21 +02:00
Arthur Britto
58bb750a67 JS: Add is_positive() to Amount. 2013-04-26 09:00:21 +02:00
Arthur Britto
2d62b3ce98 Move gateways option to opts instead of config. 2013-04-26 09:00:21 +02:00
Stefan Thomas
c95a0bbdbe NPM: Add grunt dependency. Needed for new grunt installation method. 2013-04-26 09:00:21 +02:00
Stefan Thomas
6e91927742 JS: Correctly calculate affected accounts when routing account events. 2013-04-26 09:00:21 +02:00
Stefan Thomas
82f14395fb JS: Correctly calculate affected accounts when routing account events. 2013-04-26 08:59:49 +02:00
Stefan Thomas
0213ec7d84 JS: Fix Account class realtime event processing. 2013-04-26 08:59:49 +02:00
Stefan Thomas
4b7230a8b4 JS: Account class keeps track of AccountRoot entry. 2013-04-26 08:59:49 +02:00
Stefan Thomas
7dd0ee6ed9 JS: Allow an integer factor in Amount#product_human. 2013-04-26 08:59:49 +02:00
Stefan Thomas
cd0a70565a JS: Typo. 2013-04-26 08:59:49 +02:00
Stefan Thomas
5522897703 JS: Fix Transaction#paths. 2013-04-26 08:59:49 +02:00
Stefan Thomas
a86584652f JS: Prevent duplicate WebSocket objects. 2013-04-26 08:59:49 +02:00
Stefan Thomas
5596427e30 JS: Add some more canonical event names as alternatives.
Most JS events are infinitive, not past tense, e.g. DOM events "click",
"mouseover", "load" and Node.js events "connect", "close".
2013-04-26 08:59:49 +02:00
Stefan Thomas
cfe76ef92e JS: Handle account events through Account class. 2013-04-26 08:59:49 +02:00