plutarch-ledger-api
Safe HaskellNone
LanguageHaskell2010

Plutarch.LedgerApi.V3

Description

Note

The PValue, PMap and PInterval-related functionality can be found in other modules, as these clash with the Plutarch prelude. These should be imported qualified.

Synopsis

Contexts

data PScriptContext (s :: S) Source #

Since: 3.1.0

Instances

Instances details
PEq PScriptContext Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PScriptContext Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type AsHaskell PScriptContext

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

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.V3.Contexts

Associated Types

type PInner PScriptContext

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PScriptContext) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type Rep (PScriptContext s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PScriptContext s) = D1 ('MetaData "PScriptContext" "Plutarch.LedgerApi.V3.Contexts" "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'redeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PRedeemer)) :*: S1 ('MetaSel ('Just "pscriptContext'scriptInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PScriptInfo)))))
Generic (PScriptContext s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PScriptContext s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PScriptContext s) = D1 ('MetaData "PScriptContext" "Plutarch.LedgerApi.V3.Contexts" "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'redeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PRedeemer)) :*: S1 ('MetaSel ('Just "pscriptContext'scriptInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PScriptInfo)))))
type Code (PScriptContext s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

data PTxInfo (s :: S) Source #

Constructors

PTxInfo 

Fields

Instances

Instances details
PEq PTxInfo Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PTxInfo Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type AsHaskell PTxInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PTxInfo = AsHaskell (DeriveDataPLiftable PTxInfo TxInfo)
type PlutusRepr PTxInfo 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

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.V3.Contexts

Associated Types

type PInner PTxInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PTxInfo) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type Rep (PTxInfo s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PTxInfo s) = D1 ('MetaData "PTxInfo" "Plutarch.LedgerApi.V3.Contexts" "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 (PAsData PTxInInfo))))) :*: S1 ('MetaSel ('Just "ptxInfo'referenceInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PTxInInfo)))))) :*: (S1 ('MetaSel ('Just "ptxInfo'outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PTxOut))))) :*: S1 ('MetaSel ('Just "ptxInfo'fee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))))) :*: ((S1 ('MetaSel ('Just "ptxInfo'mint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PMintValue))) :*: S1 ('MetaSel ('Just "ptxInfo'txCerts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PTxCert)))))) :*: (S1 ('MetaSel ('Just "ptxInfo'wdrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PCredential PLovelace)))) :*: 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'redeemers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PScriptPurpose PRedeemer))))) :*: (S1 ('MetaSel ('Just "ptxInfo'data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PDatumHash PDatum)))) :*: S1 ('MetaSel ('Just "ptxInfo'id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PTxId))))) :*: ((S1 ('MetaSel ('Just "ptxInfo'votes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PVoter (PUnsortedMap PGovernanceActionId PVote))))) :*: S1 ('MetaSel ('Just "ptxInfo'proposalProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PProposalProcedure)))))) :*: (S1 ('MetaSel ('Just "ptxInfo'currentTreasuryAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace))) :*: S1 ('MetaSel ('Just "ptxInfo'treasuryDonation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace))))))))

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.V3.Contexts

Associated Types

type Code (PTxInfo s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

type AsHaskell PTxInfo = AsHaskell (DeriveDataPLiftable PTxInfo TxInfo)
type PlutusRepr PTxInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PTxInfo = PlutusRepr (DeriveDataPLiftable PTxInfo TxInfo)
type PInner PTxInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PTxInfo s) = D1 ('MetaData "PTxInfo" "Plutarch.LedgerApi.V3.Contexts" "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 (PAsData PTxInInfo))))) :*: S1 ('MetaSel ('Just "ptxInfo'referenceInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PTxInInfo)))))) :*: (S1 ('MetaSel ('Just "ptxInfo'outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PTxOut))))) :*: S1 ('MetaSel ('Just "ptxInfo'fee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))))) :*: ((S1 ('MetaSel ('Just "ptxInfo'mint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PMintValue))) :*: S1 ('MetaSel ('Just "ptxInfo'txCerts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PTxCert)))))) :*: (S1 ('MetaSel ('Just "ptxInfo'wdrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PCredential PLovelace)))) :*: 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'redeemers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PScriptPurpose PRedeemer))))) :*: (S1 ('MetaSel ('Just "ptxInfo'data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PDatumHash PDatum)))) :*: S1 ('MetaSel ('Just "ptxInfo'id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PTxId))))) :*: ((S1 ('MetaSel ('Just "ptxInfo'votes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PVoter (PUnsortedMap PGovernanceActionId PVote))))) :*: S1 ('MetaSel ('Just "ptxInfo'proposalProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PProposalProcedure)))))) :*: (S1 ('MetaSel ('Just "ptxInfo'currentTreasuryAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace))) :*: S1 ('MetaSel ('Just "ptxInfo'treasuryDonation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace))))))))
type Code (PTxInfo s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PTxInfo s) = GCode (PTxInfo s)

data PScriptInfo (s :: S) Source #

Since: 3.1.0

Constructors

PMintingScript (Term s (PAsData PCurrencySymbol)) 
PSpendingScript (Term s PTxOutRef) (Term s (PMaybeData PDatum)) 
PRewardingScript (Term s PCredential) 
PCertifyingScript (Term s (PAsData PInteger)) (Term s PTxCert) 
PVotingScript (Term s PVoter) 
PProposingScript (Term s (PAsData PInteger)) (Term s PProposalProcedure) 

Instances

Instances details
PEq PScriptInfo Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PScriptInfo Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PScriptInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PScriptInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PScriptInfo = AsHaskell (DeriveDataPLiftable PScriptInfo ScriptInfo)
type PlutusRepr PScriptInfo 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PScriptInfo = PlutusRepr (DeriveDataPLiftable PScriptInfo ScriptInfo)

Methods

haskToRepr :: AsHaskell PScriptInfo -> PlutusRepr PScriptInfo

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

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

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

