| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Haskoin.Store.Database.Types
Synopsis
- data AddrTxKey
- = AddrTxKey {
- addrTxKeyA :: !Address
- addrTxKeyT :: !TxRef
- | AddrTxKeyA {
- addrTxKeyA :: !Address
- | AddrTxKeyB {
- addrTxKeyA :: !Address
- addrTxKeyB :: !BlockRef
- | AddrTxKeyS
- = AddrTxKey {
- data AddrOutKey
- = AddrOutKey {
- addrOutKeyA :: !Address
- addrOutKeyB :: !BlockRef
- addrOutKeyP :: !OutPoint
- | AddrOutKeyA {
- addrOutKeyA :: !Address
- | AddrOutKeyB {
- addrOutKeyA :: !Address
- addrOutKeyB :: !BlockRef
- | AddrOutKeyS
- = AddrOutKey {
- data BestKey = BestKey
- newtype BlockKey = BlockKey {}
- data BalKey
- = BalKey {
- balanceKey :: !Address
- | BalKeyS
- = BalKey {
- newtype HeightKey = HeightKey {}
- data MemKey = MemKey
- data SpenderKey
- = SpenderKey {
- outputPoint :: !OutPoint
- | SpenderKeyS {
- outputKeyS :: !TxHash
- = SpenderKey {
- data TxKey
- decodeTxKey :: Word64 -> ((Word32, Word16), Word8)
- data UnspentKey
- = UnspentKey {
- unspentKey :: !OutPoint
- | UnspentKeyS {
- unspentKeyS :: !TxHash
- | UnspentKeyB
- = UnspentKey {
- data VersionKey = VersionKey
- data BalVal = BalVal {}
- valToBalance :: Address -> BalVal -> Balance
- balanceToVal :: Balance -> BalVal
- data UnspentVal = UnspentVal {}
- toUnspent :: AddrOutKey -> OutVal -> Unspent
- unspentToVal :: Unspent -> (OutPoint, UnspentVal)
- valToUnspent :: OutPoint -> UnspentVal -> Unspent
- data OutVal = OutVal {
- outValAmount :: !Word64
- outValScript :: !ByteString
Documentation
Database key for an address transaction.
Constructors
| AddrTxKey | key for a transaction affecting an address |
Fields
| |
| AddrTxKeyA | short key that matches all entries |
Fields
| |
| AddrTxKeyB | |
Fields
| |
| AddrTxKeyS | |
Instances
| Eq AddrTxKey Source # | |
| Ord AddrTxKey Source # | |
| Show AddrTxKey Source # | |
| Generic AddrTxKey Source # | |
| Hashable AddrTxKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize AddrTxKey Source # | |
| Key AddrTxKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue AddrTxKey () Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep AddrTxKey Source # | |
Defined in Haskoin.Store.Database.Types type Rep AddrTxKey = D1 ('MetaData "AddrTxKey" "Haskoin.Store.Database.Types" "haskoin-store-0.52.4-inplace" 'False) ((C1 ('MetaCons "AddrTxKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrTxKeyA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: S1 ('MetaSel ('Just "addrTxKeyT") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxRef)) :+: C1 ('MetaCons "AddrTxKeyA" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrTxKeyA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address))) :+: (C1 ('MetaCons "AddrTxKeyB" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrTxKeyA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: S1 ('MetaSel ('Just "addrTxKeyB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockRef)) :+: C1 ('MetaCons "AddrTxKeyS" 'PrefixI 'False) (U1 :: Type -> Type))) | |
data AddrOutKey Source #
Database key for an address output.
Constructors
| AddrOutKey | full key |
Fields
| |
| AddrOutKeyA | short key for all spent or unspent outputs |
Fields
| |
| AddrOutKeyB | |
Fields
| |
| AddrOutKeyS | |
Instances
| Eq AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Ord AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types Methods compare :: AddrOutKey -> AddrOutKey -> Ordering # (<) :: AddrOutKey -> AddrOutKey -> Bool # (<=) :: AddrOutKey -> AddrOutKey -> Bool # (>) :: AddrOutKey -> AddrOutKey -> Bool # (>=) :: AddrOutKey -> AddrOutKey -> Bool # max :: AddrOutKey -> AddrOutKey -> AddrOutKey # min :: AddrOutKey -> AddrOutKey -> AddrOutKey # | |
| Read AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types Methods readsPrec :: Int -> ReadS AddrOutKey # readList :: ReadS [AddrOutKey] # readPrec :: ReadPrec AddrOutKey # readListPrec :: ReadPrec [AddrOutKey] # | |
| Show AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types Methods showsPrec :: Int -> AddrOutKey -> ShowS # show :: AddrOutKey -> String # showList :: [AddrOutKey] -> ShowS # | |
| Generic AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types Associated Types type Rep AddrOutKey :: Type -> Type # | |
| Hashable AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Key AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue AddrOutKey OutVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep AddrOutKey Source # | |
Defined in Haskoin.Store.Database.Types type Rep AddrOutKey = D1 ('MetaData "AddrOutKey" "Haskoin.Store.Database.Types" "haskoin-store-0.52.4-inplace" 'False) ((C1 ('MetaCons "AddrOutKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrOutKeyA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: (S1 ('MetaSel ('Just "addrOutKeyB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockRef) :*: S1 ('MetaSel ('Just "addrOutKeyP") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OutPoint))) :+: C1 ('MetaCons "AddrOutKeyA" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrOutKeyA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address))) :+: (C1 ('MetaCons "AddrOutKeyB" 'PrefixI 'True) (S1 ('MetaSel ('Just "addrOutKeyA") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: S1 ('MetaSel ('Just "addrOutKeyB") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockRef)) :+: C1 ('MetaCons "AddrOutKeyS" 'PrefixI 'False) (U1 :: Type -> Type))) | |
Key for best block in database.
Constructors
| BestKey |
Instances
| Eq BestKey Source # | |
| Ord BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Read BestKey Source # | |
| Show BestKey Source # | |
| Generic BestKey Source # | |
| Hashable BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize BestKey Source # | |
| Key BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| KeyValue BestKey BlockHash Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep BestKey Source # | |
Defined in Haskoin.Store.Database.Types | |
Block entry database key.
Instances
| Eq BlockKey Source # | |
| Ord BlockKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Read BlockKey Source # | |
| Show BlockKey Source # | |
| Generic BlockKey Source # | |
| Hashable BlockKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize BlockKey Source # | |
| 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.
Constructors
| BalKey | |
Fields
| |
| BalKeyS | |
Instances
| Eq BalKey Source # | |
| Ord BalKey Source # | |
| Read BalKey Source # | |
| Show BalKey Source # | |
| Generic BalKey Source # | |
| Hashable BalKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize BalKey Source # | |
| 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-0.52.4-inplace" 'False) (C1 ('MetaCons "BalKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "balanceKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address)) :+: C1 ('MetaCons "BalKeyS" 'PrefixI 'False) (U1 :: Type -> Type)) | |
Block height database key.
Constructors
| HeightKey | |
Fields | |
Instances
| Eq HeightKey Source # | |
| Ord HeightKey Source # | |
| Read HeightKey Source # | |
| Show HeightKey Source # | |
| Generic HeightKey Source # | |
| Hashable HeightKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize HeightKey Source # | |
| 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 | |
Mempool transaction database key.
Constructors
| MemKey |
data SpenderKey Source #
Constructors
| SpenderKey | |
Fields
| |
| SpenderKeyS | |
Fields
| |
Instances
Transaction database key.
Instances
| Eq TxKey Source # | |
| Ord TxKey Source # | |
| Read TxKey Source # | |
| Show TxKey Source # | |
| Generic TxKey Source # | |
| Hashable TxKey Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize TxKey Source # | |
| 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-0.52.4-inplace" 'False) (C1 ('MetaCons "TxKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "txKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxHash)) :+: C1 ('MetaCons "TxKeyS" 'PrefixI 'True) (S1 ('MetaSel ('Just "txKeyShort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Word32, Word16)))) | |
data UnspentKey Source #
Unspent output database key.
Constructors
| UnspentKey | |
Fields
| |
| UnspentKeyS | |
Fields
| |
| UnspentKeyB | |
Instances
data VersionKey Source #
Key for database version.
Constructors
| VersionKey |
Instances
Constructors
| BalVal | |
Fields
| |
Instances
| Eq BalVal Source # | |
| Ord BalVal Source # | |
| Read BalVal Source # | |
| Show BalVal Source # | |
| Generic BalVal Source # | |
| Hashable BalVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize BalVal Source # | |
| NFData BalVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| Default BalVal Source # | Default balance for an address. |
Defined in Haskoin.Store.Database.Types | |
| KeyValue BalKey BalVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| type Rep BalVal Source # | |
Defined in Haskoin.Store.Database.Types type Rep BalVal = D1 ('MetaData "BalVal" "Haskoin.Store.Database.Types" "haskoin-store-0.52.4-inplace" 'False) (C1 ('MetaCons "BalVal" 'PrefixI 'True) ((S1 ('MetaSel ('Just "balValAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "balValZero") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "balValUnspentCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "balValTxCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "balValTotalReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))) | |
balanceToVal :: Balance -> BalVal Source #
data UnspentVal Source #
Constructors
| UnspentVal | |
Fields | |
Instances
unspentToVal :: Unspent -> (OutPoint, UnspentVal) Source #
valToUnspent :: OutPoint -> UnspentVal -> Unspent Source #
Constructors
| OutVal | |
Fields
| |
Instances
| Eq OutVal Source # | |
| Ord OutVal Source # | |
| Read OutVal Source # | |
| Show OutVal Source # | |
| Generic OutVal Source # | |
| Hashable OutVal Source # | |
Defined in Haskoin.Store.Database.Types | |
| Serialize OutVal Source # | |
| 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-0.52.4-inplace" 'False) (C1 ('MetaCons "OutVal" 'PrefixI 'True) (S1 ('MetaSel ('Just "outValAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "outValScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) | |