tx-generator-2.11: A transaction workload generator for Cardano clusters
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.TxGenerator.FundQueue

Description

 
Synopsis

Documentation

type FundQueue = Fifo Fund Source #

A type alias for the specialized queue type.

toList :: FundQueue -> [Fund] Source #

Converting to a list provides a different, non-FIFO access order.

emptyFundQueue :: FundQueue Source #

This just restricts the type of the generic emptyFifo.

insertFund :: FundQueue -> Fund -> FundQueue Source #

This just restricts the type of the generic insert function.

removeFund :: FundQueue -> Maybe (FundQueue, Fund) Source #

This just restricts the type of the generic remove function.

removeFunds :: Int -> FundQueue -> Maybe (FundQueue, [Fund]) Source #

This just restricts the type of the generic removeN function.

removeAllFunds :: FundQueue -> (FundQueue, [Fund]) Source #

This is really just toList paired with an emptyFundQueue.