| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Haskoin.Store.Database.Types
Synopsis
- data AddrTxKey
- = AddrTxKey { }
- | AddrTxKeyA { }
- | AddrTxKeyB { }
- | AddrTxKeyS
- data AddrOutKey
- = AddrOutKey { }
- | AddrOutKeyA { }
- | AddrOutKeyB { }
- | AddrOutKeyS
- data BestKey = BestKey
- newtype BlockKey = BlockKey {}
- data BalKey
- newtype HeightKey = HeightKey {}
- data MemKey = MemKey
- data TxKey
- decodeTxKey :: Word64 -> ((Word32, Word16), Word8)
- data UnspentKey
- = UnspentKey { }
- | UnspentKeyS { }
- | UnspentKeyB
- data VersionKey = VersionKey
- data BalVal = BalVal {}
- valToBalance :: Address -> BalVal -> Balance
- balanceToVal :: Balance -> BalVal
- data UnspentVal = UnspentVal {}
- toUnspent :: Ctx -> AddrOutKey -> OutVal -> Unspent
- unspentToVal :: Unspent -> (OutPoint, UnspentVal)
- valToUnspent :: Ctx -> OutPoint -> UnspentVal -> Unspent
- data OutVal = OutVal {
- value :: !Word64
- script :: !ByteString
Documentation
Database key for an address transaction.
Constructors
| AddrTxKey | key for a transaction affecting an address |
| AddrTxKeyA | short key that matches all entries |
| AddrTxKeyB | |
| AddrTxKeyS | |
Instances
data AddrOutKey Source #
Database key for an address output.
Constructors
| AddrOutKey | full key |
| AddrOutKeyA | short key for all spent or unspent outputs |
| AddrOutKeyB | |
| AddrOutKeyS | |
Instances
Key for best block in database.
Constructors
| BestKey |
Instances
| Generic BestKey Source # | |
| Read BestKey Source # | |
| Show BestKey Source # | |
| Serialize BestKey Source # | |
| Eq BestKey Source # | |
| Ord BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Hashable BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Key BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue BestKey BlockHash Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep BestKey Source # | |
Block entry database key.
Instances
| Generic BlockKey Source # | |
| Read BlockKey Source # | |
| Show BlockKey Source # | |
| Serialize BlockKey Source # | |
| Eq BlockKey Source # | |
| Ord BlockKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Hashable BlockKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Key BlockKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue BlockKey BlockData Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep BlockKey Source # | |
Defined in Haskoin.Store.Database.Types | |
Address balance database key.
Instances
| Generic BalKey Source # | |
| Read BalKey Source # | |
| Show BalKey Source # | |
| Serialize BalKey Source # | |
| Eq BalKey Source # | |
| Ord BalKey Source # | |
| Hashable BalKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Key BalKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue BalKey BalVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep BalKey Source # | |
Defined in Haskoin.Store.Database.Types type Rep BalKey = D1 ('MetaData "BalKey" "Haskoin.Store.Database.Types" "haskoin-store-1.5.14-FajwE6bbLJ1FVgw1ZfEXwb" 'False) (C1 ('MetaCons "BalKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address)) :+: C1 ('MetaCons "BalKeyS" 'PrefixI 'False) (U1 :: Type -> Type)) | |
Block height database key.
Constructors
| HeightKey | |
Fields | |
Instances
| Generic HeightKey Source # | |
| Read HeightKey Source # | |
| Show HeightKey Source # | |
| Serialize HeightKey Source # | |
| Eq HeightKey Source # | |
| Ord HeightKey Source # | |
| Hashable HeightKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Key HeightKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue HeightKey [BlockHash] Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep HeightKey Source # | |
Defined in Haskoin.Store.Database.Types type Rep HeightKey = D1 ('MetaData "HeightKey" "Haskoin.Store.Database.Types" "haskoin-store-1.5.14-FajwE6bbLJ1FVgw1ZfEXwb" 'True) (C1 ('MetaCons "HeightKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BlockHeight))) | |
Mempool transaction database key.
Constructors
| MemKey |
Transaction database key.
Instances
| Generic TxKey Source # | |
| Read TxKey Source # | |
| Show TxKey Source # | |
| Serialize TxKey Source # | |
| Eq TxKey Source # | |
| Ord TxKey Source # | |
| Hashable TxKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Key TxKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue TxKey TxData Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep TxKey Source # | |
Defined in Haskoin.Store.Database.Types type Rep TxKey = D1 ('MetaData "TxKey" "Haskoin.Store.Database.Types" "haskoin-store-1.5.14-FajwE6bbLJ1FVgw1ZfEXwb" 'False) (C1 ('MetaCons "TxKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "txid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxHash)) :+: C1 ('MetaCons "TxKeyS" 'PrefixI 'True) (S1 ('MetaSel ('Just "short") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Word32, Word16)))) | |
data UnspentKey Source #
Unspent output database key.
Constructors
| UnspentKey | |
| UnspentKeyS | |
| UnspentKeyB | |
Instances
data VersionKey Source #
Key for database version.
Constructors
| VersionKey |
Instances
Constructors
| BalVal | |
Instances
balanceToVal :: Balance -> BalVal Source #
data UnspentVal Source #
Constructors
| UnspentVal | |
Instances
unspentToVal :: Unspent -> (OutPoint, UnspentVal) Source #
valToUnspent :: Ctx -> OutPoint -> UnspentVal -> Unspent Source #
Constructors
| OutVal | |
Fields
| |
Instances
| Generic OutVal Source # | |
| Read OutVal Source # | |
| Show OutVal Source # | |
| Serialize OutVal Source # | |
| Eq OutVal Source # | |
| Ord OutVal Source # | |
| Hashable OutVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue AddrOutKey OutVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep OutVal Source # | |
Defined in Haskoin.Store.Database.Types type Rep OutVal = D1 ('MetaData "OutVal" "Haskoin.Store.Database.Types" "haskoin-store-1.5.14-FajwE6bbLJ1FVgw1ZfEXwb" 'False) (C1 ('MetaCons "OutVal" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "script") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) | |