plutus-ledger-api-1.36.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.V3.Contexts

Synopsis

Documentation

newtype ColdCommitteeCredential Source #

Instances

Instances details
Generic ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ColdCommitteeCredential :: Type -> Type Source #

Show ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ColdCommitteeCredential :: [Type]

Methods

definitionId :: DefinitionId

Eq ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

(HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition ScriptHash referencedTypes) => HasBlueprintSchema ColdCommitteeCredential referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ColdCommitteeCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ColdCommitteeCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep ColdCommitteeCredential = D1 ('MetaData "ColdCommitteeCredential" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'True) (C1 ('MetaCons "ColdCommitteeCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))
type Unroll ColdCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ColdCommitteeCredential = Insert ColdCommitteeCredential (GUnroll (IfStuckRep (RepIsStuckError ColdCommitteeCredential :: Type -> Type) (Rep ColdCommitteeCredential)))

newtype HotCommitteeCredential Source #

Instances

Instances details
Generic HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep HotCommitteeCredential :: Type -> Type Source #

Show HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll HotCommitteeCredential :: [Type]

Methods

definitionId :: DefinitionId

Eq HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

(HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition ScriptHash referencedTypes) => HasBlueprintSchema HotCommitteeCredential referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: HotCommitteeCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy HotCommitteeCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep HotCommitteeCredential = D1 ('MetaData "HotCommitteeCredential" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'True) (C1 ('MetaCons "HotCommitteeCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))
type Unroll HotCommitteeCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll HotCommitteeCredential = Insert HotCommitteeCredential (GUnroll (IfStuckRep (RepIsStuckError HotCommitteeCredential :: Type -> Type) (Rep HotCommitteeCredential)))

newtype DRepCredential Source #

Instances

Instances details
Generic DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep DRepCredential :: Type -> Type Source #

Show DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll DRepCredential :: [Type]

Methods

definitionId :: DefinitionId

Eq DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: DRepCredential -> Doc ann

prettyList :: [DRepCredential] -> Doc ann

(HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition ScriptHash referencedTypes) => HasBlueprintSchema DRepCredential referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: DRepCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy DRepCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep DRepCredential = D1 ('MetaData "DRepCredential" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'True) (C1 ('MetaCons "DRepCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))
type Unroll DRepCredential Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll DRepCredential = Insert DRepCredential (GUnroll (IfStuckRep (RepIsStuckError DRepCredential :: Type -> Type) (Rep DRepCredential)))

data DRep Source #

Instances

Instances details
Generic DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep DRep :: Type -> Type Source #

Methods

from :: DRep -> Rep DRep x Source #

to :: Rep DRep x -> DRep Source #

Show DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: DRep -> DRep -> Bool Source #

(/=) :: DRep -> DRep -> Bool Source #

Ord DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll DRep :: [Type]

Methods

definitionId :: DefinitionId

Eq DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: DRep -> DRep -> Bool

FromData DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: DRep -> Doc ann

prettyList :: [DRep] -> Doc ann

HasSchemaDefinition DRepCredential referencedTypes => HasBlueprintSchema DRep referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: DRep -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy DRep -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep DRep = D1 ('MetaData "DRep" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "DRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRepCredential)) :+: (C1 ('MetaCons "DRepAlwaysAbstain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DRepAlwaysNoConfidence" 'PrefixI 'False) (U1 :: Type -> Type)))
type Unroll DRep Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll DRep = Insert DRep (GUnroll (IfStuckRep (RepIsStuckError DRep :: Type -> Type) (Rep DRep)))

data Delegatee Source #

Instances

Instances details
Generic Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep Delegatee :: Type -> Type Source #

Show Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll Delegatee :: [Type]

Methods

definitionId :: DefinitionId

Eq Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: Delegatee -> Delegatee -> Bool

FromData Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: Delegatee -> Doc ann

prettyList :: [Delegatee] -> Doc ann

(HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition DRep referencedTypes) => HasBlueprintSchema Delegatee referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: Delegatee -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy Delegatee -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll Delegatee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll Delegatee = Insert Delegatee (GUnroll (IfStuckRep (RepIsStuckError Delegatee :: Type -> Type) (Rep Delegatee)))

data TxCert Source #

Constructors

TxCertRegStaking Credential (Maybe Lovelace)

Register staking credential with an optional deposit amount

TxCertUnRegStaking Credential (Maybe Lovelace)

Un-Register staking credential with an optional refund amount

TxCertDelegStaking Credential Delegatee

Delegate staking credential to a Delegatee

TxCertRegDeleg Credential Delegatee Lovelace

Register and delegate staking credential to a Delegatee in one certificate. Note that deposit is mandatory.

TxCertRegDRep DRepCredential Lovelace

Register a DRep with a deposit value. The optional anchor is omitted.

TxCertUpdateDRep DRepCredential

Update a DRep. The optional anchor is omitted.

TxCertUnRegDRep DRepCredential Lovelace

UnRegister a DRep with mandatory refund value

TxCertPoolRegister

A digest of the PoolParams

Fields

TxCertPoolRetire PubKeyHash Integer

The retirement certificate and the Epoch in which the retirement will take place

TxCertAuthHotCommittee ColdCommitteeCredential HotCommitteeCredential

Authorize a Hot credential for a specific Committee member's cold credential

TxCertResignColdCommittee ColdCommitteeCredential 

Instances

Instances details
Generic TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep TxCert :: Type -> Type Source #

Show TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll TxCert :: [Type]

Methods

definitionId :: DefinitionId

Eq TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: TxCert -> TxCert -> Bool

FromData TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: TxCert -> Doc ann

prettyList :: [TxCert] -> Doc ann

(HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition (Maybe Lovelace) referencedTypes, HasSchemaDefinition Delegatee referencedTypes, HasSchemaDefinition Lovelace referencedTypes, HasSchemaDefinition DRepCredential referencedTypes, HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition Integer referencedTypes, HasSchemaDefinition ColdCommitteeCredential referencedTypes, HasSchemaDefinition HotCommitteeCredential referencedTypes) => HasBlueprintSchema TxCert referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: TxCert -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy TxCert -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep TxCert = D1 ('MetaData "TxCert" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (((C1 ('MetaCons "TxCertRegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lovelace))) :+: C1 ('MetaCons "TxCertUnRegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lovelace)))) :+: (C1 ('MetaCons "TxCertDelegStaking" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Delegatee)) :+: (C1 ('MetaCons "TxCertRegDeleg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Delegatee) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelace))) :+: C1 ('MetaCons "TxCertRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRepCredential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelace))))) :+: ((C1 ('MetaCons "TxCertUpdateDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRepCredential)) :+: (C1 ('MetaCons "TxCertUnRegDRep" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRepCredential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelace)) :+: C1 ('MetaCons "TxCertPoolRegister" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)))) :+: (C1 ('MetaCons "TxCertPoolRetire" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)) :+: (C1 ('MetaCons "TxCertAuthHotCommittee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ColdCommitteeCredential) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HotCommitteeCredential)) :+: C1 ('MetaCons "TxCertResignColdCommittee" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ColdCommitteeCredential))))))
type Unroll TxCert Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll TxCert = Insert TxCert (GUnroll (IfStuckRep (RepIsStuckError TxCert :: Type -> Type) (Rep TxCert)))

