Elliot Lee
5b51ff6071
Support for the Deposit Authorization account root flag ( #852 )
...
* Add depositAuth flag tests
* Add support for depositAuth flag
2018-02-21 17:15:23 -08:00
Elliot Lee
3cad4f4aa3
Apply code formatting to API unit tests
2018-02-21 16:05:57 -08:00
Fred K. Schott
365de6d18a
Add new request interface, implement first few request typings ( #843 )
...
* Add request interface & typings
- src/api: add basic implementation of request/requestAll()
- src/ledgers/account_info: refactor to simplify with request()
- src/ledgers/balances: refactor to simplify with request()
- src/ledgers/orderbook: refactor to simplify with requestAll()
- src/ledgers/orders: refactor to simplify with requestAll()
- src/ledgers/trustlines: refactor to simplify with requestAll()
* standardize on Formatted prefix
2018-02-20 11:44:36 -08:00
Elliot Lee
b89eae5cb1
Add test of getTrustlines with multiple pages of results ( #850 )
2018-02-14 15:57:35 -08:00
Fred K. Schott
8204f6c648
Convert from Flow to Typescript ( #816 )
...
* convert to typescript
* add docs for custom node typing
* update webpack, gulpfile
2017-12-24 00:39:18 -08:00
wilsonianb
8ed5f764fa
Add missing condition or fulfillment test
2017-11-06 13:49:38 -06:00
wilsonianb
19eb88a00e
Add getPaymentChannel
2017-04-07 13:04:21 -07:00
wilsonianb
c8f2967de0
Sign and verify payment channel claim
2017-04-07 13:01:58 -07:00
Ben Sharafian
a574e1158a
Add transactions for payment channels
2017-03-30 21:19:31 -07:00
wilsonianb
9393adf66f
Disallow escrow of IOU
2017-03-30 10:10:00 -07:00
wilsonianb
da36457d5c
Update condition and fulfillment for escrow
...
Calculate escrowFinish fulfillment fee
2017-03-29 10:27:34 -07:00
wilsonianb
15a0ededc8
Replace suspended payments with escrow
2017-03-24 12:35:22 -07:00
Matthew Fettig
a96f71b7fd
fix missing deliveredAmount data from getLedger requests
2016-07-19 21:29:50 -07:00
Chris Clark
f74e11bce0
Add support for parsing SetFee and EnableAmendment pseudo-transactions
2016-05-05 15:37:23 -07: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
4f3635eef0
add SauceLabs testing
2016-02-05 07:59:34 +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
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
99d08065e4
BREAKING CHANGE: Fix types of XRP values in getServerInfo response
2015-12-07 16:47:56 -08:00
Chris Clark
82613e7e8b
Allow setting maxLedgerVersion to null to specify no maximum
2015-11-30 15:52:36 -08: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
8a3d4a64db
BREAKING CHANGE: Rename "ledgerClosed" event to "ledger" and convert drops amounts to XRP
2015-11-20 11:23:19 -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
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
e267e4131b
Merge pull request #625 from clark800/json-schemas
...
Organize JSON schemas for documentation generation
2015-11-06 12:50:10 -08:00
Chris Clark
782adc6a1a
Organize JSON schemas for documentation generation
2015-11-06 11:57:33 -08:00
Chris Clark
8074baa3b5
Better error message when using methods that require a connection when servers are not provided
2015-11-02 14:50:38 -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
6c2fad508a
Expose computeLedgerHash and prevent access to non-validated ledgers
2015-10-28 15:39:43 -07:00
Chris Clark
c238596a81
Emit Connection errors on RippleAPI, remove unused exports, use ripple-hashes in sign
2015-10-28 11:33:51 -07:00
Chris Clark
87dac75919
Cleanup error classes
2015-10-27 17:14:23 -07:00
Chris Clark
cd5eedff84
Rename toTimestamp/fromTimestamp
2015-10-26 17:46:57 -07:00
Chris Clark
1a99a2fddb
BREAKING CHANGE: Remove dependency of src/api on src/core, removes multiserver support
2015-10-26 16:28:43 -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
Ivan Tivonenko
4faa857330
getBalances fixes:
...
obey limit, do not return XRP if currency or issuer specified
2015-10-16 20:46:52 +03:00
wltsmrz
772f79ae21
Update schema
2015-10-05 12:16:25 -07:00