| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Chain.ScriptRegistrySpec
Synopsis
- spec :: Spec
- newtype ATestBackend a = ATestBackend (ReaderT (VerificationKey PaymentKey) IO a)
- runATestBackend :: VerificationKey PaymentKey -> ATestBackend a -> IO a
- newtype SuccessfulBackend a = SuccessfulBackend (ReaderT (VerificationKey PaymentKey, UTxO) IO a)
- runSuccessfulBackend :: (VerificationKey PaymentKey, UTxO) -> SuccessfulBackend a -> IO a
- toAddress :: VerificationKey PaymentKey -> Address ShelleyAddr
Documentation
newtype ATestBackend a Source #
A test backend that will throw NoUTxOFound on queryUTxOFor call.
Constructors
| ATestBackend (ReaderT (VerificationKey PaymentKey) IO a) |
Instances
runATestBackend :: VerificationKey PaymentKey -> ATestBackend a -> IO a Source #
newtype SuccessfulBackend a Source #
A test backend that simulates a successful script publishing.
Constructors
| SuccessfulBackend (ReaderT (VerificationKey PaymentKey, UTxO) IO a) |
Instances
runSuccessfulBackend :: (VerificationKey PaymentKey, UTxO) -> SuccessfulBackend a -> IO a Source #