@@ -17,6 +17,8 @@ goldenDir, inputDir :: FilePath
1717goldenDir = " test/cardano-cli-golden/files/golden"
1818inputDir = " test/cardano-cli-golden/files/input"
1919
20+ -- | Execute me with:
21+ -- @cabal test cardano-cli-golden --test-options '-p "/golden view babbage yaml/"'@
2022hprop_golden_view_babbage_yaml :: Property
2123hprop_golden_view_babbage_yaml =
2224 propertyOnce $
@@ -29,9 +31,85 @@ hprop_golden_view_babbage_yaml =
2931 [ " conway"
3032 , " transaction"
3133 , " build-raw"
32- , " --tx-in"
34+ , -- Txin with Plutus script
35+ " --tx-in"
3336 , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#135"
34- , " --tx-out"
37+ , " --tx-in-script-file"
38+ , inputDir </> " AlwaysSucceeds.plutus"
39+ , " --tx-in-datum-value"
40+ , " 24"
41+ , " --tx-in-redeemer-value"
42+ , " 42"
43+ , " --tx-in-execution-units"
44+ , " (100,110)"
45+ , -- Txin with native script
46+ " --tx-in"
47+ , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#136"
48+ , " --tx-in-script-file"
49+ , inputDir </> " NativeScript.json"
50+ , -- Txin with ref script
51+ " --tx-in"
52+ , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#137"
53+ , " --simple-script-tx-in-reference"
54+ , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#138"
55+ , -- Read only ref
56+ " --read-only-tx-in-reference"
57+ , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#139"
58+ , -- Collateral
59+ " --tx-in-collateral"
60+ , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#140"
61+ , -- Excess collateral output
62+ " --tx-out-return-collateral"
63+ , mconcat
64+ [ " addr_test1"
65+ , " qrefnr4k09pvge6dq83v6s67ruter8sftmky8qrmkqqsxy7q5psgn8tgqmupq4r7"
66+ , " 9jmxlyk4eqt6z6hj5g8jd8393msqaw47f4"
67+ , " + "
68+ , " 200"
69+ ]
70+ , " --tx-total-collateral"
71+ , " 10000"
72+ , -- Required signer
73+ " --required-signer-hash"
74+ , " f2998eb67942c4674d01e2cd435e1f17919e095eec43807bb0010313"
75+ , -- Certificate
76+ " --certificate-file"
77+ , inputDir </> " stake-address-registration.json"
78+ , " --certificate-script-file"
79+ , inputDir </> " AlwaysSucceeds.plutus"
80+ , " --certificate-redeemer-value"
81+ , " 63"
82+ , " --certificate-execution-units"
83+ , " (100,110)"
84+ , -- Withdrawal
85+ " --withdrawal"
86+ , " stake_test17qvxuvh64q9zdqgrjt76d42eclk5wgdxtnsun4808cwg0dqxv5r99+10000"
87+ , " --withdrawal-plutus-script-v3"
88+ , " --withdrawal-reference-tx-in-redeemer-value"
89+ , " 83"
90+ , " --withdrawal-reference-tx-in-execution-units"
91+ , " (100,110)"
92+ , " --withdrawal-tx-in-reference"
93+ , " fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#141"
94+ , -- Auxiliary script file
95+ " --auxiliary-script-file"
96+ , inputDir </> " AlwaysSucceeds.plutus"
97+ , -- Metadata
98+ " --metadata-json-file"
99+ , inputDir </> " tx_metadata_noschema.json"
100+ , -- Proposal
101+ " --proposal-file"
102+ , inputDir </> " conway" </> " conway-create-protocol-parameters-update.action"
103+ , -- Vote
104+ " --vote-file"
105+ , inputDir </> " conway" </> " vote1.drep.json"
106+ , -- Treasury donation
107+ " --treasury-donation"
108+ , " 1000000"
109+ , " --current-treasury-value"
110+ , " 1000000000"
111+ , -- Tx Outputs
112+ " --tx-out"
35113 , mconcat
36114 [ " addr_test1"
37115 , " qrefnr4k09pvge6dq83v6s67ruter8sftmky8qrmkqqsxy7q5psgn8tgqmupq4r7"
0 commit comments