Skip to content

Commit a44cb1c

Browse files
committed
chore: upgrade era markers runbook for conway era
1 parent 8693d1d commit a44cb1c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/runbook/era-markers/README.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ $ export ERA_ACTIVATION_SECRET_KEY=**YOUR_ERA_ACTIVATION_SECRET_KEY**
2525
$ export ASSETS_PATH=**YOUR_ASSETS_PATH**
2626
```
2727

28+
Compute the current Cardano era:
29+
```bash
30+
CARDANO_ERA=$(cardano-cli query tip --testnet-magic $CARDANO_TESTNET_MAGIC | jq -r '.era |= ascii_downcase | .era')
31+
```
32+
2833
Set the transaction amount used when a script transaction is made:
2934
```bash
3035
$ export SCRIPT_TX_VALUE=2000000
@@ -54,7 +59,7 @@ $ ./mithril-aggregator era generate-tx-datum --current-era-epoch 1 --era-markers
5459

5560
Now create the bootstrap transaction with datum:
5661
```bash
57-
$ cardano-cli transaction build --babbage-era --testnet-magic $CARDANO_TESTNET_MAGIC \
62+
$ cardano-cli $CARDANO_ERA transaction build --testnet-magic $CARDANO_TESTNET_MAGIC \
5863
--tx-in $TX_IN \
5964
--tx-out $(cat $CARDANO_WALLET_PATH/payment.addr)+$SCRIPT_TX_VALUE \
6065
--tx-out-inline-datum-file $ASSETS_PATH/mithril-era-datum-1.json \
@@ -65,7 +70,7 @@ Estimated transaction fee: Lovelace 168669
6570

6671
Then sign the transaction:
6772
```bash
68-
$ cardano-cli transaction sign \
73+
$ cardano-cli $CARDANO_ERA transaction sign \
6974
--tx-body-file $ASSETS_PATH/tx.raw \
7075
--signing-key-file $CARDANO_WALLET_PATH/payment.skey \
7176
--testnet-magic $CARDANO_TESTNET_MAGIC \
@@ -74,7 +79,7 @@ $ cardano-cli transaction sign \
7479

7580
And submit it:
7681
```bash
77-
$ cardano-cli transaction submit \
82+
$ cardano-cli $CARDANO_ERA transaction submit \
7883
--testnet-magic $CARDANO_TESTNET_MAGIC \
7984
--tx-file $ASSETS_PATH/tx.signed
8085
Transaction successfully submitted.
@@ -155,7 +160,7 @@ $ ./mithril-aggregator era generate-tx-datum --current-era-epoch 1 --era-markers
155160

156161
Now create the update transaction with datum:
157162
```bash
158-
$ cardano-cli transaction build --babbage-era --testnet-magic $CARDANO_TESTNET_MAGIC \
163+
$ cardano-cli $CARDANO_ERA transaction build --testnet-magic $CARDANO_TESTNET_MAGIC \
159164
--tx-in $TX_IN_DATUM \
160165
--tx-in $TX_IN_NO_DATUM \
161166
--tx-out $(cat $CARDANO_WALLET_PATH/payment.addr)+$SCRIPT_TX_VALUE \
@@ -167,7 +172,7 @@ Estimated transaction fee: Lovelace 179889
167172

168173
Then sign the transaction:
169174
```bash
170-
$ cardano-cli transaction sign \
175+
$ cardano-cli $CARDANO_ERA transaction sign \
171176
--tx-body-file $ASSETS_PATH/tx.raw \
172177
--signing-key-file $CARDANO_WALLET_PATH/payment.skey \
173178
--testnet-magic $CARDANO_TESTNET_MAGIC \
@@ -176,7 +181,7 @@ $ cardano-cli transaction sign \
176181

177182
And submit it:
178183
```bash
179-
$ cardano-cli transaction submit \
184+
$ cardano-cli $CARDANO_ERA transaction submit \
180185
--testnet-magic $CARDANO_TESTNET_MAGIC \
181186
--tx-file $ASSETS_PATH/tx.signed
182187
Transaction successfully submitted.

0 commit comments

Comments
 (0)