Commit Graph

254 Commits

Author SHA1 Message Date
Arthur Britto
3b5cfad8ad JS: Fixes for compareTo(). 2013-04-25 13:25:41 -07:00
Arthur Britto
bd52f0ab65 JS: Support tfSell flag. 2013-04-24 18:10:52 -07:00
Arthur Britto
aa60407707 JS: Major fix for comparing XRP (reported by @vinniefalco). 2013-04-24 18:10:36 -07:00
Stefan Thomas
aca39652e2 JS: Remove unsafe usage of X.prototype = new Y; 2013-04-23 23:11:49 +02:00
Arthur Britto
51f13d117e JS: Fix a leak with requests. 2013-04-23 13:48:22 -07:00
Arthur Britto
469ef488b4 JS: Fix server requests to use self. 2013-04-23 13:43:55 -07:00
Arthur Britto
8747b0a5d2 JS: Fix request_ripple_balance() setting issuer. 2013-04-20 15:43:27 -07:00
Arthur Britto
fc637f50ed JS: Fixes and improvements for Amount.
- Add from_quality()
- Add parse_quality()
- Improve add.
- Better peformance for copyTo().
- Fix parse_issuer(), set_issuer(), & set_currency() not to modify sub
  object.
- Correctly set currency and issuer of XRP in parse_json().
- Make not_equals_why more explicit.
2013-04-20 15:42:13 -07:00
jatchili
2c20b313c9 Made some changes to account_tx-test.js 2013-04-04 12:02:52 -07:00
jatchili
5659fb44b3 Added unit test: account_tx-test.js. Also, revised request_account_tx in remote.js to use the new argument list for account_tx. 2013-04-01 16:24:48 -07:00
Arthur Britto
bfb69664ff Major pathfinding fixes. 2013-03-26 21:19:46 -07:00
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