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
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
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
8e10be2cf9
JS: Stubs for monitoring accounts.
2012-11-10 16:56:30 -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
Stefan Thomas
00bb9d99a7
Refactored WSConnection and RPCHandler to have one layer of commands.
...
Evented RPC commands are now on the same level as all other RPC
commands and are handled by the RPCHandler class.
2012-11-10 15:17:28 -08:00
Arthur Britto
8d32892609
JS: Make currency and issuer private in Amount.
2012-11-09 17:33:37 -08:00
Arthur Britto
9174886dbc
JS and UT: XNS -> XRP
2012-11-09 15:05:32 -08:00
Arthur Britto
155854be23
UT: Add support for verifying offers & fix amount checking.
2012-11-08 18:09:18 -08:00
Stefan Thomas
79f352efde
Change from ws.on('message') to ws.onmessage for browser compat.
2012-11-08 14:03:35 -08:00
Stefan Thomas
b96f9bacdd
Store secrets on the remote object, rather than accessing the config directly.
2012-11-07 17:38:42 -08:00
Arthur Britto
b271192547
Rework config.js to not be add to web pack.
2012-11-07 16:03:39 -08:00
Stefan Thomas
c04b94f781
Custom events.js not actually needed anymore.
2012-11-07 14:01:43 -08:00