Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Balance = Balance {}
- balanceToJSON :: Network -> Balance -> Value
- balanceToEncoding :: Network -> Balance -> Encoding
- balanceParseJSON :: Network -> Value -> Parser Balance
- zeroBalance :: Address -> Balance
- nullBalance :: Balance -> Bool
- data BlockData = BlockData {}
- blockDataToJSON :: Network -> BlockData -> Value
- blockDataToEncoding :: Network -> BlockData -> Encoding
- confirmed :: BlockRef -> Bool
- data TxRef = TxRef {
- txRefBlock :: !BlockRef
- txRefHash :: !TxHash
- data TxData = TxData {
- txDataBlock :: !BlockRef
- txData :: !Tx
- txDataPrevs :: !(IntMap Prev)
- txDataDeleted :: !Bool
- txDataRBF :: !Bool
- txDataTime :: !Word64
- data Transaction = Transaction {
- transactionBlock :: !BlockRef
- transactionVersion :: !Word32
- transactionLockTime :: !Word32
- transactionInputs :: ![StoreInput]
- transactionOutputs :: ![StoreOutput]
- transactionDeleted :: !Bool
- transactionRBF :: !Bool
- transactionTime :: !Word64
- transactionId :: !TxHash
- transactionSize :: !Word32
- transactionWeight :: !Word32
- transactionFees :: !Word64
- transactionToJSON :: Network -> Transaction -> Value
- transactionToEncoding :: Network -> Transaction -> Encoding
- transactionParseJSON :: Network -> Value -> Parser Transaction
- transactionData :: Transaction -> Tx
- fromTransaction :: Transaction -> (TxData, IntMap Spender)
- toTransaction :: TxData -> IntMap Spender -> Transaction
- data StoreInput
- = StoreCoinbase { }
- | StoreInput {
- inputPoint :: !OutPoint
- inputSequence :: !Word32
- inputSigScript :: !ByteString
- inputPkScript :: !ByteString
- inputAmount :: !Word64
- inputWitness :: !WitnessStack
- inputAddress :: !(Maybe Address)
- storeInputToJSON :: Network -> StoreInput -> Value
- storeInputToEncoding :: Network -> StoreInput -> Encoding
- storeInputParseJSON :: Network -> Value -> Parser StoreInput
- isCoinbase :: StoreInput -> Bool
- data StoreOutput = StoreOutput {
- outputAmount :: !Word64
- outputScript :: !ByteString
- outputSpender :: !(Maybe Spender)
- outputAddr :: !(Maybe Address)
- storeOutputToJSON :: Network -> StoreOutput -> Value
- storeOutputToEncoding :: Network -> StoreOutput -> Encoding
- storeOutputParseJSON :: Network -> Value -> Parser StoreOutput
- data Prev = Prev {
- prevScript :: !ByteString
- prevAmount :: !Word64
- data Spender = Spender {
- spenderHash :: !TxHash
- spenderIndex :: !Word32
- data BlockRef
- = BlockRef { }
- | MemRef {
- memRefTime :: !UnixTime
- type UnixTime = Word64
- getUnixTime :: MonadGet m => m Word64
- putUnixTime :: MonadPut m => Word64 -> m ()
- type BlockPos = Word32
- data Unspent = Unspent {
- unspentBlock :: !BlockRef
- unspentPoint :: !OutPoint
- unspentAmount :: !Word64
- unspentScript :: !ByteString
- unspentAddress :: !(Maybe Address)
- unspentToJSON :: Network -> Unspent -> Value
- unspentToEncoding :: Network -> Unspent -> Encoding
- unspentParseJSON :: Network -> Value -> Parser Unspent
- data XPubSpec = XPubSpec {}
- data XPubBal = XPubBal {
- xPubBalPath :: ![KeyIndex]
- xPubBal :: !Balance
- xPubBalToJSON :: Network -> XPubBal -> Value
- xPubBalToEncoding :: Network -> XPubBal -> Encoding
- xPubBalParseJSON :: Network -> Value -> Parser XPubBal
- data XPubUnspent = XPubUnspent {
- xPubUnspent :: !Unspent
- xPubUnspentPath :: ![KeyIndex]
- xPubUnspentToJSON :: Network -> XPubUnspent -> Value
- xPubUnspentToEncoding :: Network -> XPubUnspent -> Encoding
- xPubUnspentParseJSON :: Network -> Value -> Parser XPubUnspent
- data XPubSummary = XPubSummary {}
- data DeriveType
- newtype TxId = TxId TxHash
- newtype GenericResult a = GenericResult {
- getResult :: a
- newtype SerialList a = SerialList {
- getSerialList :: [a]
- newtype RawResult a = RawResult {
- getRawResult :: a
- newtype RawResultList a = RawResultList {
- getRawResultList :: [a]
- data PeerInformation = PeerInformation {
- peerUserAgent :: !ByteString
- peerAddress :: !String
- peerVersion :: !Word32
- peerServices :: !Word64
- peerRelay :: !Bool
- class Healthy a where
- data BlockHealth = BlockHealth {}
- data TimeHealth = TimeHealth {
- timeHealthAge :: !Int64
- timeHealthMax :: !Int64
- data CountHealth = CountHealth {
- countHealthNum :: !Int64
- countHealthMin :: !Int64
- data MaxHealth = MaxHealth {
- maxHealthNum :: !Int64
- maxHealthMax :: !Int64
- data HealthCheck = HealthCheck {}
- data Event
- = EventBlock !BlockHash
- | EventTx !TxHash
- data Except
- data BinfoBlockId
- data BinfoTxId
- encodeBinfoTxId :: Bool -> TxHash -> BinfoTxId
- data BinfoFilter
- data BinfoMultiAddr = BinfoMultiAddr {}
- binfoMultiAddrToJSON :: Network -> BinfoMultiAddr -> Value
- binfoMultiAddrToEncoding :: Network -> BinfoMultiAddr -> Encoding
- binfoMultiAddrParseJSON :: Network -> Value -> Parser BinfoMultiAddr
- data BinfoShortBal = BinfoShortBal {}
- data BinfoBalance
- = BinfoAddrBalance { }
- | BinfoXPubBalance { }
- toBinfoAddrs :: HashMap Address Balance -> HashMap XPubKey [XPubBal] -> HashMap XPubKey Int -> [BinfoBalance]
- binfoBalanceToJSON :: Network -> BinfoBalance -> Value
- binfoBalanceToEncoding :: Network -> BinfoBalance -> Encoding
- binfoBalanceParseJSON :: Network -> Value -> Parser BinfoBalance
- data BinfoRawAddr = BinfoRawAddr {}
- binfoRawAddrToJSON :: Network -> BinfoRawAddr -> Value
- binfoRawAddrToEncoding :: Network -> BinfoRawAddr -> Encoding
- binfoRawAddrParseJSON :: Network -> Value -> Parser BinfoRawAddr
- data BinfoAddr
- parseBinfoAddr :: Network -> Text -> Maybe [BinfoAddr]
- data BinfoWallet = BinfoWallet {}
- data BinfoUnspent = BinfoUnspent {}
- binfoUnspentToJSON :: Network -> BinfoUnspent -> Value
- binfoUnspentToEncoding :: Network -> BinfoUnspent -> Encoding
- binfoUnspentParseJSON :: Network -> Value -> Parser BinfoUnspent
- binfoHexValue :: Word64 -> Text
- newtype BinfoUnspents = BinfoUnspents [BinfoUnspent]
- binfoUnspentsToJSON :: Network -> BinfoUnspents -> Value
- binfoUnspentsToEncoding :: Network -> BinfoUnspents -> Encoding
- binfoUnspentsParseJSON :: Network -> Value -> Parser BinfoUnspents
- data BinfoBlock = BinfoBlock {
- getBinfoBlockHash :: !BlockHash
- getBinfoBlockVer :: !Word32
- getBinfoPrevBlock :: !BlockHash
- getBinfoMerkleRoot :: !Hash256
- getBinfoBlockTime :: !Word32
- getBinfoBlockBits :: !Word32
- getBinfoNextBlock :: ![BlockHash]
- getBinfoBlockFee :: !Word64
- getBinfoBlockNonce :: !Word32
- getBinfoBlockTxCount :: !Word32
- getBinfoBlockSize :: !Word32
- getBinfoBlockIndex :: !Word32
- getBinfoBlockMain :: !Bool
- getBinfoBlockHeight :: !Word32
- getBinfoBlockWeight :: !Word32
- getBinfoBlockTx :: ![BinfoTx]
- toBinfoBlock :: BlockData -> [BinfoTx] -> [BlockHash] -> BinfoBlock
- binfoBlockToJSON :: Network -> BinfoBlock -> Value
- binfoBlockToEncoding :: Network -> BinfoBlock -> Encoding
- binfoBlockParseJSON :: Network -> Value -> Parser BinfoBlock
- binfoBlocksToJSON :: Network -> [BinfoBlock] -> Value
- binfoBlocksToEncoding :: Network -> [BinfoBlock] -> Encoding
- binfoBlocksParseJSON :: Network -> Value -> Parser [BinfoBlock]
- data BinfoTx = BinfoTx {
- getBinfoTxHash :: !TxHash
- getBinfoTxVer :: !Word32
- getBinfoTxVinSz :: !Word32
- getBinfoTxVoutSz :: !Word32
- getBinfoTxSize :: !Word32
- getBinfoTxWeight :: !Word32
- getBinfoTxFee :: !Word64
- getBinfoTxRelayedBy :: !ByteString
- getBinfoTxLockTime :: !Word32
- getBinfoTxIndex :: !BinfoTxId
- getBinfoTxDoubleSpend :: !Bool
- getBinfoTxRBF :: !Bool
- getBinfoTxResultBal :: !(Maybe (Int64, Int64))
- getBinfoTxTime :: !Word64
- getBinfoTxBlockIndex :: !(Maybe Word32)
- getBinfoTxBlockHeight :: !(Maybe Word32)
- getBinfoTxInputs :: [BinfoTxInput]
- getBinfoTxOutputs :: [BinfoTxOutput]
- relevantTxs :: HashSet Address -> Bool -> Transaction -> HashSet TxHash
- toBinfoTx :: Bool -> HashMap Address (Maybe BinfoXPubPath) -> Bool -> Int64 -> Transaction -> BinfoTx
- toBinfoTxSimple :: Bool -> Transaction -> BinfoTx
- binfoTxToJSON :: Network -> BinfoTx -> Value
- binfoTxToEncoding :: Network -> BinfoTx -> Encoding
- binfoTxParseJSON :: Network -> Value -> Parser BinfoTx
- data BinfoTxInput = BinfoTxInput {}
- binfoTxInputToJSON :: Network -> BinfoTxInput -> Value
- binfoTxInputToEncoding :: Network -> BinfoTxInput -> Encoding
- binfoTxInputParseJSON :: Network -> Value -> Parser BinfoTxInput
- data BinfoTxOutput = BinfoTxOutput {
- getBinfoTxOutputType :: !Int
- getBinfoTxOutputSpent :: !Bool
- getBinfoTxOutputValue :: !Word64
- getBinfoTxOutputIndex :: !Word32
- getBinfoTxOutputTxIndex :: !BinfoTxId
- getBinfoTxOutputScript :: !ByteString
- getBinfoTxOutputSpenders :: ![BinfoSpender]
- getBinfoTxOutputAddress :: !(Maybe Address)
- getBinfoTxOutputXPub :: !(Maybe BinfoXPubPath)
- binfoTxOutputToJSON :: Network -> BinfoTxOutput -> Value
- binfoTxOutputToEncoding :: Network -> BinfoTxOutput -> Encoding
- binfoTxOutputParseJSON :: Network -> Value -> Parser BinfoTxOutput
- data BinfoSpender = BinfoSpender {}
- data BinfoXPubPath = BinfoXPubPath {}
- binfoXPubPathToJSON :: Network -> BinfoXPubPath -> Value
- binfoXPubPathToEncoding :: Network -> BinfoXPubPath -> Encoding
- binfoXPubPathParseJSON :: Network -> Value -> Parser BinfoXPubPath
- data BinfoInfo = BinfoInfo {}
- data BinfoBlockInfo = BinfoBlockInfo {}
- data BinfoSymbol = BinfoSymbol {}
- data BinfoTicker = BinfoTicker {}
- data BinfoRate = BinfoRate {
- binfoRateTime :: !Word64
- binfoRatePrice :: !Double
- binfoRateVol24 :: !Double
- data BinfoHistory = BinfoHistory {}
- toBinfoHistory :: Int64 -> Word64 -> Double -> Double -> TxHash -> BinfoHistory
- newtype BinfoDate = BinfoDate Word64
Address Balances
Address balance information.
Balance | |
|
Instances
Eq Balance Source # | |
Ord Balance Source # | |
Read Balance Source # | |
Show Balance Source # | |
Generic Balance Source # | |
Hashable Balance Source # | |
Defined in Haskoin.Store.Data | |
Binary Balance Source # | |
Serial Balance Source # | |
Defined in Haskoin.Store.Data | |
Serialize Balance Source # | |
NFData Balance Source # | |
Defined in Haskoin.Store.Data | |
ApiResource GetAddrBalance Balance Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrBalance -> StdMethod Source # resourcePath :: Proxy GetAddrBalance -> [Text] -> Text Source # queryParams :: GetAddrBalance -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrBalance -> [ProxyBox] Source # | |
ApiResource GetAddrsBalance (SerialList Balance) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrsBalance -> StdMethod Source # resourcePath :: Proxy GetAddrsBalance -> [Text] -> Text Source # queryParams :: GetAddrsBalance -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsBalance -> [ProxyBox] Source # | |
type Rep Balance Source # | |
Defined in Haskoin.Store.Data type Rep Balance = D1 ('MetaData "Balance" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "Balance" 'PrefixI 'True) ((S1 ('MetaSel ('Just "balanceAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: (S1 ('MetaSel ('Just "balanceAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "balanceZero") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: (S1 ('MetaSel ('Just "balanceUnspentCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "balanceTxCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "balanceTotalReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))) |
zeroBalance :: Address -> Balance Source #
nullBalance :: Balance -> Bool Source #
Block Data
Database value for a block entry.
BlockData | |
|
Instances
Transactions
Transaction in relation to an address.
TxRef | |
|
Instances
TxData | |
|
Instances
Eq TxData Source # | |
Ord TxData Source # | |
Show TxData Source # | |
Generic TxData Source # | |
Binary TxData Source # | |
Serial TxData Source # | |
Defined in Haskoin.Store.Data | |
Serialize TxData Source # | |
NFData TxData Source # | |
Defined in Haskoin.Store.Data | |
type Rep TxData Source # | |
Defined in Haskoin.Store.Data type Rep TxData = D1 ('MetaData "TxData" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "TxData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "txDataBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockRef) :*: (S1 ('MetaSel ('Just "txData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Tx) :*: S1 ('MetaSel ('Just "txDataPrevs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (IntMap Prev)))) :*: (S1 ('MetaSel ('Just "txDataDeleted") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "txDataRBF") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "txDataTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))) |
data Transaction Source #
Detailed transaction information.
Transaction | |
|
Instances
transactionToJSON :: Network -> Transaction -> Value Source #
transactionToEncoding :: Network -> Transaction -> Encoding Source #
transactionParseJSON :: Network -> Value -> Parser Transaction Source #
transactionData :: Transaction -> Tx Source #
fromTransaction :: Transaction -> (TxData, IntMap Spender) Source #
toTransaction :: TxData -> IntMap Spender -> Transaction Source #
data StoreInput Source #
StoreCoinbase | |
| |
StoreInput | |
|
Instances
Eq StoreInput Source # | |
Defined in Haskoin.Store.Data (==) :: StoreInput -> StoreInput -> Bool # (/=) :: StoreInput -> StoreInput -> Bool # | |
Ord StoreInput Source # | |
Defined in Haskoin.Store.Data compare :: StoreInput -> StoreInput -> Ordering # (<) :: StoreInput -> StoreInput -> Bool # (<=) :: StoreInput -> StoreInput -> Bool # (>) :: StoreInput -> StoreInput -> Bool # (>=) :: StoreInput -> StoreInput -> Bool # max :: StoreInput -> StoreInput -> StoreInput # min :: StoreInput -> StoreInput -> StoreInput # | |
Read StoreInput Source # | |
Defined in Haskoin.Store.Data readsPrec :: Int -> ReadS StoreInput # readList :: ReadS [StoreInput] # readPrec :: ReadPrec StoreInput # readListPrec :: ReadPrec [StoreInput] # | |
Show StoreInput Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> StoreInput -> ShowS # show :: StoreInput -> String # showList :: [StoreInput] -> ShowS # | |
Generic StoreInput Source # | |
Defined in Haskoin.Store.Data type Rep StoreInput :: Type -> Type # from :: StoreInput -> Rep StoreInput x # to :: Rep StoreInput x -> StoreInput # | |
Hashable StoreInput Source # | |
Defined in Haskoin.Store.Data hashWithSalt :: Int -> StoreInput -> Int # hash :: StoreInput -> Int # | |
Binary StoreInput Source # | |
Defined in Haskoin.Store.Data | |
Serial StoreInput Source # | |
Defined in Haskoin.Store.Data serialize :: MonadPut m => StoreInput -> m () # deserialize :: MonadGet m => m StoreInput # | |
Serialize StoreInput Source # | |
Defined in Haskoin.Store.Data put :: Putter StoreInput # get :: Get StoreInput # | |
NFData StoreInput Source # | |
Defined in Haskoin.Store.Data rnf :: StoreInput -> () | |
type Rep StoreInput Source # | |
Defined in Haskoin.Store.Data type Rep StoreInput = D1 ('MetaData "StoreInput" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "StoreCoinbase" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inputPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OutPoint) :*: S1 ('MetaSel ('Just "inputSequence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "inputSigScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "inputWitness") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WitnessStack))) :+: C1 ('MetaCons "StoreInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inputPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OutPoint) :*: (S1 ('MetaSel ('Just "inputSequence") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "inputSigScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) :*: ((S1 ('MetaSel ('Just "inputPkScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "inputAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "inputWitness") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WitnessStack) :*: S1 ('MetaSel ('Just "inputAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Address)))))) |
storeInputToJSON :: Network -> StoreInput -> Value Source #
storeInputToEncoding :: Network -> StoreInput -> Encoding Source #
storeInputParseJSON :: Network -> Value -> Parser StoreInput Source #
isCoinbase :: StoreInput -> Bool Source #
data StoreOutput Source #
Output information.
StoreOutput | |
|
Instances
storeOutputToJSON :: Network -> StoreOutput -> Value Source #
storeOutputToEncoding :: Network -> StoreOutput -> Encoding Source #
storeOutputParseJSON :: Network -> Value -> Parser StoreOutput Source #
Prev | |
|
Instances
Eq Prev Source # | |
Ord Prev Source # | |
Show Prev Source # | |
Generic Prev Source # | |
Hashable Prev Source # | |
Defined in Haskoin.Store.Data | |
Binary Prev Source # | |
Serial Prev Source # | |
Defined in Haskoin.Store.Data | |
Serialize Prev Source # | |
NFData Prev Source # | |
Defined in Haskoin.Store.Data | |
type Rep Prev Source # | |
Defined in Haskoin.Store.Data type Rep Prev = D1 ('MetaData "Prev" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "Prev" 'PrefixI 'True) (S1 ('MetaSel ('Just "prevScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "prevAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) |
Information about input spending output.
Spender | |
|
Instances
Eq Spender Source # | |
Ord Spender Source # | |
Read Spender Source # | |
Show Spender Source # | |
Generic Spender Source # | |
Hashable Spender Source # | |
Defined in Haskoin.Store.Data | |
ToJSON Spender Source # | |
Defined in Haskoin.Store.Data | |
FromJSON Spender Source # | |
Binary Spender Source # | |
Serial Spender Source # | |
Defined in Haskoin.Store.Data | |
Serialize Spender Source # | |
NFData Spender Source # | |
Defined in Haskoin.Store.Data | |
type Rep Spender Source # | |
Defined in Haskoin.Store.Data type Rep Spender = D1 ('MetaData "Spender" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "Spender" 'PrefixI 'True) (S1 ('MetaSel ('Just "spenderHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash) :*: S1 ('MetaSel ('Just "spenderIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) |
Reference to a block where a transaction is stored.
BlockRef | |
| |
MemRef | |
|
Instances
Eq BlockRef Source # | |
Ord BlockRef Source # | |
Defined in Haskoin.Store.Data | |
Read BlockRef Source # | |
Show BlockRef Source # | |
Generic BlockRef Source # | |
Hashable BlockRef Source # | |
Defined in Haskoin.Store.Data | |
ToJSON BlockRef Source # | |
Defined in Haskoin.Store.Data | |
FromJSON BlockRef Source # | |
Binary BlockRef Source # | |
Serial BlockRef Source # | Serial entities will sort in reverse order. |
Defined in Haskoin.Store.Data | |
Serialize BlockRef Source # | |
NFData BlockRef Source # | |
Defined in Haskoin.Store.Data | |
type Rep BlockRef Source # | |
Defined in Haskoin.Store.Data type Rep BlockRef = D1 ('MetaData "BlockRef" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BlockRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockRefHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHeight) :*: S1 ('MetaSel ('Just "blockRefPos") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :+: C1 ('MetaCons "MemRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "memRefTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnixTime))) |
getUnixTime :: MonadGet m => m Word64 Source #
putUnixTime :: MonadPut m => Word64 -> m () Source #
Binary such that ordering is inverted.
Unspent Outputs
Unspent output.
Unspent | |
|
Instances
Eq Unspent Source # | |
Ord Unspent Source # | Follow same order as in database and cache by inverting outpoint sort order. |
Show Unspent Source # | |
Generic Unspent Source # | |
Hashable Unspent Source # | |
Defined in Haskoin.Store.Data | |
Binary Unspent Source # | |
Serial Unspent Source # | |
Defined in Haskoin.Store.Data | |
Serialize Unspent Source # | |
NFData Unspent Source # | |
Defined in Haskoin.Store.Data | |
Coin Unspent Source # | |
Defined in Haskoin.Store.Data | |
ApiResource GetAddrsUnspent (SerialList Unspent) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrsUnspent -> StdMethod Source # resourcePath :: Proxy GetAddrsUnspent -> [Text] -> Text Source # queryParams :: GetAddrsUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsUnspent -> [ProxyBox] Source # | |
ApiResource GetAddrUnspent (SerialList Unspent) Source # | |
Defined in Haskoin.Store.WebCommon resourceMethod :: Proxy GetAddrUnspent -> StdMethod Source # resourcePath :: Proxy GetAddrUnspent -> [Text] -> Text Source # queryParams :: GetAddrUnspent -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrUnspent -> [ProxyBox] Source # | |
type Rep Unspent Source # | |
Defined in Haskoin.Store.Data type Rep Unspent = D1 ('MetaData "Unspent" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "Unspent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "unspentBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockRef) :*: S1 ('MetaSel ('Just "unspentPoint") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 OutPoint)) :*: (S1 ('MetaSel ('Just "unspentAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "unspentScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "unspentAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Address)))))) |
Extended Public Keys
Instances
Eq XPubSpec Source # | |
Show XPubSpec Source # | |
Generic XPubSpec Source # | |
Hashable XPubSpec Source # | |
Defined in Haskoin.Store.Data | |
Binary XPubSpec Source # | |
Serial XPubSpec Source # | |
Defined in Haskoin.Store.Data | |
Serialize XPubSpec Source # | |
NFData XPubSpec Source # | |
Defined in Haskoin.Store.Data | |
type Rep XPubSpec Source # | |
Defined in Haskoin.Store.Data type Rep XPubSpec = D1 ('MetaData "XPubSpec" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "XPubSpec" 'PrefixI 'True) (S1 ('MetaSel ('Just "xPubSpecKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XPubKey) :*: S1 ('MetaSel ('Just "xPubDeriveType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DeriveType))) |
Address balances for an extended public key.
XPubBal | |
|
Instances
data XPubUnspent Source #
Unspent transaction for extended public key.
XPubUnspent | |
|
Instances
xPubUnspentToJSON :: Network -> XPubUnspent -> Value Source #
xPubUnspentToEncoding :: Network -> XPubUnspent -> Encoding Source #
xPubUnspentParseJSON :: Network -> Value -> Parser XPubUnspent Source #
data XPubSummary Source #
XPubSummary | |
|
Instances
Eq XPubSummary Source # | |
Defined in Haskoin.Store.Data (==) :: XPubSummary -> XPubSummary -> Bool # (/=) :: XPubSummary -> XPubSummary -> Bool # | |
Show XPubSummary Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> XPubSummary -> ShowS # show :: XPubSummary -> String # showList :: [XPubSummary] -> ShowS # | |
Generic XPubSummary Source # | |
Defined in Haskoin.Store.Data type Rep XPubSummary :: Type -> Type # from :: XPubSummary -> Rep XPubSummary x # to :: Rep XPubSummary x -> XPubSummary # | |
ToJSON XPubSummary Source # | |
Defined in Haskoin.Store.Data toJSON :: XPubSummary -> Value # toEncoding :: XPubSummary -> Encoding # toJSONList :: [XPubSummary] -> Value # toEncodingList :: [XPubSummary] -> Encoding # | |
FromJSON XPubSummary Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser XPubSummary # parseJSONList :: Value -> Parser [XPubSummary] # | |
Binary XPubSummary Source # | |
Defined in Haskoin.Store.Data | |
Serial XPubSummary Source # | |
Defined in Haskoin.Store.Data serialize :: MonadPut m => XPubSummary -> m () # deserialize :: MonadGet m => m XPubSummary # | |
Serialize XPubSummary Source # | |
Defined in Haskoin.Store.Data put :: Putter XPubSummary # get :: Get XPubSummary # | |
NFData XPubSummary Source # | |
Defined in Haskoin.Store.Data rnf :: XPubSummary -> () | |
ApiResource GetXPub XPubSummary Source # | |
Defined in Haskoin.Store.WebCommon | |
type Rep XPubSummary Source # | |
Defined in Haskoin.Store.Data type Rep XPubSummary = D1 ('MetaData "XPubSummary" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "XPubSummary" 'PrefixI 'True) ((S1 ('MetaSel ('Just "xPubSummaryConfirmed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "xPubSummaryZero") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "xPubSummaryReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: (S1 ('MetaSel ('Just "xPubUnspentCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "xPubExternalIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "xPubChangeIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) |
data DeriveType Source #
Instances
Other Data
Instances
Eq TxId Source # | |
Show TxId Source # | |
Generic TxId Source # | |
ToJSON TxId Source # | |
Defined in Haskoin.Store.Data | |
FromJSON TxId Source # | |
Binary TxId Source # | |
Serial TxId Source # | |
Defined in Haskoin.Store.Data | |
Serialize TxId Source # | |
NFData TxId Source # | |
Defined in Haskoin.Store.Data | |
ApiResource PostTx TxId Source # | |
Defined in Haskoin.Store.WebCommon | |
type Rep TxId Source # | |
newtype GenericResult a Source #
GenericResult | |
|
Instances
newtype SerialList a Source #
SerialList | |
|
Instances
RawResult | |
|
Instances
newtype RawResultList a Source #
RawResultList | |
|
Instances
data PeerInformation Source #
Information about a connected peer.
PeerInformation | |
|
Instances
class Healthy a where Source #
Instances
Healthy HealthCheck Source # | |
Defined in Haskoin.Store.Data isOK :: HealthCheck -> Bool Source # | |
Healthy MaxHealth Source # | |
Healthy CountHealth Source # | |
Defined in Haskoin.Store.Data isOK :: CountHealth -> Bool Source # | |
Healthy TimeHealth Source # | |
Defined in Haskoin.Store.Data isOK :: TimeHealth -> Bool Source # | |
Healthy BlockHealth Source # | |
Defined in Haskoin.Store.Data isOK :: BlockHealth -> Bool Source # |
data BlockHealth Source #
Instances
data TimeHealth Source #
TimeHealth | |
|
Instances
data CountHealth Source #
Instances
MaxHealth | |
|
Instances
Eq MaxHealth Source # | |
Show MaxHealth Source # | |
Generic MaxHealth Source # | |
ToJSON MaxHealth Source # | |
Defined in Haskoin.Store.Data | |
FromJSON MaxHealth Source # | |
Binary MaxHealth Source # | |
Serial MaxHealth Source # | |
Defined in Haskoin.Store.Data | |
Serialize MaxHealth Source # | |
NFData MaxHealth Source # | |
Defined in Haskoin.Store.Data | |
Healthy MaxHealth Source # | |
type Rep MaxHealth Source # | |
Defined in Haskoin.Store.Data type Rep MaxHealth = D1 ('MetaData "MaxHealth" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "MaxHealth" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxHealthNum") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int64) :*: S1 ('MetaSel ('Just "maxHealthMax") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int64))) |
data HealthCheck Source #
HealthCheck | |
|
Instances
Eq HealthCheck Source # | |
Defined in Haskoin.Store.Data (==) :: HealthCheck -> HealthCheck -> Bool # (/=) :: HealthCheck -> HealthCheck -> Bool # | |
Show HealthCheck Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> HealthCheck -> ShowS # show :: HealthCheck -> String # showList :: [HealthCheck] -> ShowS # | |
Generic HealthCheck Source # | |
Defined in Haskoin.Store.Data type Rep HealthCheck :: Type -> Type # from :: HealthCheck -> Rep HealthCheck x # to :: Rep HealthCheck x -> HealthCheck # | |
ToJSON HealthCheck Source # | |
Defined in Haskoin.Store.Data toJSON :: HealthCheck -> Value # toEncoding :: HealthCheck -> Encoding # toJSONList :: [HealthCheck] -> Value # toEncodingList :: [HealthCheck] -> Encoding # | |
FromJSON HealthCheck Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser HealthCheck # parseJSONList :: Value -> Parser [HealthCheck] # | |
Binary HealthCheck Source # | |
Defined in Haskoin.Store.Data | |
Serial HealthCheck Source # | |
Defined in Haskoin.Store.Data serialize :: MonadPut m => HealthCheck -> m () # deserialize :: MonadGet m => m HealthCheck # | |
Serialize HealthCheck Source # | |
Defined in Haskoin.Store.Data put :: Putter HealthCheck # get :: Get HealthCheck # | |
NFData HealthCheck Source # | |
Defined in Haskoin.Store.Data rnf :: HealthCheck -> () | |
Healthy HealthCheck Source # | |
Defined in Haskoin.Store.Data isOK :: HealthCheck -> Bool Source # | |
ApiResource GetHealth HealthCheck Source # | |
Defined in Haskoin.Store.WebCommon | |
type Rep HealthCheck Source # | |
Defined in Haskoin.Store.Data type Rep HealthCheck = D1 ('MetaData "HealthCheck" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "HealthCheck" 'PrefixI 'True) ((S1 ('MetaSel ('Just "healthBlocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHealth) :*: (S1 ('MetaSel ('Just "healthLastBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TimeHealth) :*: S1 ('MetaSel ('Just "healthLastTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TimeHealth))) :*: ((S1 ('MetaSel ('Just "healthPendingTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MaxHealth) :*: S1 ('MetaSel ('Just "healthPeers") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CountHealth)) :*: (S1 ('MetaSel ('Just "healthNetwork") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Just "healthVersion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String))))) |
Instances
Eq Event Source # | |
Show Event Source # | |
Generic Event Source # | |
ToJSON Event Source # | |
Defined in Haskoin.Store.Data | |
FromJSON Event Source # | |
Binary Event Source # | |
Serial Event Source # | |
Defined in Haskoin.Store.Data | |
Serialize Event Source # | |
NFData Event Source # | |
Defined in Haskoin.Store.Data | |
ApiResource GetEvents (SerialList Event) Source # | |
Defined in Haskoin.Store.WebCommon | |
type Rep Event Source # | |
Defined in Haskoin.Store.Data type Rep Event = D1 ('MetaData "Event" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "EventBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash)) :+: C1 ('MetaCons "EventTx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash))) |
ThingNotFound | |
ServerError | |
BadRequest | |
UserError !String | |
StringError !String | |
TxIndexConflict ![TxHash] | |
ServerTimeout | |
RequestTooLarge |
Instances
Eq Except Source # | |
Ord Except Source # | |
Show Except Source # | |
Generic Except Source # | |
ToJSON Except Source # | |
Defined in Haskoin.Store.Data | |
FromJSON Except Source # | |
Exception Except Source # | |
Defined in Haskoin.Store.Data toException :: Except -> SomeException # fromException :: SomeException -> Maybe Except # displayException :: Except -> String # | |
NFData Except Source # | |
Defined in Haskoin.Store.Data | |
ScottyError Except Source # | |
Defined in Haskoin.Store.Data | |
type Rep Except Source # | |
Defined in Haskoin.Store.Data type Rep Except = D1 ('MetaData "Except" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (((C1 ('MetaCons "ThingNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ServerError" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "BadRequest" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)))) :+: ((C1 ('MetaCons "StringError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String)) :+: C1 ('MetaCons "TxIndexConflict" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [TxHash]))) :+: (C1 ('MetaCons "ServerTimeout" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RequestTooLarge" 'PrefixI 'False) (U1 :: Type -> Type)))) |
Blockchain.info API
data BinfoBlockId Source #
Instances
Instances
Eq BinfoTxId Source # | |
Read BinfoTxId Source # | |
Show BinfoTxId Source # | |
Generic BinfoTxId Source # | |
ToJSON BinfoTxId Source # | |
Defined in Haskoin.Store.Data | |
FromJSON BinfoTxId Source # | |
NFData BinfoTxId Source # | |
Defined in Haskoin.Store.Data | |
Parsable BinfoTxId Source # | |
Defined in Haskoin.Store.Data | |
type Rep BinfoTxId Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTxId = D1 ('MetaData "BinfoTxId" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoTxIdHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash)) :+: C1 ('MetaCons "BinfoTxIdIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) |
data BinfoFilter Source #
BinfoFilterAll | |
BinfoFilterSent | |
BinfoFilterReceived | |
BinfoFilterMoved | |
BinfoFilterConfirmed | |
BinfoFilterMempool |
Instances
Eq BinfoFilter Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoFilter -> BinfoFilter -> Bool # (/=) :: BinfoFilter -> BinfoFilter -> Bool # | |
Show BinfoFilter Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoFilter -> ShowS # show :: BinfoFilter -> String # showList :: [BinfoFilter] -> ShowS # | |
Generic BinfoFilter Source # | |
Defined in Haskoin.Store.Data type Rep BinfoFilter :: Type -> Type # from :: BinfoFilter -> Rep BinfoFilter x # to :: Rep BinfoFilter x -> BinfoFilter # | |
NFData BinfoFilter Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoFilter -> () | |
Parsable BinfoFilter Source # | |
Defined in Haskoin.Store.Data parseParam :: Text -> Either Text BinfoFilter # parseParamList :: Text -> Either Text [BinfoFilter] # | |
type Rep BinfoFilter Source # | |
Defined in Haskoin.Store.Data type Rep BinfoFilter = D1 ('MetaData "BinfoFilter" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) ((C1 ('MetaCons "BinfoFilterAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BinfoFilterSent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BinfoFilterReceived" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "BinfoFilterMoved" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BinfoFilterConfirmed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BinfoFilterMempool" 'PrefixI 'False) (U1 :: Type -> Type)))) |
data BinfoMultiAddr Source #
Instances
Eq BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoMultiAddr -> BinfoMultiAddr -> Bool # (/=) :: BinfoMultiAddr -> BinfoMultiAddr -> Bool # | |
Show BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoMultiAddr -> ShowS # show :: BinfoMultiAddr -> String # showList :: [BinfoMultiAddr] -> ShowS # | |
Generic BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data type Rep BinfoMultiAddr :: Type -> Type # from :: BinfoMultiAddr -> Rep BinfoMultiAddr x # to :: Rep BinfoMultiAddr x -> BinfoMultiAddr # | |
NFData BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoMultiAddr -> () | |
type Rep BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data type Rep BinfoMultiAddr = D1 ('MetaData "BinfoMultiAddr" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoMultiAddr" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoMultiAddrAddresses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [BinfoBalance]) :*: (S1 ('MetaSel ('Just "getBinfoMultiAddrWallet") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoWallet) :*: S1 ('MetaSel ('Just "getBinfoMultiAddrTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [BinfoTx]))) :*: (S1 ('MetaSel ('Just "getBinfoMultiAddrInfo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoInfo) :*: (S1 ('MetaSel ('Just "getBinfoMultiAddrRecommendFee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "getBinfoMultiAddrCashAddr") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))) |
binfoMultiAddrToJSON :: Network -> BinfoMultiAddr -> Value Source #
data BinfoShortBal Source #
Instances
data BinfoBalance Source #
Instances
Eq BinfoBalance Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoBalance -> BinfoBalance -> Bool # (/=) :: BinfoBalance -> BinfoBalance -> Bool # | |
Show BinfoBalance Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoBalance -> ShowS # show :: BinfoBalance -> String # showList :: [BinfoBalance] -> ShowS # | |
Generic BinfoBalance Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBalance :: Type -> Type # from :: BinfoBalance -> Rep BinfoBalance x # to :: Rep BinfoBalance x -> BinfoBalance # | |
NFData BinfoBalance Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoBalance -> () | |
type Rep BinfoBalance Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBalance = D1 ('MetaData "BinfoBalance" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoAddrBalance" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address) :*: S1 ('MetaSel ('Just "getBinfoAddrTxCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "getBinfoAddrReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "getBinfoAddrSent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoAddrBalance") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))) :+: C1 ('MetaCons "BinfoXPubBalance" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoXPubKey") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XPubKey) :*: (S1 ('MetaSel ('Just "getBinfoAddrTxCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoAddrReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "getBinfoAddrSent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoAddrBalance") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "getBinfoXPubAccountIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoXPubChangeIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) |
toBinfoAddrs :: HashMap Address Balance -> HashMap XPubKey [XPubBal] -> HashMap XPubKey Int -> [BinfoBalance] Source #
binfoBalanceToJSON :: Network -> BinfoBalance -> Value Source #
binfoBalanceToEncoding :: Network -> BinfoBalance -> Encoding Source #
binfoBalanceParseJSON :: Network -> Value -> Parser BinfoBalance Source #
data BinfoRawAddr Source #
Instances
Eq BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoRawAddr -> BinfoRawAddr -> Bool # (/=) :: BinfoRawAddr -> BinfoRawAddr -> Bool # | |
Show BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoRawAddr -> ShowS # show :: BinfoRawAddr -> String # showList :: [BinfoRawAddr] -> ShowS # | |
Generic BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data type Rep BinfoRawAddr :: Type -> Type # from :: BinfoRawAddr -> Rep BinfoRawAddr x # to :: Rep BinfoRawAddr x -> BinfoRawAddr # | |
NFData BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoRawAddr -> () | |
type Rep BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data type Rep BinfoRawAddr = D1 ('MetaData "BinfoRawAddr" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoRawAddr" 'PrefixI 'True) (S1 ('MetaSel ('Just "getBinfoRawAddrBalance") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Balance) :*: S1 ('MetaSel ('Just "getBinfoRawAddrTxs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [BinfoTx]))) |
binfoRawAddrToJSON :: Network -> BinfoRawAddr -> Value Source #
binfoRawAddrToEncoding :: Network -> BinfoRawAddr -> Encoding Source #
binfoRawAddrParseJSON :: Network -> Value -> Parser BinfoRawAddr Source #
Instances
Eq BinfoAddr Source # | |
Show BinfoAddr Source # | |
Generic BinfoAddr Source # | |
Hashable BinfoAddr Source # | |
Defined in Haskoin.Store.Data | |
NFData BinfoAddr Source # | |
Defined in Haskoin.Store.Data | |
type Rep BinfoAddr Source # | |
Defined in Haskoin.Store.Data type Rep BinfoAddr = D1 ('MetaData "BinfoAddr" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoAddr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Address)) :+: C1 ('MetaCons "BinfoXpub" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XPubKey))) |
data BinfoWallet Source #
Instances
Eq BinfoWallet Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoWallet -> BinfoWallet -> Bool # (/=) :: BinfoWallet -> BinfoWallet -> Bool # | |
Show BinfoWallet Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoWallet -> ShowS # show :: BinfoWallet -> String # showList :: [BinfoWallet] -> ShowS # | |
Generic BinfoWallet Source # | |
Defined in Haskoin.Store.Data type Rep BinfoWallet :: Type -> Type # from :: BinfoWallet -> Rep BinfoWallet x # to :: Rep BinfoWallet x -> BinfoWallet # | |
ToJSON BinfoWallet Source # | |
Defined in Haskoin.Store.Data toJSON :: BinfoWallet -> Value # toEncoding :: BinfoWallet -> Encoding # toJSONList :: [BinfoWallet] -> Value # toEncodingList :: [BinfoWallet] -> Encoding # | |
FromJSON BinfoWallet Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser BinfoWallet # parseJSONList :: Value -> Parser [BinfoWallet] # | |
NFData BinfoWallet Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoWallet -> () | |
type Rep BinfoWallet Source # | |
Defined in Haskoin.Store.Data type Rep BinfoWallet = D1 ('MetaData "BinfoWallet" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoWallet" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoWalletBalance") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoWalletTxCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "getBinfoWalletFilteredCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "getBinfoWalletTotalReceived") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoWalletTotalSent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))) |
data BinfoUnspent Source #
Instances
Eq BinfoUnspent Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoUnspent -> BinfoUnspent -> Bool # (/=) :: BinfoUnspent -> BinfoUnspent -> Bool # | |
Show BinfoUnspent Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoUnspent -> ShowS # show :: BinfoUnspent -> String # showList :: [BinfoUnspent] -> ShowS # | |
Generic BinfoUnspent Source # | |
Defined in Haskoin.Store.Data type Rep BinfoUnspent :: Type -> Type # from :: BinfoUnspent -> Rep BinfoUnspent x # to :: Rep BinfoUnspent x -> BinfoUnspent # | |
NFData BinfoUnspent Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoUnspent -> () | |
type Rep BinfoUnspent Source # | |
Defined in Haskoin.Store.Data type Rep BinfoUnspent = D1 ('MetaData "BinfoUnspent" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoUnspent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoUnspentHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash) :*: (S1 ('MetaSel ('Just "getBinfoUnspentOutputIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoUnspentScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) :*: ((S1 ('MetaSel ('Just "getBinfoUnspentValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoUnspentConfirmations") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32)) :*: (S1 ('MetaSel ('Just "getBinfoUnspentTxIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoTxId) :*: S1 ('MetaSel ('Just "getBinfoUnspentXPub") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe BinfoXPubPath)))))) |
binfoUnspentToJSON :: Network -> BinfoUnspent -> Value Source #
binfoUnspentToEncoding :: Network -> BinfoUnspent -> Encoding Source #
binfoUnspentParseJSON :: Network -> Value -> Parser BinfoUnspent Source #
binfoHexValue :: Word64 -> Text Source #
newtype BinfoUnspents Source #
Instances
Eq BinfoUnspents Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoUnspents -> BinfoUnspents -> Bool # (/=) :: BinfoUnspents -> BinfoUnspents -> Bool # | |
Show BinfoUnspents Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoUnspents -> ShowS # show :: BinfoUnspents -> String # showList :: [BinfoUnspents] -> ShowS # | |
Generic BinfoUnspents Source # | |
Defined in Haskoin.Store.Data type Rep BinfoUnspents :: Type -> Type # from :: BinfoUnspents -> Rep BinfoUnspents x # to :: Rep BinfoUnspents x -> BinfoUnspents # | |
NFData BinfoUnspents Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoUnspents -> () | |
type Rep BinfoUnspents Source # | |
Defined in Haskoin.Store.Data type Rep BinfoUnspents = D1 ('MetaData "BinfoUnspents" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'True) (C1 ('MetaCons "BinfoUnspents" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BinfoUnspent]))) |
binfoUnspentsToJSON :: Network -> BinfoUnspents -> Value Source #
binfoUnspentsParseJSON :: Network -> Value -> Parser BinfoUnspents Source #
data BinfoBlock Source #
BinfoBlock | |
|
Instances
Eq BinfoBlock Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoBlock -> BinfoBlock -> Bool # (/=) :: BinfoBlock -> BinfoBlock -> Bool # | |
Show BinfoBlock Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoBlock -> ShowS # show :: BinfoBlock -> String # showList :: [BinfoBlock] -> ShowS # | |
Generic BinfoBlock Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBlock :: Type -> Type # from :: BinfoBlock -> Rep BinfoBlock x # to :: Rep BinfoBlock x -> BinfoBlock # | |
NFData BinfoBlock Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoBlock -> () | |
type Rep BinfoBlock Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBlock = D1 ('MetaData "BinfoBlock" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoBlock" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "getBinfoBlockHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash) :*: S1 ('MetaSel ('Just "getBinfoBlockVer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "getBinfoPrevBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash) :*: S1 ('MetaSel ('Just "getBinfoMerkleRoot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Hash256))) :*: ((S1 ('MetaSel ('Just "getBinfoBlockTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoBlockBits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "getBinfoNextBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [BlockHash]) :*: S1 ('MetaSel ('Just "getBinfoBlockFee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))) :*: (((S1 ('MetaSel ('Just "getBinfoBlockNonce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoBlockTxCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "getBinfoBlockSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoBlockIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: ((S1 ('MetaSel ('Just "getBinfoBlockMain") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "getBinfoBlockHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "getBinfoBlockWeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoBlockTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [BinfoTx])))))) |
toBinfoBlock :: BlockData -> [BinfoTx] -> [BlockHash] -> BinfoBlock Source #
binfoBlockToJSON :: Network -> BinfoBlock -> Value Source #
binfoBlockToEncoding :: Network -> BinfoBlock -> Encoding Source #
binfoBlockParseJSON :: Network -> Value -> Parser BinfoBlock Source #
binfoBlocksToJSON :: Network -> [BinfoBlock] -> Value Source #
binfoBlocksToEncoding :: Network -> [BinfoBlock] -> Encoding Source #
binfoBlocksParseJSON :: Network -> Value -> Parser [BinfoBlock] Source #
BinfoTx | |
|
Instances
Eq BinfoTx Source # | |
Show BinfoTx Source # | |
Generic BinfoTx Source # | |
NFData BinfoTx Source # | |
Defined in Haskoin.Store.Data | |
type Rep BinfoTx Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTx = D1 ('MetaData "BinfoTx" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoTx" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "getBinfoTxHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash) :*: S1 ('MetaSel ('Just "getBinfoTxVer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "getBinfoTxVinSz") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoTxVoutSz") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: ((S1 ('MetaSel ('Just "getBinfoTxSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoTxWeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "getBinfoTxFee") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "getBinfoTxRelayedBy") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "getBinfoTxLockTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))))) :*: (((S1 ('MetaSel ('Just "getBinfoTxIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoTxId) :*: S1 ('MetaSel ('Just "getBinfoTxDoubleSpend") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "getBinfoTxRBF") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "getBinfoTxResultBal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (Int64, Int64))))) :*: ((S1 ('MetaSel ('Just "getBinfoTxTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoTxBlockIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Word32))) :*: (S1 ('MetaSel ('Just "getBinfoTxBlockHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Word32)) :*: (S1 ('MetaSel ('Just "getBinfoTxInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BinfoTxInput]) :*: S1 ('MetaSel ('Just "getBinfoTxOutputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BinfoTxOutput]))))))) |
relevantTxs :: HashSet Address -> Bool -> Transaction -> HashSet TxHash Source #
toBinfoTx :: Bool -> HashMap Address (Maybe BinfoXPubPath) -> Bool -> Int64 -> Transaction -> BinfoTx Source #
toBinfoTxSimple :: Bool -> Transaction -> BinfoTx Source #
data BinfoTxInput Source #
Instances
Eq BinfoTxInput Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoTxInput -> BinfoTxInput -> Bool # (/=) :: BinfoTxInput -> BinfoTxInput -> Bool # | |
Show BinfoTxInput Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoTxInput -> ShowS # show :: BinfoTxInput -> String # showList :: [BinfoTxInput] -> ShowS # | |
Generic BinfoTxInput Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTxInput :: Type -> Type # from :: BinfoTxInput -> Rep BinfoTxInput x # to :: Rep BinfoTxInput x -> BinfoTxInput # | |
NFData BinfoTxInput Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoTxInput -> () | |
type Rep BinfoTxInput Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTxInput = D1 ('MetaData "BinfoTxInput" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoTxInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoTxInputSeq") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoTxInputWitness") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)) :*: (S1 ('MetaSel ('Just "getBinfoTxInputScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: (S1 ('MetaSel ('Just "getBinfoTxInputIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoTxInputPrevOut") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe BinfoTxOutput)))))) |
binfoTxInputToJSON :: Network -> BinfoTxInput -> Value Source #
binfoTxInputToEncoding :: Network -> BinfoTxInput -> Encoding Source #
binfoTxInputParseJSON :: Network -> Value -> Parser BinfoTxInput Source #
data BinfoTxOutput Source #
Instances
Eq BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoTxOutput -> BinfoTxOutput -> Bool # (/=) :: BinfoTxOutput -> BinfoTxOutput -> Bool # | |
Show BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoTxOutput -> ShowS # show :: BinfoTxOutput -> String # showList :: [BinfoTxOutput] -> ShowS # | |
Generic BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTxOutput :: Type -> Type # from :: BinfoTxOutput -> Rep BinfoTxOutput x # to :: Rep BinfoTxOutput x -> BinfoTxOutput # | |
NFData BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoTxOutput -> () | |
type Rep BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTxOutput = D1 ('MetaData "BinfoTxOutput" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoTxOutput" 'PrefixI 'True) (((S1 ('MetaSel ('Just "getBinfoTxOutputType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "getBinfoTxOutputSpent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "getBinfoTxOutputValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "getBinfoTxOutputIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: ((S1 ('MetaSel ('Just "getBinfoTxOutputTxIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoTxId) :*: S1 ('MetaSel ('Just "getBinfoTxOutputScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)) :*: (S1 ('MetaSel ('Just "getBinfoTxOutputSpenders") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [BinfoSpender]) :*: (S1 ('MetaSel ('Just "getBinfoTxOutputAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Address)) :*: S1 ('MetaSel ('Just "getBinfoTxOutputXPub") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe BinfoXPubPath))))))) |
binfoTxOutputToJSON :: Network -> BinfoTxOutput -> Value Source #
binfoTxOutputParseJSON :: Network -> Value -> Parser BinfoTxOutput Source #
data BinfoSpender Source #
Instances
data BinfoXPubPath Source #
Instances
binfoXPubPathToJSON :: Network -> BinfoXPubPath -> Value Source #
binfoXPubPathParseJSON :: Network -> Value -> Parser BinfoXPubPath Source #
Instances
Eq BinfoInfo Source # | |
Show BinfoInfo Source # | |
Generic BinfoInfo Source # | |
ToJSON BinfoInfo Source # | |
Defined in Haskoin.Store.Data | |
FromJSON BinfoInfo Source # | |
NFData BinfoInfo Source # | |
Defined in Haskoin.Store.Data | |
type Rep BinfoInfo Source # | |
Defined in Haskoin.Store.Data type Rep BinfoInfo = D1 ('MetaData "BinfoInfo" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoConnected") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoConversion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "getBinfoLocal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoSymbol) :*: (S1 ('MetaSel ('Just "getBinfoBTC") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoSymbol) :*: S1 ('MetaSel ('Just "getBinfoLatestBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoBlockInfo))))) |
data BinfoBlockInfo Source #
Instances
Eq BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoBlockInfo -> BinfoBlockInfo -> Bool # (/=) :: BinfoBlockInfo -> BinfoBlockInfo -> Bool # | |
Show BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoBlockInfo -> ShowS # show :: BinfoBlockInfo -> String # showList :: [BinfoBlockInfo] -> ShowS # | |
Generic BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBlockInfo :: Type -> Type # from :: BinfoBlockInfo -> Rep BinfoBlockInfo x # to :: Rep BinfoBlockInfo x -> BinfoBlockInfo # | |
ToJSON BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data toJSON :: BinfoBlockInfo -> Value # toEncoding :: BinfoBlockInfo -> Encoding # toJSONList :: [BinfoBlockInfo] -> Value # toEncodingList :: [BinfoBlockInfo] -> Encoding # | |
FromJSON BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser BinfoBlockInfo # parseJSONList :: Value -> Parser [BinfoBlockInfo] # | |
NFData BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoBlockInfo -> () | |
type Rep BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBlockInfo = D1 ('MetaData "BinfoBlockInfo" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoBlockInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoBlockInfoHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash) :*: S1 ('MetaSel ('Just "getBinfoBlockInfoHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHeight)) :*: (S1 ('MetaSel ('Just "getBinfoBlockInfoTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "getBinfoBlockInfoIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHeight)))) |
data BinfoSymbol Source #
Instances
Eq BinfoSymbol Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoSymbol -> BinfoSymbol -> Bool # (/=) :: BinfoSymbol -> BinfoSymbol -> Bool # | |
Show BinfoSymbol Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoSymbol -> ShowS # show :: BinfoSymbol -> String # showList :: [BinfoSymbol] -> ShowS # | |
Generic BinfoSymbol Source # | |
Defined in Haskoin.Store.Data type Rep BinfoSymbol :: Type -> Type # from :: BinfoSymbol -> Rep BinfoSymbol x # to :: Rep BinfoSymbol x -> BinfoSymbol # | |
ToJSON BinfoSymbol Source # | |
Defined in Haskoin.Store.Data toJSON :: BinfoSymbol -> Value # toEncoding :: BinfoSymbol -> Encoding # toJSONList :: [BinfoSymbol] -> Value # toEncodingList :: [BinfoSymbol] -> Encoding # | |
FromJSON BinfoSymbol Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser BinfoSymbol # parseJSONList :: Value -> Parser [BinfoSymbol] # | |
NFData BinfoSymbol Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoSymbol -> () | |
Default BinfoSymbol Source # | |
Defined in Haskoin.Store.Data def :: BinfoSymbol # | |
type Rep BinfoSymbol Source # | |
Defined in Haskoin.Store.Data type Rep BinfoSymbol = D1 ('MetaData "BinfoSymbol" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoSymbol" 'PrefixI 'True) ((S1 ('MetaSel ('Just "getBinfoSymbolCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "getBinfoSymbolString") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "getBinfoSymbolName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "getBinfoSymbolConversion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "getBinfoSymbolAfter") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "getBinfoSymbolLocal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))) |
data BinfoTicker Source #
BinfoTicker | |
|
Instances
Eq BinfoTicker Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoTicker -> BinfoTicker -> Bool # (/=) :: BinfoTicker -> BinfoTicker -> Bool # | |
Show BinfoTicker Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoTicker -> ShowS # show :: BinfoTicker -> String # showList :: [BinfoTicker] -> ShowS # | |
Generic BinfoTicker Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTicker :: Type -> Type # from :: BinfoTicker -> Rep BinfoTicker x # to :: Rep BinfoTicker x -> BinfoTicker # | |
ToJSON BinfoTicker Source # | |
Defined in Haskoin.Store.Data toJSON :: BinfoTicker -> Value # toEncoding :: BinfoTicker -> Encoding # toJSONList :: [BinfoTicker] -> Value # toEncodingList :: [BinfoTicker] -> Encoding # | |
FromJSON BinfoTicker Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser BinfoTicker # parseJSONList :: Value -> Parser [BinfoTicker] # | |
NFData BinfoTicker Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoTicker -> () | |
Default BinfoTicker Source # | |
Defined in Haskoin.Store.Data def :: BinfoTicker # | |
type Rep BinfoTicker Source # | |
Defined in Haskoin.Store.Data type Rep BinfoTicker = D1 ('MetaData "BinfoTicker" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoTicker" 'PrefixI 'True) ((S1 ('MetaSel ('Just "binfoTicker15m") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "binfoTickerLast") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "binfoTickerBuy") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "binfoTickerSell") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "binfoTickerSymbol") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))))) |
BinfoRate | |
|
Instances
Eq BinfoRate Source # | |
Show BinfoRate Source # | |
Generic BinfoRate Source # | |
ToJSON BinfoRate Source # | |
Defined in Haskoin.Store.Data | |
FromJSON BinfoRate Source # | |
NFData BinfoRate Source # | |
Defined in Haskoin.Store.Data | |
type Rep BinfoRate Source # | |
Defined in Haskoin.Store.Data type Rep BinfoRate = D1 ('MetaData "BinfoRate" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoRate" 'PrefixI 'True) (S1 ('MetaSel ('Just "binfoRateTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "binfoRatePrice") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "binfoRateVol24") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))) |
data BinfoHistory Source #
Instances
Eq BinfoHistory Source # | |
Defined in Haskoin.Store.Data (==) :: BinfoHistory -> BinfoHistory -> Bool # (/=) :: BinfoHistory -> BinfoHistory -> Bool # | |
Show BinfoHistory Source # | |
Defined in Haskoin.Store.Data showsPrec :: Int -> BinfoHistory -> ShowS # show :: BinfoHistory -> String # showList :: [BinfoHistory] -> ShowS # | |
Generic BinfoHistory Source # | |
Defined in Haskoin.Store.Data type Rep BinfoHistory :: Type -> Type # from :: BinfoHistory -> Rep BinfoHistory x # to :: Rep BinfoHistory x -> BinfoHistory # | |
ToJSON BinfoHistory Source # | |
Defined in Haskoin.Store.Data toJSON :: BinfoHistory -> Value # toEncoding :: BinfoHistory -> Encoding # toJSONList :: [BinfoHistory] -> Value # toEncodingList :: [BinfoHistory] -> Encoding # | |
FromJSON BinfoHistory Source # | |
Defined in Haskoin.Store.Data parseJSON :: Value -> Parser BinfoHistory # parseJSONList :: Value -> Parser [BinfoHistory] # | |
NFData BinfoHistory Source # | |
Defined in Haskoin.Store.Data rnf :: BinfoHistory -> () | |
type Rep BinfoHistory Source # | |
Defined in Haskoin.Store.Data type Rep BinfoHistory = D1 ('MetaData "BinfoHistory" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoHistory" 'PrefixI 'True) (((S1 ('MetaSel ('Just "binfoHistoryDate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "binfoHistoryTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "binfoHistoryType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "binfoHistoryAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: ((S1 ('MetaSel ('Just "binfoHistoryValueThen") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "binfoHistoryValueNow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "binfoHistoryExchangeRateThen") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "binfoHistoryTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash))))) |
toBinfoHistory :: Int64 -> Word64 -> Double -> Double -> TxHash -> BinfoHistory Source #