-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mithril-client examples full crates
Two seperates crates were created: - `mithril-client-snapshot-example` - `mithril-client-stake-distribution-example`
- Loading branch information
Showing
10 changed files
with
191 additions
and
9 deletions.
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 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 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,3 @@ | ||
target/ | ||
client-mithril-stake-distribution | ||
.DS_Store |
This file contains 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,18 @@ | ||
[package] | ||
name = "client-mithril-stake-distribution" | ||
description = "Mithril client stake distribution example" | ||
version = "0.1.0" | ||
authors = ["dev@iohk.io"] | ||
documentation = "https://mithril.network/doc" | ||
edition = "2021" | ||
homepage = "https://mithril.network" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/input-output-hk/mithril/" | ||
|
||
[dependencies] | ||
anyhow = "1.0.75" | ||
mithril-client = "0.5.7" | ||
slog = "2.7.0" | ||
slog-async = "2.8.0" | ||
slog-term = "2.9.0" | ||
tokio = { version = "1.32.0", features = ["full"] } |
This file contains 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,15 @@ | ||
# Mithril client library example: Mithril stake distribution | ||
|
||
## Build and run the example | ||
|
||
```bash | ||
# Build | ||
cargo build -p client-mithril-stake-distribution | ||
|
||
# Run | ||
cargo run -p client-mithril-stake-distribution | ||
``` | ||
|
||
## Links | ||
- **Developer documentation**: https://docs.rs/mithril-client/0.5.7/mithril_client/ | ||
- **Crates.io**: https://crates.io/crates/mithril-client |
File renamed without changes.
This file contains 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,3 @@ | ||
target/ | ||
client-snapshot | ||
.DS_Store |
This file contains 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,18 @@ | ||
[package] | ||
name = "client-snapshot" | ||
description = "Mithril client snapshot example" | ||
version = "0.1.0" | ||
authors = ["dev@iohk.io"] | ||
documentation = "https://mithril.network/doc" | ||
edition = "2021" | ||
homepage = "https://mithril.network" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/input-output-hk/mithril/" | ||
|
||
[dependencies] | ||
anyhow = "1.0.75" | ||
async-trait = "0.1.73" | ||
futures = "0.3.28" | ||
indicatif = "0.17.7" | ||
mithril-client = "0.5.7" | ||
tokio = { version = "1.32.0", features = ["full"] } |
This file contains 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,15 @@ | ||
# Mithril client library example: Snapshot | ||
|
||
## Build and run the example | ||
|
||
```bash | ||
# Build | ||
cargo build -p client-snapshot | ||
|
||
# Run | ||
cargo run -p client-snapshot | ||
``` | ||
|
||
## Links | ||
- **Developer documentation**: https://docs.rs/mithril-client/0.5.7/mithril_client/ | ||
- **Crates.io**: https://crates.io/crates/mithril-client |
File renamed without changes.