Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped the spec to include fixes to SecurityGroup parameters #4862

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ source-repository-package
-- !WARNING!:
-- MAKE SURE THIS POINTS TO A COMMIT IN `MAlonzo-code` BEFORE MERGE!
subdir: generated
--sha256: sha256-CebCHTM0lvIAJ5lx0LRcMEDeU4nGVWJlkvhJPE5tI9Y=
tag: 0f9eb79886f4d45a2cbb241af49b9e199735bd37
--sha256: sha256-MSQpX5wkb/LfgGw5sHl5g0DeHVAZF7oNxlM1sUOEB3Q=
tag: 9ea3e2123e89538fa89ce633db0652650f7291dc

-- NOTE: If you would like to update the above, look for the `MAlonzo-code`
-- branch in the `formal-ledger-specifications` repo and copy the SHA of
Expand Down
Binary file added cbor/conformance_dump_ctx.cbor
Binary file not shown.
Binary file added cbor/conformance_dump_env.cbor
Binary file not shown.
Binary file added cbor/conformance_dump_sig.cbor
Binary file not shown.
Binary file added cbor/conformance_dump_st.cbor
Binary file not shown.
14 changes: 14 additions & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
id: lazy-environments
language: Haskell
rule:
kind: strict_field
inside:
kind: data_type
stopBy: end
has:
field: name
regex: '.*Env$'
has:
field: type
pattern: $TYPE
fix: ' $TYPE'
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,15 @@ votingSpec =
. constitutionAnchorL
expectNoCurrentProposals
conAnchor `shouldNotBe` anchor
it "can submit SPO votes" $ do
spoHash <- freshKeyHash
registerPool spoHash
passNEpochs 3
gaId <-
submitParameterChange SNothing $
def
& ppuMinFeeAL .~ SJust (Coin 100)
submitVote_ @era VoteYes (StakePoolVoter spoHash) gaId

constitutionSpec ::
forall era.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Cardano.Ledger.CertState
import Cardano.Ledger.Core
import Cardano.Ledger.PoolParams
import Cardano.Ledger.Shelley.Rules
import Data.Map.Strict (mapKeys)
import qualified Lib as Agda
import Test.Cardano.Ledger.Conformance
import Test.Cardano.Ledger.Conformance.SpecTranslate.Conway.Base ()
Expand All @@ -38,8 +37,8 @@ instance SpecTranslate ctx (PState era) where

toSpecRep PState {..} =
Agda.MkPState
<$> toSpecRep (mapKeys (hashToInteger . unKeyHash) psStakePoolParams)
<*> toSpecRep (mapKeys (hashToInteger . unKeyHash) psRetiring)
<$> toSpecRep psStakePoolParams
<*> toSpecRep psRetiring

instance SpecTranslate ctx PoolCert where
type SpecRep PoolCert = Agda.DCert
Expand Down
12 changes: 12 additions & 0 deletions remove-extra-parens.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id: remove-extra-parens
language: Haskell
rule:
kind: field
all:
- has:
field: name
pattern: $NAME
- has:
field: type
pattern: ($TYPE)
fix: '$NAME :: $TYPE'
2 changes: 2 additions & 0 deletions sgconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ruleDirs:
- ./rules
Empty file added test.txt
Empty file.