Skip to content

Commit

Permalink
Added reference test for `compatible conway transaction singed-transa…
Browse files Browse the repository at this point in the history
…ction`
  • Loading branch information
carbolymer committed Nov 23, 2024
1 parent 7965ce2 commit 1a8e2af
Show file tree
Hide file tree
Showing 9 changed files with 541 additions and 0 deletions.
1 change: 1 addition & 0 deletions cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ test-suite cardano-cli-test
Test.Cli.Shelley.Run.Hash
Test.Cli.Shelley.Run.Query
Test.Cli.Shelley.Transaction.Build
Test.Cli.Shelley.Transaction.Compatible.Build
Test.Cli.VerificationKey

ghc-options:
Expand Down
114 changes: 114 additions & 0 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -10787,6 +10787,25 @@ Usage: cardano-cli compatible shelley transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand Down Expand Up @@ -10901,6 +10920,25 @@ Usage: cardano-cli compatible allegra transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand Down Expand Up @@ -11015,6 +11053,25 @@ Usage: cardano-cli compatible mary transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand Down Expand Up @@ -11137,6 +11194,25 @@ Usage: cardano-cli compatible alonzo transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand Down Expand Up @@ -11269,6 +11345,25 @@ Usage: cardano-cli compatible babbage transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand Down Expand Up @@ -11452,6 +11547,25 @@ Usage: cardano-cli compatible conway transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ Usage: cardano-cli compatible allegra transaction signed-transaction
| --testnet-magic NATURAL
]
--fee LOVELACE
[
--certificate-file FILEPATH
[ --certificate-script-file FILEPATH
[
( --certificate-redeemer-cbor-file CBOR_FILE
| --certificate-redeemer-file JSON_FILE
| --certificate-redeemer-value JSON_VALUE
)
--certificate-execution-units (INT, INT)]
| --certificate-tx-in-reference TX-IN
( --certificate-plutus-script-v2
| --certificate-plutus-script-v3
)
( --certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
| --certificate-reference-tx-in-redeemer-file JSON_FILE
| --certificate-reference-tx-in-redeemer-value JSON_VALUE
)
--certificate-reference-tx-in-execution-units (INT, INT)
]]
--out-file FILEPATH

Create a simple signed transaction.
Expand All @@ -28,5 +47,44 @@ Available options:
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--fee LOVELACE The fee amount in Lovelace.
--certificate-file FILEPATH
Filepath of the certificate. This encompasses all
types of certificates (stake pool certificates, stake
key certificates etc). Optionally specify a script
witness.
--certificate-script-file FILEPATH
The file containing the script to witness the use of
the certificate.
--certificate-redeemer-cbor-file CBOR_FILE
The script redeemer file. The file has to be in CBOR
format.
--certificate-redeemer-file JSON_FILE
The script redeemer file. The file must follow the
detailed JSON schema for script data.
--certificate-redeemer-value JSON_VALUE
The script redeemer value. There is no schema:
(almost) any JSON value is supported, including
top-level strings and numbers.
--certificate-execution-units (INT, INT)
The time and space units needed by the script.
--certificate-tx-in-reference TX-IN
TxId#TxIx - Specify a reference input. The reference
input must have a plutus reference script attached.
--certificate-plutus-script-v2
Specify a plutus script v2 reference script.
--certificate-plutus-script-v3
Specify a plutus script v3 reference script.
--certificate-reference-tx-in-redeemer-cbor-file CBOR_FILE
The script redeemer file. The file has to be in CBOR
format.
--certificate-reference-tx-in-redeemer-file JSON_FILE
The script redeemer file. The file must follow the
detailed JSON schema for script data.
--certificate-reference-tx-in-redeemer-value JSON_VALUE
The script redeemer value. There is no schema:
(almost) any JSON value is supported, including
top-level strings and numbers.
--certificate-reference-tx-in-execution-units (INT, INT)
The time and space units needed by the script.
--out-file FILEPATH The output file.
-h,--help Show this help text
Loading

0 comments on commit 1a8e2af

Please sign in to comment.