forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Framework interface improvements (matter-labs#975)
Renamed: - `IntoZkSyncTask` -> `WiringLayer` (as this trait now does more than just creating a single task) - `IntoZkSyncTask::create` -> `WiringLayer::wire` (layer doesn't have to create anything) - `ZkSyncTask` -> `Task` (was unnecessary verbose and inconsistent with simple `Resource`) - `ZkSyncNode` -> `ZkStackService` (1) not tied to zkSync; 2) several people told me that it doesn't have to represent the whole node) - `ZkSyncNode::add_task` -> `ZKStackService::add_layer` Moved: - `core/lib/node` -> `core/node/node_framework` (as we previously agreed to create a separate directory for things that define the node) Changed: - `WiringLayer` no longer returns a task, instead, it adds any number of tasks through the node context.
- Loading branch information
Showing
24 changed files
with
225 additions
and
195 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[package] | ||
name = "zksync_node_framework" | ||
version = "0.1.0" | ||
edition = "2018" | ||
authors = ["The Matter Labs Team <[email protected]>"] | ||
homepage = "https://zksync.io/" | ||
repository = "https://github.com/matter-labs/zksync-era" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["blockchain", "zksync"] | ||
categories = ["cryptography"] | ||
|
||
[dependencies] | ||
prometheus_exporter = { path = "../../lib/prometheus_exporter" } | ||
zksync_types = { path = "../../lib/types" } | ||
zksync_health_check = { path = "../../lib/health_check" } | ||
zksync_dal = { path = "../../lib/dal" } | ||
zksync_config = { path = "../../lib/config" } | ||
zksync_object_store = { path = "../../lib/object_store" } | ||
zksync_core = { path = "../../lib/zksync_core" } | ||
zksync_storage = { path = "../../lib/storage" } | ||
|
||
tracing = "0.1" | ||
thiserror = "1" | ||
async-trait = "0.1" | ||
futures = "0.3" | ||
anyhow = "1" | ||
tokio = { version = "1", features = ["rt"] } | ||
|
||
[dev-dependencies] | ||
zksync_env_config = { path = "../../lib/env_config" } | ||
vlog = { path = "../../lib/vlog" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.