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
Omar Khan
df4c9dc2fd
refactor: remove unused fixtures ( #1710 )
...
delete all unused fixtures in:
- tests/fixtures/requests
- tests/fixtures/responses
- tests/fixtures/rippled
2021-10-11 17:13:04 -04: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
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
Mukul Jangid
90dae91fb9
test: Add Integration tests for Escrow Transactions ( #1680 )
...
* test: Add Integration tests for Escrow Transactions
2021-10-05 13:04:34 -04:00
Mukul Jangid
a1dce6b1e0
test: Integration tests for Account Transactions ( #1673 )
...
* test: Integration tests for Account Transactions
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
5b9e3dbdc4
refactor: separate out webpacking for tests ( #1678 )
2021-10-04 14:11:26 -04:00
Mukul Jangid
b77e2590b3
test: add integration tests for Server Info requests ( #1650 )
...
* add Integration tests for Server Info requests
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
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
Jackson Mills
afe06451ac
Add trustSet integration test and browser test ( #1667 )
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
Mayukha Vadari
b7c4b16a8d
feat: extra protection for AccountDelete transactions ( #1626 )
...
* add deletion blockers check to autofill
* add tests
* add fail_hard: true
* pass in account_objects response to error
* only fail_hard for AccountDelete
* reject promise instead of throwing error
* fix rebase issue
2021-10-04 14:11:26 -04:00
Mayukha Vadari
bfeb737ad7
fix: disallow two pending requests with the same id ( #1628 )
...
* only increment nextId if id used
* throw error if promise already pending with id
* add test
* modify existing tests
* fix bug + tests
2021-10-04 14:11:26 -04:00
Jackson Mills
cc0b5a4ac9
test: Add PayChannel Transaction Integration Tests ( #1662 )
...
* Add test for PaymentChannelCreate
* Add PaymentChannelFund test
* Add PaymentChannelClaim test
2021-10-04 14:11:26 -04:00
Jackson Mills
dcfc31a036
Add Payment Channel Tests ( #1646 )
...
* Add ChannelVerify integration and browser test
2021-10-04 14:11:26 -04:00
Jackson Mills
955e21717a
Add Path and Orderbook integration tests ( #1644 )
...
Add bookOrder, depositAuthorized, and ripplePathFind, and pathFind integration and browser tests
2021-10-04 14:11:26 -04:00
Jackson Mills
297dee9b8f
Add Ledger Method Integration Tests ( #1640 )
...
Add integration tests for ledger, ledgerEntry, ledgerData, ledgerClosed and ledgerCurrent, plus add them to the browser tests.
2021-10-04 14:10:14 -04:00
Mayukha Vadari
5d67f14ea3
test: integration tests for CheckCreate, CheckCancel, CheckCash ( #1664 )
...
* test checkCreate
* test CheckCancel
* test CheckCash
* add browser tests
2021-10-04 14:10:14 -04:00
Mayukha Vadari
564001515d
test: add integration tests for Account requests ( #1643 )
2021-10-04 14:10:14 -04:00
Jackson Mills
b5b2909fed
Add integration tests for Transaction methods ( #1636 )
...
Add tx, submit, and submit_multisign integration tests, along with browser tests.
2021-10-04 14:10:14 -04:00
Mayukha Vadari
2a93f85f41
test: integration tests for DepositPreauth ( #1648 )
2021-10-04 14:10:13 -04:00
Nathan Nichols
dd068c2710
build: adjust for updates to @xrplf/eslint-config ( #1633 )
2021-10-04 14:10:13 -04:00
Mukul Jangid
f2216446e5
test: write tests for sugar functions ( #1631 )
...
* test: write tests for sugar functions
2021-10-04 14:10:13 -04:00
Mayukha Vadari
98c9b9bc14
ci: run lint tests ( #1603 )
...
* turn on lint tests
* remove tsc
* fix errors in src/utils/hashes
* fix linter errors in src/utils
* fix lint issues in test/
* resolve lint issues in src/client
* resolve dependency cycle
* resolve other linting issues in src/models
* resolve rest of linting issues
* fix tests
* fix linting errors in test/integration
* fix rest of linting issues
* fix test name
2021-10-04 14:10:13 -04:00
Mayukha Vadari
57a6586898
fix: run browser tests on all integration tests ( #1649 )
...
* attempt to webpack all tests
* fix browser tests
* remove console.log
2021-10-04 14:10:13 -04:00
Mayukha Vadari
6dba1b142c
refactor: remove client.combine ( #1632 )
...
* remove combine
* remove tests
* fix tests
2021-10-04 14:10:13 -04:00
Mayukha Vadari
8e1ab6c32b
test: add integration tests for OfferCreate, OfferCancel ( #1634 )
...
* test OfferCreate
* test OfferCancel
2021-10-04 14:10:13 -04:00
Mayukha Vadari
dac8c27b49
test: integration tests for Payment ( #1635 )
...
* test payment
* use new helper function elsewhere
* remove unneeded comment
2021-10-04 14:10:13 -04:00
Mayukha Vadari
6eec7b0b77
refactor: move everything out of the common folder ( #1629 )
...
* remove common/constants (all in models now)
* remove common/txFlags (all in models now)
* move ecdsa from src/common to src
* move errors from src/common to src, export at top level
2021-10-04 14:10:13 -04:00
Jackson Mills
6fac420d9f
Remove sign.ts and move functionality into Wallet ( #1620 )
...
* Move sign.ts functionality into Wallet
* Move the corresponding tests to wallet's test cases and simplify them for readability
* Delete sign.ts
2021-10-04 14:10:13 -04:00
Mayukha Vadari
05e1d4d3c5
test: SignerListSet transaction integration tests ( #1621 )
...
* add tests
* clean up helper functions
* fix account funding
* remove unneeded method
* use new wallets for each test
* automatically fund wallets
* fix TODO
2021-10-04 14:10:13 -04:00
Mayukha Vadari
13c52859eb
fix: renames verify... methods to validate... ( #1624 )
...
* rename verify -> validate
* fix imports
* run eslint --fix on test/
2021-10-04 14:10:13 -04:00
Mayukha Vadari
eb0445817e
refactor: adds error response object ( #1619 )
...
* add error response object
* export error response properly
* type mockRippled
* fix linter
* fix ts
* fix comments
2021-10-04 14:10:13 -04:00
Mukul Jangid
10445cff01
Refactor: Lint test/client ( #1602 )
...
* lint test/client
2021-10-04 14:10:13 -04:00
Nathan Nichols
3cbdbac4f9
fix: remove the sugar/parse directory ( #1622 )
...
* fix: remove the sugar/parse directory
* feat: adds lsf flags
2021-10-04 14:10:13 -04:00
Mukul Jangid
fd78d1edcd
refactor: Reimplement sugar functions and clean up ( #1559 )
...
* refactor: Reimplement sugar functions and clean up
2021-10-04 14:10:13 -04:00