Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Blockfrost authentication schemes
Synopsis
- data APIKeyInHeader (headerName :: Symbol)
- newtype APIKeyInHeaderSettings = APIKeyInHeaderSettings {
- apiKeySettingsQueryProject :: Text -> IO (Maybe Project)
- data Env
- data Project = Project {
- projectEnv :: Env
- projectId :: Text
- data ProjectAuth (auths :: [Type]) val
- mkProject :: Text -> Project
- mkProjectEnv :: Env -> Text -> Project
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
Blockfrost environments
Corresponds to Network when creating a Blockfrost project. Each environment has separate token.
Instances
Generic Env Source # | |
Read Env Source # | |
Show Env Source # | |
Eq Env Source # | |
Ord Env Source # | |
type Rep Env Source # | |
Defined in Blockfrost.Env type Rep Env = D1 ('MetaData "Env" "Blockfrost.Env" "blockfrost-api-0.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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 "Preprod" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Preview" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Sanchonet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Localhost" 'PrefixI 'False) (U1 :: Type -> Type)))) |
Project | |
|
Instances
IsString Project Source # | |
Defined in Blockfrost.Auth fromString :: String -> Project # | |
Generic Project Source # | |
Show Project Source # | |
Eq Project Source # | |
type Rep Project Source # | |
Defined in Blockfrost.Auth type Rep Project = D1 ('MetaData "Project" "Blockfrost.Auth" "blockfrost-api-0.11.0.0-2jNq3H6sEubDGpTeuodF8r" '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
HasLink sub => HasLink (ProjectAuth tag value :> sub :: Type) Source # | |
Defined in Blockfrost.Auth type MkLink (ProjectAuth tag value :> sub) a # toLink :: (Link -> a) -> Proxy (ProjectAuth tag value :> sub) -> Link -> MkLink (ProjectAuth tag value :> sub) a # | |
type MkLink (ProjectAuth tag value :> sub :: Type) r Source # | |
Defined in Blockfrost.Auth |