Skip to content

Commit

Permalink
New golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Sep 19, 2024
1 parent ad32c7f commit 31dcc96
Show file tree
Hide file tree
Showing 130 changed files with 4,528 additions and 2,805 deletions.
3,175 changes: 709 additions & 2,466 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,6 +1,6 @@
Usage: cardano-cli address (key-gen | key-hash | build | info)

Payment address commands
Payment address commands.

Available options:
-h,--help Show this help text
Expand Down
68 changes: 35 additions & 33 deletions cardano-cli/test/cardano-cli-golden/files/golden/help/genesis.cli
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
Usage: cardano-cli genesis
( key-gen-genesis
| key-gen-delegate
| key-gen-utxo
| key-hash
| get-ver-key
| initial-addr
| initial-txin
| create-cardano
| create
| create-staked
| hash
)
Usage: cardano-cli genesis --genesis-output-dir FILEPATH
--start-time POSIXSECONDS
--protocol-parameters-file FILEPATH
--k INT
--protocol-magic INT
--n-poor-addresses INT
--n-delegate-addresses INT
--total-balance INT
--delegate-share DOUBLE
--avvm-entry-count INT
--avvm-entry-balance INT
[--avvm-balance-factor DOUBLE]
[--secret-seed INT]

Genesis block commands
Create genesis.

Available options:
--genesis-output-dir FILEPATH
Non-existent directory where genesis JSON file and
secrets shall be placed.
--start-time POSIXSECONDS
Start time of the new cluster to be enshrined in the
new genesis.
--protocol-parameters-file FILEPATH
JSON file with protocol parameters.
--k INT The security parameter of the Ouroboros protocol.
--protocol-magic INT The magic number unique to any instance of Cardano.
--n-poor-addresses INT Number of poor nodes (with small balance).
--n-delegate-addresses INT
Number of delegate nodes (with huge balance).
--total-balance INT Total balance owned by these nodes.
--delegate-share DOUBLE Portion of stake owned by all delegates together.
--avvm-entry-count INT Number of AVVM addresses.
--avvm-entry-balance INT AVVM address.
--avvm-balance-factor DOUBLE
AVVM balances will be multiplied by this factor
(defaults to 1).
--secret-seed INT Optionally specify the seed of generation.
-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.
hash Compute the hash of a genesis file
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
Usage: cardano-cli genesis create-cardano
[ --shelley-era
| --allegra-era
| --mary-era
| --alonzo-era
| --babbage-era
| --conway-era
]
--genesis-dir DIR
Usage: cardano-cli genesis create-cardano --genesis-dir DIR
[--gen-genesis-keys INT]
[--gen-utxo-keys INT]
[--start-time UTC-TIME]
Expand All @@ -27,17 +19,6 @@ Usage: cardano-cli genesis create-cardano
genesis/delegation/spending keys.

Available options:
--shelley-era Specify the Shelley era - DEPRECATED - will be
removed in the future
--allegra-era Specify the Allegra era - DEPRECATED - will be
removed in the future
--mary-era Specify the Mary era - DEPRECATED - will be removed
in the future
--alonzo-era Specify the Alonzo era - DEPRECATED - will be removed
in the future
--babbage-era Specify the Babbage era (default) - DEPRECATED - will
be removed in the future
--conway-era Specify the Conway era
--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].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
Usage: cardano-cli genesis create-staked
[ --shelley-era
| --allegra-era
| --mary-era
| --alonzo-era
| --babbage-era
| --conway-era
]
[--key-output-format STRING]
Usage: cardano-cli genesis create-staked [--key-output-format STRING]
--genesis-dir DIR
[--gen-genesis-keys INT]
[--gen-utxo-keys INT]
Expand All @@ -25,17 +17,6 @@ Usage: cardano-cli genesis create-staked
genesis/delegation/spending keys.

Available options:
--shelley-era Specify the Shelley era - DEPRECATED - will be
removed in the future
--allegra-era Specify the Allegra era - DEPRECATED - will be
removed in the future
--mary-era Specify the Mary era - DEPRECATED - will be removed
in the future
--alonzo-era Specify the Alonzo era - DEPRECATED - will be removed
in the future
--babbage-era Specify the Babbage era (default) - DEPRECATED - will
be removed in the future
--conway-era Specify the Conway era
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32" (default is
Expand Down Expand Up @@ -70,5 +51,6 @@ Available options:
--num-stuffed-utxo INT The number of fake UTxO entries to generate [default
is 0].
--relay-specification-file FILEPATH
JSON file specified the relays of each stake pool.
JSON file that specifies the relays of each stake
pool.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
Usage: cardano-cli genesis create-testnet-data [--spec-shelley FILEPATH]
[--spec-alonzo FILEPATH]
[--spec-conway FILEPATH]
[--genesis-keys INT]
[--pools INT]
[ --stake-delegators INT
| --transient-stake-delegators INT
]
[ --drep-keys INT
| --transient-drep-keys INT
]
[--stuffed-utxo INT]
[--utxo-keys INT]
[--total-supply LOVELACE]
[--delegated-supply LOVELACE]
[--testnet-magic NATURAL]
[--relays FILEPATH]
[--start-time UTC-TIME]
--out-dir DIR

Create data to use for starting a testnet.

