refactor(dev-chain-fast): [ETH-895] Move deployers to dev-chain-fast
#1027
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Moved
StreamrEnvDeployerandHubEnvDeployerclasses fromnetwork-contractsandhub-contractssubpackages to thedev-chain-fastsubpackage. These classes implements the environment initialization logic for the development environment.As the actual development environment initialization is done in in
dev-chain-fastsubpackage (which is the exact purpose of that subpackage), it makes sense to move the files there.Exports
This changes the exports of
@streamr/hub-contractsbut doesn't change the exports of@streamr/network-contractsbecause thenetwork-contractspackage is published from a different subpackage (npm-network-subgraphs). The actual contracts don't change, just theHubEnvDeployeris removed from the exports. That class may be considered as an internal class and therefore this is not a breaking change. We'll collect all contacts to a separate npm package in the future (ETH-799), and that change will deprecate both of these packages.Future improvements
We could merge
HubEnvDeployerto be part ofStreamEnvDeployer