| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V3.Contexts
Contents
Synopsis
- newtype ColdCommitteeCredential = ColdCommitteeCredential Credential
- newtype HotCommitteeCredential = HotCommitteeCredential Credential
- newtype DRepCredential = DRepCredential Credential
- data DRep
- data Delegatee
- data TxCert
- = TxCertRegStaking Credential (Maybe Lovelace)
- | TxCertUnRegStaking Credential (Maybe Lovelace)
- | TxCertDelegStaking Credential Delegatee
- | TxCertRegDeleg Credential Delegatee Lovelace
- | TxCertRegDRep DRepCredential Lovelace
- | TxCertUpdateDRep DRepCredential
- | TxCertUnRegDRep DRepCredential Lovelace
- | TxCertPoolRegister PubKeyHash PubKeyHash
- | TxCertPoolRetire PubKeyHash Integer
- | TxCertAuthHotCommittee ColdCommitteeCredential HotCommitteeCredential
- | TxCertResignColdCommittee ColdCommitteeCredential
- data Voter
- data Vote
- data GovernanceActionId = GovernanceActionId {}
- data Committee = Committee {}
- newtype Constitution = Constitution {}
- data ProtocolVersion = ProtocolVersion {}
- newtype ChangedParameters = ChangedParameters {}
- data GovernanceAction
- = ParameterChange (Maybe GovernanceActionId) ChangedParameters (Maybe ScriptHash)
- | HardForkInitiation (Maybe GovernanceActionId) ProtocolVersion
- | TreasuryWithdrawals (Map Credential Lovelace) (Maybe ScriptHash)
- | NoConfidence (Maybe GovernanceActionId)
- | UpdateCommittee (Maybe GovernanceActionId) [ColdCommitteeCredential] (Map ColdCommitteeCredential Integer) Rational
- | NewConstitution (Maybe GovernanceActionId) Constitution
- | InfoAction
- data ProposalProcedure = ProposalProcedure {}
- data ScriptPurpose
- data ScriptInfo
- data TxInInfo = TxInInfo {}
- data TxInfo = TxInfo {
- txInfoInputs :: [TxInInfo]
- txInfoReferenceInputs :: [TxInInfo]
- txInfoOutputs :: [TxOut]
- txInfoFee :: Lovelace
- txInfoMint :: MintValue
- txInfoTxCerts :: [TxCert]
- txInfoWdrl :: Map Credential Lovelace
- txInfoValidRange :: POSIXTimeRange
- txInfoSignatories :: [PubKeyHash]
- txInfoRedeemers :: Map ScriptPurpose Redeemer
- txInfoData :: Map DatumHash Datum
- txInfoId :: TxId
- txInfoVotes :: Map Voter (Map GovernanceActionId Vote)
- txInfoProposalProcedures :: [ProposalProcedure]
- txInfoCurrentTreasuryAmount :: Maybe Lovelace
- txInfoTreasuryDonation :: Maybe Lovelace
- data ScriptContext = ScriptContext {}
- findOwnInput :: ScriptContext -> Maybe TxInInfo
- findDatum :: DatumHash -> TxInfo -> Maybe Datum
- findDatumHash :: Datum -> TxInfo -> Maybe DatumHash
- findTxInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo
- findContinuingOutputs :: ScriptContext -> [Integer]
- getContinuingOutputs :: ScriptContext -> [TxOut]
- txSignedBy :: TxInfo -> PubKeyHash -> Bool
- pubKeyOutputsAt :: PubKeyHash -> TxInfo -> [Value]
- valuePaidTo :: TxInfo -> PubKeyHash -> Value
- valueSpent :: TxInfo -> Value
- valueProduced :: TxInfo -> Value
- ownCurrencySymbol :: ScriptContext -> CurrencySymbol
- spendsOutput :: TxInfo -> TxId -> Integer -> Bool
Documentation
newtype ColdCommitteeCredential Source #
Constructors
| ColdCommitteeCredential Credential |
Instances
newtype HotCommitteeCredential Source #
Constructors
| HotCommitteeCredential Credential |
Instances
| Generic HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: HotCommitteeCredential -> Rep HotCommitteeCredential x Source # to :: Rep HotCommitteeCredential x -> HotCommitteeCredential Source # | |||||
| Show HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # (/=) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # | |||||
| Ord HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: HotCommitteeCredential -> HotCommitteeCredential -> Ordering Source # (<) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # (<=) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # (>) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # (>=) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # max :: HotCommitteeCredential -> HotCommitteeCredential -> HotCommitteeCredential Source # min :: HotCommitteeCredential -> HotCommitteeCredential -> HotCommitteeCredential Source # | |||||
| HasBlueprintDefinition HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool | |||||
| FromData HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe HotCommitteeCredential # | |||||
| ToData HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> HotCommitteeCredential # | |||||
| Pretty HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition ScriptHash referencedTypes) => HasBlueprintSchema HotCommitteeCredential referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: HotCommitteeCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy HotCommitteeCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep HotCommitteeCredential = D1 ('MetaData "HotCommitteeCredential" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "HotCommitteeCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential))) | |||||
| type Unroll HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Unroll HotCommitteeCredential = Insert HotCommitteeCredential (GUnroll (IfStuckRep (RepIsStuckError HotCommitteeCredential :: Type -> Type) (Rep HotCommitteeCredential))) | |||||
newtype DRepCredential Source #
Constructors
| DRepCredential Credential |
Instances
| Generic DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: DRepCredential -> Rep DRepCredential x Source # to :: Rep DRepCredential x -> DRepCredential Source # | |||||
| Show DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: DRepCredential -> DRepCredential -> Bool Source # (/=) :: DRepCredential -> DRepCredential -> Bool Source # | |||||
| Ord DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: DRepCredential -> DRepCredential -> Ordering Source # (<) :: DRepCredential -> DRepCredential -> Bool Source # (<=) :: DRepCredential -> DRepCredential -> Bool Source # (>) :: DRepCredential -> DRepCredential -> Bool Source # (>=) :: DRepCredential -> DRepCredential -> Bool Source # max :: DRepCredential -> DRepCredential -> DRepCredential Source # min :: DRepCredential -> DRepCredential -> DRepCredential Source # | |||||
| HasBlueprintDefinition DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: DRepCredential -> DRepCredential -> Bool | |||||
| FromData DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition ScriptHash referencedTypes) => HasBlueprintSchema DRepCredential referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: DRepCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy DRepCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep DRepCredential = D1 ('MetaData "DRepCredential" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "DRepCredential" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential))) | |||||
| type Unroll DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Unroll DRepCredential = Insert DRepCredential (GUnroll (IfStuckRep (RepIsStuckError DRepCredential :: Type -> Type) (Rep DRepCredential))) | |||||
Constructors
| DRep DRepCredential | |
| DRepAlwaysAbstain | |
| DRepAlwaysNoConfidence |
Instances
| Generic DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show DRep Source # | |||||
| Eq DRep Source # | |||||
| Ord DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasBlueprintDefinition DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| FromData DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe DRep # | |||||
| ToData DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: DRep -> BuiltinData # | |||||
| UnsafeFromData DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasSchemaDefinition DRepCredential referencedTypes => HasBlueprintSchema DRep referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep DRep = D1 ('MetaData "DRep" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
Constructors
| DelegStake PubKeyHash | |
| DelegVote DRep | |
| DelegStakeVote PubKeyHash DRep |
Instances
| Generic Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show Delegatee Source # | |||||
| Eq Delegatee Source # | |||||
| Ord Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasBlueprintDefinition Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| FromData Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Delegatee -> BuiltinData # | |||||
| UnsafeFromData Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition PubKeyHash referencedTypes, HasSchemaDefinition DRep referencedTypes) => HasBlueprintSchema Delegatee referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep Delegatee = D1 ('MetaData "Delegatee" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) (C1 ('MetaCons "DelegStake" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash)) :+: (C1 ('MetaCons "DelegVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRep)) :+: C1 ('MetaCons "DelegStakeVote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PubKeyHash) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DRep)))) | |||||
| type Unroll Delegatee 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
| Generic TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show TxCert Source # | |||||
| Eq TxCert Source # | |||||
| Ord TxCert Source # | |||||
| HasBlueprintDefinition TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| FromData TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxCert # | |||||
| ToData TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: TxCert -> BuiltinData # | |||||
| UnsafeFromData TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep TxCert = D1 ('MetaData "TxCert" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
Constructors
| CommitteeVoter HotCommitteeCredential | |
| DRepVoter DRepCredential | |
| StakePoolVoter PubKeyHash |
Instances
| Generic Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show Voter Source # | |||||
| Eq Voter Source # | |||||
| Ord Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasBlueprintDefinition Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| FromData Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Voter # | |||||
| ToData Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Voter -> BuiltinData # | |||||
| UnsafeFromData Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition HotCommitteeCredential referencedTypes, HasSchemaDefinition DRepCredential referencedTypes, HasSchemaDefinition PubKeyHash referencedTypes) => HasBlueprintSchema Voter referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep Voter = D1 ('MetaData "Voter" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
A vote. The optional anchor is omitted.
Instances
| Generic Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show Vote Source # | |||||
| Eq Vote Source # | |||||
| HasBlueprintDefinition Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| FromData Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Vote # | |||||
| ToData Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Vote -> BuiltinData # | |||||
| UnsafeFromData Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasBlueprintSchema Vote referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep Vote = D1 ('MetaData "Vote" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
data GovernanceActionId Source #
Similar to TxOutRef, but for GovActions
Constructors
| GovernanceActionId | |
Fields
| |
Instances
| Generic GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: GovernanceActionId -> Rep GovernanceActionId x Source # to :: Rep GovernanceActionId x -> GovernanceActionId Source # | |||||
| Show GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: GovernanceActionId -> GovernanceActionId -> Bool Source # (/=) :: GovernanceActionId -> GovernanceActionId -> Bool Source # | |||||
| Ord GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: GovernanceActionId -> GovernanceActionId -> Ordering Source # (<) :: GovernanceActionId -> GovernanceActionId -> Bool Source # (<=) :: GovernanceActionId -> GovernanceActionId -> Bool Source # (>) :: GovernanceActionId -> GovernanceActionId -> Bool Source # (>=) :: GovernanceActionId -> GovernanceActionId -> Bool Source # max :: GovernanceActionId -> GovernanceActionId -> GovernanceActionId Source # min :: GovernanceActionId -> GovernanceActionId -> GovernanceActionId Source # | |||||
| HasBlueprintDefinition GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: GovernanceActionId -> GovernanceActionId -> Bool | |||||
| FromData GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe GovernanceActionId # | |||||
| ToData GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> GovernanceActionId # | |||||
| Pretty GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition TxId referencedTypes, HasSchemaDefinition Integer referencedTypes) => HasBlueprintSchema GovernanceActionId referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: GovernanceActionId -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy GovernanceActionId -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep GovernanceActionId = D1 ('MetaData "GovernanceActionId" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Unroll GovernanceActionId = Insert GovernanceActionId (GUnroll (IfStuckRep (RepIsStuckError GovernanceActionId :: Type -> Type) (Rep GovernanceActionId))) | |||||
Constructors
| Committee | |
Fields
| |
Instances
| Generic Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show Committee Source # | |||||
| Eq Committee Source # | |||||
| Ord Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasBlueprintDefinition Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: Committee -> BuiltinData # | |||||
| UnsafeFromData Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition (Map ColdCommitteeCredential Integer) referencedTypes, HasSchemaDefinition Rational referencedTypes) => HasBlueprintSchema Committee referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep Committee = D1 ('MetaData "Committee" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
newtype Constitution Source #
A constitution. The optional anchor is omitted.
Constructors
| Constitution | |
Fields | |
Instances
| Generic Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: Constitution -> Rep Constitution x Source # to :: Rep Constitution x -> Constitution Source # | |||||
| Show Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: Constitution -> Constitution -> Bool Source # (/=) :: Constitution -> Constitution -> Bool Source # | |||||
| Ord Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: Constitution -> Constitution -> Ordering Source # (<) :: Constitution -> Constitution -> Bool Source # (<=) :: Constitution -> Constitution -> Bool Source # (>) :: Constitution -> Constitution -> Bool Source # (>=) :: Constitution -> Constitution -> Bool Source # max :: Constitution -> Constitution -> Constitution Source # min :: Constitution -> Constitution -> Constitution Source # | |||||
| HasBlueprintDefinition Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: Constitution -> Constitution -> Bool | |||||
| FromData Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasSchemaDefinition (Maybe ScriptHash) referencedTypes => HasBlueprintSchema Constitution referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: Constitution -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy Constitution -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep Constitution = D1 ('MetaData "Constitution" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Constitution" 'PrefixI 'True) (S1 ('MetaSel ('Just "constitutionScript") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptHash)))) | |||||
| type Unroll Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Unroll Constitution = Insert Constitution (GUnroll (IfStuckRep (RepIsStuckError Constitution :: Type -> Type) (Rep Constitution))) | |||||
data ProtocolVersion Source #
Constructors
| ProtocolVersion | |
Instances
| Generic ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: ProtocolVersion -> Rep ProtocolVersion x Source # to :: Rep ProtocolVersion x -> ProtocolVersion Source # | |||||
| Show ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ProtocolVersion -> ProtocolVersion -> Bool Source # (/=) :: ProtocolVersion -> ProtocolVersion -> Bool Source # | |||||
| Ord ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: ProtocolVersion -> ProtocolVersion -> Ordering Source # (<) :: ProtocolVersion -> ProtocolVersion -> Bool Source # (<=) :: ProtocolVersion -> ProtocolVersion -> Bool Source # (>) :: ProtocolVersion -> ProtocolVersion -> Bool Source # (>=) :: ProtocolVersion -> ProtocolVersion -> Bool Source # max :: ProtocolVersion -> ProtocolVersion -> ProtocolVersion Source # min :: ProtocolVersion -> ProtocolVersion -> ProtocolVersion Source # | |||||
| HasBlueprintDefinition ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ProtocolVersion -> ProtocolVersion -> Bool | |||||
| FromData ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Ord ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: ProtocolVersion -> ProtocolVersion -> Ordering (<) :: ProtocolVersion -> ProtocolVersion -> Bool (<=) :: ProtocolVersion -> ProtocolVersion -> Bool (>) :: ProtocolVersion -> ProtocolVersion -> Bool (>=) :: ProtocolVersion -> ProtocolVersion -> Bool max :: ProtocolVersion -> ProtocolVersion -> ProtocolVersion min :: ProtocolVersion -> ProtocolVersion -> ProtocolVersion | |||||
| Pretty ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasSchemaDefinition Integer referencedTypes => HasBlueprintSchema ProtocolVersion referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: ProtocolVersion -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy ProtocolVersion -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep ProtocolVersion = D1 ('MetaData "ProtocolVersion" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
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.
Constructors
| ChangedParameters | |
Fields | |
Instances
| Generic ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: ChangedParameters -> Rep ChangedParameters x Source # to :: Rep ChangedParameters x -> ChangedParameters Source # | |||||
| Show ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ChangedParameters -> ChangedParameters -> Bool Source # (/=) :: ChangedParameters -> ChangedParameters -> Bool Source # | |||||
| Ord ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: ChangedParameters -> ChangedParameters -> Ordering Source # (<) :: ChangedParameters -> ChangedParameters -> Bool Source # (<=) :: ChangedParameters -> ChangedParameters -> Bool Source # (>) :: ChangedParameters -> ChangedParameters -> Bool Source # (>=) :: ChangedParameters -> ChangedParameters -> Bool Source # max :: ChangedParameters -> ChangedParameters -> ChangedParameters Source # min :: ChangedParameters -> ChangedParameters -> ChangedParameters Source # | |||||
| HasBlueprintDefinition ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ChangedParameters -> ChangedParameters -> Bool | |||||
| FromData ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| HasBlueprintSchema ChangedParameters referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: ChangedParameters -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy ChangedParameters -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep ChangedParameters = D1 ('MetaData "ChangedParameters" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ChangedParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "getChangedParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
| type Unroll ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Unroll ChangedParameters = Insert ChangedParameters (GUnroll (IfStuckRep (RepIsStuckError ChangedParameters :: Type -> Type) (Rep ChangedParameters))) | |||||
data GovernanceAction Source #
Constructors
| ParameterChange (Maybe GovernanceActionId) ChangedParameters (Maybe ScriptHash) | Hash of the constitution script |
| HardForkInitiation (Maybe GovernanceActionId) ProtocolVersion | proposal to update protocol version |
| TreasuryWithdrawals (Map Credential Lovelace) (Maybe ScriptHash) | Hash of the constitution script |
| NoConfidence (Maybe GovernanceActionId) | |
| UpdateCommittee | |
Fields
| |
| NewConstitution (Maybe GovernanceActionId) Constitution | |
| InfoAction | |
Instances
| Generic GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: GovernanceAction -> Rep GovernanceAction x Source # to :: Rep GovernanceAction x -> GovernanceAction Source # | |||||
| Show GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: GovernanceAction -> GovernanceAction -> Bool Source # (/=) :: GovernanceAction -> GovernanceAction -> Bool Source # | |||||
| Ord GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: GovernanceAction -> GovernanceAction -> Ordering Source # (<) :: GovernanceAction -> GovernanceAction -> Bool Source # (<=) :: GovernanceAction -> GovernanceAction -> Bool Source # (>) :: GovernanceAction -> GovernanceAction -> Bool Source # (>=) :: GovernanceAction -> GovernanceAction -> Bool Source # max :: GovernanceAction -> GovernanceAction -> GovernanceAction Source # min :: GovernanceAction -> GovernanceAction -> GovernanceAction Source # | |||||
| HasBlueprintDefinition GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: GovernanceAction -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy GovernanceAction -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep GovernanceAction = D1 ('MetaData "GovernanceAction" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
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.
Constructors
| ProposalProcedure | |
Fields | |
Instances
| Generic ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: ProposalProcedure -> Rep ProposalProcedure x Source # to :: Rep ProposalProcedure x -> ProposalProcedure Source # | |||||
| Show ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ProposalProcedure -> ProposalProcedure -> Bool Source # (/=) :: ProposalProcedure -> ProposalProcedure -> Bool Source # | |||||
| Ord ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: ProposalProcedure -> ProposalProcedure -> Ordering Source # (<) :: ProposalProcedure -> ProposalProcedure -> Bool Source # (<=) :: ProposalProcedure -> ProposalProcedure -> Bool Source # (>) :: ProposalProcedure -> ProposalProcedure -> Bool Source # (>=) :: ProposalProcedure -> ProposalProcedure -> Bool Source # max :: ProposalProcedure -> ProposalProcedure -> ProposalProcedure Source # min :: ProposalProcedure -> ProposalProcedure -> ProposalProcedure Source # | |||||
| HasBlueprintDefinition ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition Lovelace referencedTypes, HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition GovernanceAction referencedTypes) => HasBlueprintSchema ProposalProcedure referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: ProposalProcedure -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy ProposalProcedure -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep ProposalProcedure = D1 ('MetaData "ProposalProcedure" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
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.
Constructors
| Minting CurrencySymbol | |
| Spending TxOutRef | |
| Rewarding Credential | |
| Certifying | |
| Voting Voter | |
| Proposing | |
Fields
| |
Instances
| Generic ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: ScriptPurpose -> Rep ScriptPurpose x Source # to :: Rep ScriptPurpose x -> ScriptPurpose Source # | |||||
| Show ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (/=) :: ScriptPurpose -> ScriptPurpose -> Bool Source # | |||||
| Ord ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods compare :: ScriptPurpose -> ScriptPurpose -> Ordering Source # (<) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (<=) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (>) :: ScriptPurpose -> ScriptPurpose -> Bool Source # (>=) :: ScriptPurpose -> ScriptPurpose -> Bool Source # max :: ScriptPurpose -> ScriptPurpose -> ScriptPurpose Source # min :: ScriptPurpose -> ScriptPurpose -> ScriptPurpose Source # | |||||
| HasBlueprintDefinition ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: ScriptPurpose -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy ScriptPurpose -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep ScriptPurpose = D1 ('MetaData "ScriptPurpose" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'False) ((C1 ('MetaCons "Minting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CurrencySymbol)) :+: (C1 ('MetaCons "Spending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxOutRef)) :+: C1 ('MetaCons "Rewarding" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Credential)))) :+: (C1 ('MetaCons "Certifying" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxCert)) :+: (C1 ('MetaCons "Voting" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Voter)) :+: C1 ('MetaCons "Proposing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProposalProcedure))))) | |||||
| type Unroll ScriptPurpose Source # | |||||
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.
Constructors
| MintingScript CurrencySymbol | |
| SpendingScript TxOutRef (Maybe Datum) | |
| RewardingScript Credential | |
| CertifyingScript | |
| VotingScript Voter | |
| ProposingScript | |
Fields
| |
Instances
| Generic ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ScriptInfo -> ScriptInfo -> Bool Source # (/=) :: ScriptInfo -> ScriptInfo -> Bool Source # | |||||
| HasBlueprintDefinition ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: ScriptInfo -> BuiltinData # | |||||
| UnsafeFromData ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: ScriptInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy ScriptInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep ScriptInfo = D1 ('MetaData "ScriptInfo" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Unroll ScriptInfo = Insert ScriptInfo (GUnroll (IfStuckRep (RepIsStuckError ScriptInfo :: Type -> Type) (Rep ScriptInfo))) | |||||
An input of a pending transaction.
Constructors
| TxInInfo | |
Fields | |
Instances
| Generic TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show TxInInfo Source # | |||||
| Eq TxInInfo Source # | |||||
| HasBlueprintDefinition TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| Eq TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| FromData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |||||
| ToData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |||||
| UnsafeFromData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition TxOutRef referencedTypes, HasSchemaDefinition TxOut referencedTypes) => HasBlueprintSchema TxInInfo referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep TxInInfo = D1 ('MetaData "TxInInfo" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
TxInfo for PlutusV3
Constructors
| TxInfo | |
Fields
| |
Instances
| Generic TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
| |||||
| Show TxInfo Source # | |||||
| Eq TxInfo Source # | |||||
| HasBlueprintDefinition TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |||||
| ToData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |||||
| UnsafeFromData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition [TxInInfo] referencedTypes, HasSchemaDefinition [TxOut] referencedTypes, HasSchemaDefinition Lovelace referencedTypes, HasSchemaDefinition MintValue 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 # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Typeable DefaultUni TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| type Rep TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep TxInfo = D1 ('MetaData "TxInfo" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 MintValue) :*: 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 # | |||||
data ScriptContext Source #
The context that the currently-executing script can access.
Constructors
| ScriptContext | |
Fields
| |
Instances
| Generic ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods from :: ScriptContext -> Rep ScriptContext x Source # to :: Rep ScriptContext x -> ScriptContext Source # | |||||
| Show ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| Eq ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods (==) :: ScriptContext -> ScriptContext -> Bool Source # (/=) :: ScriptContext -> ScriptContext -> Bool Source # | |||||
| HasBlueprintDefinition ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Associated Types
Methods definitionId :: DefinitionId | |||||
| FromData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| ToData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| UnsafeFromData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods | |||||
| Pretty ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts | |||||
| (HasSchemaDefinition TxInfo referencedTypes, HasSchemaDefinition Redeemer referencedTypes, HasSchemaDefinition ScriptInfo referencedTypes) => HasBlueprintSchema ScriptContext referencedTypes Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods schema :: Schema referencedTypes | |||||
| Lift DefaultUni ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods lift :: ScriptContext -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts Methods typeRep :: Proxy ScriptContext -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Contexts type Rep ScriptContext = D1 ('MetaData "ScriptContext" "PlutusLedgerApi.V3.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" '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 # | |||||
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
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.