Commit Graph

59 Commits

Author SHA1 Message Date
Stefan Thomas
73db82ac56 Only consider a server connection with server_status == 'ok' as being 'online'. 2012-12-06 12:33:47 -08:00
Arthur Britto
10ba85a493 JS: Add support for getting random from server subscribe. 2012-12-06 00:01:05 -08:00
Arthur Britto
5b68f2a15d Refactor NetworkOps and RPC to specify account_index and ledgers better. 2012-12-05 18:02:41 -08:00
Arthur Britto
d6b0dca146 JS: Fix offline reporting. 2012-12-04 19:27:44 -08:00
jed
50953ff6d5 add account_offers and refactor 2012-12-04 12:12:11 -08:00
jed
4ef15c5536 windows 2012-12-04 00:05:40 -08:00
Stefan Thomas
7bda03745e Use custom assert in JS library.
The assert was previously provided by Buster.JS which is not available outside
of the test suite.
2012-12-03 19:45:31 -08:00
Arthur Britto
f7c90810fc Merge branch 'broken_emit_ledger_closed' 2012-12-03 16:46:53 -08:00
Arthur Britto
2791f43b1d Fixes for emit ledger_closed. 2012-12-03 16:46:27 -08:00
Arthur Britto
5d3684b9b9 Merge branch 'rpc_refactor' 2012-12-03 16:14:28 -08:00
Arthur Britto
f8a906ce9a Refactor RPC wallet_accounts. 2012-12-03 16:12:32 -08:00
Arthur Britto
dc977d1bfd Update remote.js for RPC account_tx. 2012-12-03 16:05:45 -08:00
Arthur Britto
81e69c038c Update remote.js for RPC unl_delete. 2012-12-03 16:03:41 -08:00
Arthur Britto
1696263bcf Update remote.js for RPC connect. 2012-12-03 16:01:03 -08:00
Arthur Britto
125a1ae5d3 Refactor RPC ripple_lines_get. 2012-12-03 15:58:48 -08:00
Arthur Britto
e8f2efab93 Refactor RPC ledger. 2012-12-03 15:40:11 -08:00
jed
0db2d312bb pass whole message in serverClosed 2012-12-03 13:55:35 -08:00
Arthur Britto
65175b8e54 Refactor RPC submit and submit_json. 2012-12-02 19:46:32 -08:00
Arthur Britto
643d4e1c7e JS: Hide _secret and clean up transaction submiting. 2012-11-30 16:02:59 -08:00
Arthur Britto
6a3e9a7d24 JS: default build_path is now false and is actually passed. 2012-11-30 15:50:54 -08:00
jed
9ce31adc28 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-29 17:32:27 -08:00
jed
07cbb4a4f4 change emit 2012-11-29 17:31:19 -08:00
Arthur Britto
007f241040 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-29 16:05:48 -08:00
Arthur Britto
7e8d13b554 JS: More fixes for caching. 2012-11-29 16:05:38 -08:00
jed
1f0aa8f56c have remote.js emit all messages 2012-11-29 15:54:59 -08:00
Arthur Britto
28268bbaed JS: Fix transparent caching of ledger entries. 2012-11-29 15:33:23 -08:00
Stefan Thomas
5c3ffb4fd3 If you need override a method, do it straight up, don't abuse events.
Events are meant for managing asynchronous activity. Don't replace normal method
calls with events.

Look at the implementation for request() in the removed code. We can see that an
event is being emitted, but the code catching it could be anywhere in this file
or a different file or even in multiple places. Code containing too many events
quickly becomes unmaintainable.

Events are the most complex tool we have, callbacks are less complex and
synchronous calls are the least complex. Use the least complex tool that can
solve your problem.
2012-11-26 18:49:29 -08:00
Arthur Britto
2bffd0d699 JS: Fix local_fee for remote.js. 2012-11-26 16:28:52 -08:00
Stefan Thomas
49ac818e28 Added different logging style when running in browser. 2012-11-26 15:12:15 -08:00
Stefan Thomas
1c09b9ceaa Make local fee determination configurable. 2012-11-26 13:10:53 -08:00
Arthur Britto
49e6ca70ba JS & UT: add et to vim setting. 2012-11-24 14:07:41 -08:00
Stefan Thomas
c311206c4c Remote trailing whitespace and convert tabs-spaces mixture to spaces. 2012-11-23 18:59:20 -08:00
Stefan Thomas
4065106592 Basic handling for account events - as in: Don't throw an error. 2012-11-23 10:47:02 -08:00
Stefan Thomas
e64526c0da Make local sequence number tracking optional. 2012-11-23 10:45:02 -08:00
Stefan Thomas
ffa923daf5 Added interface for rt_accounts. 2012-11-23 10:14:09 -08:00
Arthur Britto
4e713c58ad Work toward ripple_path_find. 2012-11-22 11:51:40 -08:00
Arthur Britto
f0970174f3 JS: Add missing require. 2012-11-19 14:07:54 -08:00
Arthur Britto
ad17519dc0 JS: Return account_balance as an amoutn instead of json. 2012-11-19 12:54:08 -08:00
jed
c502bfad99 Merge branch 'master' of github.com:jedmccaleb/NewCoin into api2
Conflicts:
	test/config.js
2012-11-16 09:08:37 -08:00
jed
7c69c45a2f . 2012-11-15 13:17:36 -08:00
Arthur Britto
acbc5bac59 JS: Allow transaction submit to a callback. 2012-11-15 12:35:51 -08:00
Arthur Britto
e56e96484b JS: Remote.from_config now takes an obj or a name. 2012-11-15 11:55:34 -08:00
jed
58e5e07823 . 2012-11-14 16:10:10 -08:00
Arthur Britto
f2dcc4cdd0 Add support for getting ledger_header. 2012-11-13 14:06:59 -08:00
Arthur Britto
496fd33481 JS: Clean up setting command rpc. 2012-11-13 14:06:07 -08:00
Arthur Britto
ad8c942370 JS: Rename CreditSet to TrustSet. 2012-11-13 13:42:47 -08:00
Arthur Britto
5df0109273 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-10 16:57:15 -08:00
Arthur Britto
c59c9f91b2 JS: Make ledger_hash and friends private in Remote. 2012-11-10 16:13:57 -08:00
Stefan Thomas
a92202c7e4 Added RPC methods for ripple-client. 2012-11-10 15:17:28 -08:00
Stefan Thomas
0b9971d0d0 More consistent trace logs. Remove redundant trace.
The trace on transaction submit is always immediately followed by a trace showing the request, which contains the same information anyway.
2012-11-10 15:17:28 -08:00