plutarch-ledger-api
Safe HaskellNone
LanguageHaskell2010

Plutarch.LedgerApi.V1

Synopsis

Contexts

data PScriptPurpose (s :: S) Source #

Since: 3.1.1

Constructors

PMinting (Term s (PAsData PCurrencySymbol)) 
PSpending (Term s PTxOutRef) 
PRewarding (Term s PStakingCredential) 
PCertifying (Term s PDCert) 

Instances

Instances details
PEq PScriptPurpose Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Methods

(#==) :: forall (s :: S). Term s PScriptPurpose -> Term s PScriptPurpose -> Term s PBool

PIsData PScriptPurpose Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PScriptPurpose) -> Term s PScriptPurpose

pdataImpl :: forall (s :: S). Term s PScriptPurpose -> Term s PData

PLiftable PScriptPurpose Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Associated Types

type AsHaskell PScriptPurpose

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type AsHaskell PScriptPurpose = AsHaskell (DeriveDataPLiftable PScriptPurpose ScriptPurpose)
type PlutusRepr PScriptPurpose 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type PlutusRepr PScriptPurpose = PlutusRepr (DeriveDataPLiftable PScriptPurpose ScriptPurpose)

Methods

haskToRepr :: AsHaskell PScriptPurpose -> PlutusRepr PScriptPurpose

reprToHask :: PlutusRepr PScriptPurpose -> Either LiftError (AsHaskell PScriptPurpose)

reprToPlut :: forall (s :: S). PlutusRepr PScriptPurpose -> PLifted s PScriptPurpose

plutToRepr :: (forall (s :: S). PLifted s PScriptPurpose) -> Either LiftError (PlutusRepr PScriptPurpose)

PValidateData PScriptPurpose Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PScriptPurpose Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Associated Types

type PInner PScriptPurpose

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type PInner PScriptPurpose = PInner (DeriveAsDataStruct PScriptPurpose)

Methods

pcon' :: forall (s :: S). PScriptPurpose s -> Term s (PInner PScriptPurpose)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PScriptPurpose) -> (PScriptPurpose s -> Term s b) -> Term s b

PShow PScriptPurpose Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Methods

pshow' :: forall (s :: S). Bool -> Term s PScriptPurpose -> Term s PString

PTryFrom PData (PAsData PScriptPurpose) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Associated Types

type PTryFromExcess PData (PAsData PScriptPurpose) 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type PTryFromExcess PData (PAsData PScriptPurpose) = PTryFromExcess PData (PInner (PAsData PScriptPurpose))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PScriptPurpose), Reduce (PTryFromExcess PData (PAsData PScriptPurpose) s)) -> Term s r) -> Term s r

Generic (PScriptPurpose s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Associated Types

type Rep (PScriptPurpose s)

Since: plutarch-ledger-api-3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type Rep (PScriptPurpose s) = D1 ('MetaData "PScriptPurpose" "Plutarch.LedgerApi.V1.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PCurrencySymbol)))) :+: C1 ('MetaCons "PSpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOutRef)))) :+: (C1 ('MetaCons "PRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential))) :+: C1 ('MetaCons "PCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDCert)))))
Generic (PScriptPurpose s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

Associated Types

type Code (PScriptPurpose s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type Code (PScriptPurpose s) = GCode (PScriptPurpose s)

Methods

from :: PScriptPurpose s -> Rep (PScriptPurpose s)

to :: Rep (PScriptPurpose s) -> PScriptPurpose s

type AsHaskell PScriptPurpose Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type AsHaskell PScriptPurpose = AsHaskell (DeriveDataPLiftable PScriptPurpose ScriptPurpose)
type PlutusRepr PScriptPurpose Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type PlutusRepr PScriptPurpose = PlutusRepr (DeriveDataPLiftable PScriptPurpose ScriptPurpose)
type PInner PScriptPurpose Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type PInner PScriptPurpose = PInner (DeriveAsDataStruct PScriptPurpose)
type PTryFromExcess PData (PAsData PScriptPurpose) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type PTryFromExcess PData (PAsData PScriptPurpose) = PTryFromExcess PData (PInner (PAsData PScriptPurpose))
type Rep (PScriptPurpose s) Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type Rep (PScriptPurpose s) = D1 ('MetaData "PScriptPurpose" "Plutarch.LedgerApi.V1.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PMinting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PCurrencySymbol)))) :+: C1 ('MetaCons "PSpending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOutRef)))) :+: (C1 ('MetaCons "PRewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential))) :+: C1 ('MetaCons "PCertifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDCert)))))
type Code (PScriptPurpose s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Contexts

type Code (PScriptPurpose s) = GCode (PScriptPurpose s)

data PScriptContext (s :: S) Source #

Since: 3.1.1

Instances

Instances details
PEq PScriptContext Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

(#==) :: forall (s :: S). Term s PScriptContext -> Term s PScriptContext -> Term s PBool

PIsData PScriptContext Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PScriptContext) -> Term s PScriptContext

pdataImpl :: forall (s :: S). Term s PScriptContext -> Term s PData

PLiftable PScriptContext Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type AsHaskell PScriptContext

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PScriptContext = AsHaskell (DeriveDataPLiftable PScriptContext ScriptContext)
type PlutusRepr PScriptContext 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PScriptContext = PlutusRepr (DeriveDataPLiftable PScriptContext ScriptContext)

Methods

haskToRepr :: AsHaskell PScriptContext -> PlutusRepr PScriptContext

reprToHask :: PlutusRepr PScriptContext -> Either LiftError (AsHaskell PScriptContext)

reprToPlut :: forall (s :: S). PlutusRepr PScriptContext -> PLifted s PScriptContext

plutToRepr :: (forall (s :: S). PLifted s PScriptContext) -> Either LiftError (PlutusRepr PScriptContext)

PValidateData PScriptContext Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PScriptContext Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PInner PScriptContext

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PScriptContext = PInner (DeriveAsDataStruct PScriptContext)

Methods

pcon' :: forall (s :: S). PScriptContext s -> Term s (PInner PScriptContext)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PScriptContext) -> (PScriptContext s -> Term s b) -> Term s b

PShow PScriptContext Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pshow' :: forall (s :: S). Bool -> Term s PScriptContext -> Term s PString

PTryFrom PData (PAsData PScriptContext) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PTryFromExcess PData (PAsData PScriptContext) 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PScriptContext) = PTryFromExcess PData (PInner (PAsData PScriptContext))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PScriptContext), Reduce (PTryFromExcess PData (PAsData PScriptContext) s)) -> Term s r) -> Term s r

Generic (PScriptContext s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Rep (PScriptContext s)

Since: plutarch-ledger-api-3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PScriptContext s) = D1 ('MetaData "PScriptContext" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PScriptContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "pscriptContext'txInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxInfo)) :*: S1 ('MetaSel ('Just "pscriptContext'purpose") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PScriptPurpose))))
Generic (PScriptContext s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Code (PScriptContext s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PScriptContext s) = GCode (PScriptContext s)

Methods

from :: PScriptContext s -> Rep (PScriptContext s)

to :: Rep (PScriptContext s) -> PScriptContext s

type AsHaskell PScriptContext Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PScriptContext = AsHaskell (DeriveDataPLiftable PScriptContext ScriptContext)
type PlutusRepr PScriptContext Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PScriptContext = PlutusRepr (DeriveDataPLiftable PScriptContext ScriptContext)
type PInner PScriptContext Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PScriptContext = PInner (DeriveAsDataStruct PScriptContext)
type PTryFromExcess PData (PAsData PScriptContext) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PScriptContext) = PTryFromExcess PData (PInner (PAsData PScriptContext))
type Rep (PScriptContext s) Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PScriptContext s) = D1 ('MetaData "PScriptContext" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PScriptContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "pscriptContext'txInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxInfo)) :*: S1 ('MetaSel ('Just "pscriptContext'purpose") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PScriptPurpose))))
type Code (PScriptContext s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PScriptContext s) = GCode (PScriptContext s)

Certificates

data PDCert (s :: S) Source #

Since: 3.1.1

Constructors

PDCertDelegRegKey (Term s PStakingCredential) 
PDCertDelegDeRegKey (Term s PStakingCredential) 
PDCertDelegDelegate (Term s PStakingCredential) (Term s (PAsData PPubKeyHash)) 
PDCertPoolRegister (Term s (PAsData PPubKeyHash)) (Term s (PAsData PPubKeyHash)) 
PDCertPoolRetire (Term s (PAsData PPubKeyHash)) (Term s (PAsData PInteger)) 
PDCertGenesis 
PDCertMir 

Instances

Instances details
PEq PDCert Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Methods

(#==) :: forall (s :: S). Term s PDCert -> Term s PDCert -> Term s PBool

PIsData PDCert Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PDCert) -> Term s PDCert

pdataImpl :: forall (s :: S). Term s PDCert -> Term s PData

PLiftable PDCert Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Associated Types

type AsHaskell PDCert

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type AsHaskell PDCert = AsHaskell (DeriveDataPLiftable PDCert DCert)
type PlutusRepr PDCert 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type PlutusRepr PDCert = PlutusRepr (DeriveDataPLiftable PDCert DCert)

Methods

haskToRepr :: AsHaskell PDCert -> PlutusRepr PDCert

reprToHask :: PlutusRepr PDCert -> Either LiftError (AsHaskell PDCert)

reprToPlut :: forall (s :: S). PlutusRepr PDCert -> PLifted s PDCert

plutToRepr :: (forall (s :: S). PLifted s PDCert) -> Either LiftError (PlutusRepr PDCert)

PValidateData PDCert Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PDCert Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Associated Types

type PInner PDCert

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type PInner PDCert = PInner (DeriveAsDataStruct PDCert)

Methods

pcon' :: forall (s :: S). PDCert s -> Term s (PInner PDCert)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PDCert) -> (PDCert s -> Term s b) -> Term s b

PShow PDCert Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Methods

pshow' :: forall (s :: S). Bool -> Term s PDCert -> Term s PString

PTryFrom PData (PAsData PDCert) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Associated Types

type PTryFromExcess PData (PAsData PDCert) 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type PTryFromExcess PData (PAsData PDCert) = PTryFromExcess PData (PInner (PAsData PDCert))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PDCert), Reduce (PTryFromExcess PData (PAsData PDCert) s)) -> Term s r) -> Term s r

