Commit Graph

243 Commits

Author SHA1 Message Date
Stefan Thomas
39c63550ee JS: Expose Meta class. 2013-03-17 20:09:57 +01:00
Arthur Britto
1ceb383eb3 JS: Fix access to Transaction. 2013-03-14 20:56:22 -07:00
Arthur Britto
1bca0154da JS: Export Transaction. 2013-03-14 20:38:50 -07:00
Arthur Britto
96286afca6 JS: Add ImmediateOrCancel and FillOrKill to Transaction flags. 2013-03-14 19:33:48 -07:00
Arthur Britto
d3e787307d JS: Adjust request_ripple_balance results. 2013-03-14 16:40:15 -07:00
Arthur Britto
b53cbe6dca JS: Enhance request_ripple_balance. 2013-03-14 15:34:19 -07:00
Stefan Thomas
8fdd637828 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-03-13 19:15:37 +01:00
Stefan Thomas
7b60e3f87b JS: Fix orderbook subscribe on (re)connect. 2013-03-13 18:54:28 +01:00
Stefan Thomas
882f7d4305 JS: Don't count OfferCancel transactions as trades. Hurp Durp. 2013-03-13 18:54:08 +01:00
Stefan Thomas
2b3a39ddd9 JS: Better deal with buggy WebSocket implementations. 2013-03-13 17:57:54 +01:00
Stefan Thomas
1a7d542396 JS: Factored server-related logic out into separate Server class. 2013-03-13 17:40:55 +01:00
Stefan Thomas
0d5b2eb469 JS: state_now -> snapshot, both_sides -> both 2013-03-13 09:36:01 +01:00
Stefan Thomas
7a65dbdcf4 JS: Emit orderbook events when trades happen. 2013-03-12 13:59:21 +01:00
Stefan Thomas
0963263f15 JS: Removed some debug code. 2013-03-12 13:19:12 +01:00
Stefan Thomas
51f47a8974 JS: Realtime orderbooks. 2013-03-12 13:09:55 +01:00
Stefan Thomas
8792746ae1 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-03-12 13:09:51 +01:00
Stefan Thomas
384da92474 Revert SJCL downgrade. 2013-03-11 11:13:17 +01:00
Arthur Britto
77ff48ebf2 JS: Make transaction signing not require remote. 2013-03-11 03:04:22 -07:00
Stefan Thomas
b31c2ea601 JS: Orderbook: Get current state when subscribing. 2013-03-11 09:29:05 +01:00
Stefan Thomas
99c2f44cfa JS: Fix missing boundary bytes in PathSet serialization. 2013-03-11 09:29:05 +01:00
Stefan Thomas
70711944ac JS: Utility function to convert ripple epoch to JS timestamp. 2013-03-11 09:29:05 +01:00
Arthur Britto
1479590af1 Rework RPC ledger. 2013-03-10 15:18:35 -07:00
Arthur Britto
dc69a41979 Renumber special ledger_indexes and move RPC ledger to new format. 2013-03-09 21:40:26 -08:00
jed
87c97fc652 book subscribe 2013-03-09 11:42:59 -08:00
jed
52b7a9e549 windows 2013-03-08 11:35:19 -08:00
jed
0de583c553 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-07 22:50:54 -08:00
Stefan Thomas
3a7491c6d9 JS: Feed server entropy into SJCL's entropy pool. 2013-03-07 16:07:15 +01:00
Arthur Britto
9121cfd567 Change RPCs to use account instead of ident. 2013-03-07 03:39:17 -08:00
Stefan Thomas
3fff14cdd2 JS: Fix for multiple Account instances (which caused multiple subscriptions.) 2013-03-07 11:39:03 +01:00
Stefan Thomas
a413818989 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-03-06 21:53:23 +01:00
Stefan Thomas
b4514b5225 JS: Add Remote#request_book_offers. 2013-03-06 16:46:30 +01:00
Stefan Thomas
41b1e86439 JS: Correctly route account events after change from account -> transaction. 2013-03-06 16:45:20 +01:00
jed
720aea0e55 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2013-03-05 11:00:14 -08:00
Stefan Thomas
c0dec2f86f JS: Reapply parsing change for json format with optional issuer. 2013-03-05 13:44:52 +01:00
Arthur Britto
3a3f38927f JS: Backout some of latest amount parsing changes. 2013-03-04 13:50:20 -08:00
Stefan Thomas
efdda7c119 JS: Allow Ripple URI format (25/USD) in parse_json. 2013-03-04 14:44:45 +01:00
Arthur Britto
522d4f642a JS: Rename ADDRESS_ to ACCOUNT_ to be consistent with C++. 2013-03-03 22:35:00 -08:00
Arthur Britto
edce4a83ce JS: Add temporary support for RPC tx. 2013-03-03 20:04:32 -08:00
Arthur Britto
a2efb1e21c JS: Clean up ledger selection. 2013-03-01 00:42:25 -08:00
Arthur Britto
10c759510a JS: Fix Amount.divide() and remove extra clone()s. 2013-02-26 21:32:44 -08:00
Stefan Thomas
0ad2d77d02 JS: Fix erroneous base58 decoding and add tests for issue. 2013-02-26 13:56:40 +01:00
Stefan Thomas
3932ce95fd JS: Hotfix for sequence issue. 2013-02-23 23:25:55 +01:00
Stefan Thomas
544105e23d JS: Prevent Amount#negate from creating amounts that are negative zero. 2013-02-22 13:47:26 +01:00
Stefan Thomas
50b5644334 JS: Add a way for the test suite to change Amount#equals, so it ignores issuers. 2013-02-22 13:46:50 +01:00
Stefan Thomas
47791fa851 JS: Fix Amount#equals and Amount#not_equals_why to pass all tests. 2013-02-22 12:48:05 +01:00
Stefan Thomas
8cb8b353c3 JS: Amount - handle plain numbers as arguments to ratio_human and product_human. 2013-02-22 12:48:04 +01:00
Stefan Thomas
a38e17beed JS: Added class OrderBook for listening to order books. 2013-02-21 23:06:22 +01:00
Stefan Thomas
594e3d7f3f JS: Correct object reference in Account. 2013-02-18 14:59:45 +01:00
Arthur Britto
68403ae1a2 JS: Fix Add for Amount. 2013-02-18 00:41:57 -08:00
Arthur Britto
4c8d405cc1 JS: Fix add of zero for non-XRP. 2013-02-17 23:19:31 -08:00