PValidateData PScriptInfo Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PScriptInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PScriptInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PScriptInfo = PInner (DeriveAsDataStruct PScriptInfo)

Methods

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

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

PShow PScriptInfo Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PScriptInfo) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PScriptInfo) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PScriptInfo s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PScriptInfo s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PScriptInfo s) = D1 ('MetaData "PScriptInfo" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PMintingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PCurrencySymbol)))) :+: (C1 ('MetaCons "PSpendingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOutRef)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PDatum)))) :+: C1 ('MetaCons "PRewardingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential))))) :+: (C1 ('MetaCons "PCertifyingScript" '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 PTxCert))) :+: (C1 ('MetaCons "PVotingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PVoter))) :+: C1 ('MetaCons "PProposingScript" '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 PProposalProcedure))))))
Generic (PScriptInfo s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PScriptInfo s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PScriptInfo s) = GCode (PScriptInfo s)

Methods

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

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

type AsHaskell PScriptInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PScriptInfo = AsHaskell (DeriveDataPLiftable PScriptInfo ScriptInfo)
type PlutusRepr PScriptInfo Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PScriptInfo = PlutusRepr (DeriveDataPLiftable PScriptInfo ScriptInfo)
type PInner PScriptInfo Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PScriptInfo s) = D1 ('MetaData "PScriptInfo" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PMintingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PCurrencySymbol)))) :+: (C1 ('MetaCons "PSpendingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PTxOutRef)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PDatum)))) :+: C1 ('MetaCons "PRewardingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential))))) :+: (C1 ('MetaCons "PCertifyingScript" '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 PTxCert))) :+: (C1 ('MetaCons "PVotingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PVoter))) :+: C1 ('MetaCons "PProposingScript" '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 PProposalProcedure))))))
type Code (PScriptInfo s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PScriptInfo s) = GCode (PScriptInfo s)

data PScriptPurpose (s :: S) Source #

Since: 2.0.0

Constructors

PMinting (Term s (PAsData PCurrencySymbol)) 
PSpending (Term s PTxOutRef) 
PRewarding (Term s PCredential)

Since: 3.1.0

PCertifying (Term s (PAsData PInteger)) (Term s PTxCert) 
PVoting (Term s PVoter)

Since: 3.1.0

PProposing (Term s (PAsData PInteger)) (Term s PProposalProcedure)

Since: 3.1.0

Instances

Instances details
PEq PScriptPurpose Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PScriptPurpose Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Contexts

Associated Types

type AsHaskell PScriptPurpose

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.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.V3.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.V3.Contexts

Associated Types

type PInner PScriptPurpose

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.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: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PScriptPurpose) 
Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Contexts

Associated Types

type Rep (PScriptPurpose s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Generic (PScriptPurpose s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PScriptPurpose s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PScriptPurpose s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Tx

Types

data PTxOutRef (s :: S) Source #

Since: 3.1.0

Constructors

PTxOutRef 

Fields

Instances

Instances details
PEq PTxOutRef Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

Methods

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

PIsData PTxOutRef Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Tx

Associated Types

type AsHaskell PTxOutRef

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

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

Defined in Plutarch.LedgerApi.V3.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.V3.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.V3.Tx

Associated Types

type PInner PTxOutRef

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.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: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Tx

Associated Types

type PTryFromExcess PData (PAsData PTxOutRef) 
Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Tx

Associated Types

type Rep (PTxOutRef s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type Rep (PTxOutRef s) = D1 ('MetaData "PTxOutRef" "Plutarch.LedgerApi.V3.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 (PAsData 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.V3.Tx

Associated Types

type Code (PTxOutRef s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Tx

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

Defined in Plutarch.LedgerApi.V3.Tx

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

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

Defined in Plutarch.LedgerApi.V3.Tx

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type Rep (PTxOutRef s) = D1 ('MetaData "PTxOutRef" "Plutarch.LedgerApi.V3.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 (PAsData 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.V3.Tx

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

data PTxOut (s :: S) Source #

Since: 2.0.0

Constructors

PTxOut 

Instances

Instances details
PEq PTxOut Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Methods

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

PIsData PTxOut Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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.V2.Tx

Associated Types

type AsHaskell PTxOut

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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

Defined in Plutarch.LedgerApi.V2.Tx

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.V2.Tx

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.V2.Tx

Associated Types

type PInner PTxOut

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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.V2.Tx

Associated Types

type PTryFromExcess PData (PAsData PTxOut) 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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.V2.Tx

Associated Types

type Rep (PTxOut s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type Rep (PTxOut s) = D1 ('MetaData "PTxOut" "Plutarch.LedgerApi.V2.Tx" "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'datum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s POutputDatum)) :*: S1 ('MetaSel ('Just "ptxOut'referenceScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PScriptHash))))))

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.V2.Tx

Associated Types

type Code (PTxOut s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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.V2.Tx

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

Defined in Plutarch.LedgerApi.V2.Tx

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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

Defined in Plutarch.LedgerApi.V2.Tx

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

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type Rep (PTxOut s) = D1 ('MetaData "PTxOut" "Plutarch.LedgerApi.V2.Tx" "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'datum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s POutputDatum)) :*: S1 ('MetaSel ('Just "ptxOut'referenceScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PScriptHash))))))
type Code (PTxOut s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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

newtype PTxId (s :: S) Source #

Hashed with BLAKE2b-256.

Since: 3.1.0

Constructors

PTxId (Term s PByteString) 

Instances

Instances details
PEq PTxId Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.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 #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

Associated Types

type AsHaskell PTxId 
Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type AsHaskell PTxId = TxId
type PlutusRepr PTxId 
Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type PlutusRepr PTxId = ByteString

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)

POrd PTxId Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

Methods

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

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

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

pmin :: forall (s :: S). Term s PTxId -> Term s PTxId -> Term s 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.V3.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.V3.Tx

Associated Types

type PInner PTxId

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type PInner PTxId = PInner (DeriveNewtypePlutusType 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.V3.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.V3.Tx

Associated Types

type PTryFromExcess PData (PAsData PTxId) 
Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.Tx

Associated Types

type Rep (PTxId s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type Rep (PTxId s) = D1 ('MetaData "PTxId" "Plutarch.LedgerApi.V3.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 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.V3.Tx

Associated Types

type Code (PTxId s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.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 # 
Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type AsHaskell PTxId = TxId
type PlutusRepr PTxId Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Tx

type PlutusRepr PTxId = ByteString
type PInner PTxId Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

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

Defined in Plutarch.LedgerApi.V3.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.V3.Tx

type Rep (PTxId s) = D1 ('MetaData "PTxId" "Plutarch.LedgerApi.V3.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 PByteString))))
type Code (PTxId s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Tx

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

data PTxInInfo (s :: S) Source #

An input of the transaction.

Since: 2.0.0

Constructors

PTxInInfo 

Instances

Instances details
PEq PTxInInfo Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PTxInInfo Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type AsHaskell PTxInInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

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.V3.Contexts

Associated Types

type PInner PTxInInfo

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PTxInInfo) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

Associated Types

type Rep (PTxInInfo s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PTxInInfo s) = D1 ('MetaData "PTxInInfo" "Plutarch.LedgerApi.V3.Contexts" "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.V3.Contexts

Associated Types

type Code (PTxInInfo s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PTxInInfo s) = D1 ('MetaData "PTxInInfo" "Plutarch.LedgerApi.V3.Contexts" "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.V3.Contexts

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

data POutputDatum (s :: S) Source #

Since: 2.0.0

Constructors

PNoOutputDatum 
POutputDatumHash 

Fields

POutputDatum

Inline datum as per CIP-0032

Instances

Instances details
PEq POutputDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Methods

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

PIsData POutputDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Methods

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

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

PLiftable POutputDatum Source # 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Associated Types

type AsHaskell POutputDatum

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type AsHaskell POutputDatum = AsHaskell (DeriveDataPLiftable POutputDatum OutputDatum)
type PlutusRepr POutputDatum 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type PlutusRepr POutputDatum = PlutusRepr (DeriveDataPLiftable POutputDatum OutputDatum)

Methods

haskToRepr :: AsHaskell POutputDatum -> PlutusRepr POutputDatum

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

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

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

PValidateData POutputDatum Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Methods

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

PlutusType POutputDatum Source # 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Associated Types

type PInner POutputDatum

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type PInner POutputDatum = PInner (DeriveAsDataStruct POutputDatum)

Methods

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

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

PShow POutputDatum Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Methods

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

PTryFrom PData (PAsData POutputDatum) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Associated Types

type PTryFromExcess PData (PAsData POutputDatum) 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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

Methods

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

Generic (POutputDatum s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Associated Types

type Rep (POutputDatum s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type Rep (POutputDatum s) = D1 ('MetaData "POutputDatum" "Plutarch.LedgerApi.V2.Tx" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PNoOutputDatum" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "POutputDatumHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "poutputDatum'datumHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PDatumHash)))) :+: C1 ('MetaCons "POutputDatum" 'PrefixI 'True) (S1 ('MetaSel ('Just "poutputDatum'outputDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDatum)))))
Generic (POutputDatum s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

Associated Types

type Code (POutputDatum s)

Since: plutarch-ledger-api-2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type Code (POutputDatum s) = GCode (POutputDatum s)

Methods

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

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

type AsHaskell POutputDatum Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type AsHaskell POutputDatum = AsHaskell (DeriveDataPLiftable POutputDatum OutputDatum)
type PlutusRepr POutputDatum Source # 
Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type PlutusRepr POutputDatum = PlutusRepr (DeriveDataPLiftable POutputDatum OutputDatum)
type PInner POutputDatum Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

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

Defined in Plutarch.LedgerApi.V2.Tx

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

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type Rep (POutputDatum s) = D1 ('MetaData "POutputDatum" "Plutarch.LedgerApi.V2.Tx" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PNoOutputDatum" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "POutputDatumHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "poutputDatum'datumHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PDatumHash)))) :+: C1 ('MetaCons "POutputDatum" 'PrefixI 'True) (S1 ('MetaSel ('Just "poutputDatum'outputDatum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDatum)))))
type Code (POutputDatum s) Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V2.Tx

type Code (POutputDatum s) = GCode (POutputDatum s)

Script

Types

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 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 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 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)

Functions

scriptHash :: Script -> ScriptHash Source #

Hash a script, appending the Plutus V2 prefix.

Since: 2.0.0

datumHash :: Datum -> DatumHash Source #

Since: 2.0.0

redeemerHash :: Redeemer -> RedeemerHash Source #

Since: 2.0.0

dataHash :: ToData a => a -> BuiltinByteString Source #

Since: 2.0.0

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 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)

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 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)

data PMintValue (s :: S) Source #

Represents sorted, well-formed Values without an Ada entry, while all non-Ada 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.V3.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.V3.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, must not include an ADA entry, and must not contain any empty token maps or tokens with zero quantities.

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.MintValue

Associated Types

type PInner PMintValue

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.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.V3.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.V3.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.V3.MintValue

Associated Types

type PTryFromExcess PData (PAsData PMintValue) 
Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.MintValue

Associated Types

type Rep (PMintValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.V3.MintValue

type Rep (PMintValue s) = D1 ('MetaData "PMintValue" "Plutarch.LedgerApi.V3.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.V3.MintValue

Associated Types

type Code (PMintValue s)

Since: plutarch-ledger-api-3.5.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.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.V3.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.V3.MintValue

Methods

inv :: Term s PMintValue -> Term s PMintValue

Monoid (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V3.MintValue

Methods

mempty :: Term s PMintValue

Semigroup (Term s PMintValue) Source #

Since: 3.5.0

Instance details

Defined in Plutarch.LedgerApi.V3.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.V3.MintValue

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

Defined in Plutarch.LedgerApi.V3.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.V3.MintValue

type Rep (PMintValue s) = D1 ('MetaData "PMintValue" "Plutarch.LedgerApi.V3.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.V3.MintValue

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

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

Construct an empty PMintValue.

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.

Important note

If the quantity is zero, or if the provided currency symbol is the Ada symbol, the result is an empty PMintValue.

Since: 3.6.0

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

Assoc map

Types

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)

Address

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)

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)

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

Interval

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)

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 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)

CIP-1694

data PTxCert (s :: S) Source #

Since: 3.1.0

Constructors

PTxCertRegStaking (Term s PCredential) (Term s (PMaybeData PLovelace)) 
PTxCertUnRegStaking (Term s PCredential) (Term s (PMaybeData PLovelace)) 
PTxCertDelegStaking (Term s PCredential) (Term s PDelegatee) 
PTxCertRegDeleg (Term s PCredential) (Term s PDelegatee) (Term s (PAsData PLovelace)) 
PTxCertRegDRep (Term s PDRepCredential) (Term s (PAsData PLovelace)) 
PTxCertUpdateDRep (Term s PDRepCredential) 
PTxCertUnRegDRep (Term s PDRepCredential) (Term s (PAsData PLovelace)) 
PTxCertPoolRegister (Term s (PAsData PPubKeyHash)) (Term s (PAsData PPubKeyHash)) 
PTxCertPoolRetire (Term s (PAsData PPubKeyHash)) (Term s (PAsData PInteger)) 
PTxCertAuthHotCommittee (Term s PColdCommitteeCredential) (Term s PHotCommitteeCredential) 
PTxCertResignColdCommittee (Term s PColdCommitteeCredential) 

Instances

Instances details
PEq PTxCert Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PTxCert Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PTxCert Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PTxCert

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PTxCert = AsHaskell (DeriveDataPLiftable PTxCert TxCert)
type PlutusRepr PTxCert 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PTxCert = PlutusRepr (DeriveDataPLiftable PTxCert TxCert)

Methods

haskToRepr :: AsHaskell PTxCert -> PlutusRepr PTxCert

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

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

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

PValidateData PTxCert Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PTxCert Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PTxCert

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PTxCert = PInner (DeriveAsDataStruct PTxCert)

Methods

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

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

PShow PTxCert Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PTxCert) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PTxCert) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PTxCert s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PTxCert s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PTxCert s) = D1 ('MetaData "PTxCert" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (((C1 ('MetaCons "PTxCertRegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace)))) :+: C1 ('MetaCons "PTxCertUnRegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace))))) :+: (C1 ('MetaCons "PTxCertDelegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDelegatee))) :+: (C1 ('MetaCons "PTxCertRegDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDelegatee)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))))) :+: C1 ('MetaCons "PTxCertRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))))))) :+: ((C1 ('MetaCons "PTxCertUpdateDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential))) :+: (C1 ('MetaCons "PTxCertUnRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace)))) :+: C1 ('MetaCons "PTxCertPoolRegister" '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 "PTxCertPoolRetire" '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 "PTxCertAuthHotCommittee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PColdCommitteeCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PHotCommitteeCredential))) :+: C1 ('MetaCons "PTxCertResignColdCommittee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PColdCommitteeCredential)))))))

Methods

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

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

Generic (PTxCert s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PTxCert s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PTxCert s) = GCode (PTxCert s)

Methods

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

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

type AsHaskell PTxCert Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PTxCert = AsHaskell (DeriveDataPLiftable PTxCert TxCert)
type PlutusRepr PTxCert Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PTxCert = PlutusRepr (DeriveDataPLiftable PTxCert TxCert)
type PInner PTxCert Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PTxCert s) = D1 ('MetaData "PTxCert" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (((C1 ('MetaCons "PTxCertRegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace)))) :+: C1 ('MetaCons "PTxCertUnRegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PLovelace))))) :+: (C1 ('MetaCons "PTxCertDelegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDelegatee))) :+: (C1 ('MetaCons "PTxCertRegDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDelegatee)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))))) :+: C1 ('MetaCons "PTxCertRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))))))) :+: ((C1 ('MetaCons "PTxCertUpdateDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential))) :+: (C1 ('MetaCons "PTxCertUnRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace)))) :+: C1 ('MetaCons "PTxCertPoolRegister" '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 "PTxCertPoolRetire" '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 "PTxCertAuthHotCommittee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PColdCommitteeCredential)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PHotCommitteeCredential))) :+: C1 ('MetaCons "PTxCertResignColdCommittee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PColdCommitteeCredential)))))))
type Code (PTxCert s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PTxCert s) = GCode (PTxCert s)

data PDelegatee (s :: S) Source #

Since: 3.1.0

Constructors

PDelegStake (Term s (PAsData PPubKeyHash)) 
PDelegVote (Term s PDRep) 
PDelegStakeVote (Term s (PAsData PPubKeyHash)) (Term s PDRep) 

Instances

Instances details
PEq PDelegatee Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PDelegatee Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PDelegatee Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PDelegatee

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PDelegatee = AsHaskell (DeriveDataPLiftable PDelegatee Delegatee)
type PlutusRepr PDelegatee 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PDelegatee = PlutusRepr (DeriveDataPLiftable PDelegatee Delegatee)

Methods

haskToRepr :: AsHaskell PDelegatee -> PlutusRepr PDelegatee

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

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

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

PValidateData PDelegatee Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PDelegatee Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PDelegatee

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PDelegatee = PInner (DeriveAsDataStruct PDelegatee)

Methods

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

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

PShow PDelegatee Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PDelegatee) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PDelegatee) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PDelegatee s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PDelegatee s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PDelegatee s) = D1 ('MetaData "PDelegatee" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PDelegStake" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))) :+: (C1 ('MetaCons "PDelegVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRep))) :+: C1 ('MetaCons "PDelegStakeVote" '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 PDRep)))))

Methods

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

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

Generic (PDelegatee s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PDelegatee s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PDelegatee s) = GCode (PDelegatee s)

Methods

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

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

type AsHaskell PDelegatee Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PDelegatee = AsHaskell (DeriveDataPLiftable PDelegatee Delegatee)
type PlutusRepr PDelegatee Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PDelegatee = PlutusRepr (DeriveDataPLiftable PDelegatee Delegatee)
type PInner PDelegatee Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PDelegatee s) = D1 ('MetaData "PDelegatee" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PDelegStake" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash)))) :+: (C1 ('MetaCons "PDelegVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRep))) :+: C1 ('MetaCons "PDelegStakeVote" '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 PDRep)))))
type Code (PDelegatee s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PDelegatee s) = GCode (PDelegatee s)

newtype PDRepCredential (s :: S) Source #

Since: 3.1.0

Constructors

PDRepCredential (Term s PCredential) 

Instances

Instances details
PEq PDRepCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PDRepCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PDRepCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PDRepCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PDRepCredential = AsHaskell (DeriveDataPLiftable PDRepCredential DRepCredential)
type PlutusRepr PDRepCredential 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PDRepCredential = PlutusRepr (DeriveDataPLiftable PDRepCredential DRepCredential)

Methods

haskToRepr :: AsHaskell PDRepCredential -> PlutusRepr PDRepCredential

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

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

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

PValidateData PDRepCredential Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PDRepCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PDRepCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PDRepCredential = PInner (DeriveNewtypePlutusType PDRepCredential)

Methods

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

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

PShow PDRepCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PDRepCredential) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PDRepCredential) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PDRepCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PDRepCredential s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PDRepCredential s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PDRepCredential = AsHaskell (DeriveDataPLiftable PDRepCredential DRepCredential)
type PlutusRepr PDRepCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PDRepCredential = PlutusRepr (DeriveDataPLiftable PDRepCredential DRepCredential)
type PInner PDRepCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PDRepCredential s) = GCode (PDRepCredential s)

