Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
288 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
{-# LANGUAGE FlexibleContexts #-} | ||
|
||
module Cardano.Ledger.ShelleyMA.Core | ||
( ShelleyMAEraTxBody (..), | ||
module Cardano.Ledger.Allegra.Core | ||
( AllegraEraTxBody (..), | ||
module Cardano.Ledger.Shelley.Core, | ||
) | ||
where | ||
|
||
import Cardano.Ledger.Mary.Value (MultiAsset (..)) | ||
import Cardano.Ledger.Shelley.Core | ||
import Cardano.Ledger.ShelleyMA.Timelocks (ValidityInterval (..)) | ||
import Cardano.Ledger.Allegra.Timelocks (ValidityInterval (..)) | ||
import Cardano.Ledger.Val (DecodeMint, EncodeMint) | ||
import Data.Set (Set) | ||
import Lens.Micro (Lens', SimpleGetter) | ||
|
||
class | ||
(ShelleyEraTxBody era, EncodeMint (Value era), DecodeMint (Value era)) => | ||
ShelleyMAEraTxBody era | ||
where | ||
class ShelleyEraTxBody era => AllegraEraTxBody era where | ||
vldtTxBodyL :: Lens' (TxBody era) ValidityInterval | ||
|
||
mintTxBodyL :: Lens' (TxBody era) (MultiAsset (EraCrypto era)) | ||
|
||
mintValueTxBodyF :: SimpleGetter (TxBody era) (Value era) | ||
|
||
mintedTxBodyF :: SimpleGetter (TxBody era) (Set (ScriptHash (EraCrypto era))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.