Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2aff742
feature(protocol-config): init a new crate, with http impl of a new t…
turmelclem Sep 22, 2025
af9629b
feature(protocol-config): add and update makefiles
turmelclem Sep 26, 2025
3a920af
feature(protocol-config): rename http to http_client
turmelclem Sep 26, 2025
8e6fa48
feature(protocol-config): switch to hashmap for signed_entity_types_c…
turmelclem Sep 26, 2025
f0c506e
feature(protocol-config): put back aggregator_features route call
turmelclem Sep 26, 2025
e3bc785
feature(common): make SignedEntitTypesDiscriminant Hashable to be use…
turmelclem Sep 26, 2025
dacf327
feature(protocol-config): build MithrilNetworkConfiguration result wi…
turmelclem Sep 26, 2025
159de72
feature(protocol-config): add test double on MithrilNetworkConfigurat…
turmelclem Sep 30, 2025
1dc365b
feature(protocol-config): make http implementation and struct public
turmelclem Sep 30, 2025
42658ea
feature(common): Derive Default for ProtocolParameters for tests
turmelclem Sep 30, 2025
a092441
feature(signer): add dependency injection for MithrilNetworkConfigura…
turmelclem Sep 30, 2025
837a88f
feature(protocol-config, signer): now retrieving epoch settings from …
turmelclem Oct 1, 2025
0446945
feature(protocol-config): improve tests of FakeMithrilNetworkConfigur…
turmelclem Oct 3, 2025
66e81d8
refactor(signer): refactor test, remove dead code
turmelclem Oct 3, 2025
f01d7df
refactor(signer): variable renaming, remove usage of predicate in tests
turmelclem Oct 6, 2025
82ab165
feature(signer): improve log of inform_epoch_settings with current an…
turmelclem Oct 6, 2025
8ea7d61
feature(signer): use Mithril Network configuration Provider instead o…
turmelclem Oct 6, 2025
6488a66
refactor(protocol-config): sort cargo.toml dependencies
turmelclem Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ members = [
"internal/mithril-era",
"internal/mithril-metric",
"internal/mithril-persistence",
"internal/mithril-protocol-config",
"internal/mithril-resource-pool",
"internal/mithril-ticker",
"internal/signed-entity/mithril-signed-entity-lock",
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ COMPONENTS = mithril-aggregator mithril-client mithril-client-cli mithril-client
internal/mithril-build-script internal/mithril-cli-helper internal/mithril-doc \
internal/mithril-dmq \
internal/mithril-doc-derive internal/mithril-era internal/mithril-metric internal/mithril-persistence \
internal/mithril-protocol-config \
internal/mithril-resource-pool internal/mithril-ticker \
internal/cardano-node/mithril-cardano-node-chain internal/cardano-node/mithril-cardano-node-internal-database \
internal/signed-entity/mithril-signed-entity-lock internal/signed-entity/mithril-signed-entity-preloader \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ This repository consists of the following parts:

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

- [**Mithril protocol config**](./internal/mithril-protocol-config): mechanisms to read and check the **configuration parameters** of a **Mithril network**.

- [**Mithril resource pool**](./internal/mithril-resource-pool): a **resource pool** mechanism that is used by **Mithril network** nodes.

- [**Mithril ticker**](./internal/mithril-ticker): a **ticker** mechanism that reads time information from the chain and is used by **Mithril network** nodes.
Expand Down
42 changes: 42 additions & 0 deletions internal/mithril-protocol-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "mithril-protocol-config"
version = "0.1.0"
description = "Configuraton parameters of the mithril network"
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }

[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
mithril-cardano-node-chain = { path = "../cardano-node/mithril-cardano-node-chain" }
mithril-cardano-node-internal-database = { path = "../cardano-node/mithril-cardano-node-internal-database" }
mithril-common = { path = "../../mithril-common" }
mithril-ticker = { path = "../mithril-ticker" }
reqwest = { workspace = true, features = [
"default",
"stream",
"gzip",
"zstd",
"deflate",
"brotli"
] }
semver = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
slog = { workspace = true, features = [
"max_level_trace",
"release_max_level_debug",
] }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] }

[dev-dependencies]
#criterion = { version = "0.7.0", features = ["html_reports", "async_tokio"] }
http = "1.3.1"
httpmock = "0.7.0"
mockall = { workspace = true }
slog-async = { workspace = true }
slog-term = { workspace = true }
19 changes: 19 additions & 0 deletions internal/mithril-protocol-config/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: all build test check doc

CARGO = cargo

all: test build

build:
${CARGO} build --release

test:
${CARGO} test

check:
${CARGO} check --release --all-features --all-targets
${CARGO} clippy --release --all-features --all-targets
${CARGO} fmt --check

doc:
${CARGO} doc --no-deps --open
5 changes: 5 additions & 0 deletions internal/mithril-protocol-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Mithril-protocol-config

**This is a work in progress** 🛠

This crate provides mechanisms to read and check the configuration parameters of a Mithril network.
Loading