atlas-cardano-0.9.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Types

Description

 
Synopsis

Documentation

data Natural #

Natural number

Invariant: numbers <= 0xffffffffffffffff use the NS constructor

Instances

Instances details
FromJSON Natural 
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSONKey Natural 
Instance details

Defined in Data.Aeson.Types.FromJSON

ToJSON Natural 
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSONKey Natural 
Instance details

Defined in Data.Aeson.Types.ToJSON

Data Natural

Since: base-4.8.0.0

Instance details

Defined in Data.Data

Methods

gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Natural → c Natural #

gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Natural #

toConstrNaturalConstr #

dataTypeOfNaturalDataType #

dataCast1Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Natural) #

dataCast2Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Natural) #

gmapT ∷ (∀ b. Data b ⇒ b → b) → NaturalNatural #

gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Natural → r #

gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Natural → r #

gmapQ ∷ (∀ d. Data d ⇒ d → u) → Natural → [u] #

gmapQiInt → (∀ d. Data d ⇒ d → u) → Natural → u #

gmapMMonad m ⇒ (∀ d. Data d ⇒ d → m d) → Natural → m Natural #

gmapMpMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Natural → m Natural #

gmapMoMonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Natural → m Natural #

Bits Natural

Since: base-4.8.0

Instance details

Defined in GHC.Bits

Enum Natural

Since: base-4.8.0.0

Instance details

Defined in GHC.Enum

Ix Natural

Since: base-4.8.0.0

Instance details

Defined in GHC.Ix

Num Natural

Note that Natural's Num instance isn't a ring: no element but 0 has an additive inverse. It is a semiring though.

Since: base-4.8.0.0

Instance details

Defined in GHC.Num

Read Natural

Since: base-4.8.0.0

Instance details

Defined in GHC.Read

Integral Natural

Since: base-4.8.0.0

Instance details

Defined in GHC.Real

Real Natural

Since: base-4.8.0.0

Instance details

Defined in GHC.Real

Methods

toRationalNaturalRational #

Show Natural

Since: base-4.8.0.0

Instance details

Defined in GHC.Show

Methods

showsPrecIntNaturalShowS #

showNaturalString #

showList ∷ [Natural] → ShowS #

PrintfArg Natural

Since: base-4.8.0.0

Instance details

Defined in Text.Printf

Subtractive Natural 
Instance details

Defined in Basement.Numerical.Subtractive

Associated Types

type Difference Natural #

Methods

(-)NaturalNaturalDifference Natural #

FromCBOR Natural 
Instance details

Defined in Cardano.Binary.FromCBOR

ToCBOR Natural 
Instance details

Defined in Cardano.Binary.ToCBOR

Methods

toCBORNaturalEncoding #

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

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

DecCBOR Natural 
Instance details

Defined in Cardano.Ledger.Binary.Decoding.DecCBOR

EncCBOR Natural 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

encCBORNaturalEncoding #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy NaturalSize #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [Natural] → Size #

FromField Natural

Accepts an unsigned decimal number. Ignores whitespace.

Since: cassava-0.5.1.0

Instance details

Defined in Data.Csv.Conversion

ToField Natural

Uses decimal encoding.

Since: cassava-0.5.1.0

Instance details

Defined in Data.Csv.Conversion

Methods

toFieldNaturalField #

NFData Natural

Since: deepseq-1.4.0.0

Instance details

Defined in Control.DeepSeq

Methods

rnfNatural → () #

Eq Natural 
Instance details

Defined in GHC.Num.Natural

Methods

(==)NaturalNaturalBool #

(/=)NaturalNaturalBool #

Ord Natural 
Instance details

Defined in GHC.Num.Natural

Methods

compareNaturalNaturalOrdering #

(<)NaturalNaturalBool #

(<=)NaturalNaturalBool #

(>)NaturalNaturalBool #

(>=)NaturalNaturalBool #

maxNaturalNaturalNatural #

minNaturalNaturalNatural #

