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
Nathan Nichols
b9b32eb3d2
docs: generate documentation with typedoc ( #1607 )
...
* docs: generate documentation with typedoc
2021-10-04 14:10:12 -04:00
Nathan Nichols
0dc1e08350
build: update typescript version ( #1601 )
2021-10-04 14:10:12 -04:00
Mayukha Vadari
949cc031ee
Lints top-level test files ( #1594 )
...
* lint broadcastClient
* lint client
* fix most of connection
* remove unused files
* lint mockRippled
* lint mockRippledTest
* lint runClientTests
* lint setupClient
* lint setupClientWeb
* lint shamap
* lint testUtils
* resolve tsc issues
* Fix tests
* lint rest of connection
* respond to comments
2021-10-04 14:10:12 -04:00
Mayukha Vadari
a996fafe79
Lints src/common ( #1595 )
...
* lint errors (and remove unused error types)
* lint fee
* lint index
* lint ecdsa
* fix tests
* remove address tests from getFee
* fix more tests
* fix tests
* respond to comments
2021-10-04 14:10:11 -04:00
Nathan Nichols
e200de3073
Adds @xrplf prettier config ( #1598 )
...
* build: new prettier config
2021-10-04 14:10:11 -04:00
Mayukha Vadari
8c5bc22317
Lints src/client ( #1577 )
...
* lint backoff
* lint wsWrapper
* remove rangeset - not used
* split out connection.ts classes
* lint requestManager
* lint connectionManager
* lint most of connection
* fix most of client
* lint broadcastClient
* resolve more linter issues
* resolve magic numbers
* clean up more linting
* resolve rest of issues
* fix tests
* fix browser tests
* fix tests after rebase
* respond to comments
* fix dependency cycles
2021-10-04 14:10:11 -04:00
Mayukha Vadari
b8be6c2f1b
refactor: improves mock rippled structure ( #1569 )
...
* better error handling + tests
* fix tests
* change addResponse to take a string instead of a Request
* remove unneeded change
* respond to comments
* fix tests, re-lint
* improve error message
2021-10-04 14:10:11 -04:00
Mayukha Vadari
759e075e54
refactor: use chai instead of assert-diff ( #1570 )
...
* assert-diff -> chai
* fix tests
* remove package
* fix rebase
2021-10-04 14:10:11 -04:00
Nathan Nichols
8b95ee5fab
build: Initial linting setup ( #1560 )
...
* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs.
* Note that there are still a lot of linter errors.
2021-10-04 14:10:10 -04:00
Mayukha Vadari
12cfed5c17
refactor: clean up Client and associated files ( #1556 )
...
* remove _PRIVATE
* make requestAll public
* un-type connection.request
* fix lodash imports
* add comments
* Rename files to camelCase
2021-10-04 14:10:10 -04:00
Mayukha Vadari
09ef8595e7
refactor: move fixtures closer to tests (part 2) ( #1561 )
...
* move echo
* move fee
* move subscribe/unsubscribe
* move ledger_current
* move ledger_data
* move submit/submit_multisigned
* remove account_tx/account_offers/gateway_balances
* move account_info
* remove ledger_entry
* remove tx
* remove account_lines
* remove ripple_path_find
* remove ledger
* remove book_offers
* move ping
* remove global_config
* move test_command
* additional mock-rippled cleanup
* add explanatory comment to mock.addResponse
2021-10-04 14:10:10 -04:00
Mayukha Vadari
f9fe5936b1
refactor: rename all test files to camelCase ( #1562 )
...
* rename files to camelCase
* fix imports
* more renames
* pull all client tests out of individual folders
* fix imports
* fix tests
2021-10-04 14:10:10 -04:00