Available options:
--spec-shelley FILEPATH The shelley specification file to use as input. A
default one is generated if omitted.
--spec-alonzo FILEPATH The alonzo specification file to use as input. A
default one is generated if omitted.
--spec-conway FILEPATH The conway specification file to use as input. A
default one is generated if omitted.
--genesis-keys INT The number of genesis keys to make (default is 3).
--pools INT The number of stake pool credential sets to make
(default is 0).
--stake-delegators INT The number of stake delegator credential sets to make
(default is 0). Credentials are written to disk.
--transient-stake-delegators INT
The number of stake delegator credential sets to make
(default is 0). The credentials are NOT written to
disk.
--drep-keys INT The number of DRep credentials to make (default is
0). Credentials are written to disk.
--transient-drep-keys INT
The number of DRep credentials to make (default is
0). The credentials are NOT written to disk.
--stuffed-utxo INT The number of fake UTxO entries to generate (default
is 0).
--utxo-keys INT The number of UTxO keys to make (default is 0).
--total-supply LOVELACE The maximum possible amount of Lovelace, which is
evenly distributed across stake holders. Overrides
the value from the shelley genesis. If
--delegated-supply is specified, a part of this
amount will be delegated.
--delegated-supply LOVELACE
The amount of the total supply which is evenly
delegated. Defaulted to half of the total supply.
Cannot be more than the amount specified with
--total-supply.
--testnet-magic NATURAL Specify a testnet magic id for the cluster. This
overrides both the network magic from the spec file
and CARDANO_NODE_NETWORK_ID environment variable.
--relays FILEPATH JSON file specifying the relays of each stake pool.
--start-time UTC-TIME The genesis start time in YYYY-MM-DDThh:mm:ssZ
format. If unspecified, will be the current time +30
seconds.
--out-dir DIR The directory where to generate the data. Created if
not existing.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
Usage: cardano-cli genesis create
[ --shelley-era
| --allegra-era
| --mary-era
| --alonzo-era
| --babbage-era
| --conway-era
]
[--key-output-format STRING]
Usage: cardano-cli genesis create [--key-output-format STRING]
--genesis-dir DIR
[--gen-genesis-keys INT]
[--gen-utxo-keys INT]
Expand All @@ -18,17 +10,6 @@ Usage: cardano-cli genesis create
genesis/delegation/spending keys.

Available options:
--shelley-era Specify the Shelley era - DEPRECATED - will be
removed in the future
--allegra-era Specify the Allegra era - DEPRECATED - will be
removed in the future
--mary-era Specify the Mary era - DEPRECATED - will be removed
in the future
--alonzo-era Specify the Alonzo era - DEPRECATED - will be removed
in the future
--babbage-era Specify the Babbage era (default) - DEPRECATED - will
be removed in the future
--conway-era Specify the Conway era
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32" (default is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
Usage: cardano-cli governance
( create-mir-certificate
| create-genesis-key-delegation-certificate
| create-update-proposal
| create-poll
| answer-poll
| verify-poll
)
Usage: cardano-cli governance (action | committee | drep | vote)

Governance commands
Governance commands.

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

Available commands:
create-mir-certificate Create an MIR (Move Instantaneous Rewards)
certificate
create-genesis-key-delegation-certificate
Create a genesis key delegation certificate
create-update-proposal Create an update proposal
create-poll Create an SPO poll
answer-poll Answer an SPO poll
verify-poll Verify an answer to a given SPO poll
action Governance action commands.
committee Committee member commands.
drep DRep member commands.
vote Vote commands.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Usage: cardano-cli governance action
( create-constitution
| update-committee
| create-info
| create-no-confidence
| create-protocol-parameters-update
| create-treasury-withdrawal
| create-hardfork
| view
)

Governance action commands.

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

Available commands:
create-constitution Create a constitution.
update-committee Create or update a new committee proposal.
create-info Create an info action.
create-no-confidence Create a no confidence proposal.
create-protocol-parameters-update
Create a protocol parameters update.
create-treasury-withdrawal
Create a treasury withdrawal.
create-hardfork Create a hardfork initiation proposal.
view View a governance action.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Usage: cardano-cli governance action create-constitution (--mainnet | --testnet)
--governance-action-deposit NATURAL
( --deposit-return-stake-verification-key STRING
| --deposit-return-stake-verification-key-file FILEPATH
| --deposit-return-stake-key-hash HASH
| --deposit-return-stake-script-file FILEPATH
| --deposit-return-stake-address ADDRESS
)
[--prev-governance-action-tx-id TXID
--prev-governance-action-index WORD16]
--anchor-url TEXT
--anchor-data-hash HASH
--constitution-url TEXT
--constitution-hash HASH
[--constitution-script-hash HASH]
--out-file FILEPATH

Create a constitution.

Available options:
--mainnet Use the mainnet magic id.
--testnet Use the testnet magic id.
--governance-action-deposit NATURAL
Deposit required to submit a governance action.
--deposit-return-stake-verification-key STRING
Stake verification key (Bech32 or hex-encoded).
--deposit-return-stake-verification-key-file FILEPATH
Filepath of the staking verification key.
--deposit-return-stake-key-hash HASH
Stake verification key hash (hex-encoded).
--deposit-return-stake-script-file FILEPATH
Filepath of the staking script.
--deposit-return-stake-address ADDRESS
Target stake address (bech32 format).
--prev-governance-action-tx-id TXID
Txid of the previous governance action.
--prev-governance-action-index WORD16
Action index of the previous governance action.
--anchor-url TEXT Anchor URL
--anchor-data-hash HASH Proposal anchor data hash (obtain it with
"cardano-cli hash anchor-data ...")
--constitution-url TEXT Constitution URL.
--constitution-hash HASH Hash of the constitution data (obtain it with
"cardano-cli hash anchor-data ...").
--constitution-script-hash HASH
Constitution script hash (hex-encoded). Obtain it
with "cardano-cli hash script ...".
--out-file FILEPATH Output filepath of the constitution.
-h,--help Show this help text
Loading

0 comments on commit 31dcc96

Please sign in to comment.