Commit Graph

4682 Commits

Author SHA1 Message Date
Stefan Thomas
736db4d887 As per the wiki - if no issuer set, the txn json shouldn't contain one.
See: http://ripple.com/wiki/index.php/API_Example_Transactions#Basic_IOU_Send
2013-04-26 08:59:45 +02:00
Arthur Britto
04fbe52ef5 JS: Hide _secret and clean up transaction submiting. 2013-04-26 08:59:45 +02:00
Arthur Britto
704f03e4cd JS: default build_path is now false and is actually passed. 2013-04-26 08:59:45 +02:00
jed
40a4ae1e8d change emit 2013-04-26 08:59:45 +02:00
Arthur Britto
1771207f7c JS: More fixes for caching. 2013-04-26 08:59:45 +02:00
jed
f9b04ca5d9 have remote.js emit all messages 2013-04-26 08:59:45 +02:00
Arthur Britto
0d52f87c8b JS: Fix transparent caching of ledger entries. 2013-04-26 08:59:45 +02:00
Stefan Thomas
8cb65c7d28 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.
2013-04-26 08:59:45 +02:00
Stefan Thomas
b4169c88bc Add digit group separator formatting to to_human(). 2013-04-26 08:59:45 +02:00
Stefan Thomas
24a4bee1ee Fix for non-native currencies in parse_human. 2013-04-26 08:59:45 +02:00
Arthur Britto
fe055b1bee UT: Move test account configuration from config-example.js. 2013-04-26 08:59:45 +02:00
Arthur Britto
3214f9b378 JS: Fix local_fee for remote.js. 2013-04-26 08:59:45 +02:00
Stefan Thomas
f4c0402131 Added different logging style when running in browser. 2013-04-26 08:59:45 +02:00
Stefan Thomas
bdc6f626b5 I think that comment belongs here. 2013-04-26 08:59:45 +02:00
Stefan Thomas
f6e72554d7 Added parsing function for parsing human-entered amount. 2013-04-26 08:59:45 +02:00
Stefan Thomas
24df8d85cf Make local fee determination configurable. 2013-04-26 08:59:45 +02:00
Arthur Britto
799d78b2ed JS: Add Amount.set_currency(). 2013-04-26 08:59:45 +02:00
Arthur Britto
3be3c8a213 JS: fixes for parsing amounts. 2013-04-26 08:59:45 +02:00
Arthur Britto
6319c4cbce Fix config-example.js 2013-04-26 08:59:45 +02:00
Arthur Britto
184c059354 JS & UT: add et to vim setting. 2013-04-26 08:59:45 +02:00
Stefan Thomas
4467ef62d3 Renamed to_pretty to to_human in accordance with Currency.to_human. 2013-04-26 08:59:44 +02:00
Stefan Thomas
c0fa0a2e96 Added pretty printing method to Amount. 2013-04-26 08:59:44 +02:00
Stefan Thomas
328cbbc91f Ignore local rippled.cfg. 2013-04-26 08:59:44 +02:00
Stefan Thomas
6242dfb2da Ignore db-journal files. 2013-04-26 08:59:44 +02:00
Stefan Thomas
2ea268e0b1 Remote trailing whitespace and convert tabs-spaces mixture to spaces. 2013-04-26 08:59:44 +02:00
Stefan Thomas
4c06340aad Added local consts variable for easier access to constants. 2013-04-26 08:59:44 +02:00
Arthur Britto
e40d8b7b6f JS: Fix and another unit-test. 2013-04-26 08:59:44 +02:00
Arthur Britto
135fe39db4 Add UInt160.is_valid(), Amount.is_valid(), Currency.is_valid(), & Currency.is_valid_full(). 2013-04-26 08:59:44 +02:00
Stefan Thomas
51e619fa3b Explicitly expose certain classes. 2013-04-26 08:59:44 +02:00
Arthur Britto
51c0782369 JS: Add is_valid() for UInt160 and Currency. 2013-04-26 08:59:44 +02:00
Stefan Thomas
85914f38ce Basic handling for account events - as in: Don't throw an error. 2013-04-26 08:59:44 +02:00
Stefan Thomas
b61c5e9f5f Make local sequence number tracking optional. 2013-04-26 08:59:44 +02:00
Stefan Thomas
8ebcae08b5 Added interface for rt_accounts. 2013-04-26 08:59:00 +02:00
Arthur Britto
b578d06dd3 Work toward ripple_path_find. 2013-04-26 08:59:00 +02:00
Arthur Britto
e1d6b6b667 Build tags in base directory for editors. 2013-04-26 08:59:00 +02:00
Arthur Britto
405fdccfae UT: Test cross currency bridged payment and fixes. 2013-04-26 08:59:00 +02:00
Arthur Britto
1948757c3b JS: Add missing require. 2013-04-26 08:59:00 +02:00
Arthur Britto
c0e514d8a3 UT: Add support to verify XRP balances. 2013-04-26 08:59:00 +02:00
Arthur Britto
8d442d1a48 JS: Return account_balance as an amoutn instead of json. 2013-04-26 08:59:00 +02:00
Arthur Britto
2d6c8ae297 JS: Add a way to convert an amount to a number. 2013-04-26 08:59:00 +02:00
Arthur Britto
d134a283b3 Have git ignore customized test/config.js. 2013-04-26 08:59:00 +02:00
Arthur Britto
6220d6b793 UT: Improve logging. 2013-04-26 08:59:00 +02:00
Arthur Britto
3e8219e6e5 JS: Fixes for currency comparison. 2013-04-26 08:59:00 +02:00
jed
d2cc68b3cd . 2013-04-26 08:59:00 +02:00
Arthur Britto
16aa141247 JS: Allow transaction submit to a callback. 2013-04-26 08:59:00 +02:00
Arthur Britto
ee9f24fea1 JS: Remote.from_config now takes an obj or a name. 2013-04-26 08:59:00 +02:00
jed
c03cb2408f . 2013-04-26 08:59:00 +02:00
jed
391fbc152c . 2013-04-26 08:59:00 +02:00
Arthur Britto
f0edc4da36 Add support for getting ledger_header. 2013-04-26 08:59:00 +02:00
Arthur Britto
3906aa7363 JS: Clean up setting command rpc. 2013-04-26 08:59:00 +02:00