newtype PColdCommitteeCredential (s :: S) Source #

Since: 3.1.0

Constructors

PColdCommitteeCredential (Term s PCredential) 

Instances

Instances details
PEq PColdCommitteeCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PColdCommitteeCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PColdCommitteeCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PColdCommitteeCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PColdCommitteeCredential = AsHaskell (DeriveDataPLiftable PColdCommitteeCredential ColdCommitteeCredential)
type PlutusRepr PColdCommitteeCredential 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PColdCommitteeCredential = PlutusRepr (DeriveDataPLiftable PColdCommitteeCredential ColdCommitteeCredential)

Methods

haskToRepr :: AsHaskell PColdCommitteeCredential -> PlutusRepr PColdCommitteeCredential

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

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

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

PValidateData PColdCommitteeCredential Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PColdCommitteeCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PColdCommitteeCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PColdCommitteeCredential = PInner (DeriveNewtypePlutusType PColdCommitteeCredential)

Methods

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

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

PShow PColdCommitteeCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PColdCommitteeCredential) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PColdCommitteeCredential) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PColdCommitteeCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PColdCommitteeCredential s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PColdCommitteeCredential s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PColdCommitteeCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PColdCommitteeCredential = AsHaskell (DeriveDataPLiftable PColdCommitteeCredential ColdCommitteeCredential)
type PlutusRepr PColdCommitteeCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PColdCommitteeCredential = PlutusRepr (DeriveDataPLiftable PColdCommitteeCredential ColdCommitteeCredential)
type PInner PColdCommitteeCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

