Commit Graph

26 Commits

Author SHA1 Message Date
Arthur Britto
522d4f642a JS: Rename ADDRESS_ to ACCOUNT_ to be consistent with C++. 2013-03-03 22:35:00 -08:00
Stefan Thomas
1a3b28a668 JS: More tests for equals. 2013-02-22 13:47:47 +01:00
Stefan Thomas
0641d38dc1 JS: More tests for Amount#equals and Amount#not_equals_why. 2013-02-22 12:48:05 +01:00
Stefan Thomas
aa77f433e4 JS: Failing test. Amount#equals does not compare exponent. 2013-02-21 23:06:22 +01:00
Stefan Thomas
39ba2613d9 JS: Added ripple.config.load convenience function. 2013-02-02 14:05:49 +01:00
Stefan Thomas
24dac24d29 Refactor JavaScript library.
- Separate classes in separate modules (files)
- Constants should be associated with a class
- Replace exports.config scheme with a config singleton
- Refactor base58 functions as a static class
2013-02-01 22:44:04 +01:00
Arthur Britto
01764aa090 JS: Restrict UInt160 parse_json to wire format. 2013-01-03 00:54:20 -08:00
Stefan Thomas
269abd0131 Fix infinite loop when using a zero amount in a multiplication. 2012-12-13 11:28:45 -08:00
Stefan Thomas
d3c4e704c4 Add tests for Amount#multiply. 2012-12-12 20:56:06 -08:00
Stefan Thomas
13dc3ac1d7 Added some test cases for Amount.add(). 2012-12-10 20:36:51 -08:00
Stefan Thomas
2ce23c45b2 Add support for mixed operands to divide(). 2012-12-10 16:44:34 -08:00
Arthur Britto
49e6ca70ba JS & UT: add et to vim setting. 2012-11-24 14:07:41 -08:00
Arthur Britto
6e543dfb1d JS: Fix and another unit-test. 2012-11-23 18:50:20 -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
Arthur Britto
9174886dbc JS and UT: XNS -> XRP 2012-11-09 15:05:32 -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
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00
Arthur Britto
7c6c12fdf4 JS: Hide some variables. 2012-11-06 11:01:24 -08:00
Arthur Britto
9ea2fa8c69 UT: Add another Amount test. 2012-10-22 21:30:29 -07:00
Arthur Britto
f4d48f56d8 JS: Fix UInt160 comparison. 2012-10-22 16:56:00 -07:00
Arthur Britto
c5dce0e270 JS: Add support for parsing and encoding base58. 2012-10-22 16:15:58 -07:00
Arthur Britto
bd0dc68a22 JS: More fixes and tests for Amount.negate(). 2012-10-21 21:45:04 -07:00
Arthur Britto
fff39797c0 UT: Lots of improvements and fixes.
- Parse negative amounts.
- Make Amount.negate() return a new value.
- Add Amount.equals().
- Rename Remote.trace() to set_trace().
- Fix request_ripple_balnce.
- Add more tests to send-test.js.
- Add more tests to amount-test.js.
- Add helper functions create_accounts and credit_limits to
  testutils.js.
2012-10-21 20:33:11 -07:00
Arthur Britto
fcd88f12fc UT: Adjust to new address encoding. 2012-10-12 15:10:39 -07:00
Arthur Britto
f419dcc77b JS: fixes and tests from amounts. 2012-10-11 20:08:08 -07:00
Arthur Britto
8ebceaa53e UT: Initial check in unit tests for amount.js. 2012-10-11 16:25:01 -07:00