Greg Weisbrod
a9730af656
add NFTokenCreateOffer
2021-10-21 00:35:13 -04:00
Greg Weisbrod
34ecd570b9
add NFTokenBurn and NFTokenMint
2021-10-21 00:20:21 -04:00
Nathan Nichols
14395ab58f
build: update package.json version for release ( #1755 )
...
* build: update xrpl.js for release
2021-10-20 11:34:58 -05:00
Mukul Jangid
910a5999c9
Docs: Snippets ( #1729 )
...
* refactor: adds snippets for sendEscrow, claimPayChannel, reliableSubmission, getTransaction, partialPayment, getPaths
2021-10-20 12:29:48 -04:00
Nathan Nichols
d1b34bb458
docs: update README ( #1762 )
...
* update README
* adds docs for LedgerEntry namespace
2021-10-20 08:41:22 -05:00
Omar Khan
217b94e2fa
remove unused function RequestManager.cancel() ( #1760 )
...
RequestManager.cancel() is an unused function that has no use case. It should be deleted to bring up code coverage.
2021-10-19 18:08:05 -04:00
Mayukha Vadari
f29e79eb68
fix: add connected/disconnected overrides to client.on ( #1758 )
...
* add `on` handlers for connected/disconnected
* add tests
* fix tests
* remove all listeners in teardown
* fix disconnect handler
2021-10-19 17:09:46 -04:00
Elliot Lee
4110c18301
feat: add convertHexToString function in utils ( #1753 )
...
The reverse of convertStringToHex. Useful to read the Domain field and some Memos.
Co-authored-by: Nathan Nichols <natenichols@cox.net >
2021-10-19 14:06:12 -07:00
Mukul Jangid
63a5885e88
docs: add flag interfaces examples ( #1751 )
...
* refactor: add Flags Interfaces examples
2021-10-19 17:05:55 -04:00
Jackson Mills
a97b42d18a
Export ledger entries under LedgerEntry ( #1752 )
2021-10-19 14:04:15 -07:00
ledhed2222
bd154fd6e8
lint filenames ( #1757 )
...
* build: update @xrplf/typescript-style
* fix filename casing
* fix webpack setup
* add missing eslint plugin
Co-authored-by: Nathan Nichols <natenichols@cox.net >
2021-10-19 16:08:46 -04:00
Nathan Nichols
dd7c2fba8e
docs: clean up documentation for Client ( #1749 )
...
* update phrasing
* account -> address
2021-10-19 14:05:12 -05:00
Nathan Nichols
38dd5d1d7b
refactor: remove getFee from Client ( #1756 )
...
* removes getFeeXrp from client
2021-10-19 13:47:46 -05:00
Nathan Nichols
0eadbfb790
docs: clarify option and return types ( #1718 )
...
* docs: clarify docs for options and return types
* docs: docgen w/ CNAME
2021-10-19 11:23:10 -05:00
Mayukha Vadari
d502d4aac7
refactor: rename ISOTimeToRippleTime to isoTimeToRippleTime ( #1754 )
...
* rename `ISOTimeToRippleTime` to avoid triggering linters
* add tests for time conversion
2021-10-19 11:53:10 -04:00
Nathan Nichols
3503ed0f78
docs: categorize utilities correctly ( #1746 )
...
* docs: categorize utilities correctly
2021-10-18 17:34:50 -05:00
Mayukha Vadari
f55556c2a6
fix: improve partial payment handling ( #1709 )
...
* handle partial payments better
* clean up
* fix tests
* fix fixture modification
* remove stream split
* remove unsafeTransaction
* make linter happy
* respond to comments
* fix jsdoc
* add console.warn
2021-10-18 13:58:51 -04:00
Nathan Nichols
7195947d53
feat: adds utility functions for TransferRate and QualityIn/QualityOut ( #1720 )
...
* feat: Add quality utilities
* test: add tests for quality utilities
* test: adds integration tests testing sub 100% qualities
* feat: provides toDecimal functions
2021-10-18 10:56:13 -05:00
Omar Khan
09a0f2bbcb
refactor: simplify submit transaction methods ( #1725 )
...
* To simplify submit transaction requests by having only one version of them that supports both signed/unsigned transactions, the signed versions of them (submitSigned(), submitSignedReliable()) are deleted.
* Their signed logic is merged into submit() and submitAndWait() (renamed from submitReliable()).
* Change order of submit method params to be consistent.
* Add a SubmitOptions method param to include options for wallet to sign a transaction, and booleans to autofill/failHard a transaction.
2021-10-15 19:10:35 -04:00
Jackson Mills
a2f7fe6e23
Replace wallet.getClassicAddress() with wallet.classicAddress ( #1727 )
2021-10-15 15:46:20 -07:00
Nathan Nichols
6e57b4e2ee
fix: resolves TODOs in ./src ( #1623 )
...
fix: resolves TODOs in ./src
2021-10-15 17:18:22 -05:00
Omar Khan
b71147416c
feat: add Regular Key Pair support ( #1692 )
...
add Regular Key Pair support to Wallet
2021-10-15 18:16:10 -04:00
Mayukha Vadari
c59ca2bda8
deps/test: update @types/ws and fix flaky tests ( #1724 )
...
* build(deps): bump @types/ws from 7.4.7 to 8.2.0
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws ) from 7.4.7 to 8.2.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws )
---
updated-dependencies:
- dependency-name: "@types/ws"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* resolve linter error
* fix types/ws
* fix flaky integration tests - tefPAST_SEQ
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nathan Nichols <natenichols@cox.net >
2021-10-15 12:29:28 -04:00
Rome Reginelli
5eb3db5395
Autofill: use current ledger for sequence number ( #1719 )
...
Getting an account's next available sequence number is a case where using the open ledger usually makes more sense than getting the validated ledger. If you have any transactions pending, the sequence from the validated ledger will be behind, but one from the open ledger will be correct unless the pending transactions fail to achieve a consensus (which is rare).
2021-10-14 12:15:04 -07:00
Mayukha Vadari
d12c1bac9d
fix: resolve regex vulnerability ( #1714 )
...
* first regex fix attempt
* fix tests, cleanup
* leave 1e-7 test in
* clean up throws
* fix comments
* respond to nate's comments
2021-10-13 14:08:57 -04:00
Jackson Mills
ede1500afa
test: subscription standalone integration tests ( #1690 )
...
Add tests for pathFind and other subscriptions that can be tested with a standalone node.
2021-10-12 14:57:46 -07:00
Mayukha Vadari
1a8bbfa43e
refactor: move hasNextPage from Client to utils ( #1715 )
...
* add hasNextPage
* remove unused util
* add tests
* remove hasNextPage from client
2021-10-12 16:39:57 -04:00
Nathan Nichols
615504db22
docs: finalizes documentation for xrpl.js ( #1703 )
...
docs: Adds JSDoc comments to all functions and interfaces
2021-10-12 14:04:18 -05:00
Mayukha Vadari
24308eb3ae
feat: client.getXrpBalance ( #1708 )
...
* implement getXrpBalance
* add to client
* add tests
* clean up getBalances
* improve generateFaucetWallet
* fix tests after rebase
2021-10-11 11:47:36 -04:00
Mayukha Vadari
8556f78f41
feat: export setTransactionFlagsToNumber at the top level ( #1707 )
2021-10-11 11:23:55 -04:00
Mukul Jangid
f93b1f241e
Refactor: Rewrite transaction signing ( #1693 )
...
* refactor: sign with wallet
* refactor: change multisign and rename signTx to sign
* refactor: specify multisign as boolean
* refactor: support address as well as booleans for multisign
* feat: return hash from sign fn and fix tests
2021-10-08 15:33:31 -07:00
Omar Khan
9ad2b28172
refactor: rename hash functions ( #1701 )
...
- Rename hash functions to be shorter for easier use.
- Namespace hash functions into xrpl.hashes
2021-10-08 16:45:12 -04:00
Mukul Jangid
cb55d2eacb
feat: add starting balance to faucet wallet ( #1702 )
...
* refactor: add starting balance to faucet wallet and change `generateFaucetWallet()` to `fundWallet()`
2021-10-08 15:14:56 -04:00
Mayukha Vadari
43c71f4d9b
feat: reliable submission for transactions ( #1704 )
...
* implement relsub
* add tests
* clean up
* remove `transaction` from method names
* remove early success check
2021-10-08 10:27:55 -07:00
Nathan Nichols
aeb5770f61
feat: alias wallet.classicAddress as wallet.address ( #1686 )
...
* feat: alias wallet.classicAddress as wallet.address
2021-10-08 09:33:19 -07:00
Jackson Mills
7e70142044
feat: Add parseAccountRootFlags ( #1699 )
...
* Add parseAccountRootFlags and interface
* Add tests for parseAccountRootFlags
2021-10-07 16:23:42 -07:00
Mayukha Vadari
0674d21134
fix: remove response.status from returned object ( #1698 )
...
* remove response.status
* fix unit tests
* fix integration tests
* remove now-unneeded helper method
* fix rename
2021-10-06 18:13:27 -04:00
Mukul Jangid
5e515a9105
refactor: reorganize/rename flags interfaces ( #1700 )
...
* refactor: reorganize/rename flags interfaces
2021-10-06 17:14:02 -04:00
Mayukha Vadari
e5f6e4a825
feat: getBalanceChanges ( #1696 )
...
* first cut of changes
* get XRP changes to work
* clean up + get tests passing
* get IOUs working
* port over other tests
* clean up old code
* fix metadata type
* rename iou -> token
2021-10-06 14:43:43 -04:00
Nathan Nichols
578f35dd35
fix: convert uint8Array to Buffer ( #1679 )
2021-10-04 14:11:26 -04:00
Nathan Nichols
8df224232c
fix: remove undefined from generateFaucetWallet return type ( #1676 )
...
* fix: remove undefined from generateFaucetWallet return type
2021-10-04 14:11:26 -04:00
Nathan Nichols
c3e68cc83f
fix: set ledger_index to validated ( #1675 )
...
* fix: adds ledger_index: validated
2021-10-04 14:11:26 -04:00
Nathan Nichols
02fd0ce323
refactor: clean up getFaucetWallet starting balance ( #1677 )
2021-10-04 14:11:26 -04:00
Nathan Nichols
9e3654d7d6
fix: fix error handling in generateFaucetWallet ( #1671 )
...
* fix: handle error correctly in generateFaucetWallet
* test: Adds generateFaucetWallet integration + browser tests
2021-10-04 14:11:26 -04:00
Nathan Nichols
edcdd3a0fc
feat: adds isValidAddress ( #1672 )
...
* feat: adds isValidAddress
2021-10-04 14:11:26 -04:00
Mayukha Vadari
f5dee87ca7
fix: make generateFaucetWallet functional ( #1669 )
2021-10-04 14:11:26 -04:00
Mayukha Vadari
b522e703b4
feat: add client.getLedgerIndex ( #1668 )
...
* write getLedgerIndex
* add to client
* rename file
* add tests
* remove unused import
* fix browser tests
* respond to comments, more cleanup
2021-10-04 14:11:26 -04:00
Nathan Nichols
0be819cf37
feat: Add warning for partial payment ( #1641 )
2021-10-04 14:11:26 -04:00
Mayukha Vadari
da92bb7f1a
fix: resolve browser issue with Error.captureStackTrace ( #1663 )
...
* fix webpacking error issue
* fix eslint comment
2021-10-04 14:11:26 -04:00
Nathan Nichols
b3a72588ea
Autofills AccountDelete Fee w/ reserve_inc_xrp ( #1639 )
...
* fix: fetch Owner Reserves from ledger
2021-10-04 14:11:26 -04:00