Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYTxMonadClb a
- mkTestFor ∷ String → (TestInfo → GYTxMonadClb a) → TestTree
- asClb ∷ StdGen → User → Integer → GYTxMonadClb a → AtlasClb (Maybe a)
- asRandClb ∷ User → Integer → GYTxMonadClb a → RandT StdGen AtlasClb (Maybe a)
- liftClb ∷ AtlasClb a → GYTxMonadClb a
- dumpUtxoState ∷ GYTxMonadClb ()
- mustFail ∷ GYTxMonadClb a → GYTxMonadClb ()
- mustFailWith ∷ (GYTxMonadException → Bool) → GYTxMonadClb a → GYTxMonadClb ()
- sendSkeleton ∷ GYTxMonad m ⇒ GYTxSkeleton v → m GYTxId
- sendSkeleton' ∷ GYTxMonad m ⇒ GYTxSkeleton v → m (GYTxBody, GYTxId)
- logInfoS ∷ Monad m ⇒ String → ClbT ApiEra m ()
Documentation
data GYTxMonadClb a #
Instances
mkTestFor ∷ String → (TestInfo → GYTxMonadClb a) → TestTree #
Given a test name, runs the trace for every wallet, checking there weren't errors.
liftClb ∷ AtlasClb a → GYTxMonadClb a #
dumpUtxoState ∷ GYTxMonadClb () #
mustFail ∷ GYTxMonadClb a → GYTxMonadClb () #
Try to execute an action, and if it fails, restore to the current state
while preserving logs. If the action succeeds, logs an error as we expect
it to fail. Use mustFailWith
to provide custom
error message or/and failure action name.
FIXME: should we move it to CLB?
mustFailWith ∷ (GYTxMonadException → Bool) → GYTxMonadClb a → GYTxMonadClb () #
sendSkeleton ∷ GYTxMonad m ⇒ GYTxSkeleton v → m GYTxId #
This is simply defined as buildTxBody skeleton >>= signAndSubmitConfirmed
.
sendSkeleton' ∷ GYTxMonad m ⇒ GYTxSkeleton v → m (GYTxBody, GYTxId) #
logInfoS ∷ Monad m ⇒ String → ClbT ApiEra m () #
Variant of logInfo
from Clb
that logs a string with Info
severity.