Skip to content

Commit

Permalink
Refactor node connection passing: Regenerate golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Jan 29, 2025
1 parent 6f08723 commit 2b3f721
Show file tree
Hide file tree
Showing 186 changed files with 1,517 additions and 1,280 deletions.
529 changes: 320 additions & 209 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
@@ -1,21 +1,17 @@
Usage: cardano-cli allegra query kes-period-info --socket-path SOCKET_PATH
Usage: cardano-cli allegra query kes-period-info
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
--op-cert-file FILEPATH
[--out-file FILEPATH]

Get information about the current KES period and your node's operational
certificate.

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -24,6 +20,11 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--op-cert-file FILEPATH Filepath of the node's operational certificate.
--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
@@ -1,9 +1,10 @@
Usage: cardano-cli allegra query leadership-schedule --socket-path SOCKET_PATH
Usage: cardano-cli allegra query leadership-schedule
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
--genesis FILEPATH
( --stake-pool-verification-key STRING
| --cold-verification-key-file FILEPATH
Expand All @@ -19,11 +20,6 @@ Usage: cardano-cli allegra query leadership-schedule --socket-path SOCKET_PATH
Get the slots the node is expected to mint a block in (advanced command)

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -32,6 +28,11 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--genesis FILEPATH Shelley genesis filepath
--stake-pool-verification-key STRING
Stake pool verification key (Bech32 or hex-encoded).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
Usage: cardano-cli allegra query ledger-peer-snapshot --socket-path SOCKET_PATH
Usage: cardano-cli allegra query ledger-peer-snapshot
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
[--out-file FILEPATH]

Dump the current snapshot of ledger peers.These are the largest pools that
cumulatively hold 90% of total stake.

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -23,5 +19,10 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--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
@@ -1,20 +1,16 @@
Usage: cardano-cli allegra query ledger-state --socket-path SOCKET_PATH
Usage: cardano-cli allegra query ledger-state
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
[--out-file FILEPATH]

Dump the current ledger state of the node (Ledger.NewEpochState -- advanced
command)

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -23,5 +19,10 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--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
@@ -1,9 +1,10 @@
Usage: cardano-cli allegra query pool-params --socket-path SOCKET_PATH
Usage: cardano-cli allegra query pool-params
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
( --all-stake-pools
| (--stake-pool-id STAKE_POOL_ID)
)
Expand All @@ -14,11 +15,6 @@ Usage: cardano-cli allegra query pool-params --socket-path SOCKET_PATH
command)

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -27,6 +23,11 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--all-stake-pools Query for all stake pools
--stake-pool-id STAKE_POOL_ID
Stake pool ID/verification key hash (either
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Usage: cardano-cli allegra query pool-state --socket-path SOCKET_PATH
Usage: cardano-cli allegra query pool-state
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
( --all-stake-pools
| (--stake-pool-id STAKE_POOL_ID)
)
Expand All @@ -12,11 +13,6 @@ Usage: cardano-cli allegra query pool-state --socket-path SOCKET_PATH
Dump the pool state

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -25,6 +21,11 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--all-stake-pools Query for all stake pools
--stake-pool-id STAKE_POOL_ID
Stake pool ID/verification key hash (either
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
Usage: cardano-cli allegra query protocol-parameters --socket-path SOCKET_PATH
Usage: cardano-cli allegra query protocol-parameters
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
[--out-file FILEPATH]

Get the node's current protocol parameters

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -22,5 +18,10 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--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
@@ -1,20 +1,16 @@
Usage: cardano-cli allegra query protocol-state --socket-path SOCKET_PATH
Usage: cardano-cli allegra query protocol-state
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
[--out-file FILEPATH]

Dump the current protocol state of the node (Ledger.ChainDepState -- advanced
command)

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -23,5 +19,10 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--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
@@ -1,9 +1,10 @@
Usage: cardano-cli allegra query ref-script-size --socket-path SOCKET_PATH
Usage: cardano-cli allegra query ref-script-size
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--socket-path SOCKET_PATH
(--tx-in TX-IN)
[ --output-json
| --output-text
Expand All @@ -14,11 +15,6 @@ Usage: cardano-cli allegra query ref-script-size --socket-path SOCKET_PATH
inputs.

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
Expand All @@ -27,6 +23,11 @@ Available options:
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--tx-in TX-IN Transaction input (TxId#TxIx).
--output-json Format reference inputs query output to JSON. Default
format when writing to a file
Expand Down
Loading

0 comments on commit 2b3f721

Please sign in to comment.