Hashable Natural 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSaltIntNaturalInt #

hashNaturalInt #

FromFormKey Natural 
Instance details

Defined in Web.Internal.FormUrlEncoded

ToFormKey Natural 
Instance details

Defined in Web.Internal.FormUrlEncoded

Methods

toFormKeyNaturalText #

FromHttpApiData Natural 
Instance details

Defined in Web.Internal.HttpApiData

ToHttpApiData Natural 
Instance details

Defined in Web.Internal.HttpApiData

Measure Natural 
Instance details

Defined in Data.Measure.Class

Methods

zeroNatural #

plusNaturalNaturalNatural #

minNaturalNaturalNatural #

maxNaturalNaturalNatural #

NoThunks Natural 
Instance details

Defined in NoThunks.Class

ToParamSchema Natural 
Instance details

Defined in Data.OpenApi.Internal.ParamSchema

ToSchema Natural 
Instance details

Defined in Data.OpenApi.Internal.Schema

Pretty Natural 
Instance details

Defined in Prettyprinter.Internal

Methods

prettyNaturalDoc ann #

prettyList ∷ [Natural] → Doc ann #

UniformRange Natural 
Instance details

Defined in System.Random.Internal

Methods

uniformRMStatefulGen g m ⇒ (Natural, Natural) → g → m Natural #

Corecursive Natural 
Instance details

Defined in Data.Functor.Foldable

Methods

embedBase Natural NaturalNatural #

ana ∷ (a → Base Natural a) → a → Natural #

apo ∷ (a → Base Natural (Either Natural a)) → a → Natural #

postproRecursive Natural ⇒ (∀ b. Base Natural b → Base Natural b) → (a → Base Natural a) → a → Natural #

gpostpro ∷ (Recursive Natural, Monad m) ⇒ (∀ b. m (Base Natural b) → Base Natural (m b)) → (∀ c. Base Natural c → Base Natural c) → (a → Base Natural (m a)) → a → Natural #

Recursive Natural 
Instance details

Defined in Data.Functor.Foldable

Methods

projectNaturalBase Natural Natural #

cata ∷ (Base Natural a → a) → Natural → a #

para ∷ (Base Natural (Natural, a) → a) → Natural → a #

gpara ∷ (Corecursive Natural, Comonad w) ⇒ (∀ b. Base Natural (w b) → w (Base Natural b)) → (Base Natural (EnvT Natural w a) → a) → Natural → a #

preproCorecursive Natural ⇒ (∀ b. Base Natural b → Base Natural b) → (Base Natural a → a) → Natural → a #

gprepro ∷ (Corecursive Natural, Comonad w) ⇒ (∀ b. Base Natural (w b) → w (Base Natural b)) → (∀ c. Base Natural c → Base Natural c) → (Base Natural (w a) → a) → Natural → a #

ToParamSchema Natural 
Instance details

Defined in Data.Swagger.Internal.ParamSchema

Methods

toParamSchema ∷ ∀ (t ∷ SwaggerKind Type). Proxy NaturalParamSchema t #

ToSchema Natural 
Instance details

Defined in Data.Swagger.Internal.Schema

FromText Natural 
Instance details

Defined in Data.Text.Class

ToText Natural 
Instance details

Defined in Data.Text.Class

Methods

toTextNaturalText #

Pretty Natural 
Instance details

Defined in Text.PrettyPrint.Annotated.WL

Methods

prettyNaturalDoc b #

prettyList ∷ [Natural] → Doc b #

KnownNat n ⇒ HasResolution (n ∷ Nat)

For example, Fixed 1000 will give you a Fixed with a resolution of 1000.

Instance details

Defined in Data.Fixed

Methods

resolution ∷ p n → Integer #

TestCoercion SNat

Since: base-4.18.0.0

Instance details

Defined in GHC.TypeNats

Methods

testCoercion ∷ ∀ (a ∷ k) (b ∷ k). SNat a → SNat b → Maybe (Coercion a b) #

TestEquality SNat

