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

GeniusYield.Types.Reexpose

Description

 
Synopsis

Documentation

newtype Port #

Constructors

Port 

Fields

Instances

Instances details
FromJSON Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep PortTypeType #

Methods

fromPortRep Port x #

toRep Port x → Port #

Num Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(+)PortPortPort #

(-)PortPortPort #

(*)PortPortPort #

negatePortPort #

absPortPort #

signumPortPort #

fromIntegerIntegerPort #

Show Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrecIntPortShowS #

showPortString #

showList ∷ [Port] → ShowS #

DecCBOR Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

decCBORDecoder s Port #

dropCBORProxy PortDecoder s () #

labelProxy PortText #

EncCBOR Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORPortEncoding #

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

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

NFData Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfPort → () #

Eq Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)PortPortBool #

(/=)PortPortBool #

Ord Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

comparePortPortOrdering #

(<)PortPortBool #

(<=)PortPortBool #

(>)PortPortBool #

(>=)PortPortBool #

maxPortPortPort #

minPortPortPort #

NoThunks Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Port 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Port = D1 ('MetaData "Port" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.15.0.0-1046d1b1904b07389ef0faa5b38408cc4c76b23815c29933c8ff4d80bd3043da" 'True) (C1 ('MetaCons "Port" 'PrefixI 'True) (S1 ('MetaSel ('Just "portToWord16") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))

data DnsName #

Instances

Instances details
FromJSON DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep DnsNameTypeType #

Methods

fromDnsNameRep DnsName x #

toRep DnsName x → DnsName #

Show DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrecIntDnsNameShowS #

showDnsNameString #

showList ∷ [DnsName] → ShowS #

DecCBOR DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORDnsNameEncoding #

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

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

NFData DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfDnsName → () #

Eq DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)DnsNameDnsNameBool #

(/=)DnsNameDnsNameBool #

Ord DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compareDnsNameDnsNameOrdering #

(<)DnsNameDnsNameBool #

(<=)DnsNameDnsNameBool #

(>)DnsNameDnsNameBool #

(>=)DnsNameDnsNameBool #

maxDnsNameDnsNameDnsName #

minDnsNameDnsNameDnsName #

NoThunks DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep DnsName 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep DnsName = D1 ('MetaData "DnsName" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.15.0.0-1046d1b1904b07389ef0faa5b38408cc4c76b23815c29933c8ff4d80bd3043da" 'True) (C1 ('MetaCons "DnsName" 'PrefixI 'True) (S1 ('MetaSel ('Just "dnsToText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Network #

Constructors

Testnet 
Mainnet 

Instances

Instances details
FromJSON Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Bounded Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Enum Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep NetworkTypeType #

Methods

fromNetworkRep Network x #

toRep Network x → Network #

Show Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrecIntNetworkShowS #

showNetworkString #

showList ∷ [Network] → ShowS #

DecCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORNetworkEncoding #

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

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

Default Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

defNetwork #

NFData Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfNetwork → () #

Eq Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)NetworkNetworkBool #

(/=)NetworkNetworkBool #

Ord Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compareNetworkNetworkOrdering #

(<)NetworkNetworkBool #

(<=)NetworkNetworkBool #

(>)NetworkNetworkBool #

(>=)NetworkNetworkBool #

maxNetworkNetworkNetwork #

minNetworkNetworkNetwork #

NoThunks Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep Network = D1 ('MetaData "Network" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.15.0.0-1046d1b1904b07389ef0faa5b38408cc4c76b23815c29933c8ff4d80bd3043da" 'False) (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1TypeType))

class Bounded r ⇒ BoundedRational r where #

Type clases that allows conversion between Rational and some form of bounded rational type. Bounds can be restricted by both the Bounded type class and underlyng representation.

maybe True (\br -> minBound <= br && br <= maxBound) . boundRational

Roundtrip properties must hold:

\r -> maybe True ((r ==) . unboundRational) (boundRational r)
\br -> Just br == boundRational (unboundRational br)

Methods

boundRationalRationalMaybe r #

Returns Nothing when supplied value is not within bounds or when precision is too high to be represented by the underlying type

Example

Expand
>>> :set -XTypeApplications
>>> import Data.Ratio
>>> boundRational @UnitInterval $ 2 % 3
Just (2 % 3)
>>> boundRational @UnitInterval (-0.5)
Nothing
>>> boundRational @UnitInterval (1.5)
Nothing
>>> boundRational @UnitInterval 0
Just (0 % 1)
>>> boundRational @PositiveUnitInterval 0
Nothing

unboundRational ∷ r → Rational #

Promote bounded rational type into the unbounded Rational.

data UnitInterval #

Type to represent a value in the unit interval [0; 1]

Instances

Instances details
FromJSON UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Bounded UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep UnitIntervalTypeType #

Show UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

DecCBOR UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORUnitIntervalEncoding #

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

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

BoundedRational UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

IsRatio UnitInterval 
Instance details

Defined in Test.Cardano.Ledger.Core.Rational

Methods

(%!)IntegerIntegerUnitInterval

Default UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

defUnitInterval #

NFData UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfUnitInterval → () #

Eq UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Ord UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

NoThunks UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

Integral a ⇒ Bounded (BoundedRatio UnitInterval a) 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

minBound ∷ BoundedRatio UnitInterval a #

maxBound ∷ BoundedRatio UnitInterval a #

type Rep UnitInterval 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep UnitInterval = D1 ('MetaData "UnitInterval" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.15.0.0-1046d1b1904b07389ef0faa5b38408cc4c76b23815c29933c8ff4d80bd3043da" 'True) (C1 ('MetaCons "UnitInterval" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (BoundedRatio UnitInterval Word64))))

data ProtVer #

Constructors

ProtVer 

Fields

Instances

Instances details
FromJSON ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToJSON ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Generic ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Associated Types

type Rep ProtVerTypeType #

Methods

fromProtVerRep ProtVer x #

toRep ProtVer x → ProtVer #

Show ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

showsPrecIntProtVerShowS #

showProtVerString #

showList ∷ [ProtVer] → ShowS #

FromCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

ToCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

toCBORProtVerEncoding #

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

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

DecCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBOR ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

encCBORProtVerEncoding #

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

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

DecCBORGroup ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

EncCBORGroup ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

NFData ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

rnfProtVer → () #

Eq ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

(==)ProtVerProtVerBool #

(/=)ProtVerProtVerBool #

Ord ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

Methods

compareProtVerProtVerOrdering #

(<)ProtVerProtVerBool #

(<=)ProtVerProtVerBool #

(>)ProtVerProtVerBool #

(>=)ProtVerProtVerBool #

maxProtVerProtVerProtVer #

minProtVerProtVerProtVer #

NoThunks ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep ProtVer 
Instance details

Defined in Cardano.Ledger.BaseTypes

type Rep ProtVer = D1 ('MetaData "ProtVer" "Cardano.Ledger.BaseTypes" "cardano-ledger-core-1.15.0.0-1046d1b1904b07389ef0faa5b38408cc4c76b23815c29933c8ff4d80bd3043da" 'False) (C1 ('MetaCons "ProtVer" 'PrefixI 'True) (S1 ('MetaSel ('Just "pvMajor") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Version) :*: S1 ('MetaSel ('Just "pvMinor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Natural)))