Skip to content

Commit 9680984

Browse files
committed
feature(protocol-config): init a new crate, with http impl of a new trait to retrieve epoch setting
1 parent 0df5853 commit 9680984

File tree

11 files changed

+893
-1
lines changed

11 files changed

+893
-1
lines changed

Cargo.lock

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ members = [
1818
"internal/mithril-doc",
1919
"internal/mithril-doc-derive",
2020
"internal/mithril-era",
21-
"internal/mithril-metric",
21+
"internal/mithril-metric",
22+
"internal/mithril-protocol-config",
2223
"internal/mithril-persistence",
2324
"internal/mithril-resource-pool",
2425
"internal/mithril-ticker",

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ This repository consists of the following parts:
102102

103103
- [**Mithril persistence**](./internal/mithril-persistence): the **persistence** library that is used by **Mithril network** nodes.
104104

105+
- [**Mithril protocol config**](./internal/mithril-protocol-config): mechanisms to read and check the **configuration parameters** of a **Mithril network**.
106+
105107
- [**Mithril resource pool**](./internal/mithril-resource-pool): a **resource pool** mechanism that is used by **Mithril network** nodes.
106108

107109
- [**Mithril ticker**](./internal/mithril-ticker): a **ticker** mechanism that reads time information from the chain and is used by **Mithril network** nodes.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[package]
2+
name = "mithril-protocol-config"
3+
version = "0.1.0"
4+
description = "Configuraton parameters of the mithril network"
5+
authors = { workspace = true }
6+
edition = { workspace = true }
7+
homepage = { workspace = true }
8+
license = { workspace = true }
9+
repository = { workspace = true }
10+
11+
[dependencies]
12+
anyhow = { workspace = true }
13+
async-trait = { workspace = true }
14+
mithril-common = { path = "../../mithril-common" }
15+
reqwest = { workspace = true, features = [
16+
"default",
17+
"stream",
18+
"gzip",
19+
"zstd",
20+
"deflate",
21+
"brotli"
22+
] }
23+
semver = { workspace = true }
24+
serde = { workspace = true }
25+
serde_json = { workspace = true }
26+
slog = { workspace = true, features = [
27+
"max_level_trace",
28+
"release_max_level_debug",
29+
] }
30+
thiserror = { workspace = true }
31+
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] }
32+
33+
34+
[dev-dependencies]
35+
#criterion = { version = "0.7.0", features = ["html_reports", "async_tokio"] }
36+
http = "1.3.1"
37+
httpmock = "0.7.0"
38+
mockall = { workspace = true }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Mithril-protocol-config
2+
3+
**This is a work in progress** 🛠
4+
5+
This crate provides mechanisms to read and check the configuration parameters of a Mithril network.

0 commit comments

Comments
 (0)