Commit Graph

69 Commits

Author SHA1 Message Date
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
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
6627d7160d Merge commit '28268bbaed27f5df9fbce7888ebe467374efeb22' 2012-11-29 15:46:19 -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
Stefan Thomas
f1f7ccda52 Add digit group separator formatting to to_human(). 2012-11-26 18:49:29 -08:00
Stefan Thomas
e94765d0da Fix for non-native currencies in parse_human. 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
6aa468f174 I think that comment belongs here. 2012-11-26 14:31:45 -08:00
Stefan Thomas
e8d357b6cd Added parsing function for parsing human-entered amount. 2012-11-26 14:31:40 -08:00
Stefan Thomas
1c09b9ceaa Make local fee determination configurable. 2012-11-26 13:10:53 -08:00
Arthur Britto
67ce14e93f JS: Add Amount.set_currency(). 2012-11-26 13:06:48 -08:00
Arthur Britto
8a83251da7 JS: fixes for parsing amounts. 2012-11-26 12:59:52 -08:00
Arthur Britto
2af33273a5 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-24 14:08:34 -08:00
Arthur Britto
49e6ca70ba JS & UT: add et to vim setting. 2012-11-24 14:07:41 -08:00
Stefan Thomas
9f44aff370 Renamed to_pretty to to_human in accordance with Currency.to_human. 2012-11-23 20:14:34 -08:00
Stefan Thomas
731abf0140 Added pretty printing method to Amount. 2012-11-23 19:57:37 -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
fb48d60818 Added local consts variable for easier access to constants. 2012-11-23 18:55:55 -08:00
Arthur Britto
6e543dfb1d JS: Fix and another unit-test. 2012-11-23 18:50:20 -08:00
Arthur Britto
04d0e913e7 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-23 18:47:56 -08:00
Arthur Britto
19bdee89cd Add UInt160.is_valid(), Amount.is_valid(), Currency.is_valid(), & Currency.is_valid_full(). 2012-11-23 18:47:39 -08:00
Stefan Thomas
fca3751375 Explicitly expose certain classes. 2012-11-23 18:41:41 -08:00
Arthur Britto
03e1357448 Merge branch 'master' of github.com:jedmccaleb/NewCoin 2012-11-23 18:30:55 -08:00
Arthur Britto
d59ae37f3a JS: Add is_valid() for UInt160 and Currency. 2012-11-23 18:30:43 -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
Arthur Britto
a44767fd5b JS: Add a way to convert an amount to a number. 2012-11-19 12:53:37 -08:00
Arthur Britto
5e264d2255 JS: Fixes for currency comparison. 2012-11-17 17:31:25 -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