Elliot Lee
f5e1a4a588
Revert "Expose validation methods in public api"
...
This reverts commit 9e9a0a7d9b .
We should move methods like deriveKeypair and deriveAddress
off of the schemaValidator object.
2018-08-10 14:54:01 -07:00
Mo Morsi
9e9a0a7d9b
Expose validation methods in public api
...
Updated to fix tests
2018-08-06 16:09:04 -07:00
Elliot Lee
067bc48d4e
Add prepareTransaction() ( #898 )
...
* Export iso8601ToRippleTime(), txFlags, convertStringToHex()
* Fix a bug that caused fees exceeding 999 to throw an error
e.g. '1,000' would not be recognized as a valid number.
To use 6 decimal places, toFixed should be used instead of toFormat.
2018-07-26 12:24:29 -07:00
Elliot Lee
14704eee6b
Add more tests of getFee ( #897 )
2018-07-25 01:53:27 -07:00
Elliot Lee
7a928804ec
feat: add payment channel details to tx (2) ( #920 )
...
* Bump transactionparser to v0.7.1 and update output schema
* yarn docgen for required `threshold` and `weights`
2018-07-17 22:22:07 -07:00
Rome Reginelli
47a139fdff
Fix text/plain MIMETYPE in examples with memos ( #914 )
2018-07-03 17:18:46 -07:00
Brandon Wilson
4e30b9b2fa
Require threshold and weights in signers settings ( #909 )
...
Fixes #908
2018-07-02 16:27:03 -07:00
Elliot Lee
2112d4c0b3
Round XRP fee to 6 decimal places ( #912 )
...
* Round XRP fee to 6 decimal places
Fix #911
2018-06-28 17:59:00 -07:00
Elliot Lee
e07fa11923
Maximum fee values ( #902 )
...
* Add maxFeeXRP (default 2 XRP) as an optional RippleAPI constructor parameter
- No calculated or specified fee can exceed this value
- If the fee exceeds 2 XRP, throw a ValidationError
* sign() - throw ValidationError when Fee exceeds maxFeeXRP
* Document getFee parameters
* Explain new fee limits in HISTORY.md
* Deprecate `maxFee`
2018-06-07 23:29:24 -07:00
Elliot Lee
1aa9feda71
Allow specifying amounts in drops ( #892 )
...
* Accept "drops" in lieu of "XRP"
* Export xrpToDrops() and dropsToXrp()
* Throw our own validation errors instead of BigNumber Errors
2018-05-21 13:19:18 -07:00
Elliot Lee
54f12862dc
Improve errors ( #893 )
...
- `RippledError`: Include the full response from the `rippled` server.
- A new test ensures correct behavior when `streams` is not an array.
- `NotConnectedError` may be thrown with a different message than before.
2018-05-12 09:38:49 -07:00
Elliot Lee
b2b6715ac0
Add request(), hasNextPage(), and requestNextPage() ( #887 )
...
* Add support for all rippled APIs, including subscriptions.
* Add support for arbitrary stream message types.
* Note that rippled APIs take amounts in drops.
* request() will be available in ripple-lib version 1.0.0+
2018-05-10 15:43:56 -07:00
Elliot Lee
f28ec27614
getOrderbook - return raw order data ( #886 )
...
Fix #799
2018-05-08 15:05:41 -07:00
Elliot Lee
e978ef1888
Add getAccountObjects ( #881 )
...
Squashed commit of the following:
commit 361ead8cbbbe4fa25ecba614f8f11930ff679996
commit 5ff26d7d2defbbaaa7c50d6b3b5b74bf30be19ef
commit 97f5dfc86d4730082fd016197b0c025e499912e3
commit d48654098601f2a19484d9bbae7c65786e3c5dd4
commit 4790401123e7836f6bea8d03111bce60dcf95114
commit 57512f7fc000689bb8224f33173ba91221f27281
commit e75a7e95b11368b26c40e8e6e7b583d978475e95
2018-04-11 14:37:37 -07:00
amougel
2570e2a6d8
Add signWithKeypair ( #769 )
2018-04-03 15:33:24 -07:00
Fred K. Schott
187154a2b0
Types cleanup + more API methods onto new request method ( #857 )
...
* major types cleanup, more formatted api methods onto new request method
- getPaymentChannel() now uses this.request()
- getSettings() now uses this.request()
- getLedger() now uses this.request()
- transaction types cleaned up a bit, but still some work left to do
2018-03-14 16:08:57 -07:00
Elliot Lee
facc513a52
Add support for Checks ( #853 )
...
- See https://github.com/ripple/rippled/pull/2245
* Add support for depositAuth flag
* Upgrade ripple-binary-codec to 0.1.13
2018-03-01 21:42:46 -08:00
Elliot Lee
ca74cf1028
Apply automatic formatting
2018-02-23 16:50:40 -08:00
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
Elliot Lee
b4d8684740
Update escrow creation response fixture
...
- Request fixture was changed by #820
- Add an ExecuteAfter (aka FinishAfter) timestamp
2018-01-17 15:50:34 -08:00
Fred K. Schott
01ecfb0a07
update istanbul to nyc (their new cli) to get typescript coverage
2018-01-11 17:20:44 -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
mDuo13
d22828b222
[Docs] Improve escrow creation example to have ExecuteAfter date
2017-12-18 10:23:54 -08:00
wilsonianb
8ed5f764fa
Add missing condition or fulfillment test
2017-11-06 13:49:38 -06:00
wilsonianb
2a90f9b134
Include signers in getSettings
2017-10-10 19:10:26 -05:00
Brad Chase
f175966816
Make http server dev only
2017-05-05 14:59:15 -04:00
Matthew Fettig
1b8b0c76ac
Merge pull request #757 from ripple/fix-condition
...
Fix escrow condition and fulfillment descriptions
2017-04-13 19:39:27 -07:00
wilsonianb
081fcbfa32
Fix escrow condition and fulfillment descriptions
2017-04-12 15:16:01 -07: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
016e82ab5d
Simplify EscrowCreate parameters
2017-03-30 19:01:58 -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
wilsonianb
68d7864f93
Rename suspended payment files as escrow
2017-03-24 12:32:17 -07:00
Matthew Fettig
7a14300409
update ripple-binary-codec to version 0.1.8
2017-03-24 10:40:19 -07:00
Chris Clark
acf8f87a88
Merge pull request #727 from clark800/order-seq
...
Add orderToReplace option
2016-08-01 14:34:27 -07:00
Chris Clark
cfac146620
Add orderToReplace option
2016-08-01 14:27:08 -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
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