Elliot Lee
988381d584
Merge pull request #1048 from FredKSchott/tsc-update
...
Update TypeScript
2019-10-16 23:04:20 -07:00
Elliot Lee
0b163eae23
XRP Ledger Hashes: create README.md
2019-10-15 16:34:48 -07:00
Fred K. Schott
fadfd4e06c
update typescript
2019-10-13 16:19:45 -07:00
Tyler Storm
14e6bf5ef9
Integrate ripple-hashes ( #1039 )
...
* Update TxParser and Mocha
* Convert ripple-hashes to TypeScript and add into ripple-lib along with unit tests
* Switch casing to camelCase
* Document intToVuc
* Convert Slots to numbers, add exception if number is outside 0-15
* Remove Shamap v2 support
* Improve naming
2019-10-01 23:35:11 -07:00
Elliot Lee
b6bddd3b0e
[MINOR] Remove unnecessary semicolon
2019-09-26 03:18:54 -07:00
Elliot Lee
d5ed9b6cf5
Improve error message when signing fails
...
When there are multiple representations of the same value
(for example, trailing zeros) the verification will fail.
This points users to the error.data object for details about
the failure, and adds a diff so that the cause of the
discrepancy can be seen at a glance.
2019-09-24 09:58:24 -07:00
Elliot Lee
1a685e2b68
Fix #1032 ( #1033 )
...
* Update ripple-address-codec@latest
* Export and document rippleTimeToISO8601
2019-09-03 16:38:56 -07:00
Elliot Lee
0a41d5ccf1
Upgrade to gulp 4; remove http server ( #1030 )
...
* Update gulp version to ^4.0.2 and Gulpfile.js
* Remove http server
2019-08-26 13:50:36 -07:00
Elliot Lee
5e138b9937
Sign method - verify accurate encoding ( #1026 )
...
* Decode signed transactions and check field integrity
* Add tests (including signing a tx without Flags)
* Update tests to output more descriptive errors on failure
* Update ripple-binary-codec to 0.2.2
2019-08-16 16:22:25 -07:00
Elliot Lee
82d50cd903
Document setCanonicalFlag and export from src/transaction/utils
2019-08-09 10:16:33 -07:00
Elliot Lee
c5b1d4daac
Update lodash to ^4.14.136, fix docs typo, update HISTORY.md
2019-08-07 12:20:56 -07:00
Namrata
b4a30d49d8
Support removing a signer list ( #1021 )
...
* Make weights an optional field
* Fix #971
2019-07-30 16:48:30 -07:00
mDuo13
7ca7a07942
Phrasing cleanup in schema descriptions
...
- Change 'Ripple address'→'XRP Ledger address'
- Change 'is exclusive with'→'cannot be used with'
2019-07-15 14:26:43 -07:00
Elliot Lee
4d696369fe
APIOptions: extend ConnectionOptions ( #1018 )
...
Fix #1017
2019-06-21 01:45:47 -07:00
Elliot Lee
bcb80ea5f5
Fix getServerInfo ( #1012 )
...
* Return array for serverInfo.load.jobTypes
* Include start/end in invalid range assertion error
2019-06-14 14:57:36 -07:00
Elliot Lee
1be2ee5875
Docs: fix #574 ( #1011 )
...
destination.address
2019-06-14 14:57:14 -07:00
Elliot Lee
5ffbd6e86d
Update dependencies ( #1007 )
...
* Update dependencies: @types/lodash@4.14.133 , mocha-junit-reporter@1.22 .0, tslint@5.17 .0, nyc
Fix type errors
2019-06-06 15:56:29 -07:00
Elliot Lee
e2572c61cf
Add details about transaction fees, master keys, and multi-signing
2019-06-05 00:27:25 -07:00
Elliot Lee
7df2b74d43
Update get-server-info.json
2019-05-27 14:37:38 -07:00
Elliot Lee
f51a69f080
Fix typo
2019-05-22 10:04:43 -07:00
Elliot Lee
0d5103a3f3
Use TypeScript project reference ( #1002 )
...
* Add *.tsbuildinfo to .gitignore
* Bump versions of dependencies, nyc and yargs
* Drop support for node 9 (EOL 2018-06-30)
https://github.com/nodejs/Release
* Add getTransaction snippet
2019-04-15 11:06:31 -07:00
Elliot Lee
4da80028bf
Prevent prepareTransaction from overwriting values in txJSON ( #1000 )
...
Fix #997
2019-04-13 11:33:16 -07:00
Daniel Chan
bb40dbde9d
Add deliveredAmount as optional field for type Outcome ( #996 )
2019-04-11 17:13:42 -07:00
Elliot Lee
50fc36ec3e
Add "strict": true to tsconfig.json ( #994 )
...
- Remove process.browser
2019-04-11 15:48:23 -07:00
Adrian Hope-Bailie
0d7879b25c
fix: build fails with strict checks
2019-03-29 11:48:13 +02:00
Elliot Lee
d82703f41b
prepareTransaction should not overwrite Sequence ( #990 )
...
* Cleans up some code and fixes some type errors
* Clarify how null settings work
* Document updated RippledError
* Updates per review by @mDuo13
2019-03-18 15:55:42 -07:00
Kincaid O'Neil
a842c380cf
fix: add amount to FormattedPaymentChannel type ( #989 )
...
* fix: add amount to FormattedPaymentChannel type
* fix: ignore package-lock.json
2019-03-12 16:58:30 -07:00
Elliot Lee
bfe4877f73
Merge remote-tracking branch 'origin/master' into develop
2019-03-12 15:12:58 -07:00
Elliot Lee
63dcddf6f4
[Docs] Update transaction responses link
...
List of transaction responses
2019-03-11 12:14:41 -07:00
Elliot Lee
1fd9ca7ef2
Use Buffer.from and clean up a few things ( #985 )
2019-02-07 00:29:59 -08:00
Elliot Lee
2445004333
Change prepare* methods to reject Promise on error ( #984 )
...
* Reject Promise on error, update docs, and add tests:
* preparePayment
* prepareTrustline
* prepareOrder
* prepareOrderCancellation
* prepareSettings
* prepareEscrowCreation
* prepareEscrowExecution
* prepareCheckCreate
* prepareCheckCash
* prepareCheckCancel
* preparePaymentChannelCreate
* preparePaymentChannelFund
* preparePaymentChannelClaim
Note that we can't update mocha to ^5.2.0 because it causes testing to hang indefinitely; this needs to be investigated.
2019-01-29 15:22:18 -08:00
Alexandru Chiriac
5419e67dbc
GetLedger by hash option ( #980 )
...
* update ledger input schema
* include ledgerHash option
2018-12-12 11:02:50 -08:00
Alexandru Chiriac
8d37da0952
Update Submit Response ( #978 )
...
* update submit output schema
* update submit response object
2018-12-04 15:35:07 -08:00
Elliot Lee
0f5056221f
Fix getOrderbook ( #970 )
...
* Fix `getOrderbook` (Fix #766 )
* Add `formatBidsAndAsks` as a recommended alternative to `getOrderbook`
* Add `renameCounterpartyToIssuer`
2018-11-26 15:25:15 -08:00
Elliot Lee
8384ace746
Add return type for generateAddress ( #968 )
...
For TypeScript apps
2018-11-20 15:35:34 -08:00
Elliot Lee
040cabece0
Add comments for accountRootFlags ( #962 )
2018-11-16 22:34:41 -08:00
Elliot Lee
418987476e
Add DepositPreauth ( #958 )
...
* Expose parseAccountFlags() and add docs
* Add example snippet
* Default to node v10 for nvm
* Maintain existing behavior for getSettings
* Increase max line length from 80 to 120 (ter-max-len)
2018-10-31 16:27:32 -07:00
Elliot Lee
1c017df2a3
Merge pull request #955 from jcperkins12/feature/balanceChanges-TypeCorrection
...
Type balanceChanges should be array of changes not array with one change
2018-10-24 20:34:03 -07:00
Elliot Lee
5fed1f08e4
Document xrpToDrops, dropsToXrp, iso8601ToRippleTime, schemaValidator, and more
...
The following methods are available directly under the RippleAPI object,
not under schemaValidator:
isValidAddress, isValidSecret, deriveKeypair, deriveAddress
2018-10-18 01:16:50 -07:00
Elliot Lee
0f7af6a4e9
Add depositAuth to FormattedSettings type
2018-10-17 15:58:52 -07:00
Elliot Lee
f4ad04d334
Exclude SendMax from XRP to XRP payments ( #957 )
...
Fix #954
2018-10-16 12:21:29 -07:00
Cory Perkins
8dfec20871
Changed type of balanceChanges made to an account from an array of one change to an array of 1 change to and array of records with the type of a blanceChange
2018-10-10 12:21:16 -05:00
Cory Perkins
64745017e9
book_offers returns offers type OfferLedgerEntry ( #951 )
...
* rippled-api function book_offers returns offers in the format of OfferLedgerEntry not OfferCreateTransaction
* updated type of account_objects
2018-10-02 02:14:17 -07:00
Elliot Lee
37edede728
Use object instead of Object ( #936 )
2018-10-02 02:13:28 -07:00
Elliot Lee
01ad30ab07
Fix typos in ledger_entries.ts
2018-09-19 14:24:02 -07:00
Cory Perkins
e08d507462
Add remaining LedgerEntry types ( #943 )
...
* Replaced the union with 'any' in the LedgerEntry type
* Added DepositPreauthLedgerEntry (new in rippled 1.1.0)
2018-09-19 14:21:52 -07:00
wudanjs
4c23bd5ad3
Include memos when parsing trustlines ( #949 )
2018-09-19 14:17:38 -07:00
Scott M Sunarto
b15abd5376
Update server regex to accommodate UDS ( #944 )
2018-09-18 11:47:46 -07:00
Mo Morsi
a80de5658a
Move deriveKeypair and deriveAddress to offline module
2018-09-09 09:39:25 -04:00
Mo Morsi
5f36df0172
Expose deriveKeypair, deriveAddress, isValidAddress, and isValidSecret to the public API
2018-09-09 09:39:25 -04:00