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

Blockfrost.Types.IPFS

Description

Types for IPFS servics

Synopsis

Documentation

data IPFSAdd Source #

IPFS Add response

Constructors

IPFSAdd 

Fields

Instances

Instances details
Eq IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

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

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

Show IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Generic IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Associated Types

type Rep IPFSAdd :: Type -> Type #

Methods

from :: IPFSAdd -> Rep IPFSAdd x #

to :: Rep IPFSAdd x -> IPFSAdd #

ToJSON IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

FromJSON IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToSample IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

toSamples :: Proxy IPFSAdd -> [(Text, IPFSAdd)] #

HasName IPFSAdd Text Source # 
Instance details

Defined in Blockfrost.Lens

HasSize IPFSAdd Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasIpfsHash IPFSAdd Text Source # 
Instance details

Defined in Blockfrost.Lens

type Rep IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

type Rep IPFSAdd = D1 ('MetaData "IPFSAdd" "Blockfrost.Types.IPFS" "blockfrost-api-0.3.1.0-9MF0mqKIq7X32LLMNYkjEF" 'False) (C1 ('MetaCons "IPFSAdd" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ipfsAddName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_ipfsAddIpfsHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_ipfsAddSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity))))

data IPFSPinChange Source #

IPFS Pin Add response

Constructors

IPFSPinChange 

Fields

Instances

Instances details
Eq IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Show IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Generic IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Associated Types

type Rep IPFSPinChange :: Type -> Type #

ToJSON IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

FromJSON IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToSample IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

HasIpfsHash IPFSPinChange Text Source # 
Instance details

Defined in Blockfrost.Lens

HasState IPFSPinChange PinState Source # 
Instance details

Defined in Blockfrost.Lens

type Rep IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

type Rep IPFSPinChange = D1 ('MetaData "IPFSPinChange" "Blockfrost.Types.IPFS" "blockfrost-api-0.3.1.0-9MF0mqKIq7X32LLMNYkjEF" 'False) (C1 ('MetaCons "IPFSPinChange" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ipfsPinChangeIpfsHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_ipfsPinChangeState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PinState)))

data IPFSPin Source #

IPFS Pin information

Constructors

IPFSPin 

Fields

Instances

Instances details
Eq IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

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

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

Show IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Generic IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Associated Types

type Rep IPFSPin :: Type -> Type #

Methods

from :: IPFSPin -> Rep IPFSPin x #

to :: Rep IPFSPin x -> IPFSPin #

ToJSON IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

FromJSON IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToSample IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

toSamples :: Proxy IPFSPin -> [(Text, IPFSPin)] #

HasSize IPFSPin Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasIpfsHash IPFSPin Text Source # 
Instance details

Defined in Blockfrost.Lens

HasState IPFSPin PinState Source # 
Instance details

Defined in Blockfrost.Lens

HasTimePinned IPFSPin POSIXTime Source # 
Instance details

Defined in Blockfrost.Lens

HasTimeCreated IPFSPin POSIXTime Source # 
Instance details

Defined in Blockfrost.Lens

type Rep IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

type Rep IPFSPin = D1 ('MetaData "IPFSPin" "Blockfrost.Types.IPFS" "blockfrost-api-0.3.1.0-9MF0mqKIq7X32LLMNYkjEF" 'False) (C1 ('MetaCons "IPFSPin" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_ipfsPinTimeCreated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime) :*: S1 ('MetaSel ('Just "_ipfsPinTimePinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime)) :*: (S1 ('MetaSel ('Just "_ipfsPinIpfsHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_ipfsPinSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Quantity) :*: S1 ('MetaSel ('Just "_ipfsPinState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PinState)))))

data PinState Source #

State of the pinned object, which is Queued when we are retriving object.

If this is successful the state is changed to Pinned or Failed if not. The state Gc means the pinned item has been garbage collected due to account being over storage quota or after it has been moved to Unpinned state by removing the object pin.

Constructors

Queued 
Pinned 
Unpinned 
Failed 
Gc 

Instances

Instances details
Eq PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Ord PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Show PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Generic PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Associated Types

type Rep PinState :: Type -> Type #

Methods

from :: PinState -> Rep PinState x #

to :: Rep PinState x -> PinState #

ToJSON PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

FromJSON PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

HasState IPFSPin PinState Source # 
Instance details

Defined in Blockfrost.Lens

HasState IPFSPinChange PinState Source # 
Instance details

Defined in Blockfrost.Lens

type Rep PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

type Rep PinState = D1 ('MetaData "PinState" "Blockfrost.Types.IPFS" "blockfrost-api-0.3.1.0-9MF0mqKIq7X32LLMNYkjEF" 'False) ((C1 ('MetaCons "Queued" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Pinned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Unpinned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Failed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Gc" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype IPFSData Source #

Constructors

IPFSData ByteString 

Instances

Instances details
Eq IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Show IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Generic IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Associated Types

type Rep IPFSData :: Type -> Type #

Methods

from :: IPFSData -> Rep IPFSData x #

to :: Rep IPFSData x -> IPFSData #

ToSample IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeRender PlainText IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeRender OctetStream IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeUnrender PlainText IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeUnrender OctetStream IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

type Rep IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

type Rep IPFSData = D1 ('MetaData "IPFSData" "Blockfrost.Types.IPFS" "blockfrost-api-0.3.1.0-9MF0mqKIq7X32LLMNYkjEF" 'True) (C1 ('MetaCons "IPFSData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))