newtype PHotCommitteeCredential (s :: S) Source #

Since: 3.1.0

Constructors

PHotCommitteeCredential (Term s PCredential) 

Instances

Instances details
PEq PHotCommitteeCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PHotCommitteeCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PHotCommitteeCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PHotCommitteeCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PHotCommitteeCredential = AsHaskell (DeriveDataPLiftable PHotCommitteeCredential HotCommitteeCredential)
type PlutusRepr PHotCommitteeCredential 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PHotCommitteeCredential = PlutusRepr (DeriveDataPLiftable PHotCommitteeCredential HotCommitteeCredential)

Methods

haskToRepr :: AsHaskell PHotCommitteeCredential -> PlutusRepr PHotCommitteeCredential

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

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

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

PValidateData PHotCommitteeCredential Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PHotCommitteeCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PHotCommitteeCredential

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PHotCommitteeCredential = PInner (DeriveNewtypePlutusType PHotCommitteeCredential)

Methods

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

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

PShow PHotCommitteeCredential Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PHotCommitteeCredential) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PHotCommitteeCredential) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PHotCommitteeCredential s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PHotCommitteeCredential s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PHotCommitteeCredential s)

@since

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PHotCommitteeCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PHotCommitteeCredential = AsHaskell (DeriveDataPLiftable PHotCommitteeCredential HotCommitteeCredential)
type PlutusRepr PHotCommitteeCredential Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PHotCommitteeCredential = PlutusRepr (DeriveDataPLiftable PHotCommitteeCredential HotCommitteeCredential)
type PInner PHotCommitteeCredential Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

