Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Mamba = Mamba {}
- deserialise :: Show err => (AsType a -> ByteString -> Either err a) -> AsType a -> Text -> Either Text a
- deserialiseBs :: Show err => (AsType a -> ByteString -> Either err a) -> AsType a -> ByteString -> Either Text a
- data GetCurrentSyncedBlock = GetCurrentSyncedBlock {
- getCurrentSyncedBlock_blockNo :: BlockNo
- getCurrentSyncedBlock_blockTimestamp :: UTCTime
- getCurrentSyncedBlock_blockHeaderHash :: Hash BlockHeader
- getCurrentSyncedBlock_slotNo :: SlotNo
- getCurrentSyncedBlock_epochNo :: Maybe EpochNo
- getCurrentSyncedBlock_era :: LedgerEra
- data GetUtxosFromAddress = GetUtxosFromAddress {
- getUtxosFromAddress_blockHeaderHash :: Hash BlockHeader
- getUtxosFromAddress_slotNo :: SlotNo
- getUtxosFromAddress_blockNo :: BlockNo
- getUtxosFromAddress_txIndexInBlock :: TxIndexInBlock
- getUtxosFromAddress_txId :: TxId
- getUtxosFromAddress_txIx :: TxIx
- getUtxosFromAddress_txInputs :: [TxIn]
- getUtxosFromAddress_value :: Value
- getUtxosFromAddress_datum :: Maybe (Hash ScriptData)
- getUtxosFromAddress_datumHash :: Maybe (Hash ScriptData)
- getUtxosFromAddress_spentBy :: Maybe (SlotNo, TxId)
- data GetBurnTokensEvents = GetBurnTokensEvents {
- getBurnTokensEvents_blockHeaderHash :: Hash BlockHeader
- getBurnTokensEvents_slotNo :: SlotNo
- getBurnTokensEvents_blockNo :: BlockNo
- getBurnTokensEvents_txId :: TxId
- getBurnTokensEvents_redeemer :: ScriptData
- getBurnTokensEvents_burntAmount :: Quantity
- getBurnTokensEvents_isStable :: Bool
- data GetNonceByEpoch = GetNonceByEpoch {
- getNonceByEpoch_blockHeaderHash :: Hash BlockHeader
- getNonceByEpoch_blockNo :: BlockNo
- getNonceByEpoch_epochNo :: EpochNo
- getNonceByEpoch_slotNo :: SlotNo
- getNonceByEpoch_nonce :: Nonce
- data GetEpochActiveStakeDistribution = GetEpochActiveStakeDistribution {
- getEpochActiveStakeDistribution_epochNo :: EpochNo
- getEpochActiveStakeDistribution_slotNo :: SlotNo
- getEpochActiveStakeDistribution_blockHeaderHash :: Hash BlockHeader
- getEpochActiveStakeDistribution_blockNo :: BlockNo
- getEpochActiveStakeDistribution_poolSizes :: [(PoolId, Lovelace)]
Documentation
Instances
Show Mamba # | |
Indexer Mamba # | |
Defined in Mafoc.Indexers.Mamba description :: Text # toEvents :: Runtime Mamba -> State Mamba -> BlockInMode CardanoMode -> (State Mamba, [Event Mamba]) # initialize :: Mamba -> Trace IO Text -> IO (State Mamba, LocalChainsyncRuntime, Runtime Mamba) # persistMany :: Runtime Mamba -> [Event Mamba] -> IO () # checkpoint :: Runtime Mamba -> State Mamba -> (SlotNo, Hash BlockHeader) -> IO () # | |
IndexerHttpApi Mamba # | |
Show (Event Mamba) # | |
type API Mamba # | |
Defined in Mafoc.Indexers.Mamba type API Mamba = ("stub" :> Get '[JSON] ()) :<|> (("getCurrentSyncedBlock" :> Get '[JSON] (Maybe GetCurrentSyncedBlock)) :<|> (("getUtxosFromAddress" :> (Capture "ShelleyAddress" (Address ShelleyAddr) :> (QueryParam "createdAtOrAfterSlotNo" SlotNo :> (QueryParam "unspentBeforeSlotNo" SlotNo :> Get '[JSON] [GetUtxosFromAddress])))) :<|> (("getBurnTokensEvents" :> (Capture "policyId" PolicyId :> (QueryParam "assetName" AssetName :> (QueryParam "createdBeforeSlotNo" SlotNo :> (QueryParam "createdAfterTx" TxId :> Get '[JSON] [GetBurnTokensEvents]))))) :<|> (("getNonceByEpoch" :> (Capture "epochNo" EpochNo :> Get '[JSON] (Maybe GetNonceByEpoch))) :<|> ("getEpochActiveStakeDistribution" :> (Capture "epochNo" EpochNo :> Get '[JSON] (Maybe GetEpochActiveStakeDistribution))))))) | |
data Event Mamba # | |
Defined in Mafoc.Indexers.Mamba data Event Mamba = Event {
| |
data Runtime Mamba # | |
Defined in Mafoc.Indexers.Mamba data Runtime Mamba = Runtime {
| |
data State Mamba # | |
Defined in Mafoc.Indexers.Mamba data State Mamba = State {
|
Mamba's REST API
deserialise :: Show err => (AsType a -> ByteString -> Either err a) -> AsType a -> Text -> Either Text a #
deserialiseBs :: Show err => (AsType a -> ByteString -> Either err a) -> AsType a -> ByteString -> Either Text a #
GetCurrentSyncedBlock
data GetCurrentSyncedBlock #
GetCurrentSyncedBlock | |
|
Instances
GetUtxosFromAddress
data GetUtxosFromAddress #
GetUtxosFromAddress | |
|
Instances
GetBurnTokensEvents
data GetBurnTokensEvents #
GetBurnTokensEvents | |
|
Instances
GetNonceByEpoch
data GetNonceByEpoch #
GetNonceByEpoch | |
|
Instances
GetEpochActiveStakeDistribution
data GetEpochActiveStakeDistribution #
GetEpochActiveStakeDistribution | |
|
Instances
Orphan instances
FromHttpApiData TxId # | |
parseUrlPiece :: Text -> Either Text TxId parseHeader :: ByteString -> Either Text TxId parseQueryParam :: Text -> Either Text TxId | |
FromHttpApiData AssetName # | |
parseUrlPiece :: Text -> Either Text AssetName parseHeader :: ByteString -> Either Text AssetName parseQueryParam :: Text -> Either Text AssetName | |
FromHttpApiData PolicyId # | |
parseUrlPiece :: Text -> Either Text PolicyId parseHeader :: ByteString -> Either Text PolicyId parseQueryParam :: Text -> Either Text PolicyId | |
FromHttpApiData EpochNo # | |
parseUrlPiece :: Text -> Either Text EpochNo parseHeader :: ByteString -> Either Text EpochNo parseQueryParam :: Text -> Either Text EpochNo | |
FromHttpApiData SlotNo # | |
parseUrlPiece :: Text -> Either Text SlotNo parseHeader :: ByteString -> Either Text SlotNo parseQueryParam :: Text -> Either Text SlotNo | |
FromHttpApiData (Address ShelleyAddr) # | |
parseUrlPiece :: Text -> Either Text (Address ShelleyAddr) parseHeader :: ByteString -> Either Text (Address ShelleyAddr) parseQueryParam :: Text -> Either Text (Address ShelleyAddr) | |
ToField (Address ShelleyAddr) # | |
toField :: Address ShelleyAddr -> SQLData |