Skip to content

Commit 0ebf6bb

Browse files
authored
Merge pull request #2150 from input-output-hk/dlachaume/update-aggregator-in-examples
Chore: update aggregator in examples
2 parents 44004bf + 9a6f281 commit 0ebf6bb

File tree

21 files changed

+67
-43
lines changed

21 files changed

+67
-43
lines changed

Cargo.lock

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

examples/client-cardano-stake-distribution/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "client-cardano-stake-distribution"
33
description = "Mithril client cardano stake distribution example"
4-
version = "0.1.4"
4+
version = "0.1.5"
55
66
documentation = "https://mithril.network/doc"
77
edition = "2021"

examples/client-cardano-stake-distribution/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This example shows how to implement a Mithril client and use the features related to the `Cardano stake distribution` type.
66

7-
In this example, the client interacts by default with a real aggregator on the network `testing-preview` to:
7+
In this example, the client interacts by default with a real aggregator on the network `release-preprod` to:
88

99
- list the available Cardano stake distributions
1010
- get a single Cardano stake distribution
@@ -17,6 +17,9 @@ The crates [`slog`](https://docs.rs/slog/latest/slog/) and [`slog_term`](https:/
1717
## Build and run the example
1818

1919
```bash
20+
# Switch to the latest release tag
21+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
22+
2023
# Build from the crate directory
2124
cargo build
2225

@@ -26,8 +29,8 @@ cargo run
2629
# Run with your custom network configuration
2730
AGGREGATOR_ENDPOINT=YOUR_AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY=YOUR_GENESIS_VERIFICATION_KEY cargo run
2831

29-
# Example with 'pre-release-preview' network
30-
AGGREGATOR_ENDPOINT=https://aggregator.pre-release-preview.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/pre-release-preview/genesis.vkey) cargo run
32+
# Example with 'release-preprod' network
33+
AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey) cargo run
3134
```
3235

3336
## Links

examples/client-cardano-stake-distribution/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! This example shows how to implement a Mithril client and use its features.
22
//!
3-
//! In this example, the client interacts by default with a real aggregator (`testing-preview`) to get the data.
3+
//! In this example, the client interacts by default with a real aggregator (`release-preprod`) to get the data.
44
55
use anyhow::anyhow;
66
use clap::Parser;
@@ -24,7 +24,7 @@ pub struct Args {
2424
#[clap(
2525
long,
2626
env = "AGGREGATOR_ENDPOINT",
27-
default_value = "https://aggregator.testing-preview.api.mithril.network/aggregator"
27+
default_value = "https://aggregator.release-preprod.api.mithril.network/aggregator"
2828
)]
2929
aggregator_endpoint: String,
3030
}

examples/client-cardano-transaction/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "client-cardano-transaction"
33
description = "Mithril client cardano-transaction example"
4-
version = "0.1.14"
4+
version = "0.1.15"
55
66
documentation = "https://mithril.network/doc"
77
edition = "2021"

examples/client-cardano-transaction/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ In this example, the client interacts with an aggregator and performs the follow
1919
## Build and run the example
2020

2121
```bash
22+
# Switch to the latest release tag
23+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
24+
2225
# Build from the crate directory
2326
cargo build
2427

2528
# Run from the crate directory
2629
AGGREGATOR_ENDPOINT=YOUR_AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY=YOUR_GENESIS_VERIFICATION_KEY cargo run CARDANO_TX_HASH1,CARDANO_TX_HASH2,CARDANO_TX_HASH3
2730

28-
# Example with from 'testing-sanchonet' network
29-
AGGREGATOR_ENDPOINT=https://aggregator.testing-sanchonet.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/testing-sanchonet/genesis.vkey) cargo run db0dfab664045b117375a743a925385a7a3fa6a104f8bd95fa0f748088bcaff0,b457a094439cc5e371474f5758b4ecded3e1b035fe0717e39d78080e6fe169b2
31+
# Example with from 'release-preprod' network
32+
AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey) cargo run 0ea207ab71493f012faab0d1f8151eaf931901141c1482ce6e9a501498076484,326b5b67d926937bf19c6113d0957a39f2eae9df94875ce8a96eff5c8521303b
3033
```
3134

3235
## Links

examples/client-cardano-transaction/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct Args {
2525
#[clap(
2626
long,
2727
env = "AGGREGATOR_ENDPOINT",
28-
default_value = "https://aggregator.testing-sanchonet.api.mithril.network/aggregator"
28+
default_value = "https://aggregator.release-preprod.api.mithril.network/aggregator"
2929
)]
3030
aggregator_endpoint: String,
3131

examples/client-mithril-stake-distribution/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "client-mithril-stake-distribution"
33
description = "Mithril client stake distribution example"
4-
version = "0.2.2"
4+
version = "0.2.3"
55
66
documentation = "https://mithril.network/doc"
77
edition = "2021"

examples/client-mithril-stake-distribution/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This example shows how to implement a Mithril client and use the features related to the `Mithril stake distribution` type.
66

7-
In this example, the client interacts by default with a real aggregator on the network `testing-preview` to:
7+
In this example, the client interacts by default with a real aggregator on the network `release-preprod` to:
88

99
- list the available Mithril stake distributions
1010
- get a single Mithril stake distribution
@@ -17,6 +17,9 @@ The crates [`slog`](https://docs.rs/slog/latest/slog/) and [`slog_term`](https:/
1717
## Build and run the example
1818

1919
```bash
20+
# Switch to the latest release tag
21+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
22+
2023
# Build from the crate directory
2124
cargo build
2225

@@ -26,8 +29,8 @@ cargo run
2629
# Run with your custom network configuration
2730
AGGREGATOR_ENDPOINT=YOUR_AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY=YOUR_GENESIS_VERIFICATION_KEY cargo run
2831

29-
# Example with 'pre-release-preview' network
30-
AGGREGATOR_ENDPOINT=https://aggregator.pre-release-preview.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/pre-release-preview/genesis.vkey) cargo run
32+
# Example with 'release-preprod' network
33+
AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey) cargo run
3134
```
3235

3336
## Links

examples/client-mithril-stake-distribution/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! This example shows how to implement a Mithril client and use its features.
22
//!
3-
//! In this example, the client interacts by default with a real aggregator (`testing-preview`) to get the data.
3+
//! In this example, the client interacts by default with a real aggregator (`release-preprod`) to get the data.
44
55
use anyhow::anyhow;
66
use clap::Parser;
@@ -24,7 +24,7 @@ pub struct Args {
2424
#[clap(
2525
long,
2626
env = "AGGREGATOR_ENDPOINT",
27-
default_value = "https://aggregator.testing-preview.api.mithril.network/aggregator"
27+
default_value = "https://aggregator.release-preprod.api.mithril.network/aggregator"
2828
)]
2929
aggregator_endpoint: String,
3030
}

0 commit comments

Comments
 (0)