@since

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

data PDRep (s :: S) Source #

Since: 3.1.0

Instances

Instances details
PEq PDRep Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PDRep Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PDRep Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PDRep

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PDRep = AsHaskell (DeriveDataPLiftable PDRep DRep)
type PlutusRepr PDRep 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PDRep = PlutusRepr (DeriveDataPLiftable PDRep DRep)

Methods

haskToRepr :: AsHaskell PDRep -> PlutusRepr PDRep

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

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

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

PValidateData PDRep Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PDRep Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PDRep

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PDRep = PInner (DeriveAsDataStruct PDRep)

Methods

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

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

PShow PDRep Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PDRep) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PDRep) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PDRep s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PDRep s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PDRep s) = D1 ('MetaData "PDRep" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PDRepCredential)))) :+: (C1 ('MetaCons "PDRepAlwaysAbstain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PDRepAlwaysNoConfidence" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

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

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

Generic (PDRep s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PDRep s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PDRep s) = GCode (PDRep s)

Methods

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

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

type AsHaskell PDRep Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PDRep = AsHaskell (DeriveDataPLiftable PDRep DRep)
type PlutusRepr PDRep Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PDRep = PlutusRepr (DeriveDataPLiftable PDRep DRep)
type PInner PDRep Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PDRep s) = D1 ('MetaData "PDRep" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PDRepCredential)))) :+: (C1 ('MetaCons "PDRepAlwaysAbstain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PDRepAlwaysNoConfidence" 'PrefixI 'False) (U1 :: Type -> Type)))
type Code (PDRep s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PDRep s) = GCode (PDRep s)

