Skip to content

Commit 86c1e4f

Browse files
authored
Merge pull request #2347 from input-output-hk/sfa/2248/use_consistent_naming_in_the_client_cardano_database_api
Use consistent naming in the client cardano database api
2 parents 310dd2f + 4ab55cd commit 86c1e4f

File tree

30 files changed

+284
-261
lines changed

30 files changed

+284
-261
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ resolver = "2"
55
members = [
66
"demo/protocol-demo",
77
"examples/client-cardano-database",
8+
"examples/client-cardano-database-v2",
89
"examples/client-cardano-stake-distribution",
910
"examples/client-cardano-transaction",
1011
"examples/client-mithril-stake-distribution",
11-
"examples/client-snapshot",
1212
"internal/mithril-build-script",
1313
"internal/mithril-doc",
1414
"internal/mithril-doc-derive",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
client-cardano-database
3+
.DS_Store

examples/client-snapshot/Cargo.toml renamed to examples/client-cardano-database-v2/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2-
name = "client-snapshot"
3-
description = "Mithril client snapshot example"
4-
version = "0.1.25"
2+
name = "client-cardano-database-v2"
3+
description = "Mithril client Cardano database example"
4+
version = "0.0.2"
55
66
documentation = "https://mithril.network/doc"
77
edition = "2021"
@@ -15,5 +15,5 @@ async-trait = "0.1.86"
1515
clap = { version = "4.5.28", features = ["derive", "env"] }
1616
futures = "0.3.31"
1717
indicatif = "0.17.11"
18-
mithril-client = { path = "../../mithril-client", features = ["fs"] }
18+
mithril-client = { path = "../../mithril-client", features = ["fs", "unstable"] }
1919
tokio = { version = "1.43.0", features = ["full"] }

examples/client-snapshot/README.md renamed to examples/client-cardano-database-v2/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Mithril client library example: Snapshot
1+
# Mithril client library example: Cardano database
22

33
## Description
44

5-
This example shows how to implement a Mithril client and use its features related to the `Snapshot` type.
5+
This example shows how to implement a Mithril client and use its features related to the `Cardano database` type.
66

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

99
- list the available snapshots
1010
- get a single snapshot
11-
- download and unpack a snapshot archive
12-
- verify a certificate chain
13-
- compute a message for a Snapshot
11+
- download and unpack snapshot archives tailored for a specific range
12+
- verify the associated certificate and its chain
13+
- compute a message for the retrieved artifact files
1414
- verify that the certificate signs the computed message
1515
- increments snapshot download statistics
1616

@@ -32,7 +32,7 @@ cargo run
3232
AGGREGATOR_ENDPOINT=YOUR_AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY=YOUR_GENESIS_VERIFICATION_KEY cargo run
3333

3434
# Example with 'release-preprod' network
35-
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
35+
AGGREGATOR_ENDPOINT=https://aggregator.testing-preview.api.mithril.network/aggregator GENESIS_VERIFICATION_KEY=$(curl -s https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/testing-preview/genesis.vkey) cargo run
3636
```
3737

3838
## Links

0 commit comments

Comments
 (0)