Commit Graph

3516 Commits

Author SHA1 Message Date
Nathan Nichols
028655d682 build: makes connection private 2021-09-26 11:06:20 -07:00
Mayukha Vadari
c260512bf3 fix: make generateFaucetWallet functional (#1669) 2021-09-24 18:58:09 -04:00
Mayukha Vadari
97049e1120 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-09-24 18:40:03 -04:00
Nathan Nichols
b939a1d5ba feat: Add warning for partial payment (#1641) 2021-09-24 15:36:31 -07:00
Jackson Mills
1ec42392a2 Add trustSet integration test and browser test (#1667) 2021-09-24 13:47:27 -07:00
Mayukha Vadari
f5dd4ac794 fix: resolve browser issue with Error.captureStackTrace (#1663)
* fix webpacking error issue

* fix eslint comment
2021-09-24 15:18:48 -04:00
Nathan Nichols
b82df40562 fix: adds mode to webpack to stop warning (#1666) 2021-09-24 12:10:12 -07:00
Nathan Nichols
903ed2e3e6 Autofills AccountDelete Fee w/ reserve_inc_xrp (#1639)
* fix: fetch Owner Reserves from ledger
2021-09-24 12:09:54 -07:00
Mayukha Vadari
814add2aac chore: remove ripple-lib-transactionparser (#1661) 2021-09-24 15:09:21 -04:00
Mayukha Vadari
2533cc8654 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-09-24 15:05:38 -04:00
Mayukha Vadari
ab3f7f7ca5 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-09-24 15:01:43 -04:00
Jackson Mills
94749a4a57 test: Add PayChannel Transaction Integration Tests (#1662)
* Add test for PaymentChannelCreate

* Add PaymentChannelFund test

* Add PaymentChannelClaim test
2021-09-24 11:03:17 -07:00
Jackson Mills
70d9396247 Add Payment Channel Tests (#1646)
* Add ChannelVerify integration and browser test
2021-09-24 10:52:59 -07:00
Jackson Mills
8991133b28 Add Path and Orderbook integration tests (#1644)
Add bookOrder, depositAuthorized, and ripplePathFind, and pathFind integration and browser tests
2021-09-24 10:46:54 -07:00
Mayukha Vadari
3929d60903 build: prepare repo for beta release (#1665)
* fix github links

* fix webpacking

* more cleanup

* add 2.x to SECURITY.md

* update beta version
2021-09-24 13:44:42 -04:00
Jackson Mills
9601e5b604 Add Ledger Method Integration Tests (#1640)
Add integration tests for ledger, ledgerEntry, ledgerData, ledgerClosed and ledgerCurrent, plus add them to the browser tests.
2021-09-24 09:38:52 -07:00
Mayukha Vadari
c5a9ce2113 test: integration tests for CheckCreate, CheckCancel, CheckCash (#1664)
* test checkCreate

* test CheckCancel

* test CheckCash

* add browser tests
2021-09-24 12:29:41 -04:00
Mayukha Vadari
07f07b1201 test: add integration tests for Account requests (#1643) 2021-09-24 12:20:04 -04:00
Jackson Mills
009b86d2f2 Add integration tests for Transaction methods (#1636)
Add tx, submit, and submit_multisign integration tests, along with browser tests.
2021-09-24 08:40:56 -07:00
Mayukha Vadari
d4636dcd40 test: integration tests for DepositPreauth (#1648) 2021-09-24 09:57:54 -04:00
Nathan Nichols
6c3099f9da build: adjust for updates to @xrplf/eslint-config (#1633) 2021-09-23 21:04:07 -07:00
Mukul Jangid
bc1a6c97e4 test: write tests for sugar functions (#1631)
* test: write tests for sugar functions
2021-09-23 16:04:58 -04:00
Mayukha Vadari
87799b304b 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-09-22 16:39:10 -04:00
Mayukha Vadari
2c36b735c9 fix: run browser tests on all integration tests (#1649)
* attempt to webpack all tests

* fix browser tests

* remove console.log
2021-09-22 13:58:43 -04:00
Nathan Nichols
53ceaa9838 rename browser library (#1637)
* rename browser library
2021-09-21 13:15:43 -07:00
Mayukha Vadari
a92b611377 refactor: remove client.combine (#1632)
* remove combine

* remove tests

* fix tests
2021-09-21 15:16:34 -04:00
Nathan Nichols
b0d2fdbedb Resolves TODOs in ./src/client (#1617)
* fix: fixes TODO's in ./src/client
2021-09-21 12:10:50 -07:00
Mayukha Vadari
64a4b5565c test: add integration tests for OfferCreate, OfferCancel (#1634)
* test OfferCreate

* test OfferCancel
2021-09-21 15:10:04 -04:00
Mayukha Vadari
baf8350203 test: integration tests for Payment (#1635)
* test payment

* use new helper function elsewhere

* remove unneeded comment
2021-09-21 15:02:45 -04:00
Mayukha Vadari
b31968f367 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-09-21 14:25:37 -04:00
Jackson Mills
32b871c804 Remove old types (#1630)
* Remove transaction/types

* Delete common/types/commands

* Delete common/types
2021-09-21 09:08:56 -07:00
Jackson Mills
5b5f7484de 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-09-17 12:16:57 -07:00
Mayukha Vadari
9e39bb25aa 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-09-17 10:35:17 -04:00
Mayukha Vadari
bd9b886799 refactor: move address-codec methods from client to utils (#1627) 2021-09-16 21:39:29 -04:00
Mayukha Vadari
fe71090546 refactor: remove unused methods/types in src/sugar (#1625)
* remove sugar/utils

* remove sugar/pathfind-types

* clean up src/sugar/index
2021-09-16 21:22:04 -04:00
Mayukha Vadari
17ab3537c3 fix: renames verify... methods to validate... (#1624)
* rename verify -> validate

* fix imports

* run eslint --fix on test/
2021-09-16 21:14:22 -04:00
Mayukha Vadari
3d98de6ffa refactor: adds error response object (#1619)
* add error response object

* export error response properly

* type mockRippled

* fix linter

* fix ts

* fix comments
2021-09-16 16:44:44 -04:00
Mukul Jangid
a2a8af7125 Refactor: Lint test/client (#1602)
* lint test/client
2021-09-16 16:28:16 -04:00
Nathan Nichols
d64dc368be fix: remove the sugar/parse directory (#1622)
* fix: remove the sugar/parse directory

* feat: adds lsf flags
2021-09-16 10:13:39 -07:00
Mukul Jangid
fba2e0569f refactor: Reimplement sugar functions and clean up (#1559)
* refactor: Reimplement sugar functions and clean up
2021-09-15 12:07:27 -04:00
Jackson Mills
f9cd2b45b5 Add Wallet.fromSecret(...) as an alias for Wallet.fromSeed(...) (#1618)
* Add alias to fromSeed for fromSecret

* Switch syntax to direct usage
2021-09-14 17:16:14 -04:00
Mayukha Vadari
b6f9561279 test: adds integration tests for rippled utility methods (#1597)
* add utility tests

* type client better

* simplify ledgerAccept
2021-09-14 17:16:14 -04:00
Nathan Nichols
a46d172842 docs: generate documentation with typedoc (#1607)
* docs: generate documentation with typedoc
2021-09-14 17:16:12 -04:00
Jackson Mills
7ac1b6aebc Remove deprecated deriveAddress from Client (#1614)
* Removing deriveAddress and X from client

* Remove deriveAddress from derive.ts

* Remove linting exception for function lines
2021-09-14 17:14:34 -04:00
Jackson Mills
7ea04ce385 Update integration test with multisign changes (#1616) 2021-09-14 17:14:34 -04:00
Jackson Mills
7a5a1afd25 Change multisign to return an encoded transaction (#1615) 2021-09-14 17:14:34 -04:00
Mayukha Vadari
a6e08f5481 Lints src/wallet and test/wallet (#1600)
* lint src/wallet/index

* lint generateFaucetWallet

* lint tests

* respond to comments

* change max-lines-per-function to 40

* remove * import

* fix TS issues
2021-09-14 17:14:34 -04:00
Mayukha Vadari
9d28540710 Lint integration test files and browser test files (#1612)
* clean up utils

* more cleanup

* remove client.sign

* remove unneeded tests

* remove unneeded infra

* move helper functions to separate files

* fix linter issues

* more cleanup

* make helper functions more generally useful

* fix test account funding

* add import note to README

* lint browser tests

* run eslint --fix
2021-09-14 17:14:34 -04:00
Nathan Nichols
c9adbc9981 build: update typescript version (#1601) 2021-09-14 17:14:32 -04:00
Mukul Jangid
09522e9ce2 refactor: add verify() function (#1552)
* refactor: add verify() function
2021-09-14 17:11:53 -04:00