blockfrost-api-0.2.1.0: API definitions for blockfrost.io
Safe HaskellNone
LanguageHaskell2010

Blockfrost.Auth

Description

Blockfrost authentication schemes

Synopsis

Documentation

data APIKeyInHeader (headerName :: Symbol) Source #

The type of Auth scheme.

newtype APIKeyInHeaderSettings Source #

Auth scheme settings Needs IO action to verify passed in token and maybe return Project

data Env Source #

Blockfrost environments

Corresponds to Network when creating a Blockfrost project. Each environment has separate token.

Constructors

Ipfs 
Mainnet 
Testnet 
Localhost 

Instances

Instances details
Eq Env Source # 
Instance details

Defined in Blockfrost.Env

Methods

(==) :: Env -> Env -> Bool #

(/=) :: Env -> Env -> Bool #

Ord Env Source # 
Instance details

Defined in Blockfrost.Env

Methods

compare :: Env -> Env -> Ordering #

(<) :: Env -> Env -> Bool #

(<=) :: Env -> Env -> Bool #

(>) :: Env -> Env -> Bool #

(>=) :: Env -> Env -> Bool #

max :: Env -> Env -> Env #

min :: Env -> Env -> Env #

Read Env Source # 
Instance details

Defined in Blockfrost.Env

Show Env Source # 
Instance details

Defined in Blockfrost.Env

Methods

showsPrec :: Int -> Env -> ShowS #

show :: Env -> String #

showList :: [Env] -> ShowS #

Generic Env Source # 
Instance details

Defined in Blockfrost.Env

Associated Types

type Rep Env :: Type -> Type #

Methods

from :: Env -> Rep Env x #

to :: Rep Env x -> Env #

type Rep Env Source # 
Instance details

Defined in Blockfrost.Env

type Rep Env = D1 ('MetaData "Env" "Blockfrost.Env" "blockfrost-api-0.2.1.0-KZcfvGT2yF56UZeMbClPE7" 'False) ((C1 ('MetaCons "Ipfs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Localhost" 'PrefixI 'False) (U1 :: Type -> Type)))

data Project Source #

Constructors

Project 

Fields

Instances

Instances details
Eq Project Source # 
Instance details

Defined in Blockfrost.Auth

Methods

(==) :: Project -> Project -> Bool #

(/=) :: Project -> Project -> Bool #

Show Project Source # 
Instance details

Defined in Blockfrost.Auth

IsString Project Source # 
Instance details

Defined in Blockfrost.Auth

Methods

fromString :: String -> Project #

Generic Project Source # 
Instance details

Defined in Blockfrost.Auth

Associated Types

type Rep Project :: Type -> Type #

Methods

from :: Project -> Rep Project x #

to :: Rep Project x -> Project #

type Rep Project Source # 
Instance details

Defined in Blockfrost.Auth

type Rep Project = D1 ('MetaData "Project" "Blockfrost.Auth" "blockfrost-api-0.2.1.0-KZcfvGT2yF56UZeMbClPE7" 'False) (C1 ('MetaCons "Project" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectEnv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Env) :*: S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data ProjectAuth (auths :: [Type]) val Source #

Instances

Instances details
HasLink sub => HasLink (ProjectAuth tag value :> sub :: Type) Source # 
Instance details

Defined in Blockfrost.Auth

Associated Types

type MkLink (ProjectAuth tag value :> sub) a #

Methods

toLink :: (Link -> a) -> Proxy (ProjectAuth tag value :> sub) -> Link -> MkLink (ProjectAuth tag value :> sub) a #

type MkLink (ProjectAuth tag value :> sub :: Type) r Source # 
Instance details

Defined in Blockfrost.Auth

type MkLink (ProjectAuth tag value :> sub :: Type) r = MkLink sub r

mkProject :: Text -> Project Source #

Parse Project from Text or fail with error

mkProjectEnv :: Env -> Text -> Project Source #

Project constructor