data PVoter (s :: S) Source #

Since: 3.1.0

Instances

Instances details
PEq PVoter Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PVoter Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PVoter Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PVoter

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PVoter = AsHaskell (DeriveDataPLiftable PVoter Voter)
type PlutusRepr PVoter 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PVoter = PlutusRepr (DeriveDataPLiftable PVoter Voter)

Methods

haskToRepr :: AsHaskell PVoter -> PlutusRepr PVoter

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

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

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

PValidateData PVoter Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PVoter Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PVoter

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PVoter = PInner (DeriveAsDataStruct PVoter)

Methods

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

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

PShow PVoter Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PVoter) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PVoter) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PVoter s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PVoter s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PVoter s) = D1 ('MetaData "PVoter" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PCommitteeVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PHotCommitteeCredential))) :+: (C1 ('MetaCons "PDRepVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential))) :+: C1 ('MetaCons "PStakePoolVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash))))))

Methods

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

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

Generic (PVoter s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PVoter s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PVoter s) = GCode (PVoter s)

Methods

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

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

type AsHaskell PVoter Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PVoter = AsHaskell (DeriveDataPLiftable PVoter Voter)
type PlutusRepr PVoter Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PVoter = PlutusRepr (DeriveDataPLiftable PVoter Voter)
type PInner PVoter Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PVoter s) = D1 ('MetaData "PVoter" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PCommitteeVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PHotCommitteeCredential))) :+: (C1 ('MetaCons "PDRepVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PDRepCredential))) :+: C1 ('MetaCons "PStakePoolVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PPubKeyHash))))))
type Code (PVoter s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PVoter s) = GCode (PVoter s)

data PGovernanceActionId (s :: S) Source #

Since: 3.1.0

Constructors

PGovernanceActionId (Term s (PAsData PTxId)) (Term s (PAsData PInteger)) 

Instances

Instances details
PEq PGovernanceActionId Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PGovernanceActionId Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PGovernanceActionId Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PGovernanceActionId

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PGovernanceActionId = AsHaskell (DeriveDataPLiftable PGovernanceActionId GovernanceActionId)
type PlutusRepr PGovernanceActionId 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PGovernanceActionId = PlutusRepr (DeriveDataPLiftable PGovernanceActionId GovernanceActionId)

Methods

haskToRepr :: AsHaskell PGovernanceActionId -> PlutusRepr PGovernanceActionId

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

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

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

PValidateData PGovernanceActionId Source #

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

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PGovernanceActionId Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PGovernanceActionId

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PGovernanceActionId = PInner (DeriveAsDataStruct PGovernanceActionId)

Methods

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

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

PShow PGovernanceActionId Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PGovernanceActionId) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PGovernanceActionId) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PGovernanceActionId s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PGovernanceActionId s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PGovernanceActionId s) = D1 ('MetaData "PGovernanceActionId" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PGovernanceActionId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PTxId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger)))))
Generic (PGovernanceActionId s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PGovernanceActionId s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PGovernanceActionId = AsHaskell (DeriveDataPLiftable PGovernanceActionId GovernanceActionId)
type PlutusRepr PGovernanceActionId Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PGovernanceActionId = PlutusRepr (DeriveDataPLiftable PGovernanceActionId GovernanceActionId)
type PInner PGovernanceActionId Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PGovernanceActionId s) = GCode (PGovernanceActionId s)

data PVote (s :: S) Source #

Since: 3.1.0

Constructors

PVoteYes 
PVoteNo 
PAbstain 

Instances

Instances details
PEq PVote Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PVote Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PVote Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PVote

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PVote = AsHaskell (DeriveDataPLiftable PVote Vote)
type PlutusRepr PVote 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PVote = PlutusRepr (DeriveDataPLiftable PVote Vote)

Methods

haskToRepr :: AsHaskell PVote -> PlutusRepr PVote

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

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

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

PValidateData PVote Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PVote Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PVote

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PVote = PInner (DeriveAsDataStruct PVote)

Methods

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

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

PShow PVote Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PVote) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PVote) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PVote s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PVote s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PVote s) = D1 ('MetaData "PVote" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PVoteYes" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PVoteNo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PAbstain" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

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

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

Generic (PVote s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PVote s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PVote s) = GCode (PVote s)

Methods

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

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

type AsHaskell PVote Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PVote = AsHaskell (DeriveDataPLiftable PVote Vote)
type PlutusRepr PVote Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PVote = PlutusRepr (DeriveDataPLiftable PVote Vote)
type PInner PVote Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PVote s) = D1 ('MetaData "PVote" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PVoteYes" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PVoteNo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PAbstain" 'PrefixI 'False) (U1 :: Type -> Type)))
type Code (PVote s) Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PVote s) = GCode (PVote s)

data PProtocolVersion (s :: S) Source #

Since: 3.1.0

Constructors

PProtocolVersion 

Fields

Instances

Instances details
PEq PProtocolVersion Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PProtocolVersion Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PProtocolVersion Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PProtocolVersion

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PProtocolVersion = AsHaskell (DeriveDataPLiftable PProtocolVersion ProtocolVersion)
type PlutusRepr PProtocolVersion 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PProtocolVersion = PlutusRepr (DeriveDataPLiftable PProtocolVersion ProtocolVersion)

Methods

haskToRepr :: AsHaskell PProtocolVersion -> PlutusRepr PProtocolVersion

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

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

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

PValidateData PProtocolVersion Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PProtocolVersion Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PProtocolVersion

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PProtocolVersion = PInner (DeriveAsDataStruct PProtocolVersion)

Methods

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

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

