@@ -100,8 +100,10 @@ jobs:
100
100
run : |
101
101
CARDANO_TRANSACTIONS_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
102
102
CARDANO_STAKE_DISTRIBUTION_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoStakeDistribution"])')
103
+ CARDANO_DATABASE_V2_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoDabase"])')
103
104
echo "cardano_transactions_enabled=$CARDANO_TRANSACTIONS_CAPABILITY" >> $GITHUB_OUTPUT
104
105
echo "cardano_stake_distribution_enabled=$CARDANO_STAKE_DISTRIBUTION_CAPABILITY" >> $GITHUB_OUTPUT
106
+ echo "cardano_database_v2_enabled=$CARDANO_DATABASE_V2_CAPABILITY" >> $GITHUB_OUTPUT
105
107
106
108
- name : Assessing aggregator capabilities (Windows)
107
109
id : aggregator_capability_windows
@@ -111,8 +113,10 @@ jobs:
111
113
aria2c -o aggregator_capabilities.json $AGGREGATOR_ENDPOINT
112
114
CARDANO_TRANSACTIONS_CAPABILITY=$(jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])' aggregator_capabilities.json)
113
115
CARDANO_STAKE_DISTRIBUTION_CAPABILITY=$(jq '.capabilities.signed_entity_types | contains(["CardanoStakeDistribution"])' aggregator_capabilities.json)
116
+ CARDANO_DATABASE_V2_CAPABILITY=$(jq '.capabilities.signed_entity_types | contains(["CardanoDatabase"])' aggregator_capabilities.json)
114
117
echo "cardano_transactions_enabled=$CARDANO_TRANSACTIONS_CAPABILITY" >> $GITHUB_OUTPUT
115
118
echo "cardano_stake_distribution_enabled=$CARDANO_STAKE_DISTRIBUTION_CAPABILITY" >> $GITHUB_OUTPUT
119
+ echo "cardano_database_v2_enabled=$CARDANO_DATABASE_V2_CAPABILITY" >> $GITHUB_OUTPUT
116
120
117
121
- name : Checkout binary
118
122
uses : dawidd6/action-download-artifact@v6
@@ -200,6 +204,20 @@ jobs:
200
204
working-directory : ./bin
201
205
run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-stake-distribution download $CARDANO_STAKE_DISTRIBUTION_HASH
202
206
207
+ - name : Cardano Database V2 Snapshot / list and get last hash
208
+ if : steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_database_v2_enabled == 'true'
209
+ shell : bash
210
+ working-directory : ./bin
211
+ run : |
212
+ ./mithril-client ${{ steps.prepare.outputs.debug_level }} --unstable cardano-db-v2 snapshot list
213
+ echo "CARDANO_DATABASE_V2_SNAPSHOT_HASH=$(./mithril-client --unstable cardano-db-v2 snapshot list --json | jq -r '.[0].hash')" >> $GITHUB_ENV
214
+
215
+ - name : Cardano Database V2 Snapshot / show snapshot
216
+ if : steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_database_v2_enabled == 'true'
217
+ shell : bash
218
+ working-directory : ./bin
219
+ run : ./mithril-client --unstable cardano-db-v2 snapshot show $CARDANO_DATABASE_V2_SNAPSHOT_HASH
220
+
203
221
test-docker :
204
222
strategy :
205
223
fail-fast : false
@@ -227,8 +245,10 @@ jobs:
227
245
run : |
228
246
CARDANO_TRANSACTIONS_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
229
247
CARDANO_STAKE_DISTRIBUTION_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoStakeDistribution"])')
248
+ CARDANO_DATABASE_V2_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoDatabase"])')
230
249
echo "cardano_transactions_enabled=$CARDANO_TRANSACTIONS_CAPABILITY" >> $GITHUB_OUTPUT
231
250
echo "cardano_stake_distribution_enabled=$CARDANO_STAKE_DISTRIBUTION_CAPABILITY" >> $GITHUB_OUTPUT
251
+ echo "cardano_database_v2_enabled=$CARDANO_DATABASE_V2_CAPABILITY" >> $GITHUB_OUTPUT
232
252
233
253
- name : Prepare Mithril client command
234
254
id : command
@@ -296,6 +316,18 @@ jobs:
296
316
shell : bash
297
317
run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} cardano-stake-distribution download $CARDANO_STAKE_DISTRIBUTION_HASH --download-dir /app
298
318
319
+ - name : Cardano Database V2 Snapshot / list and get last digest
320
+ if : steps.aggregator_capability.outputs.cardano_database_v2_enabled == 'true'
321
+ shell : bash
322
+ run : |
323
+ ${{ steps.command.outputs.mithril_client }} --unstable cardano-db-v2 snapshot list
324
+ echo "CARDANO_DATABASE_V2_SNAPSHOT_HASH=$(${{ steps.command.outputs.mithril_client }} cardano-db-v2 snapshot list --json | jq -r '.[0].digest')" >> $GITHUB_ENV
325
+
326
+ - name : Cardano Database V2 Snapshot / show snapshot
327
+ if : steps.aggregator_capability.outputs.cardano_database_v2_enabled == 'true'
328
+ shell : bash
329
+ run : ${{ steps.command.outputs.mithril_client }} --unstable cardano-db-v2 snapshot show $CARDANO_DATABASE_V2_SNAPSHOT_HASH
330
+
299
331
test-mithril-client-wasm :
300
332
strategy :
301
333
fail-fast : false
0 commit comments