@@ -98,21 +98,25 @@ jobs:
98
98
if : runner.os != 'Windows'
99
99
shell : bash
100
100
run : |
101
- CTX_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
102
- CSD_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoStakeDistribution"])')
103
- echo "ctx_enabled=$CTX_CAPABILITY" >> $GITHUB_OUTPUT
104
- echo "csd_enabled=$CSD_CAPABILITY" >> $GITHUB_OUTPUT
101
+ CARDANO_TRANSACTIONS_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
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(["CardanoDatabase"])')
104
+ echo "cardano_transactions_enabled=$CARDANO_TRANSACTIONS_CAPABILITY" >> $GITHUB_OUTPUT
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
108
110
if : runner.os == 'Windows'
109
111
shell : bash
110
112
run : |
111
113
aria2c -o aggregator_capabilities.json $AGGREGATOR_ENDPOINT
112
- CTX_CAPABILITY=$(jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])' aggregator_capabilities.json)
113
- CSD_CAPABILITY=$(jq '.capabilities.signed_entity_types | contains(["CardanoStakeDistribution"])' aggregator_capabilities.json)
114
- echo "ctx_enabled=$CTX_CAPABILITY" >> $GITHUB_OUTPUT
115
- echo "csd_enabled=$CSD_CAPABILITY" >> $GITHUB_OUTPUT
114
+ CARDANO_TRANSACTIONS_CAPABILITY=$(jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])' aggregator_capabilities.json)
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)
117
+ echo "cardano_transactions_enabled=$CARDANO_TRANSACTIONS_CAPABILITY" >> $GITHUB_OUTPUT
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
@@ -134,14 +138,14 @@ jobs:
134
138
working-directory : ./bin
135
139
run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --version
136
140
137
- - name : Cardano-db / list and get last digest
141
+ - name : Cardano Database Snapshot / list and get last digest
138
142
shell : bash
139
143
working-directory : ./bin
140
144
run : |
141
145
./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-db snapshot list
142
146
echo "CDB_SNAPSHOT_DIGEST=$(./mithril-client cardano-db snapshot list --json | jq -r '.[0].digest')" >> $GITHUB_ENV
143
147
144
- - name : Cardano-db / download & restore latest
148
+ - name : Cardano Database Snapshot / download & restore latest
145
149
shell : bash
146
150
working-directory : ./bin
147
151
run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-db download $CDB_SNAPSHOT_DIGEST
@@ -159,27 +163,27 @@ jobs:
159
163
run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} mithril-stake-distribution download $MITHRIL_STAKE_DISTRIBUTION_HASH
160
164
161
165
- name : Cardano transaction / list and get last snapshot
162
- if : steps.aggregator_capability_unix.outputs.ctx_enabled == 'true' || steps.aggregator_capability_windows.outputs.ctx_enabled == 'true'
166
+ if : steps.aggregator_capability_unix.outputs.cardano_transactions_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_transactions_enabled == 'true'
163
167
shell : bash
164
168
working-directory : ./bin
165
169
run : |
166
170
./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-transaction snapshot list
167
171
echo "CTX_SNAPSHOT_HASH=$(./mithril-client cardano-transaction snapshot list --json | jq -r '.[0].hash')" >> $GITHUB_ENV
168
172
169
173
- name : Cardano transaction / show snapshot
170
- if : steps.aggregator_capability_unix.outputs.ctx_enabled == 'true' || steps.aggregator_capability_windows.outputs.ctx_enabled == 'true'
174
+ if : steps.aggregator_capability_unix.outputs.cardano_transactions_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_transactions_enabled == 'true'
171
175
shell : bash
172
176
working-directory : ./bin
173
177
run : ./mithril-client cardano-transaction snapshot show $CTX_SNAPSHOT_HASH
174
178
175
179
- name : Cardano transaction certify
176
- if : steps.aggregator_capability_unix.outputs.ctx_enabled == 'true' || steps.aggregator_capability_windows.outputs.ctx_enabled == 'true'
180
+ if : steps.aggregator_capability_unix.outputs.cardano_transactions_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_transactions_enabled == 'true'
177
181
shell : bash
178
182
working-directory : ./bin
179
183
run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-transaction certify $TRANSACTIONS_HASHES_TO_CERTIFY
180
184
181
185
- name : Cardano Stake Distribution / list and get last epoch and hash
182
- if : steps.aggregator_capability_unix.outputs.csd_enabled == 'true' || steps.aggregator_capability_windows.outputs.csd_enabled == 'true'
186
+ if : steps.aggregator_capability_unix.outputs.cardano_stake_distribution_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_stake_distribution_enabled == 'true'
183
187
shell : bash
184
188
working-directory : ./bin
185
189
run : |
@@ -189,17 +193,31 @@ jobs:
189
193
echo "CARDANO_STAKE_DISTRIBUTION_HASH=$(echo "$CMD_OUTPUT" | jq -r '.[0].hash')" >> $GITHUB_ENV
190
194
191
195
- name : Cardano Stake Distribution / download & restore latest by epoch
192
- if : steps.aggregator_capability_unix.outputs.csd_enabled == 'true' || steps.aggregator_capability_windows.outputs.csd_enabled == 'true'
196
+ if : steps.aggregator_capability_unix.outputs.cardano_stake_distribution_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_stake_distribution_enabled == 'true'
193
197
shell : bash
194
198
working-directory : ./bin
195
199
run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-stake-distribution download $CARDANO_STAKE_DISTRIBUTION_EPOCH
196
200
197
201
- name : Cardano Stake Distribution / download & restore latest by hash
198
- if : steps.aggregator_capability_unix.outputs.csd_enabled == 'true' || steps.aggregator_capability_windows.outputs.csd_enabled == 'true'
202
+ if : steps.aggregator_capability_unix.outputs.cardano_stake_distribution_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_stake_distribution_enabled == 'true'
199
203
shell : bash
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
@@ -225,10 +243,12 @@ jobs:
225
243
id : aggregator_capability
226
244
shell : bash
227
245
run : |
228
- CTX_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
229
- CSD_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoStakeDistribution"])')
230
- echo "ctx_enabled=$CTX_CAPABILITY" >> $GITHUB_OUTPUT
231
- echo "csd_enabled=$CSD_CAPABILITY" >> $GITHUB_OUTPUT
246
+ CARDANO_TRANSACTIONS_CAPABILITY=$(wget -q -O - $AGGREGATOR_ENDPOINT | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
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"])')
249
+ echo "cardano_transactions_enabled=$CARDANO_TRANSACTIONS_CAPABILITY" >> $GITHUB_OUTPUT
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
@@ -240,13 +260,13 @@ jobs:
240
260
shell : bash
241
261
run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --version
242
262
243
- - name : Cardano-db / list and get last digest
263
+ - name : Cardano Database Snapshot / list and get last digest
244
264
shell : bash
245
265
run : |
246
266
${{ steps.command.outputs.mithril_client }} cardano-db snapshot list
247
267
echo "CDB_SNAPSHOT_DIGEST=$(${{ steps.command.outputs.mithril_client }} cardano-db snapshot list --json | jq -r '.[0].digest')" >> $GITHUB_ENV
248
268
249
- - name : Cardano-db / download & restore latest
269
+ - name : Cardano Database Snapshot / download & restore latest
250
270
shell : bash
251
271
run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} cardano-db download $CDB_SNAPSHOT_DIGEST --download-dir /app
252
272
@@ -261,24 +281,24 @@ jobs:
261
281
run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} mithril-stake-distribution download $MITHRIL_STAKE_DISTRIBUTION_HASH --download-dir /app
262
282
263
283
- name : Cardano transaction / list and get last snapshot
264
- if : steps.aggregator_capability.outputs.ctx_enabled == 'true'
284
+ if : steps.aggregator_capability.outputs.cardano_transactions_enabled == 'true'
265
285
shell : bash
266
286
run : |
267
287
${{ steps.command.outputs.mithril_client }} cardano-transaction snapshot list
268
288
echo "CTX_SNAPSHOT_HASH=$(${{ steps.command.outputs.mithril_client }} cardano-transaction snapshot list --json | jq -r '.[0].hash')" >> $GITHUB_ENV
269
289
270
290
- name : Cardano transaction / show snapshot
271
- if : steps.aggregator_capability.outputs.ctx_enabled == 'true'
291
+ if : steps.aggregator_capability.outputs.cardano_transactions_enabled == 'true'
272
292
shell : bash
273
293
run : ${{ steps.command.outputs.mithril_client }} cardano-transaction snapshot show $CTX_SNAPSHOT_HASH
274
294
275
295
- name : Cardano transaction certify
276
- if : steps.aggregator_capability.outputs.ctx_enabled == 'true'
296
+ if : steps.aggregator_capability.outputs.cardano_transactions_enabled == 'true'
277
297
shell : bash
278
298
run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} cardano-transaction certify $TRANSACTIONS_HASHES_TO_CERTIFY
279
299
280
300
- name : Cardano Stake Distribution / list and get last epoch and hash
281
- if : steps.aggregator_capability.outputs.csd_enabled == 'true'
301
+ if : steps.aggregator_capability.outputs.cardano_stake_distribution_enabled == 'true'
282
302
shell : bash
283
303
run : |
284
304
${{ steps.command.outputs.mithril_client }} cardano-stake-distribution list
@@ -287,15 +307,27 @@ jobs:
287
307
echo "CARDANO_STAKE_DISTRIBUTION_HASH=$(echo "$CMD_OUTPUT" | jq -r '.[0].hash')" >> $GITHUB_ENV
288
308
289
309
- name : Cardano Stake Distribution / download & restore latest by epoch
290
- if : steps.aggregator_capability.outputs.csd_enabled == 'true'
310
+ if : steps.aggregator_capability.outputs.cardano_stake_distribution_enabled == 'true'
291
311
shell : bash
292
312
run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} cardano-stake-distribution download $CARDANO_STAKE_DISTRIBUTION_EPOCH --download-dir /app
293
313
294
314
- name : Cardano Stake Distribution / download & restore latest by hash
295
- if : steps.aggregator_capability.outputs.csd_enabled == 'true'
315
+ if : steps.aggregator_capability.outputs.cardano_stake_distribution_enabled == 'true'
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 }} --unstable cardano-db-v2 snapshot list --json | jq -r '.[0].hash')" >> $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