cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2020 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Pool.Metadata

Description

HTTP-client(s) for fetching stake pool metadata from remote servers (directly from pool operators, or from smash).

Synopsis

Fetch

data StakePoolMetadataFetchLog Source #

healthCheck :: Tracer IO StakePoolMetadataFetchLog -> URI -> Manager -> IO ( Maybe HealthStatusSMASH ) Source #

Gets the health status from the SMASH server. Returns Nothing if the server is unreachable.

toHealthCheckSMASH :: Maybe HealthStatusSMASH -> HealthCheckSMASH Source #

Convert the result of healthCheck , which represents the server response to our own HealthCheckSMASH type, which is a superset of it.

data HealthStatusSMASH Source #

Parses the SMASH HealthCheck type from the SMASH API.

Instances

Instances details
Eq HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

Ord HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

Show HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

Generic HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

ToJSON HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep HealthStatusSMASH Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep HealthStatusSMASH = D1 (' MetaData "HealthStatusSMASH" "Cardano.Wallet.Api.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "HealthStatusSMASH" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "status") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Text ) :*: S1 (' MetaSel (' Just "version") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Text )))

Construct URLs

identityUrlBuilder :: UrlBuilder Source #

Simply return a pool metadata url, unchanged

registryUrlBuilder :: URI -> UrlBuilder Source #

Build a URL from a metadata hash compatible with an aggregation registry

re-exports

data Manager Source #

Keeps track of open connections for keep-alive.

If possible, you should share a single Manager between multiple threads and requests.

Since 0.1.0

newManager :: MonadIO m => ManagerSettings -> m Manager Source #

Create a connection manager that supports TLS connections.

defaultManagerSettings :: ManagerSettings Source #

Some default settings, overriding some of the library's default with stricter values.

Types

newtype SMASHPoolId Source #

TODO: import SMASH types

Constructors

SMASHPoolId

Instances

Instances details
Eq SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

Ord SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

Show SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

Generic SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

ToJSON SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

FromJSON SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

type Rep SMASHPoolId Source #
Instance details

Defined in Cardano.Pool.Metadata

type Rep SMASHPoolId = D1 (' MetaData "SMASHPoolId" "Cardano.Pool.Metadata" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "SMASHPoolId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "poolId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Text )))