PShow PProtocolVersion Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PProtocolVersion) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PProtocolVersion) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PProtocolVersion s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PProtocolVersion s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PProtocolVersion s) = D1 ('MetaData "PProtocolVersion" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PProtocolVersion" 'PrefixI 'True) (S1 ('MetaSel ('Just "pprotocolVersion'major") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: S1 ('MetaSel ('Just "pprotocolVersion'minor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger)))))
Generic (PProtocolVersion s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PProtocolVersion s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PProtocolVersion = AsHaskell (DeriveDataPLiftable PProtocolVersion ProtocolVersion)
type PlutusRepr PProtocolVersion Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PProtocolVersion = PlutusRepr (DeriveDataPLiftable PProtocolVersion ProtocolVersion)
type PInner PProtocolVersion Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PProtocolVersion s) = D1 ('MetaData "PProtocolVersion" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PProtocolVersion" 'PrefixI 'True) (S1 ('MetaSel ('Just "pprotocolVersion'major") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger))) :*: S1 ('MetaSel ('Just "pprotocolVersion'minor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PInteger)))))
type Code (PProtocolVersion s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PProtocolVersion s) = GCode (PProtocolVersion s)

data PProposalProcedure (s :: S) Source #

Since: 3.1.0

Instances

Instances details
PEq PProposalProcedure Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PProposalProcedure Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PProposalProcedure Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PProposalProcedure

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PProposalProcedure = AsHaskell (DeriveDataPLiftable PProposalProcedure ProposalProcedure)
type PlutusRepr PProposalProcedure 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PProposalProcedure = PlutusRepr (DeriveDataPLiftable PProposalProcedure ProposalProcedure)

Methods

haskToRepr :: AsHaskell PProposalProcedure -> PlutusRepr PProposalProcedure

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

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

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

PValidateData PProposalProcedure Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PProposalProcedure Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PProposalProcedure

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PProposalProcedure = PInner (DeriveAsDataStruct PProposalProcedure)

Methods

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

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

PShow PProposalProcedure Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PProposalProcedure) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PProposalProcedure) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PProposalProcedure s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PProposalProcedure s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PProposalProcedure s) = D1 ('MetaData "PProposalProcedure" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PProposalProcedure" 'PrefixI 'True) (S1 ('MetaSel ('Just "pproposalProcedure'deposit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))) :*: (S1 ('MetaSel ('Just "pproposalProcedure'returnAddr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Just "pproposalProcedure'governanceAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PGovernanceAction)))))
Generic (PProposalProcedure s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PProposalProcedure s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PProposalProcedure = AsHaskell (DeriveDataPLiftable PProposalProcedure ProposalProcedure)
type PlutusRepr PProposalProcedure Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PProposalProcedure = PlutusRepr (DeriveDataPLiftable PProposalProcedure ProposalProcedure)
type PInner PProposalProcedure Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PProposalProcedure s) = D1 ('MetaData "PProposalProcedure" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PProposalProcedure" 'PrefixI 'True) (S1 ('MetaSel ('Just "pproposalProcedure'deposit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData PLovelace))) :*: (S1 ('MetaSel ('Just "pproposalProcedure'returnAddr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PCredential)) :*: S1 ('MetaSel ('Just "pproposalProcedure'governanceAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PGovernanceAction)))))
type Code (PProposalProcedure s) Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PProposalProcedure s) = GCode (PProposalProcedure s)

data PGovernanceAction (s :: S) Source #

Since: 3.1.0

Instances

Instances details
PEq PGovernanceAction Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PGovernanceAction Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PGovernanceAction Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PGovernanceAction

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PGovernanceAction = AsHaskell (DeriveDataPLiftable PGovernanceAction GovernanceAction)
type PlutusRepr PGovernanceAction 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PGovernanceAction = PlutusRepr (DeriveDataPLiftable PGovernanceAction GovernanceAction)

Methods

haskToRepr :: AsHaskell PGovernanceAction -> PlutusRepr PGovernanceAction

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

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

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

PValidateData PGovernanceAction Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PGovernanceAction Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PGovernanceAction

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PGovernanceAction = PInner (DeriveAsDataStruct PGovernanceAction)

Methods

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

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

PShow PGovernanceAction Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PGovernanceAction) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PGovernanceAction) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PGovernanceAction s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PGovernanceAction s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PGovernanceAction s) = D1 ('MetaData "PGovernanceAction" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PParameterChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PChangedParameters)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PScriptHash))))) :+: (C1 ('MetaCons "PHardForkInitiation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PProtocolVersion))) :+: C1 ('MetaCons "PTreasuryWithdrawals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PCredential PLovelace)))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PScriptHash)))))) :+: ((C1 ('MetaCons "PNoConfidence" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId)))) :+: C1 ('MetaCons "PUpdateCommittee" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PColdCommitteeCredential)))))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PColdCommitteeCredential PInteger)))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PRationalData))))) :+: (C1 ('MetaCons "PNewConstitution" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PConstitution))) :+: C1 ('MetaCons "PInfoAction" 'PrefixI 'False) (U1 :: Type -> Type))))
Generic (PGovernanceAction s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PGovernanceAction s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PGovernanceAction = AsHaskell (DeriveDataPLiftable PGovernanceAction GovernanceAction)
type PlutusRepr PGovernanceAction Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PGovernanceAction = PlutusRepr (DeriveDataPLiftable PGovernanceAction GovernanceAction)
type PInner PGovernanceAction Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PGovernanceAction s) = D1 ('MetaData "PGovernanceAction" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) ((C1 ('MetaCons "PParameterChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PChangedParameters)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PScriptHash))))) :+: (C1 ('MetaCons "PHardForkInitiation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PProtocolVersion))) :+: C1 ('MetaCons "PTreasuryWithdrawals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PCredential PLovelace)))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PScriptHash)))))) :+: ((C1 ('MetaCons "PNoConfidence" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId)))) :+: C1 ('MetaCons "PUpdateCommittee" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PBuiltinList (PAsData PColdCommitteeCredential)))))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PColdCommitteeCredential PInteger)))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PRationalData))))) :+: (C1 ('MetaCons "PNewConstitution" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PMaybeData PGovernanceActionId))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PConstitution))) :+: C1 ('MetaCons "PInfoAction" 'PrefixI 'False) (U1 :: Type -> Type))))
type Code (PGovernanceAction s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PGovernanceAction s) = GCode (PGovernanceAction s)

newtype PChangedParameters (s :: S) Source #

Since: 3.1.0

Constructors

PChangedParameters (Term s PData) 

Instances

Instances details
PEq PChangedParameters Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PChangedParameters Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PChangedParameters Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PChangedParameters

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PChangedParameters = AsHaskell (DeriveDataPLiftable PChangedParameters ChangedParameters)
type PlutusRepr PChangedParameters 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PChangedParameters = PlutusRepr (DeriveDataPLiftable PChangedParameters ChangedParameters)

Methods

haskToRepr :: AsHaskell PChangedParameters -> PlutusRepr PChangedParameters

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

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

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

PValidateData PChangedParameters Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PChangedParameters Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PChangedParameters

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PChangedParameters = PInner (DeriveNewtypePlutusType PChangedParameters)

Methods

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

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

PShow PChangedParameters Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PChangedParameters) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PChangedParameters) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PChangedParameters s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PChangedParameters s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PChangedParameters s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PChangedParameters = AsHaskell (DeriveDataPLiftable PChangedParameters ChangedParameters)
type PlutusRepr PChangedParameters Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PChangedParameters = PlutusRepr (DeriveDataPLiftable PChangedParameters ChangedParameters)
type PInner PChangedParameters Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PChangedParameters s) = GCode (PChangedParameters s)

