Ivan Tivonenko
e17b6f172d
[FIX] on connect return error if server doesn't have validated ledgers
2016-03-24 22:26:33 +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
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
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
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
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
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
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
8a3d4a64db
BREAKING CHANGE: Rename "ledgerClosed" event to "ledger" and convert drops amounts to XRP
2015-11-20 11:23:19 -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
Chris Clark
782adc6a1a
Organize JSON schemas for documentation generation
2015-11-06 11:57:33 -08:00
Chris Clark
6cc8c5a0f4
BREAKING CHANGE: Specify ledger close time and suspended payment timestamps in ISO 8601 format
2015-11-02 12:34:50 -08:00
Chris Clark
c7b021c7be
Fix and reorganize schemas and switch to ajv validator
2015-10-30 14:28:50 -07:00
Chris Clark
2aa1695b74
Delete obsolete files and update LICENSE file
2015-10-30 14:25:33 -07:00
Chris Clark
665f5f9664
Add support for order expiration
2015-10-29 17:25:52 -07:00
Chris Clark
391a9fd260
Switch back to ripple_path_find
2015-10-22 17:51:16 -07:00
Chris Clark
cd17d6940f
BREAKING CHANGE: getFee returns promise, express fee in XRP in instructions response, use rawRequest to start decoupling Remote from API
2015-10-22 14:34:42 -07:00
Chris Clark
5aa212471c
Merge pull request #606 from clark800/decouple-transaction
...
Decouple core.Transaction from API
2015-10-22 11:16:29 -07:00
Chris Clark
c324682ca3
Decouple core.Transaction from API
2015-10-21 11:48:40 -07:00
Matthew Fettig
aeb56dee17
rename metaData to meta on getLedger
2015-10-21 10:00:07 -07:00
Chris Clark
3fbde86548
Set FullyCanoncialSig flag and fix integration tests
2015-10-20 15:49:03 -07:00
Ivan Tivonenko
4faa857330
getBalances fixes:
...
obey limit, do not return XRP if currency or issuer specified
2015-10-16 20:46:52 +03:00
Chris Clark
7419244b39
Delete serialization code
2015-10-13 18:24:21 -07:00
Chris Clark
91a64137fe
BREAKING CHANGE: Use ripple-binary-codec
2015-10-08 15:48:23 -07:00
Chris Clark
d8d6f945ec
Merge pull request #581 from clark800/binary-codec
...
Decouple UInt from non-serialization code
2015-10-05 16:39:17 -07:00
Chris Clark
2f163c3b6e
Decouple UInt from non-serialization code
2015-10-05 15:27:43 -07:00
wltsmrz
ff2ac6c3cd
Format balancesheet schema
2015-10-05 13:09:04 -07:00
wltsmrz
78eeb40322
Change rippled test fixture name
2015-10-05 12:23:22 -07:00
wltsmrz
806a4e823f
Add getBalanceSheet() to RippleAPI
2015-10-02 17:30:13 -07:00
Chris Clark
35acbb62c3
Support source.amount in getPaths and destination.minAmount in preparePayment
2015-10-01 14:55:11 -07:00
Chris Clark
c79b12b27f
Use ripple-lib-value package and update ripple-lib-transactionparser dependency
2015-09-24 12:32:15 -07:00
Alan Cohen
27d2e6e519
Merge pull request #557 from clark800/ledger-close
...
Add ledgerClosed event
2015-09-21 15:33:44 -07:00
Chris Clark
7ee368965c
Add ledgerClosed event
2015-09-21 14:38:51 -07:00
Chris Clark
60c604fbe6
Merge pull request #536 from sentientwaffle/dj/suspay
...
suspended payments
2015-09-18 10:58:10 -07:00
sentientwaffle
b134081293
Add SuspendedPayment{Create,Finish,Cancel}
...
* Add SusPay core tests
* Rename SusPay -> SuspendedPayment (code review)
* Rename cancelAfter -> allowCancelAfter
* Rename suspendedPayment{Finish,Execution}
2015-09-18 10:51:34 -07:00