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
adrianhopebailie
14444bea3f
feat: add payment channel details to tx
2018-07-17 22:20:47 -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
Fred K. Schott
2e5b435b11
add server_info request typing ( #895 )
2018-05-17 16:37:17 -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
mDuo13
8eba827d11
Improve Payment Channel documentation
2018-03-28 11:54:05 -07:00
Fred K. Schott
43c08e5ea7
Clean up min/max adjustments ( #873 )
2018-03-22 12:31:44 -07:00
darkmemo
a72041a321
Fix Payment source & destination types ( #870 )
...
Payment `source` and `destination` are defined as intersection types, `Adjustment & MaxAdjustment` and `Adjustment & MinAdjustment` respectively. But they should be union types instead. This problem was introduced during js to ts conversion.
Fixes #866
2018-03-20 11:26:41 -07:00
Elliot Lee
71a0c16fec
Ledger object - accountState supersedes accounts ( #868 )
...
This appears to originate from a mistake in the docs.
The actual name of the field is `accountState`.
See:
9af994ceb4/src/ripple/app/ledger/impl/LedgerToJson.cpp (L167)
* Remove TODOs addressed by docs PR
https://github.com/ripple/ripple-dev-portal/pull/324
2018-03-19 14:52:18 -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
0ad8c577c0
Export Check* transaction param types
2018-03-01 21:46:20 -08: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
df711ecb06
Import from 'server' to fix TS4029
2018-03-01 21:23:02 -08:00
Elliot Lee
144be08af0
Export types used by exported variables ( #858 )
...
Fixes TypeScript compile errors due to generating TS declaration files.
See #851
2018-03-01 17:48:28 -08:00
Elliot Lee
68b34f7532
Improve documentation of getTransactions params ( #856 )
...
* Improve documentation of getTransactions params
- Resolve #855
2018-02-26 17:39:06 -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
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
4a21360e37
Alphabetize properties for Settings object
...
- Generate docs to fix earlier typo (yarn run docgen)
2018-02-14 16:22:05 -08:00
Elliot Lee
3ebbca0083
instructions.json - fix typo
2018-02-02 10:49:32 -08:00
Elliot Lee
51aaa75a05
Use BigNumber internally to compute fee
2018-01-30 15:29:28 -08:00
Elliot Lee
01a25f55f2
Initialize ledgerVersion to undefined
2018-01-30 14:58:59 -08:00
Fred K. Schott
94196ab268
post flow-to-ts cleanup
2018-01-29 12:11:32 -08:00
Elliot Lee
7a653e6e63
Fix: isSameIssue() should check counterparty
2018-01-26 16:06:25 -08:00
Elliot Lee
e8ac4f3d40
Set PublicKey type to string
2018-01-23 16:08:40 -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
Fred K. Schott
7e5b9948a8
convert common.js modules to new standard esm module syntax ( #815 )
2017-12-04 11:21:56 -08:00
Fred K. Schott
7ece43e2e2
fix whitespace (lint errors) ( #813 )
2017-11-27 10:54:40 -08:00
Fred K. Schott
f90617eac4
fix flow type errors ( #811 )
2017-11-21 16:52:48 -08:00
Fred K. Schott
44119ddf2d
remove unneccessary double-polyfills from runtime
2017-11-12 23:40:29 -08:00
Fred K. Schott
567036f382
fix lint errors and configure eslintrc to automatically work /w tooling
2017-11-12 12:46:50 -08:00
Elliot Lee
227ea82a29
escrow-execution - Add reference to ValidationError
2017-11-06 11:08:06 -08:00
wilsonianb
2a90f9b134
Include signers in getSettings
2017-10-10 19:10:26 -05:00
Elliot Lee
ecd6347859
Update to lodash 4
...
- Update ripple-lib-transactionparser
2017-09-27 10:25:53 -07:00
Elliot Lee
ab17b19ff0
Update for CircleCI
...
- circle.yml - use node 6
- Fix eslint errors
- Update coveralls and add path to babel
2017-09-27 10:25:08 -07:00
mDuo13
393b2f9d78
Docs: fix broken links
2017-09-01 12:45:03 -07:00
Brad Chase
f175966816
Make http server dev only
2017-05-05 14:59:15 -04:00
Brad Chase
f1f5364d07
Switch to jsonschema
2017-05-03 20:34:24 -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