Skip to content

Commit a142e98

Browse files
authored
Merge pull request #1111 from IntersectMBO/newhoggy/delete-top-level-shelley-command-group
Delete top-level `shelley` command group and delete associated tests
2 parents 6616c4c + 56520fa commit a142e98

File tree

102 files changed

+15
-4092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+15
-4092
lines changed

cardano-cli/cardano-cli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ test-suite cardano-cli-golden
455455
Test.Golden.Byron.Witness
456456
Test.Golden.Conway.Transaction.Assemble
457457
Test.Golden.Conway.Transaction.BuildRaw
458+
Test.Golden.Conway.Transaction.CreateWitness
458459
Test.Golden.CreateStaked
459460
Test.Golden.CreateTestnetData
460461
Test.Golden.EraBased.Governance.AnswerPoll
@@ -511,7 +512,6 @@ test-suite cardano-cli-golden
511512
Test.Golden.Shelley.Transaction.Assemble
512513
Test.Golden.Shelley.Transaction.Build
513514
Test.Golden.Shelley.Transaction.CalculateMinFee
514-
Test.Golden.Shelley.Transaction.CreateWitness
515515
Test.Golden.Shelley.Transaction.Id
516516
Test.Golden.Shelley.Transaction.Sign
517517
Test.Golden.TxView

