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
Jackson Mills
603b7ae85c
Add Wallet.fromSecret(...) as an alias for Wallet.fromSeed(...) ( #1618 )
...
* Add alias to fromSeed for fromSecret
* Switch syntax to direct usage
2021-10-04 14:10:12 -04:00
Mayukha Vadari
fcc8977623
test: adds integration tests for rippled utility methods ( #1597 )
...
* add utility tests
* type client better
* simplify ledgerAccept
2021-10-04 14:10:12 -04:00
Nathan Nichols
b9b32eb3d2
docs: generate documentation with typedoc ( #1607 )
...
* docs: generate documentation with typedoc
2021-10-04 14:10:12 -04:00
Jackson Mills
1037e0da88
Remove deprecated deriveAddress from Client ( #1614 )
...
* Removing deriveAddress and X from client
* Remove deriveAddress from derive.ts
* Remove linting exception for function lines
2021-10-04 14:10:12 -04:00
Jackson Mills
29c0b84ad5
Update integration test with multisign changes ( #1616 )
2021-10-04 14:10:12 -04:00
Jackson Mills
4f1e1d653c
Change multisign to return an encoded transaction ( #1615 )
2021-10-04 14:10:12 -04:00
Mayukha Vadari
fe919315d4
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-10-04 14:10:12 -04:00
Mayukha Vadari
3f29e5781d
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-10-04 14:10:12 -04:00
Nathan Nichols
0dc1e08350
build: update typescript version ( #1601 )
2021-10-04 14:10:12 -04:00
Mukul Jangid
148cac6f3f
refactor: add verify() function ( #1552 )
...
* refactor: add verify() function
2021-10-04 14:10:12 -04:00
Omar Khan
dc6baf7f39
add submit transaction methods ( #1611 )
...
Adds submit transaction methods: submitTransaction and submitSignedTransaction.
2021-10-04 14:10:12 -04:00
Nathan Nichols
851b352f32
feat: cleanup flag naming ( #1609 )
...
* feat: cleanup flag naming
2021-10-04 14:10:12 -04:00
Nathan Nichols
633032ddd8
Lint utils directory ( #1563 )
...
* Lint the utils directory
* Modify computeLedgerHash to take new Ledger format.
2021-10-04 14:10:12 -04:00
Nathan Nichols
33f83947f1
build: rename ripple-lib to xrpl.js ( #1608 )
...
* build: rename ripple-lib to xrpl.js
2021-10-04 14:10:12 -04:00
Mayukha Vadari
af7b187dc7
Removes all prepare methods ( #1605 )
...
* deprecate and alias prepareTransaction
* delete prepareTransaction and replace methods in check-cancel
* WIP update check-cash
* remove all prepares
* remove prepares from client
* fix ts issues
* remove tests
* fix tests
* additional cleanup
* fix integration tests
* remove console statement
* re-add helper function
* fix imports
* fix more issues with integration tests
Co-authored-by: Omar Khan <khancodegt@gmail.com >
2021-10-04 14:10:12 -04:00
Jackson Mills
1115f17a3e
Refactoring existing hash utils and adding tests ( #1557 )
...
Write toHash utils and tests, then fix naming to match our standards of camelCase
2021-10-04 14:10:12 -04:00
Jackson Mills
eb56eb181a
Signer fixes ( #1604 )
...
* Factor out reused wallet generation
* Remove extraneous types
* Clarify that multisign takes signed transactions
Co-authored-by: Mayukha Vadari <mvadari@ripple.com >
2021-10-04 14:10:12 -04:00
Jackson Mills
c401f703c7
Signer ( #1573 )
...
Create Signer class to allow for offline signing, multisigning and signing authorizeChannel requests.
2021-10-04 14:10:12 -04:00
Omar Khan
04dd65af38
implement Autofill Transaction ( #1574 )
...
Implements autofill() and setTransactionFlagsToNumber() to allow a Client to autofill fields in a Transaction.
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
Nathan Nichols
c8a2a6690b
feat: Add typescript types to subscribe ( #1576 )
...
feat: Add typescript types to subscribe (#1576 )
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
aa6cef520c
Removes jsonschemas ( #1593 )
...
* remove jsonschemas stuff
* fix ts issues
* fix tests
* remove package
* remove scripts
* replace isValidAddress
2021-10-04 14:10:11 -04:00
Mayukha Vadari
2ca164311b
Lints test/models ( #1578 )
2021-10-04 14:10:11 -04:00
Nathan Nichols
3f365d8591
update integration testing readme ( #1589 )
...
* update integration testing `README.md`
2021-10-04 14:10:11 -04:00
Omar Khan
e0f4d99d86
Refactor generateFaucetWallet to return a Wallet ( #1564 )
...
* add Wallet.generate() and
* return Wallet in generateFaucetWallet
* refactor Wallet tests
* rename wallet-generation.ts to generateFaucetWallet.ts
* rename and move Wallet.ts to src/wallet/index.ts and update webpack config
2021-10-04 14:10:11 -04:00
Mayukha Vadari
91cc9e0461
Lints test/utils ( #1575 )
...
* rename model tests
* rename util tests
* turn off `any` complaints in linter
* other linter changes
* fix xrp <-> drops methods
* lint generateAddress
* fix rest of tests
2021-10-04 14:10:11 -04:00
Mayukha Vadari
b53bc2bc97
Lints src/models ( #1572 )
...
* resolve src/models/methods
* PaymentTransaction => Payment, remove empty returns
* fix common, method signatures
* fix checkCash
* handle complexity complaints
* fix jsdocs
* handle magic numbers
* finish models/transactions
* fix models/utils
* fix models/ledger
* fix ts issues
* fix tests
* fix modifiedoffercreatetransaction
* remove comments, fix additional TODO
2021-10-04 14:10:11 -04:00
Nathan Nichols
75f0bb4617
refactor: migrate fixtures to use typescript ( #1565 )
...
* refactor: migrate fixtures to typescript
2021-10-04 14:10:11 -04:00
Mayukha Vadari
6268b9ea26
test: removes the use of TestSuite ( #1566 )* switch all methods to new format* clean up rippleClient* rename files to remove ripple from name* additional cleanup
2021-10-04 14:10:11 -04:00
Omar Khan
43802f9e22
add getXAddress to Wallet ( #1558 )
...
- add getXAddress to Wallet
- refactor wallet tests
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