-
Notifications
You must be signed in to change notification settings - Fork 49
Decentralization of configuration parameters phase 1 #2702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
turmelclem
wants to merge
31
commits into
main
Choose a base branch
from
ctl/2692-decentralization-of-configuration-parameters-phase-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
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 672ede9
feature(protocol-config): add and update makefiles
turmelclem a9d57ac
feature(protocol-config): rename http to http_client
turmelclem 7f5036f
feature(protocol-config): switch to hashmap for signed_entity_types_c…
turmelclem 81a7be1
feature(protocol-config): put back aggregator_features route call
turmelclem e124424
feature(common): make SignedEntitTypesDiscriminant Hashable to be use…
turmelclem d0e091b
feature(protocol-config): build MithrilNetworkConfiguration result wi…
turmelclem 876f47d
feature(protocol-config): add test double on MithrilNetworkConfigurat…
turmelclem ae8484d
feature(protocol-config): make http implementation and struct public
turmelclem 834739f
feature(common): Derive Default for ProtocolParameters for tests
turmelclem 253b1c6
feature(signer): add dependency injection for MithrilNetworkConfigura…
turmelclem d8f7154
feature(protocol-config, signer): now retrieving epoch settings from …
turmelclem 628e9ac
feature(protocol-config): improve tests of FakeMithrilNetworkConfigur…
turmelclem 27ecf49
refactor(signer): refactor test, remove dead code
turmelclem 3f6c877
refactor(signer): variable renaming, remove usage of predicate in tests
turmelclem 878e511
feature(signer): improve log of inform_epoch_settings with current an…
turmelclem e3c6358
feature(signer): use Mithril Network configuration Provider instead o…
turmelclem e0b3938
refactor(protocol-config): sort cargo.toml dependencies
turmelclem 764c104
feature(signer): use epoch from signer registration, not mithril netw…
turmelclem eb82c83
refactor(protocol-config,signer): test file renaming and imports
turmelclem 302b2be
refactor(protocol-config): remove unsused error RegistrationRoundNotY…
turmelclem 779f715
refactor(protocol-config, signer) rename 'get' to get_'network_config…
turmelclem 25ed954
refactor(signer) rename 'get_epoch_settings' to get_'get_signer_regis…
turmelclem 6b6024b
refactor(common, signer): remove deriving Default on ProtocolParameters
turmelclem 0f12b36
refactor(signer): avoid using Default::default() on test purpose and …
turmelclem 6554a18
refactor(protocol-config): remove 'get_time_point' and directly call …
turmelclem b7822f1
refactor(protocol-config): move constant to aggregator_client
turmelclem ee94cab
refactor(protocol-config, signer): typo, comment, missing doc, dead c…
turmelclem 3272aba
refactor(protocol-config): remove default and use dummy instead to av…
turmelclem bca198d
refactor(protocol-config): remove useless features on dependencies
turmelclem dd6f7ab
refactor(protocol-config): reorder http_impl.rs imports
turmelclem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,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 } |
This file contains hidden or 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,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 |
This file contains hidden or 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,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. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.