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 → ReaderT SqlBackend m () Source #
insertSnapShots ∷ MonadIO m ⇒ Key EpochState → SnapShots → 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 Source #
getSnapShotWithSharingM ∷ MonadResource m ⇒ [SnapShotM] → Key EpochState → SnapShotType → ReaderT SqlBackend m SnapShotM Source #
getSnapShotsWithSharingM ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m SnapShotsM 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 Source #
getSnapShotsNoSharing ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m SnapShots Source #
getSnapShotsNoSharingM ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m SnapShotsM Source #
getSnapShotWithSharing ∷ MonadResource m ⇒ [SnapShot] → Key EpochState → SnapShotType → ReaderT SqlBackend m SnapShot Source #
getSnapShotsWithSharing ∷ MonadResource m ⇒ Entity EpochState → ReaderT SqlBackend m SnapShots Source #
sourceUTxO ∷ MonadResource m ⇒ ConduitM () (TxIn, TxOut CurrentEra) (ReaderT SqlBackend m) () Source #
sourceWithSharingUTxO ∷ MonadResource m ⇒ Map StakeCredential a → ConduitM () (TxIn, TxOut CurrentEra) (ReaderT SqlBackend m) () Source #
∷ MonadUnliftIO m | |
⇒ (a → (TxIn, 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 (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 Source #
loadSnapShotsWithSharing ∷ MonadUnliftIO m ⇒ Text → Entity EpochState → m SnapShots Source #