embark/packages/stack/blockchain
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
..
src refactor(@embark/rpc-manager): Simplify RPC modifications 2020-03-05 14:12:07 +11:00
test fix: ensure that packages properly specify their dependencies 2020-02-25 14:52:10 -06:00
.npmrc refactor(@embark/blockchain): move module into own package (#1942) 2019-10-16 09:30:14 -04:00
CHANGELOG.md chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
README.md chore: update site urls 2020-01-28 12:07:17 -05:00
index.js fix: ensure that packages properly specify their dependencies 2020-02-25 14:52:10 -06:00
package.json chore(prerelease): 5.3.0-nightly.4 2020-03-05 00:15:25 +00:00
tsconfig.json build: implement collective typecheck 2019-12-13 13:59:47 -05:00
tslint.json build: implement collective typecheck 2019-12-13 13:59:47 -05:00

README.md

embark-blockchain

Blockchain APIs for Embark

Visit framework.embarklabs.io to get started with Embark.