Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
The `dijkstra` era subcommand now provides the full command set: address, key, genesis, governance, query, stake-address, stake-pool, text-view and transaction commands, matching the other eras; previously only the node commands were available.
kind:
- feature
pr: 1431
project: cardano-cli
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Option.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pAnyEraCommand envCli =
Opt.progDesc "Conway era commands"
, Opt.hsubparser $
commandWithMetavar "dijkstra" $
Opt.info (AnyEraCommandOf DijkstraEra <$> asum [NodeCmds <$> pNodeCmds @DijkstraEra]) $
Opt.info (AnyEraCommandOf DijkstraEra <$> pCmds @DijkstraEra envCli) $
Opt.progDesc "Dijkstra era commands"
, Opt.hsubparser $
commandWithMetavar "latest" $
Expand Down
2,565 changes: 2,479 additions & 86 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Usage: cardano-cli dijkstra
( address
| key
| genesis
| governance
| node
| query
| stake-address
| stake-pool
| text-view
| transaction
)


Dijkstra era commands

Available options:
-h,--help Show this help text

Available commands:
address Payment address commands.
key Key utility commands.
genesis Genesis block commands.
governance Governance commands.
node Node operation commands.
query Node query commands. Will query the local node whose
Unix domain socket is obtained from the
CARDANO_NODE_SOCKET_PATH environment variable.
stake-address Stake address commands.
stake-pool Stake pool commands.
text-view Commands for dealing with Shelley TextView files.
Transactions, addresses etc are stored on disk as
TextView files.
transaction Transaction commands.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Usage: cardano-cli dijkstra address (key-gen | key-hash | build | info)

Payment address commands.

Available options:
-h,--help Show this help text

Available commands:
key-gen Create an address key pair.
key-hash Print the hash of an address key.
build Build a Shelley payment address, with optional
delegation to a stake address.
info Print information about an address.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Usage: cardano-cli dijkstra address build
( --payment-verification-key STRING
| --payment-verification-key-file FILEPATH
| --payment-script-file FILEPATH
)
[ --stake-verification-key STRING
| --stake-verification-key-file FILEPATH
| --stake-key-hash HASH
| --stake-script-file FILEPATH
| --stake-address ADDRESS
]
( --mainnet
| --testnet-magic NATURAL
)
[--out-file FILEPATH]


Build a Shelley payment address, with optional delegation to a stake address.

Available options:
--payment-verification-key STRING
Payment verification key (Bech32-encoded)
--payment-verification-key-file FILEPATH
Filepath of the payment verification key.
--payment-script-file FILEPATH
Filepath of the payment script.
--stake-verification-key STRING
Stake verification key (Bech32 or hex-encoded).
--stake-verification-key-file FILEPATH
Filepath of the staking verification key.
--stake-key-hash HASH Stake verification key hash (hex-encoded).
--stake-script-file FILEPATH
Filepath of the staking script.
--stake-address ADDRESS Target stake address (bech32 format).
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--out-file FILEPATH Optional output file. Default is to write to stdout.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Usage: cardano-cli dijkstra address info --address ADDRESS
[--out-file FILEPATH]


Print information about an address.

Available options:
--address ADDRESS A Cardano address
--out-file FILEPATH Optional output file. Default is to write to stdout.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Usage: cardano-cli dijkstra address key-gen
[ --key-output-bech32
| --key-output-text-envelope
| --key-output-format STRING
]
[ --normal-key
| --extended-key
| --byron-key
]
--verification-key-file FILEPATH
--signing-key-file FILEPATH


Create an address key pair.

Available options:
--key-output-bech32 Format key output to BECH32.
--key-output-text-envelope
Format key output to TEXT_ENVELOPE (default).
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32". The
--key-output-format flag is deprecated and will be
removed in a future version.
--normal-key Use a normal Shelley-era key (default).
--extended-key Use an extended ed25519 Shelley-era key.
--byron-key Use a Byron-era key.
--verification-key-file FILEPATH
Output filepath of the verification key.
--signing-key-file FILEPATH
Output filepath of the signing key.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Usage: cardano-cli dijkstra address key-hash
( --payment-verification-key STRING
| --payment-verification-key-file FILEPATH
)
[--out-file FILEPATH]


Print the hash of an address key.

Available options:
--payment-verification-key STRING
Payment verification key (Bech32-encoded)
--payment-verification-key-file FILEPATH
Filepath of the payment verification key.
--out-file FILEPATH Optional output file. Default is to write to stdout.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Usage: cardano-cli dijkstra genesis
( key-gen-genesis
| key-gen-delegate
| key-gen-utxo
| key-hash
| get-ver-key
| initial-addr
| initial-txin
| create-cardano
| create
| create-staked
| create-testnet-data
| hash
)


Genesis block commands.

Available options:
-h,--help Show this help text