Since: base-4.18.0.0

Instance details

Defined in GHC.TypeNats

Methods

testEquality ∷ ∀ (a ∷ k) (b ∷ k). SNat a → SNat b → Maybe (a :~: b) #

DefaultPrettyBy config Natural 
Instance details

Defined in Text.PrettyBy.Internal

Methods

defaultPrettyBy ∷ config → NaturalDoc ann #

defaultPrettyListBy ∷ config → [Natural] → Doc ann #

PrettyDefaultBy config NaturalPrettyBy config Natural
>>> prettyBy () (123 :: Natural)
123
Instance details

Defined in Text.PrettyBy.Internal

Methods

prettyBy ∷ config → NaturalDoc ann #

prettyListBy ∷ config → [Natural] → Doc ann #

GCompare SNat 
Instance details

Defined in Data.GADT.Internal

Methods

gcompare ∷ ∀ (a ∷ k) (b ∷ k). SNat a → SNat b → GOrdering a b #

GEq SNat 
Instance details

Defined in Data.GADT.Internal

Methods

geq ∷ ∀ (a ∷ k) (b ∷ k). SNat a → SNat b → Maybe (a :~: b) #

GShow SNat 
Instance details

Defined in Data.GADT.Internal

Methods

gshowsPrec ∷ ∀ (a ∷ k). IntSNat a → ShowS #

Lift Natural 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

liftQuote m ⇒ Natural → m Exp #

liftTyped ∷ ∀ (m ∷ TypeType). Quote m ⇒ NaturalCode m Natural #

KnownBuiltinTypeIn DefaultUni term IntegerMakeKnownIn DefaultUni term Natural 
Instance details

Defined in PlutusCore.Default.Universe

Methods

makeKnownNaturalBuiltinResult term #

KnownBuiltinTypeIn DefaultUni term IntegerReadKnownIn DefaultUni term Natural 
Instance details

Defined in PlutusCore.Default.Universe

Methods

readKnown ∷ term → ReadKnownM Natural #

KnownNat n ⇒ Reifies (n ∷ Nat) Integer 
Instance details

Defined in Data.Reflection

Methods

reflect ∷ proxy n → Integer #

KnownTypeAst tyname DefaultUni Natural 
Instance details

Defined in PlutusCore.Default.Universe

Methods

typeAstType tyname DefaultUni () #

