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
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