Generic (PDCert s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Associated Types

type Rep (PDCert s)

Since: plutarch-ledger-api-3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type Rep (PDCert s) = D1 ('MetaData "PDCert" "Plutarch.LedgerApi.V1.DCert" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PDCertDelegRegKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential))) :+: (C1 ('MetaCons "PDCertDelegDeRegKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential))) :+: C1 ('MetaCons "PDCertDelegDelegate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))))) :+: ((C1 ('MetaCons "PDCertPoolRegister" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))) :+: C1 ('MetaCons "PDCertPoolRetire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))))) :+: (C1 ('MetaCons "PDCertGenesis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PDCertMir" 'PrefixI 'False) (U1 :: Type -> Type))))

Methods

from :: PDCert s -> Rep (PDCert s) x Source #

to :: Rep (PDCert s) x -> PDCert s Source #

Generic (PDCert s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

Associated Types

type Code (PDCert s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type Code (PDCert s) = GCode (PDCert s)

Methods

from :: PDCert s -> Rep (PDCert s)

to :: Rep (PDCert s) -> PDCert s

type AsHaskell PDCert Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type AsHaskell PDCert = AsHaskell (DeriveDataPLiftable PDCert DCert)
type PlutusRepr PDCert Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type PlutusRepr PDCert = PlutusRepr (DeriveDataPLiftable PDCert DCert)
type PInner PDCert Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type PInner PDCert = PInner (DeriveAsDataStruct PDCert)
type PTryFromExcess PData (PAsData PDCert) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type PTryFromExcess PData (PAsData PDCert) = PTryFromExcess PData (PInner (PAsData PDCert))
type Rep (PDCert s) Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type Rep (PDCert s) = D1 ('MetaData "PDCert" "Plutarch.LedgerApi.V1.DCert" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PDCertDelegRegKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential))) :+: (C1 ('MetaCons "PDCertDelegDeRegKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential))) :+: C1 ('MetaCons "PDCertDelegDelegate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PStakingCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))))) :+: ((C1 ('MetaCons "PDCertPoolRegister" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))) :+: C1 ('MetaCons "PDCertPoolRetire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))))) :+: (C1 ('MetaCons "PDCertGenesis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PDCertMir" 'PrefixI 'False) (U1 :: Type -> Type))))
type Code (PDCert s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.DCert

type Code (PDCert s) = GCode (PDCert s)

Credentials

data PCredential (s :: S) Source #

Since: 2.0.0

Constructors

PPubKeyCredential (Term s (PAsData PPubKeyHash)) 
PScriptCredential (Term s (PAsData PScriptHash)) 

Instances

Instances details
PEq PCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

(#==) :: forall (s :: S). Term s PCredential -> Term s PCredential -> Term s PBool

PIsData PCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PCredential) -> Term s PCredential

pdataImpl :: forall (s :: S). Term s PCredential -> Term s PData

PLiftable PCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type AsHaskell PCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type AsHaskell PCredential = AsHaskell (DeriveDataPLiftable PCredential Credential)
type PlutusRepr PCredential 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PlutusRepr PCredential = PlutusRepr (DeriveDataPLiftable PCredential Credential)

Methods

haskToRepr :: AsHaskell PCredential -> PlutusRepr PCredential

reprToHask :: PlutusRepr PCredential -> Either LiftError (AsHaskell PCredential)

reprToPlut :: forall (s :: S). PlutusRepr PCredential -> PLifted s PCredential

plutToRepr :: (forall (s :: S). PLifted s PCredential) -> Either LiftError (PlutusRepr PCredential)

POrd PCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

(#<=) :: forall (s :: S). Term s PCredential -> Term s PCredential -> Term s PBool

(#<) :: forall (s :: S). Term s PCredential -> Term s PCredential -> Term s PBool

pmax :: forall (s :: S). Term s PCredential -> Term s PCredential -> Term s PCredential

pmin :: forall (s :: S). Term s PCredential -> Term s PCredential -> Term s PCredential

PValidateData PCredential Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type PInner PCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PInner PCredential = PInner (DeriveAsDataStruct PCredential)

Methods

pcon' :: forall (s :: S). PCredential s -> Term s (PInner PCredential)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PCredential) -> (PCredential s -> Term s b) -> Term s b

PShow PCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

pshow' :: forall (s :: S). Bool -> Term s PCredential -> Term s PString

PTryFrom PData (PAsData PCredential) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type PTryFromExcess PData (PAsData PCredential) 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PTryFromExcess PData (PAsData PCredential) = PTryFromExcess PData (PInner (PAsData PCredential))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PCredential), Reduce (PTryFromExcess PData (PAsData PCredential) s)) -> Term s r) -> Term s r

Generic (PCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type Rep (PCredential s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Rep (PCredential s) = D1 ('MetaData "PCredential" "Plutarch.LedgerApi.V1.Credential" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PPubKeyCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))) :+: C1 ('MetaCons "PScriptCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PScriptHash)))))
Generic (PCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type Code (PCredential s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Code (PCredential s) = GCode (PCredential s)

Methods

from :: PCredential s -> Rep (PCredential s)

to :: Rep (PCredential s) -> PCredential s

type AsHaskell PCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type AsHaskell PCredential = AsHaskell (DeriveDataPLiftable PCredential Credential)
type PlutusRepr PCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PlutusRepr PCredential = PlutusRepr (DeriveDataPLiftable PCredential Credential)
type PInner PCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PInner PCredential = PInner (DeriveAsDataStruct PCredential)
type PTryFromExcess PData (PAsData PCredential) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PTryFromExcess PData (PAsData PCredential) = PTryFromExcess PData (PInner (PAsData PCredential))
type Rep (PCredential s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Rep (PCredential s) = D1 ('MetaData "PCredential" "Plutarch.LedgerApi.V1.Credential" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PPubKeyCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))) :+: C1 ('MetaCons "PScriptCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PScriptHash)))))
type Code (PCredential s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Code (PCredential s) = GCode (PCredential s)

data PStakingCredential (s :: S) Source #

Since: 2.0.0

Constructors

PStakingHash (Term s PCredential) 
PStakingPtr (Term s (PAsData PInteger)) (Term s (PAsData PInteger)) (Term s (PAsData PInteger)) 

Instances

Instances details
PEq PStakingCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

(#==) :: forall (s :: S). Term s PStakingCredential -> Term s PStakingCredential -> Term s PBool

PIsData PStakingCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PStakingCredential) -> Term s PStakingCredential

pdataImpl :: forall (s :: S). Term s PStakingCredential -> Term s PData

PLiftable PStakingCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type AsHaskell PStakingCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type AsHaskell PStakingCredential = AsHaskell (DeriveDataPLiftable PStakingCredential StakingCredential)
type PlutusRepr PStakingCredential 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PlutusRepr PStakingCredential = PlutusRepr (DeriveDataPLiftable PStakingCredential StakingCredential)

Methods

haskToRepr :: AsHaskell PStakingCredential -> PlutusRepr PStakingCredential

reprToHask :: PlutusRepr PStakingCredential -> Either LiftError (AsHaskell PStakingCredential)

reprToPlut :: forall (s :: S). PlutusRepr PStakingCredential -> PLifted s PStakingCredential

plutToRepr :: (forall (s :: S). PLifted s PStakingCredential) -> Either LiftError (PlutusRepr PStakingCredential)

PValidateData PStakingCredential Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PStakingCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type PInner PStakingCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PInner PStakingCredential = PInner (DeriveAsDataStruct PStakingCredential)

Methods

pcon' :: forall (s :: S). PStakingCredential s -> Term s (PInner PStakingCredential)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PStakingCredential) -> (PStakingCredential s -> Term s b) -> Term s b

PShow PStakingCredential Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Methods

pshow' :: forall (s :: S). Bool -> Term s PStakingCredential -> Term s PString

PTryFrom PData (PAsData PStakingCredential) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type PTryFromExcess PData (PAsData PStakingCredential) 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PTryFromExcess PData (PAsData PStakingCredential) = PTryFromExcess PData (PInner (PAsData PStakingCredential))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PStakingCredential), Reduce (PTryFromExcess PData (PAsData PStakingCredential) s)) -> Term s r) -> Term s r

Generic (PStakingCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type Rep (PStakingCredential s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Rep (PStakingCredential s) = D1 ('MetaData "PStakingCredential" "Plutarch.LedgerApi.V1.Credential" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PStakingHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential))) :+: C1 ('MetaCons "PStakingPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))))))
Generic (PStakingCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

Associated Types

type Code (PStakingCredential s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Code (PStakingCredential s) = GCode (PStakingCredential s)
type AsHaskell PStakingCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type AsHaskell PStakingCredential = AsHaskell (DeriveDataPLiftable PStakingCredential StakingCredential)
type PlutusRepr PStakingCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PlutusRepr PStakingCredential = PlutusRepr (DeriveDataPLiftable PStakingCredential StakingCredential)
type PInner PStakingCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PInner PStakingCredential = PInner (DeriveAsDataStruct PStakingCredential)
type PTryFromExcess PData (PAsData PStakingCredential) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type PTryFromExcess PData (PAsData PStakingCredential) = PTryFromExcess PData (PInner (PAsData PStakingCredential))
type Rep (PStakingCredential s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Rep (PStakingCredential s) = D1 ('MetaData "PStakingCredential" "Plutarch.LedgerApi.V1.Credential" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PStakingHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential))) :+: C1 ('MetaCons "PStakingPtr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))))))
type Code (PStakingCredential s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Credential

type Code (PStakingCredential s) = GCode (PStakingCredential s)

Value

newtype PRawValue (s :: S) Source #

Represents Values without any guarantees.

Values of this type may be unsorted, have duplicate keys, contain empty token maps, and include entries with zero token quantities.

Since: 3.5.0

Constructors

PRawValue (Term s (PUnsortedMap PCurrencySymbol (PUnsortedMap PTokenName PInteger))) 

Instances

Instances details
PIsData PRawValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PRawValue) -> Term s PRawValue

pdataImpl :: forall (s :: S). Term s PRawValue -> Term s PData

PLiftable PRawValue Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type AsHaskell PRawValue

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type AsHaskell PRawValue = AsHaskell (DeriveNewtypePLiftable PRawValue Value)
type PlutusRepr PRawValue 
Instance details

Defined in Plutarch.LedgerApi.Value

type PlutusRepr PRawValue = PlutusRepr (DeriveNewtypePLiftable PRawValue Value)

Methods

haskToRepr :: AsHaskell PRawValue -> PlutusRepr PRawValue

reprToHask :: PlutusRepr PRawValue -> Either LiftError (AsHaskell PRawValue)

reprToPlut :: forall (s :: S). PlutusRepr PRawValue -> PLifted s PRawValue

plutToRepr :: (forall (s :: S). PLifted s PRawValue) -> Either LiftError (PlutusRepr PRawValue)

PValidateData PRawValue Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PRawValue Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type PInner PRawValue

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type PInner PRawValue = PInner (DeriveNewtypePlutusType PRawValue)

Methods

pcon' :: forall (s :: S). PRawValue s -> Term s (PInner PRawValue)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PRawValue) -> (PRawValue s -> Term s b) -> Term s b

PShow PRawValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pshow' :: forall (s :: S). Bool -> Term s PRawValue -> Term s PString

PTryFrom PData (PAsData PRawValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type PTryFromExcess PData (PAsData PRawValue) 
Instance details

Defined in Plutarch.LedgerApi.Value

type PTryFromExcess PData (PAsData PRawValue) = PTryFromExcess PData (PInner (PAsData PRawValue))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PRawValue), Reduce (PTryFromExcess PData (PAsData PRawValue) s)) -> Term s r) -> Term s r

Generic (PRawValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type Rep (PRawValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Rep (PRawValue s) = D1 ('MetaData "PRawValue" "Plutarch.LedgerApi.Value" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PRawValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PUnsortedMap PCurrencySymbol (PUnsortedMap PTokenName PInteger))))))

Methods

from :: PRawValue s -> Rep (PRawValue s) x Source #

to :: Rep (PRawValue s) x -> PRawValue s Source #

Generic (PRawValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type Code (PRawValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Code (PRawValue s) = GCode (PRawValue s)

Methods

from :: PRawValue s -> Rep (PRawValue s)

to :: Rep (PRawValue s) -> PRawValue s

type AsHaskell PRawValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type AsHaskell PRawValue = AsHaskell (DeriveNewtypePLiftable PRawValue Value)
type PlutusRepr PRawValue Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

type PlutusRepr PRawValue = PlutusRepr (DeriveNewtypePLiftable PRawValue Value)
type PInner PRawValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type PInner PRawValue = PInner (DeriveNewtypePlutusType PRawValue)
type PTryFromExcess PData (PAsData PRawValue) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

type PTryFromExcess PData (PAsData PRawValue) = PTryFromExcess PData (PInner (PAsData PRawValue))
type Rep (PRawValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Rep (PRawValue s) = D1 ('MetaData "PRawValue" "Plutarch.LedgerApi.Value" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PRawValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PUnsortedMap PCurrencySymbol (PUnsortedMap PTokenName PInteger))))))
type Code (PRawValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Code (PRawValue s) = GCode (PRawValue s)

data PSortedValue (s :: S) Source #

Represents sorted, well-formed Values without empty token maps.

Duplicate currency symbols or duplicate token names within the same token map are not allowed (since wip).

Compared to PRawValue, this type provides stronger guarantees, though PSortedValues may still contain entries with zero token quantities.

Since: 3.5.0

Instances

Instances details
PEq PSortedValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(#==) :: forall (s :: S). Term s PSortedValue -> Term s PSortedValue -> Term s PBool

PIsData PSortedValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PSortedValue) -> Term s PSortedValue

pdataImpl :: forall (s :: S). Term s PSortedValue -> Term s PData

PValidateData PSortedValue Source #

Checks that we have a valid PSortedValue. The underlying map must be sorted and contain no empty token maps.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PSortedValue Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type PInner PSortedValue

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type PInner PSortedValue = PInner (DeriveNewtypePlutusType PSortedValue)

Methods

pcon' :: forall (s :: S). PSortedValue s -> Term s (PInner PSortedValue)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PSortedValue) -> (PSortedValue s -> Term s b) -> Term s b

PMonoid PSortedValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pmempty :: forall (s :: S). Term s PSortedValue

pmtimes :: forall (s :: S). Term s PNatural -> Term s PSortedValue -> Term s PSortedValue

PSemigroup PSortedValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(#<>) :: forall (s :: S). Term s PSortedValue -> Term s PSortedValue -> Term s PSortedValue

pstimes :: forall (s :: S). Term s PPositive -> Term s PSortedValue -> Term s PSortedValue

PShow PSortedValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pshow' :: forall (s :: S). Bool -> Term s PSortedValue -> Term s PString

PTryFrom PData (PAsData PSortedValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type PTryFromExcess PData (PAsData PSortedValue) 
Instance details

Defined in Plutarch.LedgerApi.Value

type PTryFromExcess PData (PAsData PSortedValue) = PTryFromExcess PData (PInner (PAsData PSortedValue))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PSortedValue), Reduce (PTryFromExcess PData (PAsData PSortedValue) s)) -> Term s r) -> Term s r

Generic (PSortedValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type Rep (PSortedValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Rep (PSortedValue s) = D1 ('MetaData "PSortedValue" "Plutarch.LedgerApi.Value" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PSortedValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PSortedMap PCurrencySymbol (PSortedMap PTokenName PInteger))))))
Generic (PSortedValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type Code (PSortedValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Code (PSortedValue s) = GCode (PSortedValue s)

Methods

from :: PSortedValue s -> Rep (PSortedValue s)

to :: Rep (PSortedValue s) -> PSortedValue s

Monoid (Term s PSortedValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

mempty :: Term s PSortedValue Source #

mappend :: Term s PSortedValue -> Term s PSortedValue -> Term s PSortedValue Source #

mconcat :: [Term s PSortedValue] -> Term s PSortedValue Source #

Semigroup (Term s PSortedValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(<>) :: Term s PSortedValue -> Term s PSortedValue -> Term s PSortedValue Source #

sconcat :: NonEmpty (Term s PSortedValue) -> Term s PSortedValue Source #

stimes :: Integral b => b -> Term s PSortedValue -> Term s PSortedValue Source #

Group (Term s PSortedValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

inv :: Term s PSortedValue -> Term s PSortedValue

Monoid (Term s PSortedValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

mempty :: Term s PSortedValue

Semigroup (Term s PSortedValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(<>) :: Term s PSortedValue -> Term s PSortedValue -> Term s PSortedValue

type PInner PSortedValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type PInner PSortedValue = PInner (DeriveNewtypePlutusType PSortedValue)
type PTryFromExcess PData (PAsData PSortedValue) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

type PTryFromExcess PData (PAsData PSortedValue) = PTryFromExcess PData (PInner (PAsData PSortedValue))
type Rep (PSortedValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Rep (PSortedValue s) = D1 ('MetaData "PSortedValue" "Plutarch.LedgerApi.Value" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PSortedValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PSortedMap PCurrencySymbol (PSortedMap PTokenName PInteger))))))
type Code (PSortedValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Code (PSortedValue s) = GCode (PSortedValue s)

data PLedgerValue (s :: S) Source #

Represents sorted, well-formed Values with a mandatory Ada entry.

Duplicate currency symbols or duplicate token names within the same token map are not allowed (since wip).

Like PSortedValue, but requires the presence of an Ada entry, which may have a zero quantity. Values of this type may still contain entries with zero token quantities.

Since: 3.5.0

Instances

Instances details
PEq PLedgerValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(#==) :: forall (s :: S). Term s PLedgerValue -> Term s PLedgerValue -> Term s PBool

PIsData PLedgerValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PLedgerValue) -> Term s PLedgerValue

pdataImpl :: forall (s :: S). Term s PLedgerValue -> Term s PData

PValidateData PLedgerValue Source #

Checks that we have a valid PLedgerValue. The underlying map must be sorted, contain no empty token maps, and include an ADA entry.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PLedgerValue Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type PInner PLedgerValue

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type PInner PLedgerValue = PInner (DeriveNewtypePlutusType PLedgerValue)

Methods

pcon' :: forall (s :: S). PLedgerValue s -> Term s (PInner PLedgerValue)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PLedgerValue) -> (PLedgerValue s -> Term s b) -> Term s b

PMonoid PLedgerValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pmempty :: forall (s :: S). Term s PLedgerValue

pmtimes :: forall (s :: S). Term s PNatural -> Term s PLedgerValue -> Term s PLedgerValue

PSemigroup PLedgerValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(#<>) :: forall (s :: S). Term s PLedgerValue -> Term s PLedgerValue -> Term s PLedgerValue

pstimes :: forall (s :: S). Term s PPositive -> Term s PLedgerValue -> Term s PLedgerValue

PShow PLedgerValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

pshow' :: forall (s :: S). Bool -> Term s PLedgerValue -> Term s PString

PTryFrom PData (PAsData PLedgerValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type PTryFromExcess PData (PAsData PLedgerValue) 
Instance details

Defined in Plutarch.LedgerApi.Value

type PTryFromExcess PData (PAsData PLedgerValue) = PTryFromExcess PData (PInner (PAsData PLedgerValue))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PLedgerValue), Reduce (PTryFromExcess PData (PAsData PLedgerValue) s)) -> Term s r) -> Term s r

Generic (PLedgerValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type Rep (PLedgerValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Rep (PLedgerValue s) = D1 ('MetaData "PLedgerValue" "Plutarch.LedgerApi.Value" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PLedgerValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PSortedValue))))
Generic (PLedgerValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

Associated Types

type Code (PLedgerValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Code (PLedgerValue s) = GCode (PLedgerValue s)

Methods

from :: PLedgerValue s -> Rep (PLedgerValue s)

to :: Rep (PLedgerValue s) -> PLedgerValue s

Monoid (Term s PLedgerValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

mempty :: Term s PLedgerValue Source #

mappend :: Term s PLedgerValue -> Term s PLedgerValue -> Term s PLedgerValue Source #

mconcat :: [Term s PLedgerValue] -> Term s PLedgerValue Source #

Semigroup (Term s PLedgerValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(<>) :: Term s PLedgerValue -> Term s PLedgerValue -> Term s PLedgerValue Source #

sconcat :: NonEmpty (Term s PLedgerValue) -> Term s PLedgerValue Source #

stimes :: Integral b => b -> Term s PLedgerValue -> Term s PLedgerValue Source #

Group (Term s PLedgerValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

inv :: Term s PLedgerValue -> Term s PLedgerValue

Monoid (Term s PLedgerValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

mempty :: Term s PLedgerValue

Semigroup (Term s PLedgerValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

Methods

(<>) :: Term s PLedgerValue -> Term s PLedgerValue -> Term s PLedgerValue

type PInner PLedgerValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type PInner PLedgerValue = PInner (DeriveNewtypePlutusType PLedgerValue)
type PTryFromExcess PData (PAsData PLedgerValue) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value

type PTryFromExcess PData (PAsData PLedgerValue) = PTryFromExcess PData (PInner (PAsData PLedgerValue))
type Rep (PLedgerValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Rep (PLedgerValue s) = D1 ('MetaData "PLedgerValue" "Plutarch.LedgerApi.Value" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PLedgerValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PSortedValue))))
type Code (PLedgerValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Value

type Code (PLedgerValue s) = GCode (PLedgerValue s)

newtype PLovelace (s :: S) Source #

Since: 2.2.0

Constructors

PLovelace (Term s PInteger) 

Instances

Instances details
PEq PLovelace Source #

Since: 2.2.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Methods

(#==) :: forall (s :: S). Term s PLovelace -> Term s PLovelace -> Term s PBool

PIsData PLovelace Source #

Since: 2.2.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PLovelace) -> Term s PLovelace

pdataImpl :: forall (s :: S). Term s PLovelace -> Term s PData

PLiftable PLovelace Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Associated Types

type AsHaskell PLovelace

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type AsHaskell PLovelace = AsHaskell (DeriveNewtypePLiftable PLovelace Lovelace)
type PlutusRepr PLovelace 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type PlutusRepr PLovelace = PlutusRepr (DeriveNewtypePLiftable PLovelace Lovelace)

Methods

haskToRepr :: AsHaskell PLovelace -> PlutusRepr PLovelace

reprToHask :: PlutusRepr PLovelace -> Either LiftError (AsHaskell PLovelace)

reprToPlut :: forall (s :: S). PlutusRepr PLovelace -> PLifted s PLovelace

plutToRepr :: (forall (s :: S). PLifted s PLovelace) -> Either LiftError (PlutusRepr PLovelace)

POrd PLovelace Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Methods

(#<=) :: forall (s :: S). Term s PLovelace -> Term s PLovelace -> Term s PBool

(#<) :: forall (s :: S). Term s PLovelace -> Term s PLovelace -> Term s PBool

pmax :: forall (s :: S). Term s PLovelace -> Term s PLovelace -> Term s PLovelace

pmin :: forall (s :: S). Term s PLovelace -> Term s PLovelace -> Term s PLovelace

PValidateData PLovelace Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PLovelace Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Associated Types

type PInner PLovelace

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type PInner PLovelace = PInner (DeriveNewtypePlutusType PLovelace)

Methods

pcon' :: forall (s :: S). PLovelace s -> Term s (PInner PLovelace)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PLovelace) -> (PLovelace s -> Term s b) -> Term s b

PShow PLovelace Source #

Since: 2.2.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Methods

pshow' :: forall (s :: S). Bool -> Term s PLovelace -> Term s PString

PTryFrom PData (PAsData PLovelace) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Associated Types

type PTryFromExcess PData (PAsData PLovelace) 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type PTryFromExcess PData (PAsData PLovelace) = PTryFromExcess PData (PInner (PAsData PLovelace))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PLovelace), Reduce (PTryFromExcess PData (PAsData PLovelace) s)) -> Term s r) -> Term s r

Generic (PLovelace s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Associated Types

type Rep (PLovelace s)

Since: plutarch-ledger-api-2.2.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type Rep (PLovelace s) = D1 ('MetaData "PLovelace" "Plutarch.LedgerApi.Value.Lovelace" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PLovelace" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PInteger))))

Methods

from :: PLovelace s -> Rep (PLovelace s) x Source #

to :: Rep (PLovelace s) x -> PLovelace s Source #

Generic (PLovelace s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

Associated Types

type Code (PLovelace s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type Code (PLovelace s) = GCode (PLovelace s)

Methods

from :: PLovelace s -> Rep (PLovelace s)

to :: Rep (PLovelace s) -> PLovelace s

type AsHaskell PLovelace Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type AsHaskell PLovelace = AsHaskell (DeriveNewtypePLiftable PLovelace Lovelace)
type PlutusRepr PLovelace Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type PlutusRepr PLovelace = PlutusRepr (DeriveNewtypePLiftable PLovelace Lovelace)
type PInner PLovelace Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type PInner PLovelace = PInner (DeriveNewtypePlutusType PLovelace)
type PTryFromExcess PData (PAsData PLovelace) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type PTryFromExcess PData (PAsData PLovelace) = PTryFromExcess PData (PInner (PAsData PLovelace))
type Rep (PLovelace s) Source #

Since: 2.2.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type Rep (PLovelace s) = D1 ('MetaData "PLovelace" "Plutarch.LedgerApi.Value.Lovelace" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PLovelace" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PInteger))))
type Code (PLovelace s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.Lovelace

type Code (PLovelace s) = GCode (PLovelace s)

newtype PTokenName (s :: S) Source #

Since: 2.0.0

Constructors

PTokenName (Term s PByteString) 

Instances

Instances details
PEq PTokenName Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Methods

(#==) :: forall (s :: S). Term s PTokenName -> Term s PTokenName -> Term s PBool

PIsData PTokenName Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PTokenName) -> Term s PTokenName

pdataImpl :: forall (s :: S). Term s PTokenName -> Term s PData

PLiftable PTokenName Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Associated Types

type AsHaskell PTokenName 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type AsHaskell PTokenName = TokenName
type PlutusRepr PTokenName 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type PlutusRepr PTokenName = ByteString

Methods

haskToRepr :: AsHaskell PTokenName -> PlutusRepr PTokenName

reprToHask :: PlutusRepr PTokenName -> Either LiftError (AsHaskell PTokenName)

reprToPlut :: forall (s :: S). PlutusRepr PTokenName -> PLifted s PTokenName

plutToRepr :: (forall (s :: S). PLifted s PTokenName) -> Either LiftError (PlutusRepr PTokenName)

POrd PTokenName Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Methods

(#<=) :: forall (s :: S). Term s PTokenName -> Term s PTokenName -> Term s PBool

(#<) :: forall (s :: S). Term s PTokenName -> Term s PTokenName -> Term s PBool

pmax :: forall (s :: S). Term s PTokenName -> Term s PTokenName -> Term s PTokenName

pmin :: forall (s :: S). Term s PTokenName -> Term s PTokenName -> Term s PTokenName

PValidateData PTokenName Source #

Checks that we have a PTokenName of valid length. The underlying PByteString must not exceed 32 bytes.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PTokenName Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Associated Types

type PInner PTokenName

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type PInner PTokenName = PInner (DeriveNewtypePlutusType PTokenName)

Methods

pcon' :: forall (s :: S). PTokenName s -> Term s (PInner PTokenName)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PTokenName) -> (PTokenName s -> Term s b) -> Term s b

PShow PTokenName Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Methods

pshow' :: forall (s :: S). Bool -> Term s PTokenName -> Term s PString

PTryFrom PData (PAsData PTokenName) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Associated Types

type PTryFromExcess PData (PAsData PTokenName) 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type PTryFromExcess PData (PAsData PTokenName) = PTryFromExcess PData (PInner (PAsData PTokenName))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PTokenName), Reduce (PTryFromExcess PData (PAsData PTokenName) s)) -> Term s r) -> Term s r

Generic (PTokenName s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Associated Types

type Rep (PTokenName s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type Rep (PTokenName s) = D1 ('MetaData "PTokenName" "Plutarch.LedgerApi.Value.TokenName" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PTokenName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))

Methods

from :: PTokenName s -> Rep (PTokenName s) x Source #

to :: Rep (PTokenName s) x -> PTokenName s Source #

Generic (PTokenName s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

Associated Types

type Code (PTokenName s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type Code (PTokenName s) = GCode (PTokenName s)

Methods

from :: PTokenName s -> Rep (PTokenName s)

to :: Rep (PTokenName s) -> PTokenName s

type AsHaskell PTokenName Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type AsHaskell PTokenName = TokenName
type PlutusRepr PTokenName Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type PlutusRepr PTokenName = ByteString
type PInner PTokenName Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type PInner PTokenName = PInner (DeriveNewtypePlutusType PTokenName)
type PTryFromExcess PData (PAsData PTokenName) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type PTryFromExcess PData (PAsData PTokenName) = PTryFromExcess PData (PInner (PAsData PTokenName))
type Rep (PTokenName s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type Rep (PTokenName s) = D1 ('MetaData "PTokenName" "Plutarch.LedgerApi.Value.TokenName" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PTokenName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
type Code (PTokenName s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.TokenName

type Code (PTokenName s) = GCode (PTokenName s)

newtype PCurrencySymbol (s :: S) Source #

Since: 2.0.0

Constructors

PCurrencySymbol (Term s PByteString) 

Instances

Instances details
PEq PCurrencySymbol Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Methods

(#==) :: forall (s :: S). Term s PCurrencySymbol -> Term s PCurrencySymbol -> Term s PBool

PIsData PCurrencySymbol Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PCurrencySymbol) -> Term s PCurrencySymbol

pdataImpl :: forall (s :: S). Term s PCurrencySymbol -> Term s PData

PLiftable PCurrencySymbol Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Associated Types

type AsHaskell PCurrencySymbol 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type AsHaskell PCurrencySymbol = CurrencySymbol
type PlutusRepr PCurrencySymbol 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type PlutusRepr PCurrencySymbol = ByteString

Methods

haskToRepr :: AsHaskell PCurrencySymbol -> PlutusRepr PCurrencySymbol

reprToHask :: PlutusRepr PCurrencySymbol -> Either LiftError (AsHaskell PCurrencySymbol)

reprToPlut :: forall (s :: S). PlutusRepr PCurrencySymbol -> PLifted s PCurrencySymbol

plutToRepr :: (forall (s :: S). PLifted s PCurrencySymbol) -> Either LiftError (PlutusRepr PCurrencySymbol)

POrd PCurrencySymbol Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Methods

(#<=) :: forall (s :: S). Term s PCurrencySymbol -> Term s PCurrencySymbol -> Term s PBool

(#<) :: forall (s :: S). Term s PCurrencySymbol -> Term s PCurrencySymbol -> Term s PBool

pmax :: forall (s :: S). Term s PCurrencySymbol -> Term s PCurrencySymbol -> Term s PCurrencySymbol

pmin :: forall (s :: S). Term s PCurrencySymbol -> Term s PCurrencySymbol -> Term s PCurrencySymbol

PValidateData PCurrencySymbol Source #

Checks that we have a PCurrencySymbol of valid length. The underlying PByteString must be exactly 28 bytes, as Cardano minting policies are hashed with BLAKE2b-224.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PCurrencySymbol Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Associated Types

type PInner PCurrencySymbol

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type PInner PCurrencySymbol = PInner (DeriveNewtypePlutusType PCurrencySymbol)

Methods

pcon' :: forall (s :: S). PCurrencySymbol s -> Term s (PInner PCurrencySymbol)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PCurrencySymbol) -> (PCurrencySymbol s -> Term s b) -> Term s b

PShow PCurrencySymbol Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Methods

pshow' :: forall (s :: S). Bool -> Term s PCurrencySymbol -> Term s PString

PTryFrom PData (PAsData PCurrencySymbol) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Associated Types

type PTryFromExcess PData (PAsData PCurrencySymbol) 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type PTryFromExcess PData (PAsData PCurrencySymbol) = PTryFromExcess PData (PInner (PAsData PCurrencySymbol))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PCurrencySymbol), Reduce (PTryFromExcess PData (PAsData PCurrencySymbol) s)) -> Term s r) -> Term s r

Generic (PCurrencySymbol s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Associated Types

type Rep (PCurrencySymbol s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type Rep (PCurrencySymbol s) = D1 ('MetaData "PCurrencySymbol" "Plutarch.LedgerApi.Value.CurrencySymbol" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PCurrencySymbol" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
Generic (PCurrencySymbol s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

Associated Types

type Code (PCurrencySymbol s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type Code (PCurrencySymbol s) = GCode (PCurrencySymbol s)
type AsHaskell PCurrencySymbol Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type AsHaskell PCurrencySymbol = CurrencySymbol
type PlutusRepr PCurrencySymbol Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type PlutusRepr PCurrencySymbol = ByteString
type PInner PCurrencySymbol Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type PInner PCurrencySymbol = PInner (DeriveNewtypePlutusType PCurrencySymbol)
type PTryFromExcess PData (PAsData PCurrencySymbol) Source # 
Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type PTryFromExcess PData (PAsData PCurrencySymbol) = PTryFromExcess PData (PInner (PAsData PCurrencySymbol))
type Rep (PCurrencySymbol s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type Rep (PCurrencySymbol s) = D1 ('MetaData "PCurrencySymbol" "Plutarch.LedgerApi.Value.CurrencySymbol" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PCurrencySymbol" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
type Code (PCurrencySymbol s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Value.CurrencySymbol

type Code (PCurrencySymbol s) = GCode (PCurrencySymbol s)

data PMintValue (s :: S) Source #

Represents sorted, well-formed Values with a mandatory zero Ada entry, while all other token quantities must be non-zero.

Duplicate currency symbols or duplicate token names within the same token map are not allowed (since wip).

Since: 3.5.0

Instances

Instances details
PEq PMintValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

(#==) :: forall (s :: S). Term s PMintValue -> Term s PMintValue -> Term s PBool

PIsData PMintValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PMintValue) -> Term s PMintValue

pdataImpl :: forall (s :: S). Term s PMintValue -> Term s PData

PValidateData PMintValue Source #

Checks that we have a valid PMintValue. The underlying map must be sorted, include a zero ADA entry, and contain no empty token maps or non-ADA tokens with zero quantities.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PMintValue Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Associated Types

type PInner PMintValue

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type PInner PMintValue = PInner (DeriveNewtypePlutusType PMintValue)

Methods

pcon' :: forall (s :: S). PMintValue s -> Term s (PInner PMintValue)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PMintValue) -> (PMintValue s -> Term s b) -> Term s b

PMonoid PMintValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

pmempty :: forall (s :: S). Term s PMintValue

pmtimes :: forall (s :: S). Term s PNatural -> Term s PMintValue -> Term s PMintValue

PSemigroup PMintValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

(#<>) :: forall (s :: S). Term s PMintValue -> Term s PMintValue -> Term s PMintValue

pstimes :: forall (s :: S). Term s PPositive -> Term s PMintValue -> Term s PMintValue

PShow PMintValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

pshow' :: forall (s :: S). Bool -> Term s PMintValue -> Term s PString

PTryFrom PData (PAsData PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Associated Types

type PTryFromExcess PData (PAsData PMintValue) 
Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type PTryFromExcess PData (PAsData PMintValue) = PTryFromExcess PData (PInner (PAsData PMintValue))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PMintValue), Reduce (PTryFromExcess PData (PAsData PMintValue) s)) -> Term s r) -> Term s r

Generic (PMintValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Associated Types

type Rep (PMintValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type Rep (PMintValue s) = D1 ('MetaData "PMintValue" "Plutarch.LedgerApi.V1.MintValue" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PMintValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PSortedValue))))

Methods

from :: PMintValue s -> Rep (PMintValue s) x Source #

to :: Rep (PMintValue s) x -> PMintValue s Source #

Generic (PMintValue s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Associated Types

type Code (PMintValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type Code (PMintValue s) = GCode (PMintValue s)

Methods

from :: PMintValue s -> Rep (PMintValue s)

to :: Rep (PMintValue s) -> PMintValue s

Monoid (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

mempty :: Term s PMintValue Source #

mappend :: Term s PMintValue -> Term s PMintValue -> Term s PMintValue Source #

mconcat :: [Term s PMintValue] -> Term s PMintValue Source #

Semigroup (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

(<>) :: Term s PMintValue -> Term s PMintValue -> Term s PMintValue Source #

sconcat :: NonEmpty (Term s PMintValue) -> Term s PMintValue Source #

stimes :: Integral b => b -> Term s PMintValue -> Term s PMintValue Source #

Group (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

inv :: Term s PMintValue -> Term s PMintValue

Monoid (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

mempty :: Term s PMintValue

Semigroup (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

Methods

(<>) :: Term s PMintValue -> Term s PMintValue -> Term s PMintValue

type PInner PMintValue Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type PInner PMintValue = PInner (DeriveNewtypePlutusType PMintValue)
type PTryFromExcess PData (PAsData PMintValue) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type PTryFromExcess PData (PAsData PMintValue) = PTryFromExcess PData (PInner (PAsData PMintValue))
type Rep (PMintValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type Rep (PMintValue s) = D1 ('MetaData "PMintValue" "Plutarch.LedgerApi.V1.MintValue" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PMintValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PSortedValue))))
type Code (PMintValue s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.MintValue

type Code (PMintValue s) = GCode (PMintValue s)

pemptyMintValue :: forall (s :: S). Term s PMintValue Source #

Construct an empty PMintValue with a zero Ada entry.

Since: 3.6.0

psingletonMintValue :: forall (s :: S). Term s (PCurrencySymbol :--> (PTokenName :--> (PInteger :--> PMintValue))) Source #

Construct a singleton PMintValue containing only the given quantity of the given currency, together with a mandatory zero-Ada entry.

Important note

If the quantity is zero, or if the provided currency symbol is the Ada symbol, the result is mempty (i.e. a Value with a single zero-Ada entry).

Since: 3.6.0

ptoMintValue :: forall (s :: S). Term s (PSortedValue :--> PMintValue) Source #

Time

newtype PPosixTime (s :: S) Source #

Since: 2.0.0

Constructors

PPosixTime (Term s PInteger) 

Instances

Instances details
PCountable PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

psuccessor :: forall (s :: S). Term s (PPosixTime :--> PPosixTime)

psuccessorN :: forall (s :: S). Term s (PPositive :--> (PPosixTime :--> PPosixTime))

PEnumerable PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

ppredecessor :: forall (s :: S). Term s (PPosixTime :--> PPosixTime)

ppredecessorN :: forall (s :: S). Term s (PPositive :--> (PPosixTime :--> PPosixTime))

PEq PPosixTime Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

(#==) :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PBool

PIsData PPosixTime Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PPosixTime) -> Term s PPosixTime

pdataImpl :: forall (s :: S). Term s PPosixTime -> Term s PData

PLiftable PPosixTime Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

Associated Types

type AsHaskell PPosixTime

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type AsHaskell PPosixTime = AsHaskell (DeriveNewtypePLiftable PPosixTime POSIXTime)
type PlutusRepr PPosixTime 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

type PlutusRepr PPosixTime = PlutusRepr (DeriveNewtypePLiftable PPosixTime POSIXTime)

Methods

haskToRepr :: AsHaskell PPosixTime -> PlutusRepr PPosixTime

reprToHask :: PlutusRepr PPosixTime -> Either LiftError (AsHaskell PPosixTime)

reprToPlut :: forall (s :: S). PlutusRepr PPosixTime -> PLifted s PPosixTime

plutToRepr :: (forall (s :: S). PLifted s PPosixTime) -> Either LiftError (PlutusRepr PPosixTime)

PAdditiveGroup PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

pnegate :: forall (s :: S). Term s (PPosixTime :--> PPosixTime)

(#-) :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PPosixTime

pscaleInteger :: forall (s :: S). Term s PPosixTime -> Term s PInteger -> Term s PPosixTime

PAdditiveMonoid PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

pzero :: forall (s :: S). Term s PPosixTime

pscaleNatural :: forall (s :: S). Term s PPosixTime -> Term s PNatural -> Term s PPosixTime

PAdditiveSemigroup PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

(#+) :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PPosixTime

pscalePositive :: forall (s :: S). Term s PPosixTime -> Term s PPositive -> Term s PPosixTime

POrd PPosixTime Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

(#<=) :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PBool

(#<) :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PBool

pmax :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PPosixTime

pmin :: forall (s :: S). Term s PPosixTime -> Term s PPosixTime -> Term s PPosixTime

PValidateData PPosixTime Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PPosixTime Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

Associated Types

type PInner PPosixTime

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type PInner PPosixTime = PInner (DeriveNewtypePlutusType PPosixTime)

Methods

pcon' :: forall (s :: S). PPosixTime s -> Term s (PInner PPosixTime)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PPosixTime) -> (PPosixTime s -> Term s b) -> Term s b

PShow PPosixTime Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Methods

pshow' :: forall (s :: S). Bool -> Term s PPosixTime -> Term s PString

PTryFrom PData (PAsData PPosixTime) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

Associated Types

type PTryFromExcess PData (PAsData PPosixTime) 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

type PTryFromExcess PData (PAsData PPosixTime) = PTryFromExcess PData (PInner (PAsData PPosixTime))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PPosixTime), Reduce (PTryFromExcess PData (PAsData PPosixTime) s)) -> Term s r) -> Term s r

Generic (PPosixTime s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

Associated Types

type Rep (PPosixTime s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type Rep (PPosixTime s) = D1 ('MetaData "PPosixTime" "Plutarch.LedgerApi.V1.Time" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PPosixTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PInteger))))

Methods

from :: PPosixTime s -> Rep (PPosixTime s) x Source #

to :: Rep (PPosixTime s) x -> PPosixTime s Source #

Generic (PPosixTime s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

Associated Types

type Code (PPosixTime s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type Code (PPosixTime s) = GCode (PPosixTime s)

Methods

from :: PPosixTime s -> Rep (PPosixTime s)

to :: Rep (PPosixTime s) -> PPosixTime s

type AsHaskell PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type AsHaskell PPosixTime = AsHaskell (DeriveNewtypePLiftable PPosixTime POSIXTime)
type PlutusRepr PPosixTime Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

type PlutusRepr PPosixTime = PlutusRepr (DeriveNewtypePLiftable PPosixTime POSIXTime)
type PInner PPosixTime Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type PInner PPosixTime = PInner (DeriveNewtypePlutusType PPosixTime)
type PTryFromExcess PData (PAsData PPosixTime) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Time

type PTryFromExcess PData (PAsData PPosixTime) = PTryFromExcess PData (PInner (PAsData PPosixTime))
type Rep (PPosixTime s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type Rep (PPosixTime s) = D1 ('MetaData "PPosixTime" "Plutarch.LedgerApi.V1.Time" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PPosixTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PInteger))))
type Code (PPosixTime s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Time

type Code (PPosixTime s) = GCode (PPosixTime s)

pposixTime :: forall (s :: S). Term s PInteger -> Term s PPosixTime Source #

Construct a PPosixTime from a PInteger. Same as using the constructor, but a lot shorter.

Since: 3.3.0

unPPosixTime :: forall (s :: S). Term s PPosixTime -> Term s PInteger Source #

Unwrap a PPosixTime to get a PInteger. Same as using pmatch, but a lot shorter. Also unwraps the Data encoding.

Since: 3.3.0

Intervals

data PExtended (a :: S -> Type) (s :: S) Source #

Since: 2.0.0

Constructors

PNegInf 
PFinite (Term s (PAsData a)) 
PPosInf 

Instances

Instances details
PTryFrom PData (PAsData a) => PTryFrom PData (PAsData (PExtended a)) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PTryFromExcess PData (PAsData (PExtended a)) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PExtended a)) = PTryFromExcess PData (PInner (PAsData (PExtended a)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PExtended a)), Reduce (PTryFromExcess PData (PAsData (PExtended a)) s)) -> Term s r) -> Term s r

PEq (PExtended a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#==) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool

PIsData (PExtended a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PExtended a)) -> Term s (PExtended a)

pdataImpl :: forall (s :: S). Term s (PExtended a) -> Term s PData

(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PExtended a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type AsHaskell (PExtended a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PExtended a) = AsHaskell (DeriveDataPLiftable (PExtended a) (Extended (AsHaskell a)))
type PlutusRepr (PExtended a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PExtended a) = PlutusRepr (DeriveDataPLiftable (PExtended a) (Extended (AsHaskell a)))

Methods

haskToRepr :: AsHaskell (PExtended a) -> PlutusRepr (PExtended a)

reprToHask :: PlutusRepr (PExtended a) -> Either LiftError (AsHaskell (PExtended a))

reprToPlut :: forall (s :: S). PlutusRepr (PExtended a) -> PLifted s (PExtended a)

plutToRepr :: (forall (s :: S). PLifted s (PExtended a)) -> Either LiftError (PlutusRepr (PExtended a))

(POrd a, PIsData a) => POrd (PExtended a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#<=) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool

(#<) :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s PBool

pmax :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s (PExtended a)

pmin :: forall (s :: S). Term s (PExtended a) -> Term s (PExtended a) -> Term s (PExtended a)

PValidateData a => PValidateData (PExtended a) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PExtended a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PInner (PExtended a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PExtended a) = PInner (DeriveAsDataStruct (PExtended a))

Methods

pcon' :: forall (s :: S). PExtended a s -> Term s (PInner (PExtended a))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PExtended a)) -> (PExtended a s -> Term s b) -> Term s b

(PIsData a, PShow a) => PShow (PExtended a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pshow' :: forall (s :: S). Bool -> Term s (PExtended a) -> Term s PString

Generic (PExtended a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Rep (PExtended a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PExtended a s) = D1 ('MetaData "PExtended" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PNegInf" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PFinite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a)))) :+: C1 ('MetaCons "PPosInf" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: PExtended a s -> Rep (PExtended a s) x Source #

to :: Rep (PExtended a s) x -> PExtended a s Source #

Generic (PExtended a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Code (PExtended a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PExtended a s) = GCode (PExtended a s)

Methods

from :: PExtended a s -> Rep (PExtended a s)

to :: Rep (PExtended a s) -> PExtended a s

type PTryFromExcess PData (PAsData (PExtended a)) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PExtended a)) = PTryFromExcess PData (PInner (PAsData (PExtended a)))
type AsHaskell (PExtended a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PExtended a) = AsHaskell (DeriveDataPLiftable (PExtended a) (Extended (AsHaskell a)))
type PlutusRepr (PExtended a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PExtended a) = PlutusRepr (DeriveDataPLiftable (PExtended a) (Extended (AsHaskell a)))
type PInner (PExtended a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PExtended a) = PInner (DeriveAsDataStruct (PExtended a))
type Rep (PExtended a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PExtended a s) = D1 ('MetaData "PExtended" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PNegInf" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PFinite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a)))) :+: C1 ('MetaCons "PPosInf" 'PrefixI 'False) (U1 :: Type -> Type)))
type Code (PExtended a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PExtended a s) = GCode (PExtended a s)

data PLowerBound (a :: S -> Type) (s :: S) Source #

Since: 2.0.0

Constructors

PLowerBound (Term s (PExtended a)) (Term s (PAsData PBool)) 

Instances

Instances details
PTryFrom PData (PAsData a) => PTryFrom PData (PAsData (PLowerBound a)) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PTryFromExcess PData (PAsData (PLowerBound a)) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PLowerBound a)) = PTryFromExcess PData (PInner (PAsData (PLowerBound a)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PLowerBound a)), Reduce (PTryFromExcess PData (PAsData (PLowerBound a)) s)) -> Term s r) -> Term s r

(PIsData a, PCountable a) => PEq (PLowerBound a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#==) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool

PIsData (PLowerBound a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PLowerBound a)) -> Term s (PLowerBound a)

pdataImpl :: forall (s :: S). Term s (PLowerBound a) -> Term s PData

(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PLowerBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type AsHaskell (PLowerBound a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PLowerBound a) = AsHaskell (DeriveDataPLiftable (PLowerBound a) (LowerBound (AsHaskell a)))
type PlutusRepr (PLowerBound a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PLowerBound a) = PlutusRepr (DeriveDataPLiftable (PLowerBound a) (LowerBound (AsHaskell a)))

Methods

haskToRepr :: AsHaskell (PLowerBound a) -> PlutusRepr (PLowerBound a)

reprToHask :: PlutusRepr (PLowerBound a) -> Either LiftError (AsHaskell (PLowerBound a))

reprToPlut :: forall (s :: S). PlutusRepr (PLowerBound a) -> PLifted s (PLowerBound a)

plutToRepr :: (forall (s :: S). PLifted s (PLowerBound a)) -> Either LiftError (PlutusRepr (PLowerBound a))

(PIsData a, PCountable a) => POrd (PLowerBound a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#<=) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool

(#<) :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s PBool

pmax :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s (PLowerBound a)

pmin :: forall (s :: S). Term s (PLowerBound a) -> Term s (PLowerBound a) -> Term s (PLowerBound a)

PValidateData a => PValidateData (PLowerBound a) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PLowerBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PInner (PLowerBound a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PLowerBound a) = PInner (DeriveAsDataStruct (PLowerBound a))

Methods

pcon' :: forall (s :: S). PLowerBound a s -> Term s (PInner (PLowerBound a))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PLowerBound a)) -> (PLowerBound a s -> Term s b) -> Term s b

(PIsData a, PShow a) => PShow (PLowerBound a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pshow' :: forall (s :: S). Bool -> Term s (PLowerBound a) -> Term s PString

Generic (PLowerBound a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Rep (PLowerBound a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PLowerBound a s) = D1 ('MetaData "PLowerBound" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PLowerBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PExtended a))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PBool)))))

Methods

from :: PLowerBound a s -> Rep (PLowerBound a s) x Source #

to :: Rep (PLowerBound a s) x -> PLowerBound a s Source #

Generic (PLowerBound a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Code (PLowerBound a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PLowerBound a s) = GCode (PLowerBound a s)

Methods

from :: PLowerBound a s -> Rep (PLowerBound a s)

to :: Rep (PLowerBound a s) -> PLowerBound a s

type PTryFromExcess PData (PAsData (PLowerBound a)) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PLowerBound a)) = PTryFromExcess PData (PInner (PAsData (PLowerBound a)))
type AsHaskell (PLowerBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PLowerBound a) = AsHaskell (DeriveDataPLiftable (PLowerBound a) (LowerBound (AsHaskell a)))
type PlutusRepr (PLowerBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PLowerBound a) = PlutusRepr (DeriveDataPLiftable (PLowerBound a) (LowerBound (AsHaskell a)))
type PInner (PLowerBound a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PLowerBound a) = PInner (DeriveAsDataStruct (PLowerBound a))
type Rep (PLowerBound a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PLowerBound a s) = D1 ('MetaData "PLowerBound" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PLowerBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PExtended a))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PBool)))))
type Code (PLowerBound a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PLowerBound a s) = GCode (PLowerBound a s)

data PUpperBound (a :: S -> Type) (s :: S) Source #

Since: 2.0.0

Constructors

PUpperBound (Term s (PExtended a)) (Term s (PAsData PBool)) 

Instances

Instances details
PTryFrom PData (PAsData a) => PTryFrom PData (PAsData (PUpperBound a)) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PTryFromExcess PData (PAsData (PUpperBound a)) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PUpperBound a)) = PTryFromExcess PData (PInner (PAsData (PUpperBound a)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PUpperBound a)), Reduce (PTryFromExcess PData (PAsData (PUpperBound a)) s)) -> Term s r) -> Term s r

(PIsData a, PEnumerable a) => PEq (PUpperBound a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#==) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool

PIsData (PUpperBound a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PUpperBound a)) -> Term s (PUpperBound a)

pdataImpl :: forall (s :: S). Term s (PUpperBound a) -> Term s PData

(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PUpperBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type AsHaskell (PUpperBound a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PUpperBound a) = AsHaskell (DeriveDataPLiftable (PUpperBound a) (UpperBound (AsHaskell a)))
type PlutusRepr (PUpperBound a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PUpperBound a) = PlutusRepr (DeriveDataPLiftable (PUpperBound a) (UpperBound (AsHaskell a)))

Methods

haskToRepr :: AsHaskell (PUpperBound a) -> PlutusRepr (PUpperBound a)

reprToHask :: PlutusRepr (PUpperBound a) -> Either LiftError (AsHaskell (PUpperBound a))

reprToPlut :: forall (s :: S). PlutusRepr (PUpperBound a) -> PLifted s (PUpperBound a)

plutToRepr :: (forall (s :: S). PLifted s (PUpperBound a)) -> Either LiftError (PlutusRepr (PUpperBound a))

(PIsData a, PEnumerable a) => POrd (PUpperBound a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#<=) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool

(#<) :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s PBool

pmax :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s (PUpperBound a)

pmin :: forall (s :: S). Term s (PUpperBound a) -> Term s (PUpperBound a) -> Term s (PUpperBound a)

PValidateData a => PValidateData (PUpperBound a) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PUpperBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PInner (PUpperBound a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PUpperBound a) = PInner (DeriveAsDataStruct (PUpperBound a))

Methods

pcon' :: forall (s :: S). PUpperBound a s -> Term s (PInner (PUpperBound a))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PUpperBound a)) -> (PUpperBound a s -> Term s b) -> Term s b

(PIsData a, PShow a) => PShow (PUpperBound a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pshow' :: forall (s :: S). Bool -> Term s (PUpperBound a) -> Term s PString

Generic (PUpperBound a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Rep (PUpperBound a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PUpperBound a s) = D1 ('MetaData "PUpperBound" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PUpperBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PExtended a))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PBool)))))

Methods

from :: PUpperBound a s -> Rep (PUpperBound a s) x Source #

to :: Rep (PUpperBound a s) x -> PUpperBound a s Source #

Generic (PUpperBound a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Code (PUpperBound a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PUpperBound a s) = GCode (PUpperBound a s)

Methods

from :: PUpperBound a s -> Rep (PUpperBound a s)

to :: Rep (PUpperBound a s) -> PUpperBound a s

type PTryFromExcess PData (PAsData (PUpperBound a)) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PUpperBound a)) = PTryFromExcess PData (PInner (PAsData (PUpperBound a)))
type AsHaskell (PUpperBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PUpperBound a) = AsHaskell (DeriveDataPLiftable (PUpperBound a) (UpperBound (AsHaskell a)))
type PlutusRepr (PUpperBound a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PUpperBound a) = PlutusRepr (DeriveDataPLiftable (PUpperBound a) (UpperBound (AsHaskell a)))
type PInner (PUpperBound a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PUpperBound a) = PInner (DeriveAsDataStruct (PUpperBound a))
type Rep (PUpperBound a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PUpperBound a s) = D1 ('MetaData "PUpperBound" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PUpperBound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PExtended a))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PBool)))))
type Code (PUpperBound a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PUpperBound a s) = GCode (PUpperBound a s)

data PInterval (a :: S -> Type) (s :: S) Source #

Since: 2.0.0

Constructors

PInterval 

Fields

Instances

Instances details
PTryFrom PData (PAsData a) => PTryFrom PData (PAsData (PInterval a)) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PTryFromExcess PData (PAsData (PInterval a)) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PInterval a)) = PTryFromExcess PData (PInner (PAsData (PInterval a)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PInterval a)), Reduce (PTryFromExcess PData (PAsData (PInterval a)) s)) -> Term s r) -> Term s r

(PIsData a, PEnumerable a) => PEq (PInterval a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

(#==) :: forall (s :: S). Term s (PInterval a) -> Term s (PInterval a) -> Term s PBool

PIsData (PInterval a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PInterval a)) -> Term s (PInterval a)

pdataImpl :: forall (s :: S). Term s (PInterval a) -> Term s PData

(FromData (AsHaskell a), ToData (AsHaskell a)) => PLiftable (PInterval a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type AsHaskell (PInterval a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PInterval a) = AsHaskell (DeriveDataPLiftable (PInterval a) (Interval (AsHaskell a)))
type PlutusRepr (PInterval a) 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PInterval a) = PlutusRepr (DeriveDataPLiftable (PInterval a) (Interval (AsHaskell a)))

Methods

haskToRepr :: AsHaskell (PInterval a) -> PlutusRepr (PInterval a)

reprToHask :: PlutusRepr (PInterval a) -> Either LiftError (AsHaskell (PInterval a))

reprToPlut :: forall (s :: S). PlutusRepr (PInterval a) -> PLifted s (PInterval a)

plutToRepr :: (forall (s :: S). PLifted s (PInterval a)) -> Either LiftError (PlutusRepr (PInterval a))

PValidateData a => PValidateData (PInterval a) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PInterval a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type PInner (PInterval a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PInterval a) = PInner (DeriveAsDataStruct (PInterval a))

Methods

pcon' :: forall (s :: S). PInterval a s -> Term s (PInner (PInterval a))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PInterval a)) -> (PInterval a s -> Term s b) -> Term s b

(PIsData a, PShow a) => PShow (PInterval a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

Methods

pshow' :: forall (s :: S). Bool -> Term s (PInterval a) -> Term s PString

Generic (PInterval a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Rep (PInterval a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PInterval a s) = D1 ('MetaData "PInterval" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PInterval" 'PrefixI 'True) (S1 ('MetaSel ('Just "pinterval'from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PLowerBound a))) :*: S1 ('MetaSel ('Just "pinterval'to") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PUpperBound a)))))

Methods

from :: PInterval a s -> Rep (PInterval a s) x Source #

to :: Rep (PInterval a s) x -> PInterval a s Source #

Generic (PInterval a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

Associated Types

type Code (PInterval a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PInterval a s) = GCode (PInterval a s)

Methods

from :: PInterval a s -> Rep (PInterval a s)

to :: Rep (PInterval a s) -> PInterval a s

type PTryFromExcess PData (PAsData (PInterval a)) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PTryFromExcess PData (PAsData (PInterval a)) = PTryFromExcess PData (PInner (PAsData (PInterval a)))
type AsHaskell (PInterval a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type AsHaskell (PInterval a) = AsHaskell (DeriveDataPLiftable (PInterval a) (Interval (AsHaskell a)))
type PlutusRepr (PInterval a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Interval

type PlutusRepr (PInterval a) = PlutusRepr (DeriveDataPLiftable (PInterval a) (Interval (AsHaskell a)))
type PInner (PInterval a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type PInner (PInterval a) = PInner (DeriveAsDataStruct (PInterval a))
type Rep (PInterval a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Rep (PInterval a s) = D1 ('MetaData "PInterval" "Plutarch.LedgerApi.Interval" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PInterval" 'PrefixI 'True) (S1 ('MetaSel ('Just "pinterval'from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PLowerBound a))) :*: S1 ('MetaSel ('Just "pinterval'to") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PUpperBound a)))))
type Code (PInterval a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Interval

type Code (PInterval a s) = GCode (PInterval a s)

Script stuff

newtype PDatum (s :: S) Source #

Since: 2.0.0

Constructors

PDatum (Term s PData) 

Instances

Instances details
PEq PDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#==) :: forall (s :: S). Term s PDatum -> Term s PDatum -> Term s PBool

PIsData PDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PDatum) -> Term s PDatum

pdataImpl :: forall (s :: S). Term s PDatum -> Term s PData

PLiftable PDatum Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type AsHaskell PDatum

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PDatum = AsHaskell (DeriveDataPLiftable PDatum Datum)
type PlutusRepr PDatum 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PDatum = PlutusRepr (DeriveDataPLiftable PDatum Datum)

Methods

haskToRepr :: AsHaskell PDatum -> PlutusRepr PDatum

reprToHask :: PlutusRepr PDatum -> Either LiftError (AsHaskell PDatum)

reprToPlut :: forall (s :: S). PlutusRepr PDatum -> PLifted s PDatum

plutToRepr :: (forall (s :: S). PLifted s PDatum) -> Either LiftError (PlutusRepr PDatum)

PValidateData PDatum Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PDatum Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PInner PDatum

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PDatum = PInner (DeriveNewtypePlutusType PDatum)

Methods

pcon' :: forall (s :: S). PDatum s -> Term s (PInner PDatum)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PDatum) -> (PDatum s -> Term s b) -> Term s b

PShow PDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pshow' :: forall (s :: S). Bool -> Term s PDatum -> Term s PString

PTryFrom PData (PAsData PDatum) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PTryFromExcess PData (PAsData PDatum) 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PDatum) = PTryFromExcess PData (PInner (PAsData PDatum))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PDatum), Reduce (PTryFromExcess PData (PAsData PDatum) s)) -> Term s r) -> Term s r

Generic (PDatum s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Rep (PDatum s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PDatum s) = D1 ('MetaData "PDatum" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PDatum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PData))))

Methods

from :: PDatum s -> Rep (PDatum s) x Source #

to :: Rep (PDatum s) x -> PDatum s Source #

Generic (PDatum s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Code (PDatum s)

Since: plutarch-ledger-api-3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PDatum s) = GCode (PDatum s)

Methods

from :: PDatum s -> Rep (PDatum s)

to :: Rep (PDatum s) -> PDatum s

type AsHaskell PDatum Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PDatum = AsHaskell (DeriveDataPLiftable PDatum Datum)
type PlutusRepr PDatum Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PDatum = PlutusRepr (DeriveDataPLiftable PDatum Datum)
type PInner PDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PDatum = PInner (DeriveNewtypePlutusType PDatum)
type PTryFromExcess PData (PAsData PDatum) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PDatum) = PTryFromExcess PData (PInner (PAsData PDatum))
type Rep (PDatum s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PDatum s) = D1 ('MetaData "PDatum" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PDatum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PData))))
type Code (PDatum s) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PDatum s) = GCode (PDatum s)

newtype PRedeemer (s :: S) Source #

Since: 2.0.0

Constructors

PRedeemer (Term s PData) 

Instances

Instances details
PEq PRedeemer Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#==) :: forall (s :: S). Term s PRedeemer -> Term s PRedeemer -> Term s PBool

PIsData PRedeemer Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PRedeemer) -> Term s PRedeemer

pdataImpl :: forall (s :: S). Term s PRedeemer -> Term s PData

PLiftable PRedeemer Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type AsHaskell PRedeemer

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PRedeemer = AsHaskell (DeriveDataPLiftable PRedeemer Redeemer)
type PlutusRepr PRedeemer 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PRedeemer = PlutusRepr (DeriveDataPLiftable PRedeemer Redeemer)

Methods

haskToRepr :: AsHaskell PRedeemer -> PlutusRepr PRedeemer

reprToHask :: PlutusRepr PRedeemer -> Either LiftError (AsHaskell PRedeemer)

reprToPlut :: forall (s :: S). PlutusRepr PRedeemer -> PLifted s PRedeemer

plutToRepr :: (forall (s :: S). PLifted s PRedeemer) -> Either LiftError (PlutusRepr PRedeemer)

PValidateData PRedeemer Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PRedeemer Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PInner PRedeemer

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PRedeemer = PInner (DeriveNewtypePlutusType PRedeemer)

Methods

pcon' :: forall (s :: S). PRedeemer s -> Term s (PInner PRedeemer)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PRedeemer) -> (PRedeemer s -> Term s b) -> Term s b

PShow PRedeemer Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pshow' :: forall (s :: S). Bool -> Term s PRedeemer -> Term s PString

PTryFrom PData (PAsData PRedeemer) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PTryFromExcess PData (PAsData PRedeemer) 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PRedeemer) = PTryFromExcess PData (PInner (PAsData PRedeemer))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PRedeemer), Reduce (PTryFromExcess PData (PAsData PRedeemer) s)) -> Term s r) -> Term s r

Generic (PRedeemer s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Rep (PRedeemer s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PRedeemer s) = D1 ('MetaData "PRedeemer" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PRedeemer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PData))))

Methods

from :: PRedeemer s -> Rep (PRedeemer s) x Source #

to :: Rep (PRedeemer s) x -> PRedeemer s Source #

Generic (PRedeemer s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Code (PRedeemer s)

Since: plutarch-ledger-api-3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PRedeemer s) = GCode (PRedeemer s)

Methods

from :: PRedeemer s -> Rep (PRedeemer s)

to :: Rep (PRedeemer s) -> PRedeemer s

type AsHaskell PRedeemer Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PRedeemer = AsHaskell (DeriveDataPLiftable PRedeemer Redeemer)
type PlutusRepr PRedeemer Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PRedeemer = PlutusRepr (DeriveDataPLiftable PRedeemer Redeemer)
type PInner PRedeemer Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PRedeemer = PInner (DeriveNewtypePlutusType PRedeemer)
type PTryFromExcess PData (PAsData PRedeemer) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PRedeemer) = PTryFromExcess PData (PInner (PAsData PRedeemer))
type Rep (PRedeemer s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PRedeemer s) = D1 ('MetaData "PRedeemer" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PRedeemer" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PData))))
type Code (PRedeemer s) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PRedeemer s) = GCode (PRedeemer s)

newtype PDatumHash (s :: S) Source #

Since: 2.0.0

Constructors

PDatumHash (Term s PByteString) 

Instances

Instances details
PEq PDatumHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#==) :: forall (s :: S). Term s PDatumHash -> Term s PDatumHash -> Term s PBool

PIsData PDatumHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PDatumHash) -> Term s PDatumHash

pdataImpl :: forall (s :: S). Term s PDatumHash -> Term s PData

PLiftable PDatumHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type AsHaskell PDatumHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PDatumHash = DatumHash
type PlutusRepr PDatumHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PDatumHash = ByteString

Methods

haskToRepr :: AsHaskell PDatumHash -> PlutusRepr PDatumHash

reprToHask :: PlutusRepr PDatumHash -> Either LiftError (AsHaskell PDatumHash)

reprToPlut :: forall (s :: S). PlutusRepr PDatumHash -> PLifted s PDatumHash

plutToRepr :: (forall (s :: S). PLifted s PDatumHash) -> Either LiftError (PlutusRepr PDatumHash)

POrd PDatumHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#<=) :: forall (s :: S). Term s PDatumHash -> Term s PDatumHash -> Term s PBool

(#<) :: forall (s :: S). Term s PDatumHash -> Term s PDatumHash -> Term s PBool

pmax :: forall (s :: S). Term s PDatumHash -> Term s PDatumHash -> Term s PDatumHash

pmin :: forall (s :: S). Term s PDatumHash -> Term s PDatumHash -> Term s PDatumHash

PValidateData PDatumHash Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PDatumHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PInner PDatumHash

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PDatumHash = PInner (DeriveNewtypePlutusType PDatumHash)

Methods

pcon' :: forall (s :: S). PDatumHash s -> Term s (PInner PDatumHash)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PDatumHash) -> (PDatumHash s -> Term s b) -> Term s b

PShow PDatumHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pshow' :: forall (s :: S). Bool -> Term s PDatumHash -> Term s PString

PTryFrom PData (PAsData PDatumHash) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PTryFromExcess PData (PAsData PDatumHash) 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PDatumHash) = PTryFromExcess PData (PInner (PAsData PDatumHash))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PDatumHash), Reduce (PTryFromExcess PData (PAsData PDatumHash) s)) -> Term s r) -> Term s r

Generic (PDatumHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Rep (PDatumHash s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PDatumHash s) = D1 ('MetaData "PDatumHash" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PDatumHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))

Methods

from :: PDatumHash s -> Rep (PDatumHash s) x Source #

to :: Rep (PDatumHash s) x -> PDatumHash s Source #

Generic (PDatumHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Code (PDatumHash s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PDatumHash s) = GCode (PDatumHash s)

Methods

from :: PDatumHash s -> Rep (PDatumHash s)

to :: Rep (PDatumHash s) -> PDatumHash s

type AsHaskell PDatumHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PDatumHash = DatumHash
type PlutusRepr PDatumHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PDatumHash = ByteString
type PInner PDatumHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PDatumHash = PInner (DeriveNewtypePlutusType PDatumHash)
type PTryFromExcess PData (PAsData PDatumHash) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PDatumHash) = PTryFromExcess PData (PInner (PAsData PDatumHash))
type Rep (PDatumHash s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PDatumHash s) = D1 ('MetaData "PDatumHash" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PDatumHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
type Code (PDatumHash s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PDatumHash s) = GCode (PDatumHash s)

newtype PRedeemerHash (s :: S) Source #

Since: 2.0.0

Constructors

PRedeemerHash (Term s PByteString) 

Instances

Instances details
PEq PRedeemerHash Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#==) :: forall (s :: S). Term s PRedeemerHash -> Term s PRedeemerHash -> Term s PBool

PIsData PRedeemerHash Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PRedeemerHash) -> Term s PRedeemerHash

pdataImpl :: forall (s :: S). Term s PRedeemerHash -> Term s PData

PLiftable PRedeemerHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type AsHaskell PRedeemerHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PRedeemerHash = RedeemerHash
type PlutusRepr PRedeemerHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PRedeemerHash = ByteString

Methods

haskToRepr :: AsHaskell PRedeemerHash -> PlutusRepr PRedeemerHash

reprToHask :: PlutusRepr PRedeemerHash -> Either LiftError (AsHaskell PRedeemerHash)

reprToPlut :: forall (s :: S). PlutusRepr PRedeemerHash -> PLifted s PRedeemerHash

plutToRepr :: (forall (s :: S). PLifted s PRedeemerHash) -> Either LiftError (PlutusRepr PRedeemerHash)

POrd PRedeemerHash Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#<=) :: forall (s :: S). Term s PRedeemerHash -> Term s PRedeemerHash -> Term s PBool

(#<) :: forall (s :: S). Term s PRedeemerHash -> Term s PRedeemerHash -> Term s PBool

pmax :: forall (s :: S). Term s PRedeemerHash -> Term s PRedeemerHash -> Term s PRedeemerHash

pmin :: forall (s :: S). Term s PRedeemerHash -> Term s PRedeemerHash -> Term s PRedeemerHash

PValidateData PRedeemerHash Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PRedeemerHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PInner PRedeemerHash

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PRedeemerHash = PInner (DeriveNewtypePlutusType PRedeemerHash)

Methods

pcon' :: forall (s :: S). PRedeemerHash s -> Term s (PInner PRedeemerHash)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PRedeemerHash) -> (PRedeemerHash s -> Term s b) -> Term s b

PShow PRedeemerHash Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pshow' :: forall (s :: S). Bool -> Term s PRedeemerHash -> Term s PString

PTryFrom PData (PAsData PRedeemerHash) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PTryFromExcess PData (PAsData PRedeemerHash) 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PRedeemerHash) = PTryFromExcess PData (PInner (PAsData PRedeemerHash))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PRedeemerHash), Reduce (PTryFromExcess PData (PAsData PRedeemerHash) s)) -> Term s r) -> Term s r

Generic (PRedeemerHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Rep (PRedeemerHash s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PRedeemerHash s) = D1 ('MetaData "PRedeemerHash" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PRedeemerHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
Generic (PRedeemerHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Code (PRedeemerHash s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PRedeemerHash s) = GCode (PRedeemerHash s)

Methods

from :: PRedeemerHash s -> Rep (PRedeemerHash s)

to :: Rep (PRedeemerHash s) -> PRedeemerHash s

type AsHaskell PRedeemerHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PRedeemerHash = RedeemerHash
type PlutusRepr PRedeemerHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PRedeemerHash = ByteString
type PInner PRedeemerHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PRedeemerHash = PInner (DeriveNewtypePlutusType PRedeemerHash)
type PTryFromExcess PData (PAsData PRedeemerHash) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PRedeemerHash) = PTryFromExcess PData (PInner (PAsData PRedeemerHash))
type Rep (PRedeemerHash s) Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PRedeemerHash s) = D1 ('MetaData "PRedeemerHash" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PRedeemerHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
type Code (PRedeemerHash s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PRedeemerHash s) = GCode (PRedeemerHash s)

newtype PScriptHash (s :: S) Source #

Since: 2.0.0

Constructors

PScriptHash (Term s PByteString) 

Instances

Instances details
PEq PScriptHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#==) :: forall (s :: S). Term s PScriptHash -> Term s PScriptHash -> Term s PBool

PIsData PScriptHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PScriptHash) -> Term s PScriptHash

pdataImpl :: forall (s :: S). Term s PScriptHash -> Term s PData

PLiftable PScriptHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type AsHaskell PScriptHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PScriptHash = ScriptHash
type PlutusRepr PScriptHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PScriptHash = ByteString

Methods

haskToRepr :: AsHaskell PScriptHash -> PlutusRepr PScriptHash

reprToHask :: PlutusRepr PScriptHash -> Either LiftError (AsHaskell PScriptHash)

reprToPlut :: forall (s :: S). PlutusRepr PScriptHash -> PLifted s PScriptHash

plutToRepr :: (forall (s :: S). PLifted s PScriptHash) -> Either LiftError (PlutusRepr PScriptHash)

POrd PScriptHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

(#<=) :: forall (s :: S). Term s PScriptHash -> Term s PScriptHash -> Term s PBool

(#<) :: forall (s :: S). Term s PScriptHash -> Term s PScriptHash -> Term s PBool

pmax :: forall (s :: S). Term s PScriptHash -> Term s PScriptHash -> Term s PScriptHash

pmin :: forall (s :: S). Term s PScriptHash -> Term s PScriptHash -> Term s PScriptHash

PValidateData PScriptHash Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PScriptHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PInner PScriptHash

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PScriptHash = PInner (DeriveNewtypePlutusType PScriptHash)

Methods

pcon' :: forall (s :: S). PScriptHash s -> Term s (PInner PScriptHash)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PScriptHash) -> (PScriptHash s -> Term s b) -> Term s b

PShow PScriptHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Methods

pshow' :: forall (s :: S). Bool -> Term s PScriptHash -> Term s PString

PTryFrom PData (PAsData PScriptHash) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type PTryFromExcess PData (PAsData PScriptHash) 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PScriptHash) = PTryFromExcess PData (PInner (PAsData PScriptHash))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PScriptHash), Reduce (PTryFromExcess PData (PAsData PScriptHash) s)) -> Term s r) -> Term s r

Generic (PScriptHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Rep (PScriptHash s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PScriptHash s) = D1 ('MetaData "PScriptHash" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
Generic (PScriptHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

Associated Types

type Code (PScriptHash s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PScriptHash s) = GCode (PScriptHash s)

Methods

from :: PScriptHash s -> Rep (PScriptHash s)

to :: Rep (PScriptHash s) -> PScriptHash s

type AsHaskell PScriptHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type AsHaskell PScriptHash = ScriptHash
type PlutusRepr PScriptHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PlutusRepr PScriptHash = ByteString
type PInner PScriptHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PInner PScriptHash = PInner (DeriveNewtypePlutusType PScriptHash)
type PTryFromExcess PData (PAsData PScriptHash) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type PTryFromExcess PData (PAsData PScriptHash) = PTryFromExcess PData (PInner (PAsData PScriptHash))
type Rep (PScriptHash s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Rep (PScriptHash s) = D1 ('MetaData "PScriptHash" "Plutarch.LedgerApi.V1.Scripts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PScriptHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
type Code (PScriptHash s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Scripts

type Code (PScriptHash s) = GCode (PScriptHash s)

Transactions

data PAddress (s :: S) Source #

Since: 2.0.0

Instances

Instances details
PEq PAddress Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

Methods

(#==) :: forall (s :: S). Term s PAddress -> Term s PAddress -> Term s PBool

PIsData PAddress Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PAddress) -> Term s PAddress

pdataImpl :: forall (s :: S). Term s PAddress -> Term s PData

PLiftable PAddress Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

Associated Types

type AsHaskell PAddress

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type AsHaskell PAddress = AsHaskell (DeriveDataPLiftable PAddress Address)
type PlutusRepr PAddress 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

type PlutusRepr PAddress = PlutusRepr (DeriveDataPLiftable PAddress Address)

Methods

haskToRepr :: AsHaskell PAddress -> PlutusRepr PAddress

reprToHask :: PlutusRepr PAddress -> Either LiftError (AsHaskell PAddress)

reprToPlut :: forall (s :: S). PlutusRepr PAddress -> PLifted s PAddress

plutToRepr :: (forall (s :: S). PLifted s PAddress) -> Either LiftError (PlutusRepr PAddress)

PValidateData PAddress Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PAddress Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

Associated Types

type PInner PAddress

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type PInner PAddress = PInner (DeriveAsDataStruct PAddress)

Methods

pcon' :: forall (s :: S). PAddress s -> Term s (PInner PAddress)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PAddress) -> (PAddress s -> Term s b) -> Term s b

PShow PAddress Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

Methods

pshow' :: forall (s :: S). Bool -> Term s PAddress -> Term s PString

PTryFrom PData (PAsData PAddress) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

Associated Types

type PTryFromExcess PData (PAsData PAddress) 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

type PTryFromExcess PData (PAsData PAddress) = PTryFromExcess PData (PInner (PAsData PAddress))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PAddress), Reduce (PTryFromExcess PData (PAsData PAddress) s)) -> Term s r) -> Term s r

Generic (PAddress s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

Associated Types

type Rep (PAddress s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type Rep (PAddress s) = D1 ('MetaData "PAddress" "Plutarch.LedgerApi.V1.Address" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "paddress'credential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Just "paddress'stakingCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PStakingCredential)))))

Methods

from :: PAddress s -> Rep (PAddress s) x Source #

to :: Rep (PAddress s) x -> PAddress s Source #

Generic (PAddress s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

Associated Types

type Code (PAddress s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type Code (PAddress s) = GCode (PAddress s)

Methods

from :: PAddress s -> Rep (PAddress s)

to :: Rep (PAddress s) -> PAddress s

type AsHaskell PAddress Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type AsHaskell PAddress = AsHaskell (DeriveDataPLiftable PAddress Address)
type PlutusRepr PAddress Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

type PlutusRepr PAddress = PlutusRepr (DeriveDataPLiftable PAddress Address)
type PInner PAddress Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type PInner PAddress = PInner (DeriveAsDataStruct PAddress)
type PTryFromExcess PData (PAsData PAddress) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Address

type PTryFromExcess PData (PAsData PAddress) = PTryFromExcess PData (PInner (PAsData PAddress))
type Rep (PAddress s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type Rep (PAddress s) = D1 ('MetaData "PAddress" "Plutarch.LedgerApi.V1.Address" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "paddress'credential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Just "paddress'stakingCredential") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PStakingCredential)))))
type Code (PAddress s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Address

type Code (PAddress s) = GCode (PAddress s)

newtype PTxId (s :: S) Source #

Hashed with BLAKE2b-256.

Since: 3.1.0

Constructors

PTxId (Term s (PAsData PByteString)) 

Instances

Instances details
PEq PTxId Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

(#==) :: forall (s :: S). Term s PTxId -> Term s PTxId -> Term s PBool

PIsData PTxId Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PTxId) -> Term s PTxId

pdataImpl :: forall (s :: S). Term s PTxId -> Term s PData

PLiftable PTxId Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type AsHaskell PTxId

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type AsHaskell PTxId = AsHaskell (DeriveDataPLiftable PTxId TxId)
type PlutusRepr PTxId 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PlutusRepr PTxId = PlutusRepr (DeriveDataPLiftable PTxId TxId)

Methods

haskToRepr :: AsHaskell PTxId -> PlutusRepr PTxId

reprToHask :: PlutusRepr PTxId -> Either LiftError (AsHaskell PTxId)

reprToPlut :: forall (s :: S). PlutusRepr PTxId -> PLifted s PTxId

plutToRepr :: (forall (s :: S). PLifted s PTxId) -> Either LiftError (PlutusRepr PTxId)

PValidateData PTxId Source #

Checks that we have a PTxId of valid length. The underlying PByteString must be exactly 32 bytes, as Cardano transactions are hashed with BLAKE2b-256.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PTxId Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type PInner PTxId

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PInner PTxId = PInner (DeriveAsDataStruct PTxId)

Methods

pcon' :: forall (s :: S). PTxId s -> Term s (PInner PTxId)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PTxId) -> (PTxId s -> Term s b) -> Term s b

PShow PTxId Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

pshow' :: forall (s :: S). Bool -> Term s PTxId -> Term s PString

PTryFrom PData (PAsData PTxId) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type PTryFromExcess PData (PAsData PTxId) 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PTryFromExcess PData (PAsData PTxId) = PTryFromExcess PData (PInner (PAsData PTxId))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PTxId), Reduce (PTryFromExcess PData (PAsData PTxId) s)) -> Term s r) -> Term s r

Generic (PTxId s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type Rep (PTxId s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Rep (PTxId s) = D1 ('MetaData "PTxId" "Plutarch.LedgerApi.V1.Tx" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PTxId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PByteString)))))

Methods

from :: PTxId s -> Rep (PTxId s) x Source #

to :: Rep (PTxId s) x -> PTxId s Source #

Generic (PTxId s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type Code (PTxId s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Code (PTxId s) = GCode (PTxId s)

Methods

from :: PTxId s -> Rep (PTxId s)

to :: Rep (PTxId s) -> PTxId s

type AsHaskell PTxId Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type AsHaskell PTxId = AsHaskell (DeriveDataPLiftable PTxId TxId)
type PlutusRepr PTxId Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PlutusRepr PTxId = PlutusRepr (DeriveDataPLiftable PTxId TxId)
type PInner PTxId Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PInner PTxId = PInner (DeriveAsDataStruct PTxId)
type PTryFromExcess PData (PAsData PTxId) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PTryFromExcess PData (PAsData PTxId) = PTryFromExcess PData (PInner (PAsData PTxId))
type Rep (PTxId s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Rep (PTxId s) = D1 ('MetaData "PTxId" "Plutarch.LedgerApi.V1.Tx" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PTxId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PByteString)))))
type Code (PTxId s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Code (PTxId s) = GCode (PTxId s)

data PTxOut (s :: S) Source #

Since: 3.1.1

Constructors

PTxOut 

Fields

Instances

Instances details
PEq PTxOut Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

(#==) :: forall (s :: S). Term s PTxOut -> Term s PTxOut -> Term s PBool

PIsData PTxOut Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PTxOut) -> Term s PTxOut

pdataImpl :: forall (s :: S). Term s PTxOut -> Term s PData

PLiftable PTxOut Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type AsHaskell PTxOut

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PTxOut = AsHaskell (DeriveDataPLiftable PTxOut TxOut)
type PlutusRepr PTxOut 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PTxOut = PlutusRepr (DeriveDataPLiftable PTxOut TxOut)

Methods

haskToRepr :: AsHaskell PTxOut -> PlutusRepr PTxOut

reprToHask :: PlutusRepr PTxOut -> Either LiftError (AsHaskell PTxOut)

reprToPlut :: forall (s :: S). PlutusRepr PTxOut -> PLifted s PTxOut

plutToRepr :: (forall (s :: S). PLifted s PTxOut) -> Either LiftError (PlutusRepr PTxOut)

PValidateData PTxOut Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PTxOut Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PInner PTxOut

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PTxOut = PInner (DeriveAsDataStruct PTxOut)

Methods

pcon' :: forall (s :: S). PTxOut s -> Term s (PInner PTxOut)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PTxOut) -> (PTxOut s -> Term s b) -> Term s b

PShow PTxOut Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pshow' :: forall (s :: S). Bool -> Term s PTxOut -> Term s PString

PTryFrom PData (PAsData PTxOut) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PTryFromExcess PData (PAsData PTxOut) 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PTxOut) = PTryFromExcess PData (PInner (PAsData PTxOut))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PTxOut), Reduce (PTryFromExcess PData (PAsData PTxOut) s)) -> Term s r) -> Term s r

Generic (PTxOut s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Rep (PTxOut s)

Since: plutarch-ledger-api-3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PTxOut s) = D1 ('MetaData "PTxOut" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxOut" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptxOut'address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PAddress)) :*: (S1 ('MetaSel ('Just "ptxOut'value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLedgerValue))) :*: S1 ('MetaSel ('Just "ptxOut'datumHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PDatumHash))))))

Methods

from :: PTxOut s -> Rep (PTxOut s) x Source #

to :: Rep (PTxOut s) x -> PTxOut s Source #

Generic (PTxOut s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Code (PTxOut s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PTxOut s) = GCode (PTxOut s)

Methods

from :: PTxOut s -> Rep (PTxOut s)

to :: Rep (PTxOut s) -> PTxOut s

type AsHaskell PTxOut Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PTxOut = AsHaskell (DeriveDataPLiftable PTxOut TxOut)
type PlutusRepr PTxOut Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PTxOut = PlutusRepr (DeriveDataPLiftable PTxOut TxOut)
type PInner PTxOut Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PTxOut = PInner (DeriveAsDataStruct PTxOut)
type PTryFromExcess PData (PAsData PTxOut) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PTxOut) = PTryFromExcess PData (PInner (PAsData PTxOut))
type Rep (PTxOut s) Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PTxOut s) = D1 ('MetaData "PTxOut" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxOut" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptxOut'address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PAddress)) :*: (S1 ('MetaSel ('Just "ptxOut'value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLedgerValue))) :*: S1 ('MetaSel ('Just "ptxOut'datumHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PDatumHash))))))
type Code (PTxOut s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PTxOut s) = GCode (PTxOut s)

data PTxInInfo (s :: S) Source #

Since: 3.1.1

Constructors

PTxInInfo 

Instances

Instances details
PEq PTxInInfo Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

(#==) :: forall (s :: S). Term s PTxInInfo -> Term s PTxInInfo -> Term s PBool

PIsData PTxInInfo Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PTxInInfo) -> Term s PTxInInfo

pdataImpl :: forall (s :: S). Term s PTxInInfo -> Term s PData

PLiftable PTxInInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type AsHaskell PTxInInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PTxInInfo = AsHaskell (DeriveDataPLiftable PTxInInfo TxInInfo)
type PlutusRepr PTxInInfo 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PTxInInfo = PlutusRepr (DeriveDataPLiftable PTxInInfo TxInInfo)

Methods

haskToRepr :: AsHaskell PTxInInfo -> PlutusRepr PTxInInfo

reprToHask :: PlutusRepr PTxInInfo -> Either LiftError (AsHaskell PTxInInfo)

reprToPlut :: forall (s :: S). PlutusRepr PTxInInfo -> PLifted s PTxInInfo

plutToRepr :: (forall (s :: S). PLifted s PTxInInfo) -> Either LiftError (PlutusRepr PTxInInfo)

PValidateData PTxInInfo Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PTxInInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PInner PTxInInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PTxInInfo = PInner (DeriveAsDataStruct PTxInInfo)

Methods

pcon' :: forall (s :: S). PTxInInfo s -> Term s (PInner PTxInInfo)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PTxInInfo) -> (PTxInInfo s -> Term s b) -> Term s b

PShow PTxInInfo Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pshow' :: forall (s :: S). Bool -> Term s PTxInInfo -> Term s PString

PTryFrom PData (PAsData PTxInInfo) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PTryFromExcess PData (PAsData PTxInInfo) 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PTxInInfo) = PTryFromExcess PData (PInner (PAsData PTxInInfo))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PTxInInfo), Reduce (PTryFromExcess PData (PAsData PTxInInfo) s)) -> Term s r) -> Term s r

Generic (PTxInInfo s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Rep (PTxInInfo s)

Since: plutarch-ledger-api-3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PTxInInfo s) = D1 ('MetaData "PTxInInfo" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxInInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptxInInfo'outRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOutRef)) :*: S1 ('MetaSel ('Just "ptxInInfo'resolved") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOut))))

Methods

from :: PTxInInfo s -> Rep (PTxInInfo s) x Source #

to :: Rep (PTxInInfo s) x -> PTxInInfo s Source #

Generic (PTxInInfo s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Code (PTxInInfo s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PTxInInfo s) = GCode (PTxInInfo s)

Methods

from :: PTxInInfo s -> Rep (PTxInInfo s)

to :: Rep (PTxInInfo s) -> PTxInInfo s

type AsHaskell PTxInInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PTxInInfo = AsHaskell (DeriveDataPLiftable PTxInInfo TxInInfo)
type PlutusRepr PTxInInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PTxInInfo = PlutusRepr (DeriveDataPLiftable PTxInInfo TxInInfo)
type PInner PTxInInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PTxInInfo = PInner (DeriveAsDataStruct PTxInInfo)
type PTryFromExcess PData (PAsData PTxInInfo) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PTxInInfo) = PTryFromExcess PData (PInner (PAsData PTxInInfo))
type Rep (PTxInInfo s) Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PTxInInfo s) = D1 ('MetaData "PTxInInfo" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxInInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptxInInfo'outRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOutRef)) :*: S1 ('MetaSel ('Just "ptxInInfo'resolved") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOut))))
type Code (PTxInInfo s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PTxInInfo s) = GCode (PTxInInfo s)

data PTxOutRef (s :: S) Source #

Reference to a transaction output, with an index referencing which exact output we mean.

Since: 2.0.0

Constructors

PTxOutRef 

Fields

Instances

Instances details
PEq PTxOutRef Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

(#==) :: forall (s :: S). Term s PTxOutRef -> Term s PTxOutRef -> Term s PBool

PIsData PTxOutRef Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PTxOutRef) -> Term s PTxOutRef

pdataImpl :: forall (s :: S). Term s PTxOutRef -> Term s PData

PLiftable PTxOutRef Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type AsHaskell PTxOutRef

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type AsHaskell PTxOutRef = AsHaskell (DeriveDataPLiftable PTxOutRef TxOutRef)
type PlutusRepr PTxOutRef 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PlutusRepr PTxOutRef = PlutusRepr (DeriveDataPLiftable PTxOutRef TxOutRef)

Methods

haskToRepr :: AsHaskell PTxOutRef -> PlutusRepr PTxOutRef

reprToHask :: PlutusRepr PTxOutRef -> Either LiftError (AsHaskell PTxOutRef)

reprToPlut :: forall (s :: S). PlutusRepr PTxOutRef -> PLifted s PTxOutRef

plutToRepr :: (forall (s :: S). PLifted s PTxOutRef) -> Either LiftError (PlutusRepr PTxOutRef)

PValidateData PTxOutRef Source #

Checks that we have a valid PTxOutRef. The underlying PTxId must be exactly 32 bytes, as Cardano transactions are hashed with BLAKE2b-256, and the output index must be a non-negative PInteger.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PTxOutRef Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type PInner PTxOutRef

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PInner PTxOutRef = PInner (DeriveAsDataStruct PTxOutRef)

Methods

pcon' :: forall (s :: S). PTxOutRef s -> Term s (PInner PTxOutRef)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PTxOutRef) -> (PTxOutRef s -> Term s b) -> Term s b

PShow PTxOutRef Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Methods

pshow' :: forall (s :: S). Bool -> Term s PTxOutRef -> Term s PString

PTryFrom PData (PAsData PTxOutRef) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type PTryFromExcess PData (PAsData PTxOutRef) 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PTryFromExcess PData (PAsData PTxOutRef) = PTryFromExcess PData (PInner (PAsData PTxOutRef))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PTxOutRef), Reduce (PTryFromExcess PData (PAsData PTxOutRef) s)) -> Term s r) -> Term s r

Generic (PTxOutRef s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type Rep (PTxOutRef s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Rep (PTxOutRef s) = D1 ('MetaData "PTxOutRef" "Plutarch.LedgerApi.V1.Tx" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxOutRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptxOutRef'id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxId)) :*: S1 ('MetaSel ('Just "ptxOutRef'idx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger)))))

Methods

from :: PTxOutRef s -> Rep (PTxOutRef s) x Source #

to :: Rep (PTxOutRef s) x -> PTxOutRef s Source #

Generic (PTxOutRef s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

Associated Types

type Code (PTxOutRef s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Code (PTxOutRef s) = GCode (PTxOutRef s)

Methods

from :: PTxOutRef s -> Rep (PTxOutRef s)

to :: Rep (PTxOutRef s) -> PTxOutRef s

type AsHaskell PTxOutRef Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type AsHaskell PTxOutRef = AsHaskell (DeriveDataPLiftable PTxOutRef TxOutRef)
type PlutusRepr PTxOutRef Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PlutusRepr PTxOutRef = PlutusRepr (DeriveDataPLiftable PTxOutRef TxOutRef)
type PInner PTxOutRef Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PInner PTxOutRef = PInner (DeriveAsDataStruct PTxOutRef)
type PTryFromExcess PData (PAsData PTxOutRef) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type PTryFromExcess PData (PAsData PTxOutRef) = PTryFromExcess PData (PInner (PAsData PTxOutRef))
type Rep (PTxOutRef s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Rep (PTxOutRef s) = D1 ('MetaData "PTxOutRef" "Plutarch.LedgerApi.V1.Tx" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxOutRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "ptxOutRef'id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxId)) :*: S1 ('MetaSel ('Just "ptxOutRef'idx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger)))))
type Code (PTxOutRef s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Tx

type Code (PTxOutRef s) = GCode (PTxOutRef s)

newtype PPubKeyHash (s :: S) Source #

Since: 2.0.0

Constructors

PPubKeyHash (Term s PByteString) 

Instances

Instances details
PEq PPubKeyHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Methods

(#==) :: forall (s :: S). Term s PPubKeyHash -> Term s PPubKeyHash -> Term s PBool

PIsData PPubKeyHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PPubKeyHash) -> Term s PPubKeyHash

pdataImpl :: forall (s :: S). Term s PPubKeyHash -> Term s PData

PLiftable PPubKeyHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Associated Types

type AsHaskell PPubKeyHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type AsHaskell PPubKeyHash = PubKeyHash
type PlutusRepr PPubKeyHash 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type PlutusRepr PPubKeyHash = ByteString

Methods

haskToRepr :: AsHaskell PPubKeyHash -> PlutusRepr PPubKeyHash

reprToHask :: PlutusRepr PPubKeyHash -> Either LiftError (AsHaskell PPubKeyHash)

reprToPlut :: forall (s :: S). PlutusRepr PPubKeyHash -> PLifted s PPubKeyHash

plutToRepr :: (forall (s :: S). PLifted s PPubKeyHash) -> Either LiftError (PlutusRepr PPubKeyHash)

POrd PPubKeyHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Methods

(#<=) :: forall (s :: S). Term s PPubKeyHash -> Term s PPubKeyHash -> Term s PBool

(#<) :: forall (s :: S). Term s PPubKeyHash -> Term s PPubKeyHash -> Term s PBool

pmax :: forall (s :: S). Term s PPubKeyHash -> Term s PPubKeyHash -> Term s PPubKeyHash

pmin :: forall (s :: S). Term s PPubKeyHash -> Term s PPubKeyHash -> Term s PPubKeyHash

PValidateData PPubKeyHash Source #

Checks that we have a PPubKeyHash of valid length. The underlying PByteString must be exactly 28 bytes, as Cardano public keys are hashed with BLAKE2b-224.

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PPubKeyHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Associated Types

type PInner PPubKeyHash

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type PInner PPubKeyHash = PInner (DeriveNewtypePlutusType PPubKeyHash)

Methods

pcon' :: forall (s :: S). PPubKeyHash s -> Term s (PInner PPubKeyHash)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PPubKeyHash) -> (PPubKeyHash s -> Term s b) -> Term s b

PShow PPubKeyHash Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Methods

pshow' :: forall (s :: S). Bool -> Term s PPubKeyHash -> Term s PString

PTryFrom PData (PAsData PPubKeyHash) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Associated Types

type PTryFromExcess PData (PAsData PPubKeyHash) 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type PTryFromExcess PData (PAsData PPubKeyHash) = PTryFromExcess PData (PInner (PAsData PPubKeyHash))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PPubKeyHash), Reduce (PTryFromExcess PData (PAsData PPubKeyHash) s)) -> Term s r) -> Term s r

Generic (PPubKeyHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Associated Types

type Rep (PPubKeyHash s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type Rep (PPubKeyHash s) = D1 ('MetaData "PPubKeyHash" "Plutarch.LedgerApi.V1.Crypto" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PPubKeyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
Generic (PPubKeyHash s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

Associated Types

type Code (PPubKeyHash s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type Code (PPubKeyHash s) = GCode (PPubKeyHash s)

Methods

from :: PPubKeyHash s -> Rep (PPubKeyHash s)

to :: Rep (PPubKeyHash s) -> PPubKeyHash s

type AsHaskell PPubKeyHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type AsHaskell PPubKeyHash = PubKeyHash
type PlutusRepr PPubKeyHash Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type PlutusRepr PPubKeyHash = ByteString
type PInner PPubKeyHash Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type PInner PPubKeyHash = PInner (DeriveNewtypePlutusType PPubKeyHash)
type PTryFromExcess PData (PAsData PPubKeyHash) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type PTryFromExcess PData (PAsData PPubKeyHash) = PTryFromExcess PData (PInner (PAsData PPubKeyHash))
type Rep (PPubKeyHash s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type Rep (PPubKeyHash s) = D1 ('MetaData "PPubKeyHash" "Plutarch.LedgerApi.V1.Crypto" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PPubKeyHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PByteString))))
type Code (PPubKeyHash s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1.Crypto

type Code (PPubKeyHash s) = GCode (PPubKeyHash s)

data PTxInfo (s :: S) Source #

Since: 3.3.0

Constructors

PTxInfo 

Fields

Instances

Instances details
PEq PTxInfo Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

(#==) :: forall (s :: S). Term s PTxInfo -> Term s PTxInfo -> Term s PBool

PIsData PTxInfo Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PTxInfo) -> Term s PTxInfo

pdataImpl :: forall (s :: S). Term s PTxInfo -> Term s PData

PLiftable PTxInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type AsHaskell PTxInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PTxInfo = AsHaskell (DeriveDataPLiftable PTxInfo TxInfo)
type PlutusRepr PTxInfo 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PTxInfo = PlutusRepr (DeriveDataPLiftable PTxInfo TxInfo)

Methods

haskToRepr :: AsHaskell PTxInfo -> PlutusRepr PTxInfo

reprToHask :: PlutusRepr PTxInfo -> Either LiftError (AsHaskell PTxInfo)

reprToPlut :: forall (s :: S). PlutusRepr PTxInfo -> PLifted s PTxInfo

plutToRepr :: (forall (s :: S). PLifted s PTxInfo) -> Either LiftError (PlutusRepr PTxInfo)

PValidateData PTxInfo Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PTxInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PInner PTxInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PTxInfo = PInner (DeriveAsDataStruct PTxInfo)

Methods

pcon' :: forall (s :: S). PTxInfo s -> Term s (PInner PTxInfo)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PTxInfo) -> (PTxInfo s -> Term s b) -> Term s b

PShow PTxInfo Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

Methods

pshow' :: forall (s :: S). Bool -> Term s PTxInfo -> Term s PString

PTryFrom PData (PAsData PTxInfo) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type PTryFromExcess PData (PAsData PTxInfo) 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PTxInfo) = PTryFromExcess PData (PInner (PAsData PTxInfo))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PTxInfo), Reduce (PTryFromExcess PData (PAsData PTxInfo) s)) -> Term s r) -> Term s r

Generic (PTxInfo s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Rep (PTxInfo s)

Since: plutarch-ledger-api-3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PTxInfo s) = D1 ('MetaData "PTxInfo" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ptxInfo'inputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList PTxInInfo)))) :*: S1 ('MetaSel ('Just "ptxInfo'outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList PTxOut))))) :*: (S1 ('MetaSel ('Just "ptxInfo'fee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLedgerValue))) :*: (S1 ('MetaSel ('Just "ptxInfo'mint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PMintValue))) :*: S1 ('MetaSel ('Just "ptxInfo'dCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList PDCert))))))) :*: ((S1 ('MetaSel ('Just "ptxInfo'wdrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData (PBuiltinPair (PAsData PStakingCredential) (PAsData PInteger))))))) :*: S1 ('MetaSel ('Just "ptxInfo'validRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PInterval PPosixTime)))) :*: (S1 ('MetaSel ('Just "ptxInfo'signatories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PPubKeyHash))))) :*: (S1 ('MetaSel ('Just "ptxInfo'data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData (PBuiltinPair (PAsData PDatumHash) (PAsData PDatum))))))) :*: S1 ('MetaSel ('Just "ptxInfo'id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PTxId))))))))

Methods

from :: PTxInfo s -> Rep (PTxInfo s) x Source #

to :: Rep (PTxInfo s) x -> PTxInfo s Source #

Generic (PTxInfo s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

Associated Types

type Code (PTxInfo s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PTxInfo s) = GCode (PTxInfo s)

Methods

from :: PTxInfo s -> Rep (PTxInfo s)

to :: Rep (PTxInfo s) -> PTxInfo s

type AsHaskell PTxInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type AsHaskell PTxInfo = AsHaskell (DeriveDataPLiftable PTxInfo TxInfo)
type PlutusRepr PTxInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PlutusRepr PTxInfo = PlutusRepr (DeriveDataPLiftable PTxInfo TxInfo)
type PInner PTxInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type PInner PTxInfo = PInner (DeriveAsDataStruct PTxInfo)
type PTryFromExcess PData (PAsData PTxInfo) Source # 
Instance details

Defined in Plutarch.LedgerApi.V1

type PTryFromExcess PData (PAsData PTxInfo) = PTryFromExcess PData (PInner (PAsData PTxInfo))
type Rep (PTxInfo s) Source #

Since: 3.1.1

Instance details

Defined in Plutarch.LedgerApi.V1

type Rep (PTxInfo s) = D1 ('MetaData "PTxInfo" "Plutarch.LedgerApi.V1" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PTxInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ptxInfo'inputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList PTxInInfo)))) :*: S1 ('MetaSel ('Just "ptxInfo'outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList PTxOut))))) :*: (S1 ('MetaSel ('Just "ptxInfo'fee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLedgerValue))) :*: (S1 ('MetaSel ('Just "ptxInfo'mint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PMintValue))) :*: S1 ('MetaSel ('Just "ptxInfo'dCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList PDCert))))))) :*: ((S1 ('MetaSel ('Just "ptxInfo'wdrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData (PBuiltinPair (PAsData PStakingCredential) (PAsData PInteger))))))) :*: S1 ('MetaSel ('Just "ptxInfo'validRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PInterval PPosixTime)))) :*: (S1 ('MetaSel ('Just "ptxInfo'signatories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PPubKeyHash))))) :*: (S1 ('MetaSel ('Just "ptxInfo'data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData (PBuiltinPair (PAsData PDatumHash) (PAsData PDatum))))))) :*: S1 ('MetaSel ('Just "ptxInfo'id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PTxId))))))))
type Code (PTxInfo s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V1

type Code (PTxInfo s) = GCode (PTxInfo s)

Helpers

newtype PAssocMap (k :: S -> Type) (v :: S -> Type) (s :: S) Source #

Since: 3.5.0

Constructors

PAssocMap (Term s (PBuiltinList (PBuiltinPair (PAsData k) (PAsData v)))) 

Instances

Instances details
PIsData (PAssocMap k v) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PAssocMap k v)) -> Term s (PAssocMap k v)

pdataImpl :: forall (s :: S). Term s (PAssocMap k v) -> Term s PData

(PValidateData k, PValidateData v) => PValidateData (PAssocMap k v) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PAssocMap k v) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type PInner (PAssocMap k v)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PInner (PAssocMap k v) = PInner (DeriveNewtypePlutusType (PAssocMap k v))

Methods

pcon' :: forall (s :: S). PAssocMap k v s -> Term s (PInner (PAssocMap k v))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PAssocMap k v)) -> (PAssocMap k v s -> Term s b) -> Term s b

(PIsData k, PIsData v, PShow k, PShow v) => PShow (PAssocMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pshow' :: forall (s :: S). Bool -> Term s (PAssocMap k v) -> Term s PString

Generic (PAssocMap k v s) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type Rep (PAssocMap k v s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Rep (PAssocMap k v s) = D1 ('MetaData "PAssocMap" "Plutarch.LedgerApi.AssocMap" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PAssocMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PBuiltinList (PBuiltinPair (PAsData k) (PAsData v)))))))

Methods

from :: PAssocMap k v s -> Rep (PAssocMap k v s) x Source #

to :: Rep (PAssocMap k v s) x -> PAssocMap k v s Source #

Generic (PAssocMap k v s) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type Code (PAssocMap k v s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Code (PAssocMap k v s) = GCode (PAssocMap k v s)

Methods

from :: PAssocMap k v s -> Rep (PAssocMap k v s)

to :: Rep (PAssocMap k v s) -> PAssocMap k v s

type PInner (PAssocMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PInner (PAssocMap k v) = PInner (DeriveNewtypePlutusType (PAssocMap k v))
type Rep (PAssocMap k v s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Rep (PAssocMap k v s) = D1 ('MetaData "PAssocMap" "Plutarch.LedgerApi.AssocMap" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PAssocMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PBuiltinList (PBuiltinPair (PAsData k) (PAsData v)))))))
type Code (PAssocMap k v s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Code (PAssocMap k v s) = GCode (PAssocMap k v s)

newtype PUnsortedMap (k :: S -> Type) (v :: S -> Type) (s :: S) Source #

Since: 3.5.0

Constructors

PUnsortedMap (Term s (PAssocMap k v)) 

Instances

Instances details
(PTryFrom PData (PAsData k), PTryFrom PData (PAsData v)) => PTryFrom PData (PAsData (PUnsortedMap k v)) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type PTryFromExcess PData (PAsData (PUnsortedMap k v)) 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PTryFromExcess PData (PAsData (PUnsortedMap k v)) = PTryFromExcess PData (PInner (PAsData (PUnsortedMap k v)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PUnsortedMap k v)), Reduce (PTryFromExcess PData (PAsData (PUnsortedMap k v)) s)) -> Term s r) -> Term s r

PIsData (PUnsortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PUnsortedMap k v)) -> Term s (PUnsortedMap k v)

pdataImpl :: forall (s :: S). Term s (PUnsortedMap k v) -> Term s PData

(ToData (AsHaskell k), ToData (AsHaskell v), FromData (AsHaskell k), FromData (AsHaskell v)) => PLiftable (PUnsortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type AsHaskell (PUnsortedMap k v) 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type AsHaskell (PUnsortedMap k v) = Map (AsHaskell k) (AsHaskell v)
type PlutusRepr (PUnsortedMap k v) 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PlutusRepr (PUnsortedMap k v) = [(Data, Data)]

Methods

haskToRepr :: AsHaskell (PUnsortedMap k v) -> PlutusRepr (PUnsortedMap k v)

reprToHask :: PlutusRepr (PUnsortedMap k v) -> Either LiftError (AsHaskell (PUnsortedMap k v))

reprToPlut :: forall (s :: S). PlutusRepr (PUnsortedMap k v) -> PLifted s (PUnsortedMap k v)

plutToRepr :: (forall (s :: S). PLifted s (PUnsortedMap k v)) -> Either LiftError (PlutusRepr (PUnsortedMap k v))

(PValidateData k, PValidateData v) => PValidateData (PUnsortedMap k v) Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PUnsortedMap k v) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type PInner (PUnsortedMap k v)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PInner (PUnsortedMap k v) = PInner (DeriveNewtypePlutusType (PUnsortedMap k v))

Methods

pcon' :: forall (s :: S). PUnsortedMap k v s -> Term s (PInner (PUnsortedMap k v))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PUnsortedMap k v)) -> (PUnsortedMap k v s -> Term s b) -> Term s b

(PIsData k, PIsData v, PShow k, PShow v) => PShow (PUnsortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pshow' :: forall (s :: S). Bool -> Term s (PUnsortedMap k v) -> Term s PString

Generic (PUnsortedMap k v s) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type Rep (PUnsortedMap k v s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Rep (PUnsortedMap k v s) = D1 ('MetaData "PUnsortedMap" "Plutarch.LedgerApi.AssocMap" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PUnsortedMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAssocMap k v)))))

Methods

from :: PUnsortedMap k v s -> Rep (PUnsortedMap k v s) x Source #

to :: Rep (PUnsortedMap k v s) x -> PUnsortedMap k v s Source #

Generic (PUnsortedMap k v s) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type Code (PUnsortedMap k v s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Code (PUnsortedMap k v s) = GCode (PUnsortedMap k v s)

Methods

from :: PUnsortedMap k v s -> Rep (PUnsortedMap k v s)

to :: Rep (PUnsortedMap k v s) -> PUnsortedMap k v s

type PTryFromExcess PData (PAsData (PUnsortedMap k v)) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PTryFromExcess PData (PAsData (PUnsortedMap k v)) = PTryFromExcess PData (PInner (PAsData (PUnsortedMap k v)))
type AsHaskell (PUnsortedMap k v) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type AsHaskell (PUnsortedMap k v) = Map (AsHaskell k) (AsHaskell v)
type PlutusRepr (PUnsortedMap k v) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PlutusRepr (PUnsortedMap k v) = [(Data, Data)]
type PInner (PUnsortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PInner (PUnsortedMap k v) = PInner (DeriveNewtypePlutusType (PUnsortedMap k v))
type Rep (PUnsortedMap k v s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Rep (PUnsortedMap k v s) = D1 ('MetaData "PUnsortedMap" "Plutarch.LedgerApi.AssocMap" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PUnsortedMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAssocMap k v)))))
type Code (PUnsortedMap k v s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Code (PUnsortedMap k v s) = GCode (PUnsortedMap k v s)

data PSortedMap (k :: S -> Type) (v :: S -> Type) (s :: S) Source #

Instances

Instances details
(POrd k, PIsData k, PTryFrom PData (PAsData k), PTryFrom PData (PAsData v)) => PTryFrom PData (PAsData (PSortedMap k v)) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type PTryFromExcess PData (PAsData (PSortedMap k v)) 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PTryFromExcess PData (PAsData (PSortedMap k v)) = PTryFromExcess PData (PInner (PAsData (PSortedMap k v)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PSortedMap k v)), Reduce (PTryFromExcess PData (PAsData (PSortedMap k v)) s)) -> Term s r) -> Term s r

PEq (PSortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

(#==) :: forall (s :: S). Term s (PSortedMap k v) -> Term s (PSortedMap k v) -> Term s PBool

PIsData (PSortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PSortedMap k v)) -> Term s (PSortedMap k v)

pdataImpl :: forall (s :: S). Term s (PSortedMap k v) -> Term s PData

(PValidateData k, PValidateData v, POrd k, PIsData k) => PValidateData (PSortedMap k v) Source #

Checks that we have a valid PSortedMap with keys sorted in ascending order.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PSortedMap k v) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type PInner (PSortedMap k v)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PInner (PSortedMap k v) = PInner (DeriveNewtypePlutusType (PSortedMap k v))

Methods

pcon' :: forall (s :: S). PSortedMap k v s -> Term s (PInner (PSortedMap k v))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PSortedMap k v)) -> (PSortedMap k v s -> Term s b) -> Term s b

(PIsData k, PIsData v, PShow k, PShow v) => PShow (PSortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

Methods

pshow' :: forall (s :: S). Bool -> Term s (PSortedMap k v) -> Term s PString

Generic (PSortedMap k v s) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type Rep (PSortedMap k v s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Rep (PSortedMap k v s) = D1 ('MetaData "PSortedMap" "Plutarch.LedgerApi.AssocMap" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PSortedMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAssocMap k v)))))

Methods

from :: PSortedMap k v s -> Rep (PSortedMap k v s) x Source #

to :: Rep (PSortedMap k v s) x -> PSortedMap k v s Source #

Generic (PSortedMap k v s) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

Associated Types

type Code (PSortedMap k v s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Code (PSortedMap k v s) = GCode (PSortedMap k v s)

Methods

from :: PSortedMap k v s -> Rep (PSortedMap k v s)

to :: Rep (PSortedMap k v s) -> PSortedMap k v s

type PTryFromExcess PData (PAsData (PSortedMap k v)) Source # 
Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PTryFromExcess PData (PAsData (PSortedMap k v)) = PTryFromExcess PData (PInner (PAsData (PSortedMap k v)))
type PInner (PSortedMap k v) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type PInner (PSortedMap k v) = PInner (DeriveNewtypePlutusType (PSortedMap k v))
type Rep (PSortedMap k v s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Rep (PSortedMap k v s) = D1 ('MetaData "PSortedMap" "Plutarch.LedgerApi.AssocMap" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'True) (C1 ('MetaCons "PSortedMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAssocMap k v)))))
type Code (PSortedMap k v s) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.AssocMap

type Code (PSortedMap k v s) = GCode (PSortedMap k v s)

Utilities

Types

data PMaybeData (a :: S -> Type) (s :: S) Source #

Since: 3.3.0

Constructors

PDJust (Term s (PAsData a)) 
PDNothing 

Instances

Instances details
PTryFrom PData a => PTryFrom PData (PAsData (PMaybeData a)) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type PTryFromExcess PData (PAsData (PMaybeData a)) 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PTryFromExcess PData (PAsData (PMaybeData a)) = PTryFromExcess PData (PInner (PAsData (PMaybeData a)))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData (PMaybeData a)), Reduce (PTryFromExcess PData (PAsData (PMaybeData a)) s)) -> Term s r) -> Term s r

PEq (PMaybeData a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

(#==) :: forall (s :: S). Term s (PMaybeData a) -> Term s (PMaybeData a) -> Term s PBool

PIsData (PMaybeData a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData (PMaybeData a)) -> Term s (PMaybeData a)

pdataImpl :: forall (s :: S). Term s (PMaybeData a) -> Term s PData

(ToData (AsHaskell a), FromData (AsHaskell a)) => PLiftable (PMaybeData a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type AsHaskell (PMaybeData a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type AsHaskell (PMaybeData a) = AsHaskell (DeriveDataPLiftable (PMaybeData a) (Maybe (AsHaskell a)))
type PlutusRepr (PMaybeData a) 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PlutusRepr (PMaybeData a) = PlutusRepr (DeriveDataPLiftable (PMaybeData a) (Maybe (AsHaskell a)))

Methods

haskToRepr :: AsHaskell (PMaybeData a) -> PlutusRepr (PMaybeData a)

reprToHask :: PlutusRepr (PMaybeData a) -> Either LiftError (AsHaskell (PMaybeData a))

reprToPlut :: forall (s :: S). PlutusRepr (PMaybeData a) -> PLifted s (PMaybeData a)

plutToRepr :: (forall (s :: S). PLifted s (PMaybeData a)) -> Either LiftError (PlutusRepr (PMaybeData a))

(PIsData a, POrd a) => POrd (PMaybeData a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

(#<=) :: forall (s :: S). Term s (PMaybeData a) -> Term s (PMaybeData a) -> Term s PBool

(#<) :: forall (s :: S). Term s (PMaybeData a) -> Term s (PMaybeData a) -> Term s PBool

pmax :: forall (s :: S). Term s (PMaybeData a) -> Term s (PMaybeData a) -> Term s (PMaybeData a)

pmin :: forall (s :: S). Term s (PMaybeData a) -> Term s (PMaybeData a) -> Term s (PMaybeData a)

PValidateData a => PValidateData (PMaybeData a) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType (PMaybeData a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type PInner (PMaybeData a)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type PInner (PMaybeData a) = PInner (DeriveAsDataStruct (PMaybeData a))

Methods

pcon' :: forall (s :: S). PMaybeData a s -> Term s (PInner (PMaybeData a))

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner (PMaybeData a)) -> (PMaybeData a s -> Term s b) -> Term s b

(PIsData a, PShow a) => PShow (PMaybeData a) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

pshow' :: forall (s :: S). Bool -> Term s (PMaybeData a) -> Term s PString

Generic (PMaybeData a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type Rep (PMaybeData a s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Rep (PMaybeData a s) = D1 ('MetaData "PMaybeData" "Plutarch.LedgerApi.Utils" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PDJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a)))) :+: C1 ('MetaCons "PDNothing" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: PMaybeData a s -> Rep (PMaybeData a s) x Source #

to :: Rep (PMaybeData a s) x -> PMaybeData a s Source #

Generic (PMaybeData a s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type Code (PMaybeData a s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Code (PMaybeData a s) = GCode (PMaybeData a s)

Methods

from :: PMaybeData a s -> Rep (PMaybeData a s)

to :: Rep (PMaybeData a s) -> PMaybeData a s

type PTryFromExcess PData (PAsData (PMaybeData a)) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PTryFromExcess PData (PAsData (PMaybeData a)) = PTryFromExcess PData (PInner (PAsData (PMaybeData a)))
type AsHaskell (PMaybeData a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type AsHaskell (PMaybeData a) = AsHaskell (DeriveDataPLiftable (PMaybeData a) (Maybe (AsHaskell a)))
type PlutusRepr (PMaybeData a) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PlutusRepr (PMaybeData a) = PlutusRepr (DeriveDataPLiftable (PMaybeData a) (Maybe (AsHaskell a)))
type PInner (PMaybeData a) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type PInner (PMaybeData a) = PInner (DeriveAsDataStruct (PMaybeData a))
type Rep (PMaybeData a s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Rep (PMaybeData a s) = D1 ('MetaData "PMaybeData" "Plutarch.LedgerApi.Utils" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PDJust" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData a)))) :+: C1 ('MetaCons "PDNothing" 'PrefixI 'False) (U1 :: Type -> Type))
type Code (PMaybeData a s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Code (PMaybeData a s) = GCode (PMaybeData a s)

data PRationalData (s :: S) Source #

A Rational type that corresponds to the data encoding used by Rational.

Since: 3.1.0

Constructors

PRationalData 

Fields

Instances

Instances details
PEq PRationalData Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

(#==) :: forall (s :: S). Term s PRationalData -> Term s PRationalData -> Term s PBool

PIsData PRationalData Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

pfromDataImpl :: forall (s :: S). Term s (PAsData PRationalData) -> Term s PRationalData

pdataImpl :: forall (s :: S). Term s PRationalData -> Term s PData

PLiftable PRationalData Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type AsHaskell PRationalData

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type AsHaskell PRationalData = AsHaskell (DeriveDataPLiftable PRationalData Rational)
type PlutusRepr PRationalData 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PlutusRepr PRationalData = PlutusRepr (DeriveDataPLiftable PRationalData Rational)

Methods

haskToRepr :: AsHaskell PRationalData -> PlutusRepr PRationalData

reprToHask :: PlutusRepr PRationalData -> Either LiftError (AsHaskell PRationalData)

reprToPlut :: forall (s :: S). PlutusRepr PRationalData -> PLifted s PRationalData

plutToRepr :: (forall (s :: S). PLifted s PRationalData) -> Either LiftError (PlutusRepr PRationalData)

POrd PRationalData Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

(#<=) :: forall (s :: S). Term s PRationalData -> Term s PRationalData -> Term s PBool

(#<) :: forall (s :: S). Term s PRationalData -> Term s PRationalData -> Term s PBool

pmax :: forall (s :: S). Term s PRationalData -> Term s PRationalData -> Term s PRationalData

pmin :: forall (s :: S). Term s PRationalData -> Term s PRationalData -> Term s PRationalData

PValidateData PRationalData Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

pwithValidated :: forall (s :: S). Term s PData -> forall (r :: S -> Type). Term s r -> Term s r

PlutusType PRationalData Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type PInner PRationalData

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type PInner PRationalData = PInner (DeriveAsDataStruct PRationalData)

Methods

pcon' :: forall (s :: S). PRationalData s -> Term s (PInner PRationalData)

pmatch' :: forall (s :: S) (b :: S -> Type). Term s (PInner PRationalData) -> (PRationalData s -> Term s b) -> Term s b

PShow PRationalData Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Methods

pshow' :: forall (s :: S). Bool -> Term s PRationalData -> Term s PString

PTryFrom PData (PAsData PRationalData) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type PTryFromExcess PData (PAsData PRationalData) 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PTryFromExcess PData (PAsData PRationalData) = PTryFromExcess PData (PInner (PAsData PRationalData))

Methods

ptryFrom' :: forall (s :: S) (r :: S -> Type). Term s PData -> ((Term s (PAsData PRationalData), Reduce (PTryFromExcess PData (PAsData PRationalData) s)) -> Term s r) -> Term s r

Generic (PRationalData s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type Rep (PRationalData s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Rep (PRationalData s) = D1 ('MetaData "PRationalData" "Plutarch.LedgerApi.Utils" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PRationalData" 'PrefixI 'True) (S1 ('MetaSel ('Just "prationalData'numerator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: S1 ('MetaSel ('Just "prationalData'denominator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPositive)))))
Generic (PRationalData s) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

Associated Types

type Code (PRationalData s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Code (PRationalData s) = GCode (PRationalData s)

Methods

from :: PRationalData s -> Rep (PRationalData s)

to :: Rep (PRationalData s) -> PRationalData s

type AsHaskell PRationalData Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type AsHaskell PRationalData = AsHaskell (DeriveDataPLiftable PRationalData Rational)
type PlutusRepr PRationalData Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PlutusRepr PRationalData = PlutusRepr (DeriveDataPLiftable PRationalData Rational)
type PInner PRationalData Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type PInner PRationalData = PInner (DeriveAsDataStruct PRationalData)
type PTryFromExcess PData (PAsData PRationalData) Source # 
Instance details

Defined in Plutarch.LedgerApi.Utils

type PTryFromExcess PData (PAsData PRationalData) = PTryFromExcess PData (PInner (PAsData PRationalData))
type Rep (PRationalData s) Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Rep (PRationalData s) = D1 ('MetaData "PRationalData" "Plutarch.LedgerApi.Utils" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PRationalData" 'PrefixI 'True) (S1 ('MetaSel ('Just "prationalData'numerator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: S1 ('MetaSel ('Just "prationalData'denominator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPositive)))))
type Code (PRationalData s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.Utils

type Code (PRationalData s) = GCode (PRationalData s)

Utilities

pfromDJust :: forall (a :: S -> Type) (s :: S). PIsData a => Term s (PMaybeData a :--> a) Source #

Extracts the element out of a PDJust and throws an error if its argument is PDNothing.

Since: 2.1.1

pisDJust :: forall (a :: S -> Type) (s :: S). Term s (PMaybeData a :--> PBool) Source #

Yield PTrue if a given PMaybeData is of the form PDJust _.

Since: 2.1.1

pmaybeData :: forall (a :: S -> Type) (b :: S -> Type) (s :: S). PIsData a => Term s (b :--> ((a :--> b) :--> (PMaybeData a :--> b))) Source #

Special version of pmaybe that works with PMaybeData.

Since: 2.1.1

pdjust :: forall (a :: S -> Type) (s :: S). PIsData a => Term s (a :--> PMaybeData a) Source #

Construct a PDJust value.

Since: 2.1.1

pdnothing :: forall (a :: S -> Type) (s :: S). Term s (PMaybeData a) Source #

Construct a PDNothing value.

Since: 2.1.1

pmaybeToMaybeData :: forall (a :: S -> Type) (s :: S). PIsData a => Term s (PMaybe a :--> PMaybeData a) Source #

Construct a PMaybeData given a PMaybe. Could be useful if you want to "lift" from PMaybe to Maybe.

Since: 2.1.1

passertPDJust :: forall (a :: S -> Type) (s :: S). PIsData a => Term s (PString :--> (PMaybeData a :--> a)) Source #

Extract the value stored in a PMaybeData container. If there's no value, throw an error with the given message.

Since: 2.1.1

prationalFromData :: forall (s :: S). Term s (PRationalData :--> PRational) Source #

Since: 3.1.0