bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.Value

Description

Currency values

Synopsis

Documentation

newtype Entropic Source #

Constructors

Entropic Integer 

Instances

Instances details
Enum Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Eq Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Num Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Ord Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Show Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Semigroup Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Monoid Entropic Source # 
Instance details

Defined in Bcc.Api.Value

FromJSON Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

parseJSON ∷ Value → Parser Entropic #

parseJSONList ∷ Value → Parser [Entropic] #

ToJSON Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONEntropic → Value #

toEncodingEntropic → Encoding #

toJSONList ∷ [Entropic] → Value #

toEncodingList ∷ [Entropic] → Encoding #

FromCBOR Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

fromCBOR ∷ Decoder s Entropic #

labelProxy EntropicText #

ToCBOR Entropic Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toCBOREntropic → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy Entropic → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Entropic] → Size #

Multi-asset values

newtype Quantity Source #

Constructors

Quantity Integer 

Instances

Instances details
Eq Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Num Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Ord Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Show Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Semigroup Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Monoid Quantity Source # 
Instance details

Defined in Bcc.Api.Value

FromJSON Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Methods

parseJSON ∷ Value → Parser Quantity #

parseJSONList ∷ Value → Parser [Quantity] #

ToJSON Quantity Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONQuantity → Value #

toEncodingQuantity → Encoding #

toJSONList ∷ [Quantity] → Value #

toEncodingList ∷ [Quantity] → Encoding #

newtype PolicyId Source #

Constructors

PolicyId ScriptHash 

Instances

Instances details
Eq PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

Ord PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

Show PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

IsString PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

FromJSON PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

Methods

parseJSON ∷ Value → Parser PolicyId #

parseJSONList ∷ Value → Parser [PolicyId] #

ToJSON PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONPolicyId → Value #

toEncodingPolicyId → Encoding #

toJSONList ∷ [PolicyId] → Value #

toEncodingList ∷ [PolicyId] → Encoding #

HasTypeProxy PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

Associated Types

data AsType PolicyId Source #

SerialiseAsRawBytes PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

data AsType PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

newtype AssetName Source #

Constructors

AssetName ByteString 

Instances

Instances details
Eq AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Ord AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Show AssetName Source # 
Instance details

Defined in Bcc.Api.Value

IsString AssetName Source # 
Instance details

Defined in Bcc.Api.Value

FromJSON AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Methods

parseJSON ∷ Value → Parser AssetName #

parseJSONList ∷ Value → Parser [AssetName] #

ToJSON AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONAssetName → Value #

toEncodingAssetName → Encoding #

toJSONList ∷ [AssetName] → Value #

toEncodingList ∷ [AssetName] → Encoding #

FromJSONKey AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Methods

fromJSONKey ∷ FromJSONKeyFunction AssetName

fromJSONKeyList ∷ FromJSONKeyFunction [AssetName]

ToJSONKey AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONKey ∷ ToJSONKeyFunction AssetName

toJSONKeyList ∷ ToJSONKeyFunction [AssetName]

HasTypeProxy AssetName Source # 
Instance details

Defined in Bcc.Api.Value

Associated Types

data AsType AssetName Source #

SerialiseAsRawBytes AssetName Source # 
Instance details

Defined in Bcc.Api.Value

data AsType AssetName Source # 
Instance details

Defined in Bcc.Api.Value

data AssetId Source #

Instances

Instances details
Eq AssetId Source # 
Instance details

Defined in Bcc.Api.Value

Methods

(==)AssetIdAssetIdBool Source #

(/=)AssetIdAssetIdBool Source #

Ord AssetId Source # 
Instance details

Defined in Bcc.Api.Value

Show AssetId Source # 
Instance details

Defined in Bcc.Api.Value

data Value Source #

Instances

Instances details
Eq Value Source # 
Instance details

Defined in Bcc.Api.Value

Methods

(==)ValueValueBool Source #

(/=)ValueValueBool Source #

Show Value Source # 
Instance details

Defined in Bcc.Api.Value

Semigroup Value Source # 
Instance details

Defined in Bcc.Api.Value

Methods

(<>)ValueValueValue Source #

sconcatNonEmpty ValueValue Source #

stimesIntegral b ⇒ b → ValueValue Source #

Monoid Value Source # 
Instance details

Defined in Bcc.Api.Value

FromJSON Value Source # 
Instance details

Defined in Bcc.Api.Value

Methods

parseJSON ∷ Value0 → Parser Value #

parseJSONList ∷ Value0 → Parser [Value] #

ToJSON Value Source # 
Instance details

Defined in Bcc.Api.Value

Methods

toJSONValue → Value0 #

toEncodingValue → Encoding #

toJSONList ∷ [Value] → Value0 #

toEncodingList ∷ [Value] → Encoding #

negateValueValueValue Source #

This lets you write a - b as a <> negateValue b.

calcMinimumDepositValueEntropicEntropic Source #

Calculate cost of making a UTxO entry for a given Value and mininimum UTxO value derived from the ProtocolParameters

Bcc / Entropic specifically

valueToEntropicValueMaybe Entropic Source #

Check if the Value consists of only Entropic and no other assets, and if so then return the Entropic.

See also selectEntropic to select the Entropic quantity from the Value, ignoring other assets.

Alternative nested representation

newtype ValueNestedRep Source #

An alternative nested representation for Value that groups assets that share a PolicyId.

Rendering

renderValueValueText Source #

Render a textual representation of a Value.

renderValuePrettyValueText Source #

Render a "prettified" textual representation of a Value.

Internal conversion functions

toJenValueValue → Value StandardCrypto Source #

fromJenValue ∷ Value StandardCrypto → Value Source #

Data family instances

data family AsType t Source #

A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.

Values of this type are passed to deserialisation functions for example.

Instances

Instances details
data AsType AurumEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType JenEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType EvieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType SophieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType ColeEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

data AsType TxMetadata Source # 
Instance details

Defined in Bcc.Api.TxMetadata

data AsType StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

data AsType ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ZerepochScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV2 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ColeKeyLegacy Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeVote Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType ColeUpdateProposal Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

data AsType StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AddressAny Source # 
Instance details

Defined in Bcc.Api.Address

data AsType SophieAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType ColeAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AssetName Source # 
Instance details

Defined in Bcc.Api.Value

data AsType PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

data AsType UpdateProposal Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType OptimumNonce Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

data AsType TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType BlockHeader Source # 
Instance details

Defined in Bcc.Api.Block

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType (Hash a) Source # 
Instance details

Defined in Bcc.Api.Hash

data AsType (Hash a) = AsHash (AsType a)
data AsType (VerificationKey a) Source # 
Instance details

Defined in Bcc.Api.Key

data AsType (SigningKey a) Source # 
Instance details

Defined in Bcc.Api.Key

data AsType (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) = AsScript (AsType lang)
data AsType (AddressInEra era) Source # 
Instance details

Defined in Bcc.Api.Address

data AsType (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

data AsType (Address addrtype) = AsAddress (AsType addrtype)
data AsType (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType (TxBody era) = AsTxBody (AsType era)
data AsType (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) = AsTx (AsType era)