Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Chain.Blockfrost.Client
Contents
Synopsis
- data APIBlockfrostError
- runBlockfrostM :: (MonadIO m, MonadThrow m) => Project -> BlockfrostClientT IO a -> m a
- publishHydraScripts :: FilePath -> SigningKey PaymentKey -> IO [TxId]
- scriptTypeToPlutusVersion :: ScriptType -> Maybe Language
- toCardanoPoolId :: PoolId -> Hash StakePoolKey
- toCardanoUTxO :: [AddressUtxo] -> AddressInEra -> UTxO' (TxOut CtxUTxO)
- toCardanoTxIn :: AddressUtxo -> TxIn
- toCardanoTxOut :: AddressUtxo -> AddressInEra -> TxOut CtxUTxO
- toCardanoPolicyId :: Text -> PolicyId
- toCardanoAssetName :: Text -> AssetName
- toCardanoValue :: [Amount] -> Value
- unwrapAddress :: AddressInEra -> Text
- textAddrOf :: NetworkId -> VerificationKey PaymentKey -> Text
- toCardanoNetworkMagic :: Integer -> NetworkId
- data BlockfrostConversion = BlockfrostConversion {
- a0 :: NonNegativeInterval
- rho :: UnitInterval
- tau :: UnitInterval
- priceMemory :: NonNegativeInterval
- priceSteps :: NonNegativeInterval
- pvtMotionNoConfidence :: UnitInterval
- pvtCommitteeNormal :: UnitInterval
- pvtCommitteeNoConfidence :: UnitInterval
- pvtHardForkInitiation :: UnitInterval
- pvtPPSecurityGroup :: UnitInterval
- dvtMotionNoConfidence :: UnitInterval
- dvtCommitteeNormal :: UnitInterval
- dvtCommitteeNoConfidence :: UnitInterval
- dvtUpdateToConstitution :: UnitInterval
- dvtHardForkInitiation :: UnitInterval
- dvtPPNetworkGroup :: UnitInterval
- dvtPPEconomicGroup :: UnitInterval
- dvtPPTechnicalGroup :: UnitInterval
- dvtPPGovGroup :: UnitInterval
- dvtTreasuryWithdrawal :: UnitInterval
- committeeMinSize :: Quantity
- committeeMaxTermLength :: Quantity
- govActionLifetime :: Quantity
- govActionDeposit :: Coin
- drepDeposit :: Integer
- drepActivity :: Quantity
- minFeeRefScriptCostPerByte :: NonNegativeInterval
- toCardanoPParams :: MonadIO m => BlockfrostClientT m (PParams LedgerEra)
- toCardanoGenesisParameters :: Genesis -> GenesisParameters ShelleyEra
- mkEraHistory :: Genesis -> EraHistory
Documentation
data APIBlockfrostError Source #
Constructors
BlockfrostError Text | |
DecodeError Text |
Instances
Exception APIBlockfrostError Source # | |
Defined in Hydra.Chain.Blockfrost.Client Methods toException :: APIBlockfrostError -> SomeException Source # fromException :: SomeException -> Maybe APIBlockfrostError Source # | |
Show APIBlockfrostError Source # | |
Defined in Hydra.Chain.Blockfrost.Client |
runBlockfrostM :: (MonadIO m, MonadThrow m) => Project -> BlockfrostClientT IO a -> m a Source #
scriptTypeToPlutusVersion :: ScriptType -> Maybe Language Source #
toCardanoPoolId :: PoolId -> Hash StakePoolKey Source #
toCardanoUTxO :: [AddressUtxo] -> AddressInEra -> UTxO' (TxOut CtxUTxO) Source #
toCardanoTxIn :: AddressUtxo -> TxIn Source #
toCardanoTxOut :: AddressUtxo -> AddressInEra -> TxOut CtxUTxO Source #
toCardanoPolicyId :: Text -> PolicyId Source #
toCardanoAssetName :: Text -> AssetName Source #
toCardanoValue :: [Amount] -> Value Source #
Helpers
unwrapAddress :: AddressInEra -> Text Source #
textAddrOf :: NetworkId -> VerificationKey PaymentKey -> Text Source #
toCardanoNetworkMagic :: Integer -> NetworkId Source #
data BlockfrostConversion Source #
Constructors
BlockfrostConversion | |
Fields
|
toCardanoPParams :: MonadIO m => BlockfrostClientT m (PParams LedgerEra) Source #
toCardanoGenesisParameters :: Genesis -> GenesisParameters ShelleyEra Source #
mkEraHistory :: Genesis -> EraHistory Source #