NatVals ('[] ∷ [Nat]) 
Instance details

Defined in Cardano.Mnemonic

Methods

natValsProxy '[] → [Integer] #

Buildable (Range Natural) 
Instance details

Defined in Cardano.Binary.ToCBOR

Methods

buildRange NaturalBuilder #

Buildable (Range Natural) 
Instance details

Defined in Cardano.Ledger.Binary.Encoding.EncCBOR

Methods

buildRange NaturalBuilder #

(n ~ EntropySize mw, csz ~ CheckSumBits n, ConsistentEntropy n mw csz) ⇒ MkSomeMnemonic '[mw] 
Instance details

Defined in Cardano.Mnemonic

(n ~ EntropySize mw, csz ~ CheckSumBits n, ConsistentEntropy n mw csz, MkSomeMnemonic rest, NatVals rest) ⇒ MkSomeMnemonic (mw ': rest) 
Instance details

Defined in Cardano.Mnemonic

(KnownNat n, NatVals rest) ⇒ NatVals (n ': rest) 
Instance details

Defined in Cardano.Mnemonic

Methods

natValsProxy (n ': rest) → [Integer] #

type Difference Natural 
Instance details

Defined in Basement.Numerical.Subtractive

type IntBaseType Natural 
Instance details

Defined in Data.IntCast

type Base Natural 
Instance details

Defined in Data.Functor.Foldable

type Compare (a ∷ Natural) (b ∷ Natural) 
Instance details

Defined in Data.Type.Ord

type Compare (a ∷ Natural) (b ∷ Natural) = CmpNat a b
type IsBuiltin DefaultUni Natural 
Instance details

Defined in PlutusCore.Default.Universe

type ToHoles DefaultUni Natural 
Instance details

Defined in PlutusCore.Default.Universe

type ToBinds DefaultUni acc Natural 
Instance details

Defined in PlutusCore.Default.Universe

type ToBinds DefaultUni acc Natural = ToBinds DefaultUni acc (AsInteger Natural)

Shelley params

Protocol parameters introduced in Shelley era

MinFeeA

Min fee factor

ppMinFeeALEraPParams era ⇒ Lens' (PParams era) Coin #

The linear factor for the minimum fee calculation

MinFeeB

Min fee constant

ppMinFeeBLEraPParams era ⇒ Lens' (PParams era) Coin #

The constant factor for the minimum fee calculation

MaxBBSize

Max block body size

ppMaxBBSizeLEraPParams era ⇒ Lens' (PParams era) Word32 #

Maximal block body size

AaxBHSize

Max block header size

ppMaxBHSizeLEraPParams era ⇒ Lens' (PParams era) Word16 #

Maximal block header size

PoolDeposit

Stake pool deposit

ppPoolDepositLEraPParams era ⇒ Lens' (PParams era) Coin #

The amount of a pool registration deposit

EMax

Epoch bound on pool retirement

ppEMaxLEraPParams era ⇒ Lens' (PParams era) EpochInterval #

epoch bound on pool retirement

NOpt

Desired number of pools

ppNOptLEraPParams era ⇒ Lens' (PParams era) Natural #

Desired number of pools

A0

Pool influence

ppA0LEraPParams era ⇒ Lens' (PParams era) NonNegativeInterval #

Pool influence

Tau

Treasury expansion

ppTauLEraPParams era ⇒ Lens' (PParams era) UnitInterval #

Treasury expansion

Rho

Monetary expansion

ppRhoLEraPParams era ⇒ Lens' (PParams era) UnitInterval #

Monetary expansion

ProtocolVersion

Protocol version

MinUTxOValue

Minimum allowed value of a new TxOut

ppMinUTxOValueL ∷ (EraPParams era, ProtVerAtMost era 4) ⇒ Lens' (PParams era) Coin #

Minimum UTxO value

MinPoolCast

Miminum allowed stake pool cost

ppMinPoolCostLEraPParams era ⇒ Lens' (PParams era) Coin #

Minimum Stake Pool Cost

KeyDeposit

ppKeyDepositLEraPParams era ⇒ Lens' (PParams era) Coin #

The amount of a key registration deposit

MaxTxSize

ppMaxTxSizeLEraPParams era ⇒ Lens' (PParams era) Word32 #

Maximal transaction size

Alonzo params

CostModels

Prices

MaxTxExUnits

Limit the total per-transaction resource use for phase-2 scripts.

MaxBlockExUnits

Limit the total per-transaction and per-block resource use for phase-2 scripts.

MaxValSize

The new parameter maxValSize replaces the constant maxValSize used Mary era to limit the size of the Value part of an output in a serialised transaction.

CollateralPercentage

The parameter collateralPercent is used to specify the percentage of the total transaction fee its collateral must (at minimum) cover.

MaxCollateralInputs

The parameter maxCollateralInputs is used to limit, additionally, the total number of collateral inputs, and thus the total number of additional signatures that must be checked during validation.

Babbage params

Protocol parameters introduced in Babbage era

CoinsPerUTxOByte

Cost in the amount of lovelace ber byte.

newtype CoinPerByte #

Constructors

CoinPerByte 

Fields

Instances

Instances details
FromJSON CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

ToJSON CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Show CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

DecCBOR CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

EncCBOR CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

encCBORCoinPerByteEncoding #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy CoinPerByteSize #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [CoinPerByte] → Size #

NFData CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Methods

rnfCoinPerByte → () #

Eq CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

Ord CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams

NoThunks CoinPerByte 
Instance details

Defined in Cardano.Ledger.Babbage.PParams