| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Consensus.Shelley.Generators
Contents
Documentation
data SomeResult blk where #
Constructors
| SomeResult ∷ ∀ result blk (fp ∷ QueryFootprint). (Eq result, Show result, Typeable result) ⇒ BlockQuery blk fp result → result → SomeResult blk |
Instances
| (Arbitrary (InstantStake era), CanMock proto era) ⇒ Arbitrary (SomeResult (ShelleyBlock proto era)) Source # | |
Defined in Test.Consensus.Shelley.Generators Methods arbitrary ∷ Gen (SomeResult (ShelleyBlock proto era)) Source # shrink ∷ SomeResult (ShelleyBlock proto era) → [SomeResult (ShelleyBlock proto era)] Source # | |
| Eq (SomeResult blk) # | |
Defined in Test.Util.Serialisation.SomeResult Methods (==) ∷ SomeResult blk → SomeResult blk → Bool # (/=) ∷ SomeResult blk → SomeResult blk → Bool # | |
| Show (SomeResult blk) # | |
Defined in Test.Util.Serialisation.SomeResult Methods showsPrec ∷ Int → SomeResult blk → ShowS # show ∷ SomeResult blk → String # showList ∷ [SomeResult blk] → ShowS # | |
Orphan instances
| Arbitrary CompactGenesis Source # | |
| Arbitrary BigEndianTxIn Source # | |
| Arbitrary ShelleyTransition Source # | |
| Arbitrary ShelleyNodeToClientVersion Source # | |
| Arbitrary ShelleyNodeToNodeVersion Source # | |
| Arbitrary NonMyopicMemberRewards Source # | |
| Arbitrary ShelleyHash Source # | |
| Arbitrary TPraosState Source # | |
| CanMock (Praos crypto) era ⇒ Arbitrary (Header (ShelleyBlock (Praos crypto) era)) Source # | |
| CanMock (TPraos crypto) era ⇒ Arbitrary (Header (ShelleyBlock (TPraos crypto) era)) Source # | |
| CanMock proto era ⇒ Arbitrary (AnnTip (ShelleyBlock proto era)) Source # | |
| CanMock proto era ⇒ Arbitrary (SomeBlockQuery (BlockQuery (ShelleyBlock proto era))) Source # | |
Methods arbitrary ∷ Gen (SomeBlockQuery (BlockQuery (ShelleyBlock proto era))) Source # shrink ∷ SomeBlockQuery (BlockQuery (ShelleyBlock proto era)) → [SomeBlockQuery (BlockQuery (ShelleyBlock proto era))] Source # | |
| CanMock proto era ⇒ Arbitrary (GenTx (ShelleyBlock proto era)) Source # | |
| CanMock proto era ⇒ Arbitrary (GenTxId (ShelleyBlock proto era)) Source # | |
| Arbitrary (TranslationContext era) ⇒ Arbitrary (ShelleyLedgerConfig era) Source # | Generate a |
| CanMock (Praos crypto) era ⇒ Arbitrary (Coherent (ShelleyBlock (Praos crypto) era)) Source # | Create a coherent Praos block TODO Establish a coherent block without doing this translation from a TPraos header. |
| CanMock (TPraos crypto) era ⇒ Arbitrary (Coherent (ShelleyBlock (TPraos crypto) era)) Source # | This uses a different upstream generator to ensure the header and block body relate as expected. |
| (Arbitrary (InstantStake era), CanMock proto era) ⇒ Arbitrary (SomeResult (ShelleyBlock proto era)) Source # | |
Methods arbitrary ∷ Gen (SomeResult (ShelleyBlock proto era)) Source # shrink ∷ SomeResult (ShelleyBlock proto era) → [SomeResult (ShelleyBlock proto era)] Source # | |
| (Arbitrary (InstantStake era), CanMock proto era) ⇒ Arbitrary (LedgerState (ShelleyBlock proto era) EmptyMK) Source # | |
Methods arbitrary ∷ Gen (LedgerState (ShelleyBlock proto era) EmptyMK) Source # shrink ∷ LedgerState (ShelleyBlock proto era) EmptyMK → [LedgerState (ShelleyBlock proto era) EmptyMK] Source # | |
| (Arbitrary (InstantStake era), CanMock proto era) ⇒ Arbitrary (LedgerState (ShelleyBlock proto era) ValuesMK) Source # | |
Methods arbitrary ∷ Gen (LedgerState (ShelleyBlock proto era) ValuesMK) Source # shrink ∷ LedgerState (ShelleyBlock proto era) ValuesMK → [LedgerState (ShelleyBlock proto era) ValuesMK] Source # | |
| (PraosCrypto crypto, CanMock (Praos crypto) era) ⇒ Arbitrary (ShelleyBlock (Praos crypto) era) Source # | |
| CanMock (TPraos crypto) era ⇒ Arbitrary (ShelleyBlock (TPraos crypto) era) Source # | The upstream |
| CanMock proto era ⇒ Arbitrary (ShelleyTip proto era) Source # | |
| CanMock proto era ⇒ Arbitrary (WithVersion ShelleyNodeToClientVersion (SomeBlockQuery (BlockQuery (ShelleyBlock proto era)))) Source # | |
Methods arbitrary ∷ Gen (WithVersion ShelleyNodeToClientVersion (SomeBlockQuery (BlockQuery (ShelleyBlock proto era)))) Source # shrink ∷ WithVersion ShelleyNodeToClientVersion (SomeBlockQuery (BlockQuery (ShelleyBlock proto era))) → [WithVersion ShelleyNodeToClientVersion (SomeBlockQuery (BlockQuery (ShelleyBlock proto era)))] Source # | |
| CanMock proto era ⇒ Arbitrary (Point (ShelleyBlock proto era)) Source # | |
| ShelleyBasedEra era ⇒ Arbitrary (SomeSecond (NestedCtxt f) (ShelleyBlock proto era)) Source # | |
Methods arbitrary ∷ Gen (SomeSecond (NestedCtxt f) (ShelleyBlock proto era)) Source # shrink ∷ SomeSecond (NestedCtxt f) (ShelleyBlock proto era) → [SomeSecond (NestedCtxt f) (ShelleyBlock proto era)] Source # | |