Chris Clark
cfac146620
Add orderToReplace option
2016-08-01 14:27:08 -07:00
Chris Clark
f74e11bce0
Add support for parsing SetFee and EnableAmendment pseudo-transactions
2016-05-05 15:37:23 -07:00
Ivan Tivonenko
5da78ce583
[FIX] handle websocket errors in browsers
...
emit not RippledNotInitializedError if server doesn't have any
completed ledgers on connect
2016-03-31 00:46:00 +03:00
Ivan Tivonenko
e17b6f172d
[FIX] on connect return error if server doesn't have validated ledgers
2016-03-24 22:26:33 +02:00
Ivan Tivonenko
69c1ccbb6b
[TASK] emit connected and disconnected events from api
2016-03-23 02:05:07 +02:00
Ivan Tivonenko
499b8c8d8b
[FIX] fix multiple reconnections issue
2016-03-23 01:18:08 +02:00
Chris Clark
dc784d4567
Fix makerExchangeRate for getOrders when rippled provides quality
2016-03-22 13:21:26 -07:00
Alan Cohen
5b20fe573e
FIX: Filtering source_amount pathfind correctly
...
Bug:
```js
api.connect().then(() => {
const pathfind = {
source: {
address: USDCold,
amount: {
currency: 'USD',
value: '1.00' // <<<< Rippled response has "1" not "1.00"
}
},
destination: {
address: EURCold,
amount: {currency: 'EUR'}
}
};
return api.getPaths(pathfind).then(paths => {
console.log('PATHS: \n', JSON.stringify(paths, null, 2));
});
}).catch(console.log);
```
2016-03-21 11:44:55 -07:00
Ivan Tivonenko
1f8418b447
[FIX] add small code comment
2016-03-15 20:58:22 +02:00
Ivan Tivonenko
1d31fccd72
[FIX] fix test hang in microsoft edge
2016-03-15 05:04:47 +02:00
Ivan Tivonenko
0dfdd0a601
[FIX] change eslint version to 2.1
2016-02-24 23:08:49 +02:00
Ivan Tivonenko
4acc42e1b6
[FIX] fix connection error handling
...
if connection to server can't be established, reject Promise of `connect()` method caller,
instead of throwing error event on base object.
2016-02-24 23:08:47 +02:00
Alan Cohen
0c2f9d0e62
Add deliveredAmount to payment outcome
...
It is impossible to reliably compute the delivered amount from the metadata due
to fixed precision. If the partial payment flag is not set and the transaction
succeeded, the delivered amount should always be considered to be the amount
specified in the transaction.
2016-02-10 17:25:27 -08:00
Ivan Tivonenko
8767fc0068
fixes for minified version test minified version in SauceLabs
2016-02-09 03:08:23 +02:00
Ivan Tivonenko
4f3635eef0
add SauceLabs testing
2016-02-05 07:59:34 +02:00
Ivan Tivonenko
0fefb2bd2c
do not pack lodash inside browser version
2016-01-16 01:12:48 +02:00
Ivan Tivonenko
6740eee495
combine with different transaction test
...
test for trying to sign already signed transaction
ignore http server in coverage
2016-01-16 01:12:46 +02:00
Ivan Tivonenko
aa6020e00d
switch from Babel 5 to Babel 6
...
use of isparta for coverage reporting
2016-01-16 01:12:43 +02:00
Alan Cohen
6b8cd6151d
Filter insufficient source funds paths from pathfind results
...
When pathfinding with source amount, we need to filter out paths where source
amount is not equal to the specified source amount. This is due to the behavior
of rippled when specifying a source amount during pathfinding.
Example:
{
"command": "ripple_path_find",
"source_account": "rhFQQ4ATC6MDF9ghTq3qAoCsGbGtjnhcXF",
"destination_account": "rp91GUd5R3Rk3ipqW7XBdtrUJcX8epzGyb",
"destination_amount": {
"currency": "EUR",
"issuer": "rp91GUd5R3Rk3ipqW7XBdtrUJcX8epzGyb",
"value": -1
},
"send_max": {
"currency": "USD",
"issuer": "rhFQQ4ATC6MDF9ghTq3qAoCsGbGtjnhcXF",
"value": "1234567891"
},
"id": 2
}
{
"id": 2,
"result": {
"alternatives": [
{
"destination_amount": {
"currency": "EUR",
"issuer": "rp91GUd5R3Rk3ipqW7XBdtrUJcX8epzGyb",
"value": "3999889.62127857"
},
"paths_canonical": [],
"paths_computed": [
[
{
"account": "rcsxQxEqU2qquAKp3tBUJy8Z2t19ioQPJ",
"type": 1,
"type_hex": "0000000000000001"
},
{
"currency": "EUR",
"issuer": "rp91GUd5R3Rk3ipqW7XBdtrUJcX8epzGyb",
"type": 48,
"type_hex": "0000000000000030"
}
]
],
"source_amount": {
"currency": "USD",
"issuer": "rhFQQ4ATC6MDF9ghTq3qAoCsGbGtjnhcXF",
"value": "4170759.906037564"
}
}
],
"destination_account": "rp91GUd5R3Rk3ipqW7XBdtrUJcX8epzGyb",
"destination_amount": {
"currency": "EUR",
"issuer": "rp91GUd5R3Rk3ipqW7XBdtrUJcX8epzGyb",
"value": "-1"
},
"destination_currencies": [
"EUR",
"XRP"
],
"full_reply": true,
"id": 2,
"source_account": "rhFQQ4ATC6MDF9ghTq3qAoCsGbGtjnhcXF",
"status": "success"
},
"status": "success",
"type": "response"
}
2016-01-15 13:38:57 -08:00
Ivan Tivonenko
dc03c6e0ac
fix to work in browser
...
run unit tests and integration tests in PhantomJS
add JUnit reporter to unit test so CircleCI can show results
2016-01-13 07:11:39 +02:00
Ivan Tivonenko
3dd21a7e11
run integration tests using standalone server
2015-12-19 02:04:05 +02:00
Chris Clark
ebfe20defb
Add multisignature support
2015-12-17 11:45:08 -08:00
Chris Clark
588ffa3d5c
Merge pull request #674 from darkdarkdragon/develop-eol
...
add check for windows eol
2015-12-14 12:57:57 -08:00
Ivan Tivonenko
691e4dd114
add check for windows eol on commit
...
removes windows eols from some files
2015-12-14 22:15:30 +02:00
Chris Clark
cce55b9361
Fix error on ledger subscription message without validated_ledgers
2015-12-14 11:07:58 -08:00
Chris Clark
9cd72595f0
BREAKING CHANGE: Change error event format and fix crash due to error event on websocket
2015-12-09 12:56:45 -08:00
Chris Clark
ad1d3e135f
Merge pull request #663 from darkdarkdragon/develop-http-server
...
http server example
2015-12-09 11:15:52 -08:00
Ivan Tivonenko
76866ab901
http server example
...
allows to use both positional and named parameters
2015-12-09 21:00:47 +02:00
Chris Clark
99d08065e4
BREAKING CHANGE: Fix types of XRP values in getServerInfo response
2015-12-07 16:47:56 -08:00
Chris Clark
e1d9de7b1f
Fix DeliverMin value when specifying minAmount
2015-12-04 15:18:03 -08:00
Chris Clark
86ff315ef2
Fix parsing of quality for getTrustlines
2015-12-04 13:40:59 -08:00
Chris Clark
82613e7e8b
Allow setting maxLedgerVersion to null to specify no maximum
2015-11-30 15:52:36 -08:00
Ivan Tivonenko
ddf8fe5b1a
add unit tests for RippleAPIBroadcast
2015-11-25 05:58:48 +02:00
Chris Clark
7061e9afe4
BREAKING CHANGE: "servers" parameter changed to single "server" and added a new broadcast wrapper class for multiple servers
2015-11-24 16:47:12 -08:00
Ivan Tivonenko
c9704137b7
fix handling memos in prepareSettings
...
boost coverage back to 99.88%
move connection tests to separate file
group test fixtures into namespaces
2015-11-25 02:10:54 +02:00
Ivan Tivonenko
995606b1e6
boost coverage to almost 100%
2015-11-23 17:06:55 -08:00
Chris Clark
7f33d8a71e
BREAKING CHANGE: prepareOrderCancellation now takes orderCancellation specification instead of sequence
2015-11-23 12:45:44 -08:00
Chris Clark
a271b9e816
Merge pull request #641 from clark800/ledger-event
...
BREAKING CHANGE: Rename "ledgerClosed" event to "ledger" and convert drops amounts to XRP
2015-11-20 11:30:35 -08:00
Chris Clark
8a3d4a64db
BREAKING CHANGE: Rename "ledgerClosed" event to "ledger" and convert drops amounts to XRP
2015-11-20 11:23:19 -08:00
Alan Cohen
7514213918
Fix: Specify send_max when pathfinding with a source amount
...
When specifying a fixed sending amount during a pathfind request, the source
amount is specified as a `send_max` field. This fixes a bug where the amount was
specified as `source_amount`. Leading to strange pathfinding behavior.
Example bad behavior (rippled pathfind request/response):
```
{
"command": "ripple_path_find",
"source_account": "rM21sWyMAJY1oqzgnweDatURxGMurBs7Kf",
"destination_account": "raDjTrcEtyMqZT6s3PyKGcikUJqYNXUPPv",
"destination_amount": {
"currency": "EUR",
"issuer": "raDjTrcEtyMqZT6s3PyKGcikUJqYNXUPPv",
"value": -1
},
"source_amount": {
"currency": "USD",
"issuer": "rM21sWyMAJY1oqzgnweDatURxGMurBs7Kf",
"value": "9.9"
},
"id": 2
}
{
"id": 2,
"result": {
"alternatives": [
{
"destination_amount": {
"currency": "EUR",
"issuer": "raDjTrcEtyMqZT6s3PyKGcikUJqYNXUPPv",
"value": "147520.7583553951"
},
"paths_canonical": [],
"paths_computed": [
[
{
"account": "r9HqF3wexBb1vtu2DfZKiFuyy3HoTAwUnH",
"type": 1,
"type_hex": "0000000000000001"
},
{
"currency": "EUR",
"issuer": "raDjTrcEtyMqZT6s3PyKGcikUJqYNXUPPv",
"type": 48,
"type_hex": "0000000000000030"
}
]
],
"source_amount": {
"currency": "USD",
"issuer": "rM21sWyMAJY1oqzgnweDatURxGMurBs7Kf",
"value": "160510.6025237665"
}
}
],
"destination_account": "raDjTrcEtyMqZT6s3PyKGcikUJqYNXUPPv",
"destination_currencies": [
"EUR",
"XRP"
],
"ledger_current_index": 2771044,
"validated": false
},
"status": "success",
"type": "response"
}
```
https://ripple.com/build/rippled-apis/#ripple-path-find
2015-11-20 10:44:21 -08:00
Chris Clark
4f90bbd931
Add resultCode and resultMessage to submit failure RippledError
2015-11-17 17:33:36 -08:00
Ivan Tivonenko
f146ea05c7
add test case for get transaction of types
...
suspendedPaymentExecution, suspendedPaymentCancellation, suspendedPaymentCreation
2015-11-17 23:43:01 +02:00
Chris Clark
2422b9a30b
Update README for RippleAPI
2015-11-17 11:30:26 -08:00
Chris Clark
83a85a4549
Remove walletLocator and walletSize from settings
2015-11-16 13:07:25 -08:00
Chris Clark
420413268d
Rename server info response fields
2015-11-16 13:07:25 -08:00
Chris Clark
c1bf1fd211
Rename "paymentSequence" to "suspensionSequence" in suspended payments
2015-11-16 13:07:25 -08:00
Chris Clark
9af20f9176
Simplify "submit" response
2015-11-16 13:07:22 -08:00
Chris Clark
230a80852a
Remove "closed" from getLedger response
2015-11-16 11:44:15 -08:00
Chris Clark
ed8f1e4111
Support removing RegularKey
2015-11-16 10:24:02 -08:00
Chris Clark
5a8e4be9df
Add descriptions to JSON schemas and organize for documentation generation
2015-11-13 15:05:53 -08:00