blockfrost-api-0.7.0.0: API definitions for blockfrost.io
Safe HaskellSafe-Inferred
LanguageHaskell2010

Blockfrost.Types.IPFS

Description

Types for IPFS servics

Synopsis

Documentation

data IPFSAdd Source #

IPFS Add response

Constructors

IPFSAdd 

Fields

Instances

Instances details
FromJSON IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToJSON 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 #

Show IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Eq IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

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

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

ToSample IPFSAdd Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

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

HasIpfsHash IPFSAdd Text Source # 
Instance details

Defined in Blockfrost.Lens

HasName IPFSAdd Text Source # 
Instance details

Defined in Blockfrost.Lens

HasSize IPFSAdd Quantity 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.7.0.0-GFqHBUsOl9sJ1HxGcioioy" '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
FromJSON IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToJSON 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 #

Show IPFSPinChange Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Eq 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.7.0.0-GFqHBUsOl9sJ1HxGcioioy" '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
FromJSON IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToJSON 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 #

Show IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Eq IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

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

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

ToSample IPFSPin Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Methods

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

HasIpfsHash IPFSPin Text Source # 
Instance details

Defined in Blockfrost.Lens

HasSize IPFSPin Quantity Source # 
Instance details

Defined in Blockfrost.Lens

HasState IPFSPin PinState Source # 
Instance details

Defined in Blockfrost.Lens

HasTimeCreated IPFSPin POSIXTime Source # 
Instance details

Defined in Blockfrost.Lens

HasTimePinned 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.7.0.0-GFqHBUsOl9sJ1HxGcioioy" '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
FromJSON PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToJSON 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 #

Show PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Eq PinState Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Ord 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.7.0.0-GFqHBUsOl9sJ1HxGcioioy" '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
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 #

Show IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

Eq IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

ToSample IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeRender OctetStream IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeRender PlainText IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeUnrender OctetStream IPFSData Source # 
Instance details

Defined in Blockfrost.Types.IPFS

MimeUnrender PlainText 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.7.0.0-GFqHBUsOl9sJ1HxGcioioy" 'True) (C1 ('MetaCons "IPFSData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))