Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
359f1f6
feature(protocol-config): init a new crate, with http impl of a new t…
turmelclem Sep 22, 2025
672ede9
feature(protocol-config): add and update makefiles
turmelclem Sep 26, 2025
a9d57ac
feature(protocol-config): rename http to http_client
turmelclem Sep 26, 2025
7f5036f
feature(protocol-config): switch to hashmap for signed_entity_types_c…
turmelclem Sep 26, 2025
81a7be1
feature(protocol-config): put back aggregator_features route call
turmelclem Sep 26, 2025
e124424
feature(common): make SignedEntitTypesDiscriminant Hashable to be use…
turmelclem Sep 26, 2025
d0e091b
feature(protocol-config): build MithrilNetworkConfiguration result wi…
turmelclem Sep 26, 2025
876f47d
feature(protocol-config): add test double on MithrilNetworkConfigurat…
turmelclem Sep 30, 2025
ae8484d
feature(protocol-config): make http implementation and struct public
turmelclem Sep 30, 2025
834739f
feature(common): Derive Default for ProtocolParameters for tests
turmelclem Sep 30, 2025
253b1c6
feature(signer): add dependency injection for MithrilNetworkConfigura…
turmelclem Sep 30, 2025
d8f7154
feature(protocol-config, signer): now retrieving epoch settings from …
turmelclem Oct 1, 2025
628e9ac
feature(protocol-config): improve tests of FakeMithrilNetworkConfigur…
turmelclem Oct 3, 2025
27ecf49
refactor(signer): refactor test, remove dead code
turmelclem Oct 3, 2025
3f6c877
refactor(signer): variable renaming, remove usage of predicate in tests
turmelclem Oct 6, 2025
878e511
feature(signer): improve log of inform_epoch_settings with current an…
turmelclem Oct 6, 2025
e3c6358
feature(signer): use Mithril Network configuration Provider instead o…
turmelclem Oct 6, 2025
e0b3938
refactor(protocol-config): sort cargo.toml dependencies
turmelclem Oct 6, 2025
764c104
feature(signer): use epoch from signer registration, not mithril netw…
turmelclem Oct 7, 2025
eb82c83
refactor(protocol-config,signer): test file renaming and imports
turmelclem Oct 8, 2025
302b2be
refactor(protocol-config): remove unsused error RegistrationRoundNotY…
turmelclem Oct 9, 2025
779f715
refactor(protocol-config, signer) rename 'get' to get_'network_config…
turmelclem Oct 9, 2025
25ed954
refactor(signer) rename 'get_epoch_settings' to get_'get_signer_regis…
turmelclem Oct 9, 2025
6b6024b
refactor(common, signer): remove deriving Default on ProtocolParameters
turmelclem Oct 9, 2025
0f12b36
refactor(signer): avoid using Default::default() on test purpose and …
turmelclem Oct 9, 2025
6554a18
refactor(protocol-config): remove 'get_time_point' and directly call …
turmelclem Oct 9, 2025
b7822f1
refactor(protocol-config): move constant to aggregator_client
turmelclem Oct 9, 2025
ee94cab
refactor(protocol-config, signer): typo, comment, missing doc, dead c…
turmelclem Oct 9, 2025
3272aba
refactor(protocol-config): remove default and use dummy instead to av…
turmelclem Oct 9, 2025
bca198d
refactor(protocol-config): remove useless features on dependencies
turmelclem Oct 9, 2025
dd6f7ab
refactor(protocol-config): reorder http_impl.rs imports
turmelclem Oct 10, 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
32 changes: 32 additions & 0 deletions internal/mithril-protocol-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[package]
name = "mithril-protocol-config"
version = "0.1.0"
description = "Configuraton parameters for Mithril network"
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]

[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}
semver = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
slog = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }

[dev-dependencies]
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
Loading