cardano-cli/src/Cardano/CLI/EraBased/Option.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ pAnyEraCommand envCli =
4848
[ -- Note, byron is ommitted because there is already a legacy command group for it.
4949

5050
Opt.hsubparser $
51-
commandWithMetavar "shelley" $
52-
Opt.info (AnyEraCommandOf ShelleyBasedEraShelley <$> pCmds ShelleyBasedEraShelley envCli) $
53-
Opt.progDesc ("Shelley era commands" <> deprecationText)
54-
, Opt.hsubparser $
5551
commandWithMetavar "allegra" $
5652
Opt.info (AnyEraCommandOf ShelleyBasedEraAllegra <$> pCmds ShelleyBasedEraAllegra envCli) $
5753
Opt.progDesc ("Allegra era commands" <> deprecationText)

cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/CreateWitness.hs renamed to cardano-cli/test/cardano-cli-golden/Test/Golden/Conway/Transaction/CreateWitness.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{-# LANGUAGE OverloadedStrings #-}
22

3-
module Test.Golden.Shelley.Transaction.CreateWitness where
3+
module Test.Golden.Conway.Transaction.CreateWitness where
44

55
import Control.Monad (void)
66

@@ -26,7 +26,7 @@ hprop_golden_shelley_transaction_signing_key_witness = propertyOnce $ H.moduleWo
2626
-- Create tx body file
2727
void $
2828
execCardanoCLI
29-
[ "shelley"
29+
[ "conway"
3030
, "transaction"
3131
, "build-raw"
3232
, "--tx-in"
@@ -44,7 +44,7 @@ hprop_golden_shelley_transaction_signing_key_witness = propertyOnce $ H.moduleWo
4444
-- Create all multisig witness
4545
witnessOutFile <- noteTempFile tempDir "signingkey-witness"
4646
signingKeyFile <-
47-
noteInputFile "test/cardano-cli-golden/files/input/shelley/keys/payment_keys/signing_key"
47+
noteInputFile "test/cardano-cli-golden/files/input/conway/keys/payment_keys/signing_key"
4848

4949
void $
5050
execCardanoCLI
@@ -60,5 +60,5 @@ hprop_golden_shelley_transaction_signing_key_witness = propertyOnce $ H.moduleWo
6060
, witnessOutFile
6161
]
6262

63-
goldenFile <- H.note "test/cardano-cli-golden/files/golden/shelley/witness-out.json"
63+
goldenFile <- H.note "test/cardano-cli-golden/files/golden/conway/witness-out.json"
6464
H.diffFileVsGoldenFile witnessOutFile goldenFile

cardano-cli/test/cardano-cli-golden/Test/Golden/TxView.hs

Lines changed: 0 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -17,119 +17,6 @@ goldenDir, inputDir :: FilePath
1717
goldenDir = "test/cardano-cli-golden/files/golden"
1818
inputDir = "test/cardano-cli-golden/files/input"
1919

20-
hprop_golden_view_shelley_yaml :: Property
21-
hprop_golden_view_shelley_yaml =
22-
let
23-
certDir = inputDir </> "shelley/certificates"
24-
certs =
25-
(certDir </>)
26-
<$> [ "genesis_key_delegation_certificate"
27-
, "mir_certificate"
28-
, "stake_address_deregistration_certificate"
29-
, "stake_address_registration_certificate"
30-
, "stake_pool_deregistration_certificate"
31-
, "stake_pool_registration_certificate"
32-
]
33-
in
34-
propertyOnce $
35-
moduleWorkspace "tmp" $ \tempDir -> do
36-
updateProposalFile <- noteTempFile tempDir "update-proposal"
37-
transactionBodyFile <- noteTempFile tempDir "transaction-body"
38-
39-
let extraEntropySeed = "c0ffee"
40-
note_ $ "extra entropy seed: " ++ extraEntropySeed
41-
note_ $
42-
mconcat
43-
[ "extra entropy hash:"
44-
, " 88f04f011dcded879039ae4b9b20219d9448e5c7b42c2d1f638fb8740e0ab8be"
45-
]
46-
47-
note_ $
48-
mconcat
49-
[ "genesis-verification-key-file hash:"
50-
, " 81cb0bc5b6fbba391e6f7ec3d9271cbea25bcbf907181b7c4d5f8c2f"
51-
]
52-
53-
-- Create update proposal
54-
void $
55-
execCardanoCLI
56-
[ "legacy"
57-
, "governance"
58-
, "create-update-proposal"
59-
, "--decentralization-parameter"
60-
, "63/64"
61-
, "--epoch"
62-
, "64"
63-
, "--extra-entropy"
64-
, extraEntropySeed
65-
, "--genesis-verification-key-file"
66-
, inputDir </> "shelley/keys/genesis_keys/verification_key"
67-
, "--key-reg-deposit-amt"
68-
, "71"
69-
, "--max-block-body-size"
70-
, "72"
71-
, "--max-block-header-size"
72-
, "73"
73-
, "--max-tx-size"
74-
, "74"
75-
, "--min-fee-constant"
76-
, "75"
77-
, "--min-fee-linear"
78-
, "76"
79-
, "--min-pool-cost"
80-
, "77"
81-
, "--min-utxo-value"
82-
, "78"
83-
, "--monetary-expansion"
84-
, "79/80"
85-
, "--number-of-pools"
86-
, "80"
87-
, "--out-file"
88-
, updateProposalFile
89-
, "--pool-influence"
90-
, "82/83"
91-
, "--pool-reg-deposit"
92-
, "83"
93-
, "--pool-retirement-epoch-boundary"
94-
, "84"
95-
, "--protocol-major-version"
96-
, "8"
97-
, "--protocol-minor-version"
98-
, "86"
99-
, "--treasury-expansion"
100-
, "87/88"
101-
]
102-
103-
-- Create transaction body
104-
void $
105-
execCardanoCLI $
106-
[ "shelley"
107-
, "transaction"
108-
, "build-raw"
109-
, "--tx-in"
110-
, "fe5dd07fb576bff960d6e066eade5b26cdb5afebe29f76ea58d0a098bce5d891#29"
111-
, "--tx-out"
112-
, "addr_test1vz7w0r9epak6nmnh3mc8e2ypkjyu8zsc3xf7dpct6k577acxmcfyv+31"
113-
, "--fee"
114-
, "32"
115-
, "--invalid-hereafter"
116-
, "33"
117-
, "--withdrawal"
118-
, "stake_test1up00fz9lyqs5sjks82k22eqz7a9srym9vysjgp3h2ua2v2cm522kg+42"
119-
, "--update-proposal-file"
120-
, updateProposalFile
121-
, "--out-file"
122-
, transactionBodyFile
123-
]
124-
++ ["--certificate-file=" <> cert | cert <- certs]
125-
126-
-- View transaction body
127-
result <-
128-
execCardanoCLI
129-
["debug", "transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]
130-
131-
H.diffVsGoldenFile result $ goldenDir </> "shelley/transaction-view.out"
132-
13320
hprop_golden_view_allegra_yaml :: Property
13421
hprop_golden_view_allegra_yaml =
13522
propertyOnce $

cardano-cli/test/cardano-cli-golden/files/golden/base_help.cli

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Usage: cardano-cli
1010
| query
1111
| legacy
1212
| byron
13-
| shelley
1413
| allegra
1514
| mary
1615
| alonzo
@@ -41,8 +40,6 @@ Byron specific commands
4140
byron Byron specific commands
4241

4342
Available commands:
44-
shelley Shelley era commands - DEPRECATED - will be removed
45-
in the future
4643
allegra Allegra era commands - DEPRECATED - will be removed
4744
in the future
4845
mary Mary era commands - DEPRECATED - will be removed in
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "TxWitness ConwayEra",
3+
"description": "Key Witness ShelleyEra",
4+
"cborHex": "82008258208dc60533b5dfa60a530955a696323a2ef4f14e8bc95a8f84cf6c441fea42342758406a07e9585cc3020ec233741fa7d7e3f6d988795fdcf5f82805af928c91e06d26317996c25a990c529e3c38de28e2dded13fbea25e1b3ce663e32142df1eaae04"
5+
}

0 commit comments

Comments
 (0)