blockfrost-client-core-0.2.0.0: blockfrost.io common client definitions / instances
Safe HaskellNone
LanguageHaskell2010

Blockfrost.Client.Core

Description

Core shared by clients

Synopsis

Documentation

data Paged #

Pagination parameters

Constructors

Paged 

Fields

Instances

Instances details
Eq Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

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

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

Ord Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

compare :: Paged -> Paged -> Ordering #

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

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

(>) :: Paged -> Paged -> Bool #

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

max :: Paged -> Paged -> Paged #

min :: Paged -> Paged -> Paged #

Show Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

showsPrec :: Int -> Paged -> ShowS #

show :: Paged -> String #

showList :: [Paged] -> ShowS #

Default Paged 
Instance details

Defined in Blockfrost.Util.Pagination

Methods

def :: Paged #

asc :: SortOrder #

Ascending shortcut

def :: Default a => a #

The default value for this type.

desc :: SortOrder #

Descending shortcut

page :: Int -> Paged #

Default Paged at specific page number

paged :: Int -> Int -> Paged #

Construct Paged from page size and page number.

Throws error on invalid values.

allPages :: Monad m => (Paged -> m [a]) -> m [a] Source #

Query all results, until we get less than maximum items per page.

projectFromEnv :: IO Project Source #

Read file according to BLOCKFROST_TOKEN_PATH environment variable name.

projectFromEnv' :: String -> IO Project Source #

Read file according to environment variable name.

projectFromFile :: FilePath -> IO Project Source #

Read file with token and turn it into Project Expects tokens prefixed with environment, e.g. testnetA3C2E...

Orphan instances

ToMultipart Tmp Form Source # 
Instance details

Methods

toMultipart :: Form -> MultipartData Tmp #