newtype PConstitution (s :: S) Source #

A constitution, omitting the optional anchor.

Since: 3.1.0

Constructors

PConstitution (Term s (PMaybeData PScriptHash)) 

Instances

Instances details
PEq PConstitution Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PConstitution Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PConstitution Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PConstitution

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PConstitution = AsHaskell (DeriveDataPLiftable PConstitution Constitution)
type PlutusRepr PConstitution 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PConstitution = PlutusRepr (DeriveDataPLiftable PConstitution Constitution)

Methods

haskToRepr :: AsHaskell PConstitution -> PlutusRepr PConstitution

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

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

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

PValidateData PConstitution Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PConstitution Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PConstitution

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PConstitution = PInner (DeriveAsDataStruct PConstitution)

Methods

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

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

PShow PConstitution Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PConstitution) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PConstitution) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PConstitution s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PConstitution s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PConstitution s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PConstitution s) = GCode (PConstitution s)

Methods

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

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

type AsHaskell PConstitution Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PConstitution = AsHaskell (DeriveDataPLiftable PConstitution Constitution)
type PlutusRepr PConstitution Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PConstitution = PlutusRepr (DeriveDataPLiftable PConstitution Constitution)
type PInner PConstitution Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PConstitution s) = GCode (PConstitution s)

data PCommittee (s :: S) Source #

Since: 3.1.0

Constructors

PCommittee 

Instances

Instances details
PEq PCommittee Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PIsData PCommittee Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

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

PLiftable PCommittee Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type AsHaskell PCommittee

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PCommittee = AsHaskell (DeriveDataPLiftable PCommittee Committee)
type PlutusRepr PCommittee 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PCommittee = PlutusRepr (DeriveDataPLiftable PCommittee Committee)

Methods

haskToRepr :: AsHaskell PCommittee -> PlutusRepr PCommittee

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

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

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

PValidateData PCommittee Source #

Since: 3.6.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PlutusType PCommittee Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PInner PCommittee

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PInner PCommittee = PInner (DeriveAsDataStruct PCommittee)

Methods

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

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

PShow PCommittee Source #

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Methods

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

PTryFrom PData (PAsData PCommittee) Source #

Since: 3.4.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type PTryFromExcess PData (PAsData PCommittee) 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Methods

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

Generic (PCommittee s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Rep (PCommittee s)

Since: plutarch-ledger-api-3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PCommittee s) = D1 ('MetaData "PCommittee" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PCommittee" 'PrefixI 'True) (S1 ('MetaSel ('Just "pcommittee'members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PColdCommitteeCredential PInteger)))) :*: S1 ('MetaSel ('Just "pcommittee'quorum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PRationalData))))

Methods

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

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

Generic (PCommittee s) Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

Associated Types

type Code (PCommittee s)

Since: plutarch-ledger-api-3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PCommittee s) = GCode (PCommittee s)

Methods

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

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

type AsHaskell PCommittee Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type AsHaskell PCommittee = AsHaskell (DeriveDataPLiftable PCommittee Committee)
type PlutusRepr PCommittee Source # 
Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type PlutusRepr PCommittee = PlutusRepr (DeriveDataPLiftable PCommittee Committee)
type PInner PCommittee Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

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

Defined in Plutarch.LedgerApi.V3.Contexts

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

Since: 3.1.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Rep (PCommittee s) = D1 ('MetaData "PCommittee" "Plutarch.LedgerApi.V3.Contexts" "plutarch-ledger-api-3.6.0-JzNzlZYfKM24p3vIfYHfrb" 'False) (C1 ('MetaCons "PCommittee" 'PrefixI 'True) (S1 ('MetaSel ('Just "pcommittee'members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s (PAsData (PUnsortedMap PColdCommitteeCredential PInteger)))) :*: S1 ('MetaSel ('Just "pcommittee'quorum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s PRationalData))))
type Code (PCommittee s) Source #

Since: 3.3.0

Instance details

Defined in Plutarch.LedgerApi.V3.Contexts

type Code (PCommittee s) = GCode (PCommittee s)

Crypto

Types

newtype PubKey Source #

Since: 2.0.0

Constructors

PubKey 

Fields

Instances

Instances details
Show PubKey Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3

Eq PubKey Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3

Ord PubKey Source #

Since: 2.0.0

Instance details

Defined in Plutarch.LedgerApi.V3

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)

pubKeyHash :: PubKey -> PubKeyHash Source #

Since: 2.0.0

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