Skip to content

Commit 69e39ed

Browse files
authored
Merge pull request #2702 from input-output-hk/ctl/2692-decentralization-of-configuration-parameters-phase-1
Decentralization of configuration parameters phase 1 (Mithril protocol config and signer parts)
2 parents b7be57f + 0fb35d9 commit 69e39ed

File tree

25 files changed

+1551
-186
lines changed

25 files changed

+1551
-186
lines changed

Cargo.lock

Lines changed: 26 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ members = [
2020
"internal/mithril-era",
2121
"internal/mithril-metric",
2222
"internal/mithril-persistence",
23+
"internal/mithril-protocol-config",
2324
"internal/mithril-resource-pool",
2425
"internal/mithril-ticker",
2526
"internal/signed-entity/mithril-signed-entity-lock",

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ COMPONENTS = mithril-aggregator mithril-client mithril-client-cli mithril-client
33
internal/mithril-build-script internal/mithril-cli-helper internal/mithril-doc \
44
internal/mithril-dmq \
55
internal/mithril-doc-derive internal/mithril-era internal/mithril-metric internal/mithril-persistence \
6+
internal/mithril-protocol-config \
67
internal/mithril-resource-pool internal/mithril-ticker \
78
internal/cardano-node/mithril-cardano-node-chain internal/cardano-node/mithril-cardano-node-internal-database \
89
internal/signed-entity/mithril-signed-entity-lock internal/signed-entity/mithril-signed-entity-preloader \

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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[package]
2+
name = "mithril-protocol-config"
3+
version = "0.1.0"
4+
description = "Configuraton parameters for Mithril network"
5+
authors = { workspace = true }
6+
edition = { workspace = true }
7+
homepage = { workspace = true }
8+
license = { workspace = true }
9+
repository = { workspace = true }
10+
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
11+
12+
[dependencies]
13+
anyhow = { workspace = true }
14+
async-trait = { workspace = true }
15+
mithril-cardano-node-chain = { path = "../cardano-node/mithril-cardano-node-chain" }
16+
mithril-cardano-node-internal-database = { path = "../cardano-node/mithril-cardano-node-internal-database" }
17+
mithril-common = { path = "../../mithril-common" }
18+
mithril-ticker = { path = "../mithril-ticker" }
19+
reqwest = { workspace = true }
20+
semver = { workspace = true }
21+
serde = { workspace = true }
22+
serde_json = { workspace = true }
23+
slog = { workspace = true }
24+
thiserror = { workspace = true }
25+
tokio = { workspace = true }
26+
27+
[dev-dependencies]
28+
http = "1.3.1"
29+
httpmock = "0.7.0"
30+
mockall = { workspace = true }
31+
slog-async = { workspace = true }
32+
slog-term = { workspace = true }
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.PHONY: all build test check doc
2+
3+
CARGO = cargo
4+
5+
all: test build
6+
7+
build:
8+
${CARGO} build --release
9+
10+
test:
11+
${CARGO} test
12+
13+
check:
14+
${CARGO} check --release --all-features --all-targets
15+
${CARGO} clippy --release --all-features --all-targets
16+
${CARGO} fmt --check
17+
18+
doc:
19+
${CARGO} doc --no-deps --open
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)