embark/packages/core
emizzle 3b753e856c refactor(@embark/rpc-manager): Simplify RPC modifications
Managing account details inside of the RPC Manager became a bit convulted and difficult to follow due to any web3 requests inside of an `RpcModifier` communicating over the proxy and therefore to other `RpcModifier`’s or itself. It also created cases where node accounts were duplicated by way of running the `eth_accounts` modifier multiple times (the first time getting accounts from the node and subsequent times getting accounts from the modified `eth_accounts` response.

This has been simplified by having the entry point of the `rpc-manager` (`index.js`) talk directly to the node via `web3`. This allowed account/nodeAccount management to also be handled by the entry point, removing the need for each individual `RpcModifier` from having to handle these account details. The result is a much more simplified and and much easier to maintain code for RPC Manager.

The cases for which accounts can be modified (via `personal_newAccount` RPC call, and via test configuration change) are now handled in one place (the entry point) and propagated to the each `RpcModifier`.

Add `blockchain:started` command to request when the blockchain has been started. In this case, this is needed so that we know when we can create a direct connection to the node, instead of the proxy (as is the case in almost all other modules).

Extend action timeout when in debug mode.

1. These changs have made the `RpcModifier` base class essentially useless, however, it has been kept in place because it will be used for future DRY improvements to the `rpc-manager`.
2. These changes have been tested with the following DApps:
- Demo
- Test DApp
- Contracts test DApp
- Teller
2020-03-05 14:12:07 +11:00
..
code-runner chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
console chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
core refactor(@embark/rpc-manager): Simplify RPC modifications 2020-03-05 14:12:07 +11:00
engine chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
i18n chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
logger chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
reset chore(release): 5.2.3 2020-02-25 15:09:29 -06:00
utils refactor(@embark/rpc-manager): Simplify RPC modifications 2020-03-05 14:12:07 +11:00