Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Consensus.Shelley.Generators
Contents
Documentation
data SomeResult blk where #
Constructors
SomeResult :: forall result blk. (Eq result, Show result, Typeable result) => BlockQuery blk result -> result -> SomeResult blk |
Instances
Eq (SomeResult blk) | |
Defined in Test.Util.Serialisation.SomeResult Methods (==) :: SomeResult blk -> SomeResult blk -> Bool Source # (/=) :: SomeResult blk -> SomeResult blk -> Bool Source # | |
Show (SomeResult blk) | |
Defined in Test.Util.Serialisation.SomeResult | |
CanMock proto era => Arbitrary (SomeResult (ShelleyBlock proto era)) | |
Defined in Test.Consensus.Shelley.Generators Methods arbitrary :: Gen (SomeResult (ShelleyBlock proto era)) shrink :: SomeResult (ShelleyBlock proto era) -> [SomeResult (ShelleyBlock proto era)] |
Orphan instances
Arbitrary ShelleyTransition Source # | |
Arbitrary ShelleyNodeToClientVersion Source # | |
Arbitrary ShelleyNodeToNodeVersion Source # | |
(CanMock (Praos crypto) era, crypto ~ EraCrypto era) => Arbitrary (Header (ShelleyBlock (Praos crypto) era)) Source # | |
(CanMock (TPraos crypto) era, crypto ~ EraCrypto era) => Arbitrary (Header (ShelleyBlock (TPraos crypto) era)) Source # | |
CanMock proto era => Arbitrary (AnnTip (ShelleyBlock proto era)) Source # | |
CanMock proto era => Arbitrary (LedgerState (ShelleyBlock proto era)) Source # | |
CanMock proto era => Arbitrary (GenTx (ShelleyBlock proto era)) Source # | |
CanMock proto era => Arbitrary (GenTxId (ShelleyBlock proto era)) Source # | |
PraosCrypto c => Arbitrary (TPraosState c) Source # | |
PraosCrypto c => Arbitrary (ChainDepState c) Source # | |
PraosCrypto c => Arbitrary (NonMyopicMemberRewards c) Source # | |
Mock c => Arbitrary (ShelleyHash c) Source # | |
CanMock proto era => Arbitrary (SomeResult (ShelleyBlock proto era)) Source # | |
Methods arbitrary :: Gen (SomeResult (ShelleyBlock proto era)) shrink :: SomeResult (ShelleyBlock proto era) -> [SomeResult (ShelleyBlock proto era)] | |
(CanMock (Praos crypto) era, crypto ~ EraCrypto 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, crypto ~ EraCrypto era) => Arbitrary (Coherent (ShelleyBlock (TPraos crypto) era)) Source # | This uses a different upstream generator to ensure the header and block body relate as expected. |
ShelleyBasedEra era => Arbitrary (SomeSecond (NestedCtxt f) (ShelleyBlock proto era)) Source # | |
CanMock proto era => Arbitrary (SomeSecond BlockQuery (ShelleyBlock proto era)) Source # | |
CanMock proto era => Arbitrary (Point (ShelleyBlock proto era)) Source # | |
(PraosCrypto crypto, CanMock (Praos crypto) era, crypto ~ EraCrypto era) => Arbitrary (ShelleyBlock (Praos crypto) era) Source # | |
(CanMock (TPraos crypto) era, crypto ~ EraCrypto era) => Arbitrary (ShelleyBlock (TPraos crypto) era) Source # | The upstream |
CanMock proto era => Arbitrary (ShelleyTip proto era) Source # | |
CanMock proto era => Arbitrary (WithVersion ShelleyNodeToClientVersion (SomeSecond BlockQuery (ShelleyBlock proto era))) Source # | Some |
Methods arbitrary :: Gen (WithVersion ShelleyNodeToClientVersion (SomeSecond BlockQuery (ShelleyBlock proto era))) shrink :: WithVersion ShelleyNodeToClientVersion (SomeSecond BlockQuery (ShelleyBlock proto era)) -> [WithVersion ShelleyNodeToClientVersion (SomeSecond BlockQuery (ShelleyBlock proto era))] |