mempool-bench
Safe HaskellSafe-Inferred
LanguageHaskell2010

Bench.Consensus.Mempool.TestBlock

Synopsis

Test block

Initial parameters

Transactions

newtype Token Source #

Constructors

Token Int 

Instances

Instances details
Generic Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep TokenTypeType #

Methods

fromTokenRep Token x #

toRep Token x → Token #

Show Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

showsPrecIntTokenShowS #

showTokenString #

showList ∷ [Token] → ShowS #

NFData Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

rnfToken → () #

Eq Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

(==)TokenTokenBool #

(/=)TokenTokenBool #

Ord Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

compareTokenTokenOrdering #

(<)TokenTokenBool #

(<=)TokenTokenBool #

(>)TokenTokenBool #

(>=)TokenTokenBool #

maxTokenTokenToken #

minTokenTokenToken #

NoThunks Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Serialise Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

ToExpr Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

toExprTokenExpr Source #

listToExpr ∷ [Token] → Expr Source #

type Rep Token Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep Token = D1 ('MetaData "Token" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'True) (C1 ('MetaCons "Token" 'PrefixI 'True) (S1 ('MetaSel ('Just "unToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data Tx Source #

Constructors

Tx !(Set Token) !(Set Token) 

Instances

Instances details
Generic Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep TxTypeType #

Methods

fromTxRep Tx x #

toRep Tx x → Tx #

Show Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

showsPrecIntTxShowS #

showTxString #

showList ∷ [Tx] → ShowS #

NFData Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

rnfTx → () #

Eq Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

(==)TxTxBool #

(/=)TxTxBool #

Ord Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

compareTxTxOrdering #

(<)TxTxBool #

(<=)TxTxBool #

(>)TxTxBool #

(>=)TxTxBool #

maxTxTxTx #

minTxTxTx #

NoThunks Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

LedgerSupportsMempool TestBlock Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

TxLimits TestBlock Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type TxMeasure TestBlock Source #

PayloadSemantics Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Generic (CodecConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep (CodecConfig TestBlock) ∷ TypeType #

Generic (StorageConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep (StorageConfig TestBlock) ∷ TypeType #

Generic (Validated (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep (Validated (GenTx TestBlock)) ∷ TypeType #

Generic (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep (GenTx TestBlock) ∷ TypeType #

Generic (TxId (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Associated Types

type Rep (TxId (GenTx TestBlock)) ∷ TypeType #

Show (CodecConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Show (StorageConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Show (Validated (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Show (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Show (TxId (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

NFData (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Methods

rnfGenTx TestBlock → () #

Eq (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Eq (TxId (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Ord (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

Ord (TxId (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

NoThunks (CodecConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

NoThunks (StorageConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

NoThunks (Validated (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

NoThunks (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

NoThunks (TxId (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

HasTxId (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep Tx = D1 ('MetaData "Tx" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'False) (C1 ('MetaCons "Tx" 'PrefixI 'True) (S1 ('MetaSel ('Just "consumed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set Token)) :*: S1 ('MetaSel ('Just "produced") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set Token))))
data CodecConfig TestBlock Source #

TODO: for the time being TestBlock does not have any codec config

Instance details

Defined in Bench.Consensus.Mempool.TestBlock

data StorageConfig TestBlock Source #

TODO: for the time being TestBlock does not have any storage config

Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type ApplyTxErr TestBlock Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

newtype GenTx TestBlock Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type TxMeasure TestBlock Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type PayloadDependentError Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type PayloadDependentState Tx Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep (CodecConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep (CodecConfig TestBlock) = D1 ('MetaData "CodecConfig" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'False) (C1 ('MetaCons "TestBlockCodecConfig" 'PrefixI 'False) (U1TypeType))
type Rep (StorageConfig TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep (StorageConfig TestBlock) = D1 ('MetaData "StorageConfig" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'False) (C1 ('MetaCons "TestBlockStorageConfig" 'PrefixI 'False) (U1TypeType))
type Rep (Validated (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep (Validated (GenTx TestBlock)) = D1 ('MetaData "Validated" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'True) (C1 ('MetaCons "ValidatedGenTx" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (GenTx TestBlock))))
type Rep (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep (GenTx TestBlock) = D1 ('MetaData "GenTx" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'True) (C1 ('MetaCons "TestBlockGenTx" 'PrefixI 'True) (S1 ('MetaSel ('Just "unGenTx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tx)))
type Rep (TxId (GenTx TestBlock)) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

type Rep (TxId (GenTx TestBlock)) = D1 ('MetaData "TxId" "Bench.Consensus.Mempool.TestBlock" "ouroboros-consensus-0.21.0.0-inplace-mempool-bench" 'True) (C1 ('MetaCons "TestBlockTxId" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tx)))
newtype Validated (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

newtype TxId (GenTx TestBlock) Source # 
Instance details

Defined in Bench.Consensus.Mempool.TestBlock

mkTx Source #

Arguments

∷ [Token]

Consumed

→ [Token]

Produced

GenTx TestBlock 

txSizeGenTx TestBlockByteSize32 Source #

For the mempool tests and benchmarks it is not imporant that we calculate the actual size of the transaction in bytes.