| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
GeniusYield.Providers.Blockfrost
Synopsis
- data Project
- blockfrostProtocolParams :: Project -> IO ApiProtocolParameters
- blockfrostStakePools :: Project -> IO (Set PoolId)
- blockfrostSystemStart :: Project -> IO SystemStart
- blockfrostEraHistory :: Project -> IO EraHistory
- blockfrostQueryUtxo :: Project -> GYQueryUTxO
- blockfrostLookupDatum :: Project -> GYLookupDatum
- blockfrostGetSlotOfCurrentBlock :: Project -> IO GYSlot
- blockfrostSubmitTx :: Project -> GYSubmitTx
- blockfrostAwaitTxConfirmed :: Project -> GYAwaitTx
- blockfrostStakeAddressInfo :: Project -> GYStakeAddress -> IO (Maybe GYStakeAddressInfo)
- blockfrostGovState :: Project -> IO (Maybe GYGovState)
- blockfrostDRepState :: Project -> GYCredential 'GYKeyRoleDRep -> IO (Maybe GYDRepState)
- blockfrostDRepsState :: Project -> Set (GYCredential 'GYKeyRoleDRep) -> IO (Map (GYCredential 'GYKeyRoleDRep) (Maybe GYDRepState))
- blockfrostConstitution :: Project -> IO GYConstitution
- blockfrostProposals :: Project -> Set GYGovActionId -> IO (Seq GYGovActionState)
- blockfrostMempoolTxs :: Project -> IO [GYTx]
- networkIdToProject :: GYNetworkId -> Text -> Project
- data BlockfrostProviderException
Documentation
Instances
blockfrostEraHistory :: Project -> IO EraHistory #
blockfrostSubmitTx :: Project -> GYSubmitTx #
blockfrostAwaitTxConfirmed :: Project -> GYAwaitTx #
Awaits for the confirmation of a given GYTxId
blockfrostGovState :: Project -> IO (Maybe GYGovState) #
blockfrostDRepState :: Project -> GYCredential 'GYKeyRoleDRep -> IO (Maybe GYDRepState) #
blockfrostDRepsState :: Project -> Set (GYCredential 'GYKeyRoleDRep) -> IO (Map (GYCredential 'GYKeyRoleDRep) (Maybe GYDRepState)) #
blockfrostProposals :: Project -> Set GYGovActionId -> IO (Seq GYGovActionState) #
blockfrostMempoolTxs :: Project -> IO [GYTx] #
Arguments
| :: GYNetworkId | The network identifier. |
| -> Text | The Blockfrost project identifier. |
| -> Project |
Constructs a Blockfrost client.
data BlockfrostProviderException #
Constructors
| BlpvApiError !Text !BlockfrostError | |
| BlpvDeserializeFailure !Text !SomeDeserializeError | This error should never actually happen (unless there's a bug). |
| BlpvNoSlotInfo !BlockHash | |
| BlpvUnsupportedOperation !Text | |
| BlpvIncorrectEraHistoryLength ![NetworkEraSummary] |
Instances
| Exception BlockfrostProviderException # | |
| Show BlockfrostProviderException # | |
Defined in GeniusYield.Providers.Blockfrost Methods showsPrec :: Int -> BlockfrostProviderException -> ShowS # show :: BlockfrostProviderException -> String # showList :: [BlockfrostProviderException] -> ShowS # | |
| Eq BlockfrostProviderException # | |
Defined in GeniusYield.Providers.Blockfrost Methods (==) :: BlockfrostProviderException -> BlockfrostProviderException -> Bool # (/=) :: BlockfrostProviderException -> BlockfrostProviderException -> Bool # | |