| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Haskoin.Store.Data
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.
Constructors
| Balance | |
Fields
| |
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 Methods 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 Methods 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.
Constructors
| BlockData | |
Fields
| |
Instances
Transactions
Transaction in relation to an address.
Constructors
| TxRef | |
Fields
| |
Instances
Constructors
| TxData | |
Fields
| |
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.
Constructors
| Transaction | |
Fields
| |
Instances
| Eq Transaction Source # | |
Defined in Haskoin.Store.Data | |
| Ord Transaction Source # | |
Defined in Haskoin.Store.Data Methods compare :: Transaction -> Transaction -> Ordering # (<) :: Transaction -> Transaction -> Bool # (<=) :: Transaction -> Transaction -> Bool # (>) :: Transaction -> Transaction -> Bool # (>=) :: Transaction -> Transaction -> Bool # max :: Transaction -> Transaction -> Transaction # min :: Transaction -> Transaction -> Transaction # | |
| Show Transaction Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> Transaction -> ShowS # show :: Transaction -> String # showList :: [Transaction] -> ShowS # | |
| Generic Transaction Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep Transaction :: Type -> Type # | |
| Hashable Transaction Source # | |
Defined in Haskoin.Store.Data | |
| Binary Transaction Source # | |
Defined in Haskoin.Store.Data | |
| Serial Transaction Source # | |
Defined in Haskoin.Store.Data | |
| Serialize Transaction Source # | |
Defined in Haskoin.Store.Data | |
| NFData Transaction Source # | |
Defined in Haskoin.Store.Data Methods rnf :: Transaction -> () | |
| ApiResource GetTx Transaction Source # | |
Defined in Haskoin.Store.WebCommon | |
| ApiResource GetXPubTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetXPubTxsFull -> StdMethod Source # resourcePath :: Proxy GetXPubTxsFull -> [Text] -> Text Source # queryParams :: GetXPubTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetXPubTxsFull -> [ProxyBox] Source # | |
| ApiResource GetAddrsTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrsTxsFull -> StdMethod Source # resourcePath :: Proxy GetAddrsTxsFull -> [Text] -> Text Source # queryParams :: GetAddrsTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrsTxsFull -> [ProxyBox] Source # | |
| ApiResource GetAddrTxsFull (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetAddrTxsFull -> StdMethod Source # resourcePath :: Proxy GetAddrTxsFull -> [Text] -> Text Source # queryParams :: GetAddrTxsFull -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetAddrTxsFull -> [ProxyBox] Source # | |
| ApiResource GetTxsBlock (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon Methods resourceMethod :: Proxy GetTxsBlock -> StdMethod Source # resourcePath :: Proxy GetTxsBlock -> [Text] -> Text Source # queryParams :: GetTxsBlock -> ([ParamBox], [ParamBox]) Source # captureParams :: Proxy GetTxsBlock -> [ProxyBox] Source # resourceBody :: GetTxsBlock -> Maybe PostBox Source # | |
| ApiResource GetTxs (SerialList Transaction) Source # | |
Defined in Haskoin.Store.WebCommon | |
| type Rep Transaction Source # | |
Defined in Haskoin.Store.Data type Rep Transaction = D1 ('MetaData "Transaction" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "Transaction" 'PrefixI 'True) (((S1 ('MetaSel ('Just "transactionBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockRef) :*: (S1 ('MetaSel ('Just "transactionVersion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "transactionLockTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: (S1 ('MetaSel ('Just "transactionInputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [StoreInput]) :*: (S1 ('MetaSel ('Just "transactionOutputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [StoreOutput]) :*: S1 ('MetaSel ('Just "transactionDeleted") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "transactionRBF") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "transactionTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "transactionId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash))) :*: (S1 ('MetaSel ('Just "transactionSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "transactionWeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "transactionFees") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))))) | |
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 #
Constructors
| StoreCoinbase | |
Fields
| |
| StoreInput | |
Fields
| |
Instances
| Eq StoreInput Source # | |
Defined in Haskoin.Store.Data | |
| Ord StoreInput Source # | |
Defined in Haskoin.Store.Data Methods 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 Methods readsPrec :: Int -> ReadS StoreInput # readList :: ReadS [StoreInput] # readPrec :: ReadPrec StoreInput # readListPrec :: ReadPrec [StoreInput] # | |
| Show StoreInput Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> StoreInput -> ShowS # show :: StoreInput -> String # showList :: [StoreInput] -> ShowS # | |
| Generic StoreInput Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep StoreInput :: Type -> Type # | |
| Hashable StoreInput Source # | |
Defined in Haskoin.Store.Data | |
| Binary StoreInput Source # | |
Defined in Haskoin.Store.Data | |
| Serial StoreInput Source # | |
Defined in Haskoin.Store.Data | |
| Serialize StoreInput Source # | |
Defined in Haskoin.Store.Data | |
| NFData StoreInput Source # | |
Defined in Haskoin.Store.Data Methods 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.
Constructors
| StoreOutput | |
Fields
| |
Instances
storeOutputToJSON :: Network -> StoreOutput -> Value Source #
storeOutputToEncoding :: Network -> StoreOutput -> Encoding Source #
storeOutputParseJSON :: Network -> Value -> Parser StoreOutput Source #
Constructors
| Prev | |
Fields
| |
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.
Constructors
| Spender | |
Fields
| |
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.
Constructors
| BlockRef | |
Fields
| |
| MemRef | |
Fields
| |
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.
Constructors
| Unspent | |
Fields
| |
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 Methods 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 Methods 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
Constructors
| XPubSpec | |
Fields
| |
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.
Constructors
| XPubBal | |
Fields
| |
Instances
data XPubUnspent Source #
Unspent transaction for extended public key.
Constructors
| XPubUnspent | |
Fields
| |
Instances
xPubUnspentToJSON :: Network -> XPubUnspent -> Value Source #
xPubUnspentToEncoding :: Network -> XPubUnspent -> Encoding Source #
xPubUnspentParseJSON :: Network -> Value -> Parser XPubUnspent Source #
data XPubSummary Source #
Constructors
| XPubSummary | |
Fields
| |
Instances
| Eq XPubSummary Source # | |
Defined in Haskoin.Store.Data | |
| Show XPubSummary Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> XPubSummary -> ShowS # show :: XPubSummary -> String # showList :: [XPubSummary] -> ShowS # | |
| Generic XPubSummary Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep XPubSummary :: Type -> Type # | |
| ToJSON XPubSummary Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: XPubSummary -> Value # toEncoding :: XPubSummary -> Encoding # toJSONList :: [XPubSummary] -> Value # toEncodingList :: [XPubSummary] -> Encoding # | |
| FromJSON XPubSummary Source # | |
Defined in Haskoin.Store.Data | |
| Binary XPubSummary Source # | |
Defined in Haskoin.Store.Data | |
| Serial XPubSummary Source # | |
Defined in Haskoin.Store.Data | |
| Serialize XPubSummary Source # | |
Defined in Haskoin.Store.Data | |
| NFData XPubSummary Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| DeriveNormal | |
| DeriveP2SH | |
| DeriveP2WPKH |
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 #
Constructors
| GenericResult | |
Fields
| |
Instances
newtype SerialList a Source #
Constructors
| SerialList | |
Fields
| |
Instances
Constructors
| RawResult | |
Fields
| |
Instances
newtype RawResultList a Source #
Constructors
| RawResultList | |
Fields
| |
Instances
data PeerInformation Source #
Information about a connected peer.
Constructors
| PeerInformation | |
Fields
| |
Instances
class Healthy a where Source #
Instances
| Healthy HealthCheck Source # | |
Defined in Haskoin.Store.Data Methods isOK :: HealthCheck -> Bool Source # | |
| Healthy MaxHealth Source # | |
| Healthy CountHealth Source # | |
Defined in Haskoin.Store.Data Methods isOK :: CountHealth -> Bool Source # | |
| Healthy TimeHealth Source # | |
Defined in Haskoin.Store.Data Methods isOK :: TimeHealth -> Bool Source # | |
| Healthy BlockHealth Source # | |
Defined in Haskoin.Store.Data Methods isOK :: BlockHealth -> Bool Source # | |
data BlockHealth Source #
Constructors
| BlockHealth | |
Fields | |
Instances
| Eq BlockHealth Source # | |
Defined in Haskoin.Store.Data | |
| Show BlockHealth Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BlockHealth -> ShowS # show :: BlockHealth -> String # showList :: [BlockHealth] -> ShowS # | |
| Generic BlockHealth Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BlockHealth :: Type -> Type # | |
| ToJSON BlockHealth Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BlockHealth -> Value # toEncoding :: BlockHealth -> Encoding # toJSONList :: [BlockHealth] -> Value # toEncodingList :: [BlockHealth] -> Encoding # | |
| FromJSON BlockHealth Source # | |
Defined in Haskoin.Store.Data | |
| Binary BlockHealth Source # | |
Defined in Haskoin.Store.Data | |
| Serial BlockHealth Source # | |
Defined in Haskoin.Store.Data | |
| Serialize BlockHealth Source # | |
Defined in Haskoin.Store.Data | |
| NFData BlockHealth Source # | |
Defined in Haskoin.Store.Data Methods rnf :: BlockHealth -> () | |
| Healthy BlockHealth Source # | |
Defined in Haskoin.Store.Data Methods isOK :: BlockHealth -> Bool Source # | |
| type Rep BlockHealth Source # | |
Defined in Haskoin.Store.Data type Rep BlockHealth = D1 ('MetaData "BlockHealth" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BlockHealth" 'PrefixI 'True) (S1 ('MetaSel ('Just "blockHealthHeaders") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHeight) :*: (S1 ('MetaSel ('Just "blockHealthBlocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHeight) :*: S1 ('MetaSel ('Just "blockHealthMaxDiff") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32)))) | |
data TimeHealth Source #
Constructors
| TimeHealth | |
Fields
| |
Instances
data CountHealth Source #
Constructors
| CountHealth | |
Fields
| |
Instances
Constructors
| MaxHealth | |
Fields
| |
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 #
Constructors
| HealthCheck | |
Fields
| |
Instances
| Eq HealthCheck Source # | |
Defined in Haskoin.Store.Data | |
| Show HealthCheck Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> HealthCheck -> ShowS # show :: HealthCheck -> String # showList :: [HealthCheck] -> ShowS # | |
| Generic HealthCheck Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep HealthCheck :: Type -> Type # | |
| ToJSON HealthCheck Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: HealthCheck -> Value # toEncoding :: HealthCheck -> Encoding # toJSONList :: [HealthCheck] -> Value # toEncodingList :: [HealthCheck] -> Encoding # | |
| FromJSON HealthCheck Source # | |
Defined in Haskoin.Store.Data | |
| Binary HealthCheck Source # | |
Defined in Haskoin.Store.Data | |
| Serial HealthCheck Source # | |
Defined in Haskoin.Store.Data | |
| Serialize HealthCheck Source # | |
Defined in Haskoin.Store.Data | |
| NFData HealthCheck Source # | |
Defined in Haskoin.Store.Data Methods rnf :: HealthCheck -> () | |
| Healthy HealthCheck Source # | |
Defined in Haskoin.Store.Data Methods 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))))) | |
Constructors
| EventBlock !BlockHash | |
| EventTx !TxHash |
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))) | |
Constructors
| 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 Methods 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 #
Constructors
| BinfoBlockHash !BlockHash | |
| BinfoBlockIndex !Word32 |
Instances
| Eq BinfoBlockId Source # | |
Defined in Haskoin.Store.Data | |
| Read BinfoBlockId Source # | |
Defined in Haskoin.Store.Data Methods readsPrec :: Int -> ReadS BinfoBlockId # readList :: ReadS [BinfoBlockId] # readPrec :: ReadPrec BinfoBlockId # readListPrec :: ReadPrec [BinfoBlockId] # | |
| Show BinfoBlockId Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoBlockId -> ShowS # show :: BinfoBlockId -> String # showList :: [BinfoBlockId] -> ShowS # | |
| Generic BinfoBlockId Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoBlockId :: Type -> Type # | |
| NFData BinfoBlockId Source # | |
Defined in Haskoin.Store.Data Methods rnf :: BinfoBlockId -> () | |
| Parsable BinfoBlockId Source # | |
Defined in Haskoin.Store.Data Methods parseParam :: Text -> Either Text BinfoBlockId # parseParamList :: Text -> Either Text [BinfoBlockId] # | |
| type Rep BinfoBlockId Source # | |
Defined in Haskoin.Store.Data type Rep BinfoBlockId = D1 ('MetaData "BinfoBlockId" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoBlockHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash)) :+: C1 ('MetaCons "BinfoBlockIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) | |
Constructors
| BinfoTxIdHash !TxHash | |
| BinfoTxIdIndex !Word64 |
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 #
Constructors
| BinfoFilterAll | |
| BinfoFilterSent | |
| BinfoFilterReceived | |
| BinfoFilterMoved | |
| BinfoFilterConfirmed | |
| BinfoFilterMempool |
Instances
| Eq BinfoFilter Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoFilter Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoFilter -> ShowS # show :: BinfoFilter -> String # showList :: [BinfoFilter] -> ShowS # | |
| Generic BinfoFilter Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoFilter :: Type -> Type # | |
| NFData BinfoFilter Source # | |
Defined in Haskoin.Store.Data Methods rnf :: BinfoFilter -> () | |
| Parsable BinfoFilter Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoMultiAddr | |
Instances
| Eq BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data Methods (==) :: BinfoMultiAddr -> BinfoMultiAddr -> Bool # (/=) :: BinfoMultiAddr -> BinfoMultiAddr -> Bool # | |
| Show BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoMultiAddr -> ShowS # show :: BinfoMultiAddr -> String # showList :: [BinfoMultiAddr] -> ShowS # | |
| Generic BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoMultiAddr :: Type -> Type # Methods from :: BinfoMultiAddr -> Rep BinfoMultiAddr x # to :: Rep BinfoMultiAddr x -> BinfoMultiAddr # | |
| NFData BinfoMultiAddr Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoShortBal | |
Fields | |
Instances
data BinfoBalance Source #
Constructors
| BinfoAddrBalance | |
Fields | |
| BinfoXPubBalance | |
Fields | |
Instances
| Eq BinfoBalance Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoBalance Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoBalance -> ShowS # show :: BinfoBalance -> String # showList :: [BinfoBalance] -> ShowS # | |
| Generic BinfoBalance Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoBalance :: Type -> Type # | |
| NFData BinfoBalance Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoRawAddr | |
Fields | |
Instances
| Eq BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoRawAddr -> ShowS # show :: BinfoRawAddr -> String # showList :: [BinfoRawAddr] -> ShowS # | |
| Generic BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoRawAddr :: Type -> Type # | |
| NFData BinfoRawAddr Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoWallet | |
Instances
| Eq BinfoWallet Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoWallet Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoWallet -> ShowS # show :: BinfoWallet -> String # showList :: [BinfoWallet] -> ShowS # | |
| Generic BinfoWallet Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoWallet :: Type -> Type # | |
| ToJSON BinfoWallet Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BinfoWallet -> Value # toEncoding :: BinfoWallet -> Encoding # toJSONList :: [BinfoWallet] -> Value # toEncodingList :: [BinfoWallet] -> Encoding # | |
| FromJSON BinfoWallet Source # | |
Defined in Haskoin.Store.Data | |
| NFData BinfoWallet Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoUnspent | |
Instances
| Eq BinfoUnspent Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoUnspent Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoUnspent -> ShowS # show :: BinfoUnspent -> String # showList :: [BinfoUnspent] -> ShowS # | |
| Generic BinfoUnspent Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoUnspent :: Type -> Type # | |
| NFData BinfoUnspent Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoUnspents [BinfoUnspent] |
Instances
| Eq BinfoUnspents Source # | |
Defined in Haskoin.Store.Data Methods (==) :: BinfoUnspents -> BinfoUnspents -> Bool # (/=) :: BinfoUnspents -> BinfoUnspents -> Bool # | |
| Show BinfoUnspents Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoUnspents -> ShowS # show :: BinfoUnspents -> String # showList :: [BinfoUnspents] -> ShowS # | |
| Generic BinfoUnspents Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoUnspents :: Type -> Type # | |
| NFData BinfoUnspents Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoBlock | |
Fields
| |
Instances
| Eq BinfoBlock Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoBlock Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoBlock -> ShowS # show :: BinfoBlock -> String # showList :: [BinfoBlock] -> ShowS # | |
| Generic BinfoBlock Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoBlock :: Type -> Type # | |
| NFData BinfoBlock Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoTx | |
Fields
| |
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 #
Constructors
| BinfoTxInput | |
Instances
| Eq BinfoTxInput Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoTxInput Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoTxInput -> ShowS # show :: BinfoTxInput -> String # showList :: [BinfoTxInput] -> ShowS # | |
| Generic BinfoTxInput Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoTxInput :: Type -> Type # | |
| NFData BinfoTxInput Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
Instances
| Eq BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data Methods (==) :: BinfoTxOutput -> BinfoTxOutput -> Bool # (/=) :: BinfoTxOutput -> BinfoTxOutput -> Bool # | |
| Show BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoTxOutput -> ShowS # show :: BinfoTxOutput -> String # showList :: [BinfoTxOutput] -> ShowS # | |
| Generic BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoTxOutput :: Type -> Type # | |
| NFData BinfoTxOutput Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoSpender | |
Fields | |
Instances
| Eq BinfoSpender Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoSpender Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoSpender -> ShowS # show :: BinfoSpender -> String # showList :: [BinfoSpender] -> ShowS # | |
| Generic BinfoSpender Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoSpender :: Type -> Type # | |
| ToJSON BinfoSpender Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BinfoSpender -> Value # toEncoding :: BinfoSpender -> Encoding # toJSONList :: [BinfoSpender] -> Value # toEncodingList :: [BinfoSpender] -> Encoding # | |
| FromJSON BinfoSpender Source # | |
Defined in Haskoin.Store.Data | |
| NFData BinfoSpender Source # | |
Defined in Haskoin.Store.Data Methods rnf :: BinfoSpender -> () | |
| type Rep BinfoSpender Source # | |
Defined in Haskoin.Store.Data type Rep BinfoSpender = D1 ('MetaData "BinfoSpender" "Haskoin.Store.Data" "haskoin-store-data-0.52.6-inplace" 'False) (C1 ('MetaCons "BinfoSpender" 'PrefixI 'True) (S1 ('MetaSel ('Just "getBinfoSpenderTxIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BinfoTxId) :*: S1 ('MetaSel ('Just "getBinfoSpenderIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) | |
data BinfoXPubPath Source #
Constructors
| BinfoXPubPath | |
Fields | |
Instances
binfoXPubPathToJSON :: Network -> BinfoXPubPath -> Value Source #
binfoXPubPathParseJSON :: Network -> Value -> Parser BinfoXPubPath Source #
Constructors
| BinfoInfo | |
Fields | |
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 #
Constructors
| BinfoBlockInfo | |
Instances
| Eq BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data Methods (==) :: BinfoBlockInfo -> BinfoBlockInfo -> Bool # (/=) :: BinfoBlockInfo -> BinfoBlockInfo -> Bool # | |
| Show BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoBlockInfo -> ShowS # show :: BinfoBlockInfo -> String # showList :: [BinfoBlockInfo] -> ShowS # | |
| Generic BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoBlockInfo :: Type -> Type # Methods from :: BinfoBlockInfo -> Rep BinfoBlockInfo x # to :: Rep BinfoBlockInfo x -> BinfoBlockInfo # | |
| ToJSON BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BinfoBlockInfo -> Value # toEncoding :: BinfoBlockInfo -> Encoding # toJSONList :: [BinfoBlockInfo] -> Value # toEncodingList :: [BinfoBlockInfo] -> Encoding # | |
| FromJSON BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data Methods parseJSON :: Value -> Parser BinfoBlockInfo # parseJSONList :: Value -> Parser [BinfoBlockInfo] # | |
| NFData BinfoBlockInfo Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoSymbol | |
Fields | |
Instances
| Eq BinfoSymbol Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoSymbol Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoSymbol -> ShowS # show :: BinfoSymbol -> String # showList :: [BinfoSymbol] -> ShowS # | |
| Generic BinfoSymbol Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoSymbol :: Type -> Type # | |
| ToJSON BinfoSymbol Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BinfoSymbol -> Value # toEncoding :: BinfoSymbol -> Encoding # toJSONList :: [BinfoSymbol] -> Value # toEncodingList :: [BinfoSymbol] -> Encoding # | |
| FromJSON BinfoSymbol Source # | |
Defined in Haskoin.Store.Data | |
| NFData BinfoSymbol Source # | |
Defined in Haskoin.Store.Data Methods rnf :: BinfoSymbol -> () | |
| Default BinfoSymbol Source # | |
Defined in Haskoin.Store.Data Methods 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 #
Constructors
| BinfoTicker | |
Fields
| |
Instances
| Eq BinfoTicker Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoTicker Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoTicker -> ShowS # show :: BinfoTicker -> String # showList :: [BinfoTicker] -> ShowS # | |
| Generic BinfoTicker Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoTicker :: Type -> Type # | |
| ToJSON BinfoTicker Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BinfoTicker -> Value # toEncoding :: BinfoTicker -> Encoding # toJSONList :: [BinfoTicker] -> Value # toEncodingList :: [BinfoTicker] -> Encoding # | |
| FromJSON BinfoTicker Source # | |
Defined in Haskoin.Store.Data | |
| NFData BinfoTicker Source # | |
Defined in Haskoin.Store.Data Methods rnf :: BinfoTicker -> () | |
| Default BinfoTicker Source # | |
Defined in Haskoin.Store.Data Methods 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))))) | |
Constructors
| BinfoRate | |
Fields
| |
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 #
Constructors
| BinfoHistory | |
Fields | |
Instances
| Eq BinfoHistory Source # | |
Defined in Haskoin.Store.Data | |
| Show BinfoHistory Source # | |
Defined in Haskoin.Store.Data Methods showsPrec :: Int -> BinfoHistory -> ShowS # show :: BinfoHistory -> String # showList :: [BinfoHistory] -> ShowS # | |
| Generic BinfoHistory Source # | |
Defined in Haskoin.Store.Data Associated Types type Rep BinfoHistory :: Type -> Type # | |
| ToJSON BinfoHistory Source # | |
Defined in Haskoin.Store.Data Methods toJSON :: BinfoHistory -> Value # toEncoding :: BinfoHistory -> Encoding # toJSONList :: [BinfoHistory] -> Value # toEncodingList :: [BinfoHistory] -> Encoding # | |
| FromJSON BinfoHistory Source # | |
Defined in Haskoin.Store.Data | |
| NFData BinfoHistory Source # | |
Defined in Haskoin.Store.Data Methods 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 #