data Voter Source #

Instances

Instances details
Generic Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep Voter :: Type -> Type Source #

Methods

from :: Voter -> Rep Voter x Source #

to :: Rep Voter x -> Voter Source #

Show Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: Voter -> Voter -> Bool Source #

(/=) :: Voter -> Voter -> Bool Source #

Ord Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll Voter :: [Type]

Methods

definitionId :: DefinitionId

Eq Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: Voter -> Voter -> Bool

FromData Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: Voter -> Doc ann

prettyList :: [Voter] -> Doc ann

(HasSchemaDefinition HotCommitteeCredential referencedTypes, HasSchemaDefinition DRepCredential referencedTypes, HasSchemaDefinition PubKeyHash referencedTypes) => HasBlueprintSchema Voter referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: Voter -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy Voter -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep Voter = D1 ('MetaData "Voter" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "CommitteeVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HotCommitteeCredential)) :+: (C1 ('MetaCons "DRepVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRepCredential)) :+: C1 ('MetaCons "StakePoolVoter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash))))
type Unroll Voter Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll Voter = Insert Voter (GUnroll (IfStuckRep (RepIsStuckError Voter :: Type -> Type) (Rep Voter)))

data Vote Source #

A vote. The optional anchor is omitted.

Constructors

VoteNo 
VoteYes 
Abstain 

