Skip to content

Commit

Permalink
Bumped spec
Browse files Browse the repository at this point in the history
Co-authored-by: teodanciu <[email protected]>
  • Loading branch information
Soupstraw and teodanciu committed Feb 3, 2025
1 parent bc10beb commit a1b2938
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 5 deletions.
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.

0 comments on commit a1b2938

Please sign in to comment.