Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
insertGetKey ∷ (MonadIO m, PersistUniqueWrite backend, PersistRecordBackend record backend, AtLeastOneUniqueKey record, SafeToInsert record) ⇒ record → ReaderT backend m (Key record) Source #
insertUTxOState ∷ MonadIO m ⇒ UTxOState CurrentEra → ReaderT SqlBackend m (Key UtxoState) Source #
insertUTxO ∷ MonadIO m ⇒ UTxO CurrentEra → Key UtxoState → ReaderT SqlBackend m () Source #
insertDState ∷ MonadIO m ⇒ DState CurrentEra → ReaderT SqlBackend m DStateId Source #
insertLedgerState ∷ MonadIO m ⇒ EpochStateId → LedgerState CurrentEra → ReaderT SqlBackend m () Source #
insertSnapShot ∷ MonadIO m ⇒ Key EpochState → SnapShotType → SnapShot C → ReaderT SqlBackend m () Source #
insertSnapShots ∷ MonadIO m ⇒ Key EpochState → SnapShots C → ReaderT SqlBackend m () Source #
insertEpochState ∷ MonadIO m ⇒ EpochState CurrentEra → ReaderT SqlBackend m () Source #
selectVMap ∷ (Ord k, PersistEntity record, PersistEntityBackend record ~ SqlBackend, Vector kv k, Vector vv v, MonadResource m) ⇒ [Filter record] → (record → ReaderT SqlBackend m (k, v)) → ReaderT SqlBackend m (VMap kv vv k v) Source #
getSnapShotNoSharingM ∷ MonadResource m ⇒ Key EpochState → SnapShotType → ReaderT SqlBackend m (SnapShotM C) Source #
getSnapShotWithSharingM ∷ MonadResource m ⇒ [SnapShotM C] → Key EpochState → SnapShotType → ReaderT SqlBackend m (SnapShotM C) Source #
getSnapShotsWithSharingM ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m (SnapShotsM C) Source #
selectMap ∷ (MonadResource m, Ord k, PersistEntity record, PersistEntityBackend record ~ SqlBackend) ⇒ [Filter record] → (record → ReaderT SqlBackend m (k, a)) → ReaderT SqlBackend m (Map k a) Source #
getSnapShotNoSharing ∷ MonadResource m ⇒ Key EpochState → SnapShotType → ReaderT SqlBackend m (SnapShot C) Source #
getSnapShotsNoSharing ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m (SnapShots C) Source #
getSnapShotsNoSharingM ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m (SnapShotsM C) Source #
getSnapShotWithSharing ∷ MonadResource m ⇒ [SnapShot C] → Key EpochState → SnapShotType → ReaderT SqlBackend m (SnapShot C) Source #
getSnapShotsWithSharing ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m (SnapShots C) Source #
sourceUTxO ∷ MonadResource m ⇒ ConduitM () (TxIn C, TxOut CurrentEra) (ReaderT SqlBackend m) () Source #
sourceWithSharingUTxO ∷ MonadResource m ⇒ Map (StakeCredential C) a → ConduitM () (TxIn C, TxOut CurrentEra) (ReaderT SqlBackend m) () Source #
∷ MonadUnliftIO m | |
⇒ (a → (TxIn C, TxOut CurrentEra) → a) | Folding function |
→ a | Empty acc |
→ Text | Path to Sqlite db |
→ m a |
getLedgerState ∷ MonadIO m ⇒ UTxO CurrentEra → LedgerState → DState CurrentEra → ReaderT SqlBackend m (LedgerState CurrentEra) Source #
getDStateNoSharing ∷ MonadIO m ⇒ Key DState → ReaderT SqlBackend m (DState CurrentEra) Source #
getDStateWithSharing ∷ MonadIO m ⇒ Key DState → ReaderT SqlBackend m (DState CurrentEra) Source #
loadDStateNoSharing ∷ MonadUnliftIO m ⇒ Text → m (DState CurrentEra) Source #
loadUTxONoSharing ∷ MonadUnliftIO m ⇒ Text → m (UTxO CurrentEra) Source #
loadLedgerStateNoSharing ∷ MonadUnliftIO m ⇒ Text → m (LedgerState CurrentEra) Source #
loadLedgerStateDStateTxIxSharing ∷ MonadUnliftIO m ⇒ Text → m (LedgerState CurrentEra, IntMap (Map (TxId C) (TxOut CurrentEra))) Source #
storeEpochState ∷ MonadUnliftIO m ⇒ Text → EpochState CurrentEra → m () Source #
esId ∷ Key EpochState Source #
loadEpochStateEntity ∷ MonadUnliftIO m ⇒ Text → m (Entity EpochState) Source #
getLedgerStateWithSharing ∷ (MonadUnliftIO m, MonadResource m) ⇒ Entity EpochState → ReaderT SqlBackend m (LedgerState CurrentEra) Source #
getLedgerStateNoSharing ∷ (MonadUnliftIO m, MonadResource m) ⇒ Entity EpochState → ReaderT SqlBackend m (LedgerState CurrentEra) Source #
loadEpochState ∷ MonadUnliftIO m ⇒ Text → m (EpochState CurrentEra) Source #
loadEpochStateWithSharing ∷ MonadUnliftIO m ⇒ Text → m (EpochState CurrentEra) Source #
loadSnapShotsNoSharing ∷ MonadUnliftIO m ⇒ Text → Entity EpochState → m (SnapShots C) Source #
loadSnapShotsWithSharing ∷ MonadUnliftIO m ⇒ Text → Entity EpochState → m (SnapShots C) Source #
loadSnapShotsNoSharingM ∷ Text → Entity EpochState → IO (SnapShotsM C) Source #