blockfrost-api-0.4.0.1: API definitions for blockfrost.io
Safe Haskell None
Language Haskell2010

Blockfrost.Types.Shared.Amount

Description

Amount sum type

Synopsis

Documentation

data Amount Source #

Amount, which is either `AdaAmount Lovelaces` representing amount of lovelaces or `AssetAmount SomeDiscrete` for asset amounts, identified by concatenation of asset policy ID and hex-encoded asset_name

Instances

Instances details
Eq Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

Ord Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

Show Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

Generic Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

ToJSON Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

FromJSON Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

ToSample Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

HasAmount UtxoOutput [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

HasAmount UtxoInput [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

HasAmount AddressUtxo [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

HasAmount AddressInfo [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

HasSentSum AddressDetails [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

HasReceivedSum AddressDetails [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

HasOutputAmount Transaction [ Amount ] Source #
Instance details

Defined in Blockfrost.Lens

type Rep Amount Source #
Instance details

Defined in Blockfrost.Types.Shared.Amount

unitScale :: Scale Source #

SomeDiscrete values always use scale of 1

Orphan instances