Available commands:
key-gen-genesis Create a Shelley genesis key pair
key-gen-delegate Create a Shelley genesis delegate key pair
key-gen-utxo Create a Shelley genesis UTxO key pair
key-hash Print the identifier (hash) of a public key
get-ver-key Derive the verification key from a signing key
initial-addr Get the address for an initial UTxO based on the
verification key
initial-txin Get the TxIn for an initial UTxO based on the
verification key
create-cardano Create a Byron and Shelley genesis file from a
genesis template and genesis/delegation/spending
keys.
create Create a Shelley genesis file from a genesis template
and genesis/delegation/spending keys.
create-staked Create a staked Shelley genesis file from a genesis
template and genesis/delegation/spending keys.
create-testnet-data Create data to use for starting a testnet.
hash DEPRECATION WARNING! This command is deprecated and
will be removed in a future release. Please use hash
genesis-file instead. Compute the hash of a genesis
file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Usage: cardano-cli dijkstra genesis create-cardano --genesis-dir DIR
[--gen-genesis-keys INT]
[--gen-utxo-keys INT]
[--start-time UTC_TIME]
[--supply LOVELACE]
[--security-param NON_ZERO_WORD64]
[--slot-length INT]
[--slot-coefficient RATIONAL]
( --mainnet
| --testnet-magic NATURAL
)
--byron-template FILEPATH
--shelley-template FILEPATH
--alonzo-template FILEPATH
--conway-template FILEPATH
[--node-config-template FILEPATH]


Create a Byron and Shelley genesis file from a genesis template and
genesis/delegation/spending keys.

Available options:
--genesis-dir DIR The genesis directory containing the genesis template
and required genesis/delegation/spending keys.
--gen-genesis-keys INT The number of genesis keys to make [default is 3].
--gen-utxo-keys INT The number of UTxO keys to make [default is 0].
--start-time UTC_TIME The genesis start time in YYYY-MM-DDThh:mm:ssZ
format. If unspecified, will be the current time +30
seconds.
--supply LOVELACE The initial coin supply in Lovelace which will be
evenly distributed across initial, non-delegating
stake holders.
--security-param NON_ZERO_WORD64
Security parameter for genesis file [default is 108].
--slot-length INT slot length (ms) parameter for genesis file [default
is 1000].
--slot-coefficient RATIONAL
Slot Coefficient for genesis file [default is .05].
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--byron-template FILEPATH
JSON file with genesis defaults for each byron.
--shelley-template FILEPATH
JSON file with genesis defaults for each shelley.
--alonzo-template FILEPATH
JSON file with genesis defaults for alonzo.
--conway-template FILEPATH
JSON file with genesis defaults for conway.
--node-config-template FILEPATH
the node config template
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Usage: cardano-cli dijkstra genesis create-staked
[ --key-output-bech32
| --key-output-text-envelope
| --key-output-format STRING
]
--genesis-dir DIR
[--gen-genesis-keys INT]
[--gen-utxo-keys INT]
[--gen-pools INT]
[--gen-stake-delegs INT]
[--start-time UTC_TIME]
[--supply LOVELACE]
[--supply-delegated LOVELACE]
( --mainnet
| --testnet-magic NATURAL
)
[--bulk-pool-cred-files INT]
[--bulk-pools-per-file INT]
[--num-stuffed-utxo INT]
[--relay-specification-file FILEPATH]


Create a staked Shelley genesis file from a genesis template and
genesis/delegation/spending keys.

Available options:
--key-output-bech32 Format key output to BECH32.
--key-output-text-envelope
Format key output to TEXT_ENVELOPE (default).
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32". The
--key-output-format flag is deprecated and will be
removed in a future version.
--genesis-dir DIR The genesis directory containing the genesis template
and required genesis/delegation/spending keys.
--gen-genesis-keys INT The number of genesis keys to make [default is 3].
--gen-utxo-keys INT The number of UTxO keys to make [default is 0].
--gen-pools INT The number of stake pool credential sets to make
[default is 0].
--gen-stake-delegs INT The number of stake delegator credential sets to make
[default is 0].
--start-time UTC_TIME The genesis start time in YYYY-MM-DDThh:mm:ssZ
format. If unspecified, will be the current time +30
seconds.
--supply LOVELACE The initial coin supply in Lovelace which will be
evenly distributed across initial, non-delegating
stake holders.
--supply-delegated LOVELACE
The initial coin supply in Lovelace which will be
evenly distributed across initial, delegating stake
holders.
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--bulk-pool-cred-files INT
Generate bulk pool credential files [default is 0].
--bulk-pools-per-file INT
Each bulk pool to contain this many pool credential
sets [default is 0].
--num-stuffed-utxo INT The number of fake UTxO entries to generate [default
is 0].
--relay-specification-file FILEPATH
JSON file that specifies the relays of each stake
pool.
-h,--help Show this help text
Loading
Loading