Instances

Instances details
Generic Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep Vote :: Type -> Type Source #

Methods

from :: Vote -> Rep Vote x Source #

to :: Rep Vote x -> Vote Source #

Show Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: Vote -> Vote -> Bool Source #

(/=) :: Vote -> Vote -> Bool Source #

HasBlueprintDefinition Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll Vote :: [Type]

Methods

definitionId :: DefinitionId

Eq Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: Vote -> Vote -> Bool

FromData Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: Vote -> Doc ann

prettyList :: [Vote] -> Doc ann

HasBlueprintSchema Vote referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: Vote -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy Vote -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep Vote = D1 ('MetaData "Vote" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "VoteNo" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VoteYes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Abstain" 'PrefixI 'False) (U1 :: Type -> Type)))
type Unroll Vote Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll Vote = Insert Vote (GUnroll (IfStuckRep (RepIsStuckError Vote :: Type -> Type) (Rep Vote)))

data GovernanceActionId Source #

Similar to TxOutRef, but for GovActions

Instances

Instances details
Generic GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep GovernanceActionId :: Type -> Type Source #

Show GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll GovernanceActionId :: [Type]

Methods

definitionId :: DefinitionId

Eq GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: GovernanceActionId -> Doc ann

prettyList :: [GovernanceActionId] -> Doc ann

(HasSchemaDefinition TxId referencedTypes, HasSchemaDefinition Integer referencedTypes) => HasBlueprintSchema GovernanceActionId referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: GovernanceActionId -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy GovernanceActionId -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep GovernanceActionId = D1 ('MetaData "GovernanceActionId" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "GovernanceActionId" 'PrefixI 'True) (S1 ('MetaSel ('Just "gaidTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('Just "gaidGovActionIx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
type Unroll GovernanceActionId Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll GovernanceActionId = Insert GovernanceActionId (GUnroll (IfStuckRep (RepIsStuckError GovernanceActionId :: Type -> Type) (Rep GovernanceActionId)))

data Committee Source #

Constructors

Committee 

Fields

Instances

Instances details
Generic Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep Committee :: Type -> Type Source #

Show Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll Committee :: [Type]

Methods

definitionId :: DefinitionId

FromData Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: Committee -> Doc ann

prettyList :: [Committee] -> Doc ann

(HasSchemaDefinition (Map ColdCommitteeCredential Integer) referencedTypes, HasSchemaDefinition Rational referencedTypes) => HasBlueprintSchema Committee referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: Committee -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy Committee -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep Committee = D1 ('MetaData "Committee" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "Committee" 'PrefixI 'True) (S1 ('MetaSel ('Just "committeeMembers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map ColdCommitteeCredential Integer)) :*: S1 ('MetaSel ('Just "committeeQuorum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational)))
type Unroll Committee Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll Committee = Insert Committee (GUnroll (IfStuckRep (RepIsStuckError Committee :: Type -> Type) (Rep Committee)))

newtype Constitution Source #

A constitution. The optional anchor is omitted.

Instances

Instances details
Generic Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep Constitution :: Type -> Type Source #

Show Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll Constitution :: [Type]

Methods

definitionId :: DefinitionId

Eq Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: Constitution -> Doc ann

prettyList :: [Constitution] -> Doc ann

HasSchemaDefinition (Maybe ScriptHash) referencedTypes => HasBlueprintSchema Constitution referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: Constitution -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy Constitution -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep Constitution = D1 ('MetaData "Constitution" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'True) (C1 ('MetaCons "Constitution" 'PrefixI 'True) (S1 ('MetaSel ('Just "constitutionScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptHash))))
type Unroll Constitution Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll Constitution = Insert Constitution (GUnroll (IfStuckRep (RepIsStuckError Constitution :: Type -> Type) (Rep Constitution)))

data ProtocolVersion Source #

Constructors

ProtocolVersion 

Instances

Instances details
Generic ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ProtocolVersion :: Type -> Type Source #

Show ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ProtocolVersion :: [Type]

Methods

definitionId :: DefinitionId

Eq ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: ProtocolVersion -> Doc ann

prettyList :: [ProtocolVersion] -> Doc ann

HasSchemaDefinition Integer referencedTypes => HasBlueprintSchema ProtocolVersion referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ProtocolVersion -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ProtocolVersion -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep ProtocolVersion = D1 ('MetaData "ProtocolVersion" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "ProtocolVersion" 'PrefixI 'True) (S1 ('MetaSel ('Just "pvMajor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "pvMinor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
type Unroll ProtocolVersion Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ProtocolVersion = Insert ProtocolVersion (GUnroll (IfStuckRep (RepIsStuckError ProtocolVersion :: Type -> Type) (Rep ProtocolVersion)))

newtype ChangedParameters Source #

A Plutus Data object containing proposed parameter changes. The Data object contains a Map with one entry per changed parameter, from the parameter ID to the new value. Unchanged parameters are not included.

The mapping from parameter IDs to parameters can be found in conway.cddl.

Invariant: This map is non-empty, and the keys are stored in ascending order.

This Data object has the following format (in pseudocode):

ChangedParametersData = Map ChangedIdData ChangedManyValueData ChangedIdData = I Integer ChangedManyValueData = ChangedSingleValueData | List[ChangedSingleValueData...] -- ^ an arbitrary-length, heterogeneous (integer or ratio) list of values (to support sub-parameters)

ChangedSingleValueData = I Integer -- a proposed integer value | List[I Integer, I Integer] -- a proposed numerator,denominator (ratio value) -- ^ a 2-exact element list; *BE CAREFUL* because this can be alternatively (ambiguously) interpreted -- as a many-value data (sub-parameter) of two integer single-value data.

, where Map,I,List are the constructors of Data and Integer is the usual arbitrary-precision PlutusTx/Haskell Integer.

Instances

Instances details
Generic ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ChangedParameters :: Type -> Type Source #

Show ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ChangedParameters :: [Type]

Methods

definitionId :: DefinitionId

Eq ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

FromData ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: ChangedParameters -> Doc ann

prettyList :: [ChangedParameters] -> Doc ann

HasBlueprintSchema ChangedParameters referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ChangedParameters -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ChangedParameters -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep ChangedParameters = D1 ('MetaData "ChangedParameters" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'True) (C1 ('MetaCons "ChangedParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "getChangedParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData)))
type Unroll ChangedParameters Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ChangedParameters = Insert ChangedParameters (GUnroll (IfStuckRep (RepIsStuckError ChangedParameters :: Type -> Type) (Rep ChangedParameters)))

data GovernanceAction Source #

Instances

Instances details
Generic GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep GovernanceAction :: Type -> Type Source #

Show GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll GovernanceAction :: [Type]

Methods

definitionId :: DefinitionId

FromData GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: GovernanceAction -> Doc ann

prettyList :: [GovernanceAction] -> Doc ann

(HasSchemaDefinition (Maybe GovernanceActionId) referencedTypes, HasSchemaDefinition ChangedParameters referencedTypes, HasSchemaDefinition (Maybe ScriptHash) referencedTypes, HasSchemaDefinition ProtocolVersion referencedTypes, HasSchemaDefinition (Map Credential Lovelace) referencedTypes, HasSchemaDefinition [ColdCommitteeCredential] referencedTypes, HasSchemaDefinition (Map ColdCommitteeCredential Integer) referencedTypes, HasSchemaDefinition Rational referencedTypes, HasSchemaDefinition Constitution referencedTypes) => HasBlueprintSchema GovernanceAction referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: GovernanceAction -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy GovernanceAction -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep GovernanceAction = D1 ('MetaData "GovernanceAction" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) ((C1 ('MetaCons "ParameterChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe GovernanceActionId)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChangedParameters) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptHash)))) :+: (C1 ('MetaCons "HardForkInitiation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe GovernanceActionId)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProtocolVersion)) :+: C1 ('MetaCons "TreasuryWithdrawals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Credential Lovelace)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptHash))))) :+: ((C1 ('MetaCons "NoConfidence" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe GovernanceActionId))) :+: C1 ('MetaCons "UpdateCommittee" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe GovernanceActionId)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ColdCommitteeCredential])) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map ColdCommitteeCredential Integer)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Rational)))) :+: (C1 ('MetaCons "NewConstitution" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe GovernanceActionId)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Constitution)) :+: C1 ('MetaCons "InfoAction" 'PrefixI 'False) (U1 :: Type -> Type))))
type Unroll GovernanceAction Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll GovernanceAction = Insert GovernanceAction (GUnroll (IfStuckRep (RepIsStuckError GovernanceAction :: Type -> Type) (Rep GovernanceAction)))

data ProposalProcedure Source #

A proposal procedure. The optional anchor is omitted.

Instances

Instances details
Generic ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ProposalProcedure :: Type -> Type Source #

Show ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ProposalProcedure :: [Type]

Methods

definitionId :: DefinitionId

FromData ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: ProposalProcedure -> Doc ann

prettyList :: [ProposalProcedure] -> Doc ann

(HasSchemaDefinition Lovelace referencedTypes, HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition GovernanceAction referencedTypes) => HasBlueprintSchema ProposalProcedure referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ProposalProcedure -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ProposalProcedure -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep ProposalProcedure = D1 ('MetaData "ProposalProcedure" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "ProposalProcedure" 'PrefixI 'True) (S1 ('MetaSel ('Just "ppDeposit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelace) :*: (S1 ('MetaSel ('Just "ppReturnAddr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential) :*: S1 ('MetaSel ('Just "ppGovernanceAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GovernanceAction))))
type Unroll ProposalProcedure Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ProposalProcedure = Insert ProposalProcedure (GUnroll (IfStuckRep (RepIsStuckError ProposalProcedure :: Type -> Type) (Rep ProposalProcedure)))

data ScriptPurpose Source #

A ScriptPurpose uniquely identifies a Plutus script within a transaction.

Instances

Instances details
Generic ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ScriptPurpose :: Type -> Type Source #

Show ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Ord ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ScriptPurpose :: [Type]

Methods

definitionId :: DefinitionId

FromData ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: ScriptPurpose -> Doc ann

prettyList :: [ScriptPurpose] -> Doc ann

(HasSchemaDefinition CurrencySymbol referencedTypes, HasSchemaDefinition TxOutRef referencedTypes, HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition Integer referencedTypes, HasSchemaDefinition TxCert referencedTypes, HasSchemaDefinition Voter referencedTypes, HasSchemaDefinition ProposalProcedure referencedTypes) => HasBlueprintSchema ScriptPurpose referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ScriptPurpose -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ScriptPurpose -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ScriptPurpose Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ScriptPurpose = Insert ScriptPurpose (GUnroll (IfStuckRep (RepIsStuckError ScriptPurpose :: Type -> Type) (Rep ScriptPurpose)))

data ScriptInfo Source #

Like ScriptPurpose but with an optional datum for spending scripts.

Instances

Instances details
Generic ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ScriptInfo :: Type -> Type Source #

Show ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ScriptInfo :: [Type]

Methods

definitionId :: DefinitionId

FromData ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: ScriptInfo -> Doc ann

prettyList :: [ScriptInfo] -> Doc ann

(HasSchemaDefinition CurrencySymbol referencedTypes, HasSchemaDefinition TxOutRef referencedTypes, HasSchemaDefinition (Maybe Datum) referencedTypes, HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition Integer referencedTypes, HasSchemaDefinition TxCert referencedTypes, HasSchemaDefinition Voter referencedTypes, HasSchemaDefinition ProposalProcedure referencedTypes) => HasBlueprintSchema ScriptInfo referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ScriptInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ScriptInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep ScriptInfo = D1 ('MetaData "ScriptInfo" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) ((C1 ('MetaCons "MintingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CurrencySymbol)) :+: (C1 ('MetaCons "SpendingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOutRef) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Datum))) :+: C1 ('MetaCons "RewardingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))) :+: (C1 ('MetaCons "CertifyingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxCert)) :+: (C1 ('MetaCons "VotingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Voter)) :+: C1 ('MetaCons "ProposingScript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProposalProcedure)))))
type Unroll ScriptInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ScriptInfo = Insert ScriptInfo (GUnroll (IfStuckRep (RepIsStuckError ScriptInfo :: Type -> Type) (Rep ScriptInfo)))

data TxInInfo Source #

An input of a pending transaction.

Instances

Instances details
Generic TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep TxInInfo :: Type -> Type Source #

Show TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll TxInInfo :: [Type]

Methods

definitionId :: DefinitionId

Eq TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

(==) :: TxInInfo -> TxInInfo -> Bool

FromData TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: TxInInfo -> Doc ann

prettyList :: [TxInInfo] -> Doc ann

(HasSchemaDefinition TxOutRef referencedTypes, HasSchemaDefinition TxOut referencedTypes) => HasBlueprintSchema TxInInfo referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: TxInInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy TxInInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep TxInInfo = D1 ('MetaData "TxInInfo" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "TxInInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "txInInfoOutRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOutRef) :*: S1 ('MetaSel ('Just "txInInfoResolved") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOut)))
type Unroll TxInInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll TxInInfo = Insert TxInInfo (GUnroll (IfStuckRep (RepIsStuckError TxInInfo :: Type -> Type) (Rep TxInInfo)))

data TxInfo Source #

TxInfo for PlutusV3

Constructors

TxInfo 

Instances

Instances details
Generic TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep TxInfo :: Type -> Type Source #

Show TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll TxInfo :: [Type]

Methods

definitionId :: DefinitionId

FromData TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: TxInfo -> Doc ann

prettyList :: [TxInfo] -> Doc ann

(HasSchemaDefinition [TxInInfo] referencedTypes, HasSchemaDefinition [TxOut] referencedTypes, HasSchemaDefinition Lovelace referencedTypes, HasSchemaDefinition Value referencedTypes, HasSchemaDefinition [TxCert] referencedTypes, HasSchemaDefinition (Map Credential Lovelace) referencedTypes, HasSchemaDefinition POSIXTimeRange referencedTypes, HasSchemaDefinition [PubKeyHash] referencedTypes, HasSchemaDefinition (Map ScriptPurpose Redeemer) referencedTypes, HasSchemaDefinition (Map DatumHash Datum) referencedTypes, HasSchemaDefinition TxId referencedTypes, HasSchemaDefinition (Map Voter (Map GovernanceActionId Vote)) referencedTypes, HasSchemaDefinition [ProposalProcedure] referencedTypes, HasSchemaDefinition (Maybe Lovelace) referencedTypes) => HasBlueprintSchema TxInfo referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: TxInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy TxInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep TxInfo = D1 ('MetaData "TxInfo" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "TxInfo" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "txInfoInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxInInfo]) :*: S1 ('MetaSel ('Just "txInfoReferenceInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxInInfo])) :*: (S1 ('MetaSel ('Just "txInfoOutputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxOut]) :*: S1 ('MetaSel ('Just "txInfoFee") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelace))) :*: ((S1 ('MetaSel ('Just "txInfoMint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "txInfoTxCerts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxCert])) :*: (S1 ('MetaSel ('Just "txInfoWdrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Credential Lovelace)) :*: S1 ('MetaSel ('Just "txInfoValidRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTimeRange)))) :*: (((S1 ('MetaSel ('Just "txInfoSignatories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PubKeyHash]) :*: S1 ('MetaSel ('Just "txInfoRedeemers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map ScriptPurpose Redeemer))) :*: (S1 ('MetaSel ('Just "txInfoData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map DatumHash Datum)) :*: S1 ('MetaSel ('Just "txInfoId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId))) :*: ((S1 ('MetaSel ('Just "txInfoVotes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Voter (Map GovernanceActionId Vote))) :*: S1 ('MetaSel ('Just "txInfoProposalProcedures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ProposalProcedure])) :*: (S1 ('MetaSel ('Just "txInfoCurrentTreasuryAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lovelace)) :*: S1 ('MetaSel ('Just "txInfoTreasuryDonation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Lovelace)))))))
type Unroll TxInfo Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll TxInfo = Insert TxInfo (GUnroll (IfStuckRep (RepIsStuckError TxInfo :: Type -> Type) (Rep TxInfo)))

data ScriptContext Source #

The context that the currently-executing script can access.

Constructors

ScriptContext 

Fields

Instances

Instances details
Generic ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Rep ScriptContext :: Type -> Type Source #

Show ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Eq ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

HasBlueprintDefinition ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Associated Types

type Unroll ScriptContext :: [Type]

Methods

definitionId :: DefinitionId

FromData ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

ToData ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

UnsafeFromData ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Pretty ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

pretty :: ScriptContext -> Doc ann

prettyList :: [ScriptContext] -> Doc ann

(HasSchemaDefinition TxInfo referencedTypes, HasSchemaDefinition Redeemer referencedTypes, HasSchemaDefinition ScriptInfo referencedTypes) => HasBlueprintSchema ScriptContext referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

schema :: Schema referencedTypes

Lift DefaultUni ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

lift :: ScriptContext -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

Methods

typeRep :: Proxy ScriptContext -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Rep ScriptContext = D1 ('MetaData "ScriptContext" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.36.0.0-5YP34Z4WNIC2QzLmhyGjha" 'False) (C1 ('MetaCons "ScriptContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "scriptContextTxInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxInfo) :*: (S1 ('MetaSel ('Just "scriptContextRedeemer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Redeemer) :*: S1 ('MetaSel ('Just "scriptContextScriptInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptInfo))))
type Unroll ScriptContext Source # 
Instance details

Defined in PlutusLedgerApi.V3.Contexts

type Unroll ScriptContext = Insert ScriptContext (GUnroll (IfStuckRep (RepIsStuckError ScriptContext :: Type -> Type) (Rep ScriptContext)))

findOwnInput :: ScriptContext -> Maybe TxInInfo Source #

Find the input currently being validated.

findDatum :: DatumHash -> TxInfo -> Maybe Datum Source #

Find the data corresponding to a data hash, if there is one

findDatumHash :: Datum -> TxInfo -> Maybe DatumHash Source #

Find the hash of a datum, if it is part of the pending transaction's hashes

findTxInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo Source #

Given a UTXO reference and a transaction (TxInfo), resolve it to one of the transaction's inputs (TxInInfo).

Note: this only searches the true transaction inputs and not the referenced transaction inputs.

findContinuingOutputs :: ScriptContext -> [Integer] Source #

Find the indices of all the outputs that pay to the same script address we are currently spending from, if any.

getContinuingOutputs :: ScriptContext -> [TxOut] Source #

Get all the outputs that pay to the same script address we are currently spending from, if any.

txSignedBy :: TxInfo -> PubKeyHash -> Bool Source #

Check if a transaction was signed by the given public key.

Validator functions

pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value] Source #

Get the values paid to a public key address by a pending transaction.

valuePaidTo :: TxInfo -> PubKeyHash -> Value Source #

Get the total value paid to a public key address by a pending transaction.

valueSpent :: TxInfo -> Value Source #

Get the total value of inputs spent by this transaction.

valueProduced :: TxInfo -> Value Source #

Get the total value of outputs produced by this transaction.

ownCurrencySymbol :: ScriptContext -> CurrencySymbol Source #

The CurrencySymbol of the current validator script.

spendsOutput :: TxInfo -> TxId -> Integer -> Bool Source #

Check if the pending transaction spends a specific transaction output (identified by the hash of a transaction and an index into that transactions' outputs)