Mayukha Vadari
0b08de5956
Removes methods that were just rippled wrappers ( #1550 )
...
* remove getAccountInfo
* remove getAccountObjects
* remove getBalanceSheet (gateway_balances)
* remove getLedger
* remove getOrders (account_orders)
* remove getPaymentChannel (ledger_entry)
* remove getTransaction(s) (tx/account_tx)
* remove getSettings (account_info)
* remove getServerInfo (server_info)
* fix integ tests
* remove submit (also deprecated)
* fix integ tests
* add TODO
2021-10-04 14:10:09 -04:00
Mayukha Vadari
59396c3f8f
Edit Client constructor to take a server URI ( #1544 )
...
* edit Client
* fix TS issues + tests
* minor edits
* rename ClientBroadcast -> BroadcastClient
2021-10-04 14:10:09 -04:00
Mayukha Vadari
f49b9d4b0e
Rewrite XrplClient.request and general cleanup ( #1519 )
...
* first attempt at overloading
* fix TS issues
* improve connection typing
* more cleanup
* edit all ledger files
* more renames
* fix all other request calls
* clean up serverinfo
* fixes more request calls
* remove old legacy browser stuff
* remove unused types
* remove exports from objects
* add type to method signatures
* add ledger requests
* fix most tests
* comment out formatBidsAndAsks
* fix proxy test
* comment out failing tests
* move client-related files into client
* add payment channel requests
* fix imports
* remove finished TODOs
* fix tests
* fix integ tests
* remove exported types
* better ci
2021-10-04 14:10:09 -04:00
Mayukha Vadari
73109295b4
Rename RippleAPI client to Client ( #1520 )
...
* rename RippleAPI -> XrplClient
* more renames
* move API stuff to client folder
* rename all api -> client
* fix tests
* make tests run
* fix integ tests
* fix urls
* fix merge issues
* XrplClient -> Client
* fix merge issues
* rename xrpl-client npm symlink to xrpl-local
2021-10-04 14:10:08 -04:00
Mayukha Vadari
6e0fff2ad6
Reduce dependencies on lodash ( #1467 )
...
* assign -> Object.assign
* replace isundefined
* remove forEach
* remove some
* remove reduce
* remove keys
* remove map
* remove includes
* remove filter
* remove last
* remove isstring
* remove every
* remove rearg
* remove indexOf
* remove values
* remove startswith
* remove first and pick
* build smaller lodash
* remove lodash.isequal package
* add lodash-cli dev dependency
* add lodash script
* test fix
* Revert "build smaller lodash" This reverts commit 979446e57f60b29cb5d377b54efe91cfbeae0707.
* upgrade npm
* change ===/!== undefined to ==/!= null
2021-07-29 20:18:08 -04:00
Elliot Lee
4eb64b5e72
style: yarn format (run prettier) ( #1327 )
2020-11-12 11:49:53 -08:00
Elliot Lee
547b63b891
Run prettier (yarn format)
2020-04-27 12:06:18 -07:00
Elliot Lee
c26ddb497e
Add api.connection.getReserveBase() ( #1259 )
...
* Returns the current minimum reserve, in drops of XRP, that is required
for an account.
* Release 1.6.6-beta.2
2020-04-27 10:02:03 -07:00
Nicholas Smith
c17827e030
Assign event listener to socket close event on open before attempting post-open logic ( #1186 )
...
* Assign event listener to socket close event on open before attempting to execute post-connection logic, prottects possible unhandled rejection in disconnect
* Remove try/catch for linting failure
* Up timeout for CI failure
* Feedback emit error for disconnection failure on connect failure
* Feedback ignore error on disconnect, propagate root cause
* Feedback add extra test check for expected error on connect
* Feedback remove setTimeout for await reconnect
2020-01-28 09:08:47 -05:00
Nicholas Smith
e03b192fcc
Catch possible error in reconnect() on _heartbeat(), emit reconnect error
2020-01-15 12:36:39 -05:00
FKSRipple
f6b3f661d6
Merge branch 'develop' into connection-cleanup-tests
2020-01-10 16:15:16 -08:00
FKSRipple
c564400ac4
Merge pull request #1119 from ripple/connection-cleanup-ledger
...
Add LedgerHistory to Connection
2020-01-10 16:07:08 -08:00
Fred K. Schott
30cf4f0b00
cleanup event listeners
2020-01-08 12:20:58 -08:00
Fred K. Schott
e4bb88a725
clarify comment
2020-01-08 12:20:58 -08:00
Fred K. Schott
e3822e6bc3
refactor tests for the new connection logic
2020-01-08 12:20:58 -08:00
Elliot Lee
f3dd2fec99
Merge pull request #1098 from nickewansmith/fix-possible-unhandled-throw-on-send
...
Adds unit test for ripple#1092, fixes unhandled throw on upgraded ws send
2020-01-05 19:51:58 -08:00
Fred K. Schott
fc524894c6
add ledger to connection
2019-12-18 11:35:47 -08:00
Fred K. Schott
2145c104fd
run prettier format
2019-12-17 10:35:59 -08:00
Fred K. Schott
9580397558
cleanup the connection config
2019-12-16 17:26:00 -08:00
Fred K. Schott
cf544b74f5
fix msg abbreviation
2019-12-16 17:25:21 -08:00
Fred K. Schott
312f831efb
cleanup the connection trace logic
2019-12-16 11:57:51 -08:00
FKSRipple
439a611a9e
Add a heartbeat to detect hung connections ( #1101 )
...
* disconnect is now reconnect on heartbeat fail
2019-12-14 10:23:09 -08:00
Nicholas Smith
fa6a2c5bbb
Adds unit test for ripple#1092, fixes unhandled throw when not connected on send due to upgraded ws module
2019-11-17 01:28:19 -05:00
Fred K. Schott
ac0f265a5b
move tests to TypeScript
2019-10-28 10:53:36 -07:00