Safe Haskell | None |
---|---|
Language | Haskell2010 |
The disk state is the part of the chain index that is kept on disk. This module defines an in-memory implementation of the disk state which can be used in the emulator.
Synopsis
- data DiskState
- dataMap :: Lens' DiskState ( Map DatumHash Datum )
- scriptMap :: Lens' DiskState ( Map ScriptHash (Versioned Script ))
- redeemerMap :: Lens' DiskState ( Map RedeemerHash Redeemer )
- txMap :: Lens' DiskState ( Map TxId ChainIndexTx )
- addressMap :: Lens' DiskState CredentialMap
- assetClassMap :: Lens' DiskState AssetClassMap
- fromTx :: ChainIndexTx -> DiskState
- data CredentialMap
- unCredentialMap :: Iso' CredentialMap ( Map Credential ( Set TxOutRef ))
- data AssetClassMap
- unAssetClassMap :: Iso' AssetClassMap ( Map AssetId ( Set TxOutRef ))
- diagnostics :: DiskState -> Diagnostics
Documentation
Data that we keep on disk. (This type is used for testing only - we need other structures for the disk-backed storage)
Instances
redeemerMap :: Lens' DiskState ( Map RedeemerHash Redeemer ) Source #
fromTx :: ChainIndexTx -> DiskState Source #
The data we store on disk for a given
ChainIndexTx
data CredentialMap Source #
Set of transaction output references for each address.
Instances
unCredentialMap :: Iso' CredentialMap ( Map Credential ( Set TxOutRef )) Source #
data AssetClassMap Source #
Set of transaction output references for each asset class.
Instances
unAssetClassMap :: Iso' AssetClassMap ( Map AssetId ( Set TxOutRef )) Source #
diagnostics :: DiskState -> Diagnostics Source #