| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V3.Data.Contexts
Contents
Synopsis
- newtype ColdCommitteeCredential = ColdCommitteeCredential Credential
- newtype HotCommitteeCredential = HotCommitteeCredential Credential
- newtype DRepCredential = DRepCredential Credential
- data DRep
- matchDRep :: DRep -> (DRepCredential -> r) -> r -> r -> r
- pattern DRep :: DRepCredential -> DRep
- pattern DRepAlwaysAbstain :: DRep
- pattern DRepAlwaysNoConfidence :: DRep
- data Delegatee
- matchDelegatee :: Delegatee -> (PubKeyHash -> r) -> (DRep -> r) -> (PubKeyHash -> DRep -> r) -> r
- pattern DelegStake :: PubKeyHash -> Delegatee
- pattern DelegVote :: DRep -> Delegatee
- pattern DelegStakeVote :: PubKeyHash -> DRep -> Delegatee
- data TxCert
- matchTxCert :: TxCert -> (Credential -> Maybe Lovelace -> r) -> (Credential -> Maybe Lovelace -> r) -> (Credential -> Delegatee -> r) -> (Credential -> Delegatee -> Lovelace -> r) -> (DRepCredential -> Lovelace -> r) -> (DRepCredential -> r) -> (DRepCredential -> Lovelace -> r) -> (PubKeyHash -> PubKeyHash -> r) -> (PubKeyHash -> Integer -> r) -> (ColdCommitteeCredential -> HotCommitteeCredential -> r) -> (ColdCommitteeCredential -> r) -> r
- pattern TxCertRegStaking :: Credential -> Maybe Lovelace -> TxCert
- pattern TxCertUnRegStaking :: Credential -> Maybe Lovelace -> TxCert
- pattern TxCertDelegStaking :: Credential -> Delegatee -> TxCert
- pattern TxCertRegDeleg :: Credential -> Delegatee -> Lovelace -> TxCert
- pattern TxCertRegDRep :: DRepCredential -> Lovelace -> TxCert
- pattern TxCertUpdateDRep :: DRepCredential -> TxCert
- pattern TxCertUnRegDRep :: DRepCredential -> Lovelace -> TxCert
- pattern TxCertPoolRegister :: PubKeyHash -> PubKeyHash -> TxCert
- pattern TxCertPoolRetire :: PubKeyHash -> Integer -> TxCert
- pattern TxCertAuthHotCommittee :: ColdCommitteeCredential -> HotCommitteeCredential -> TxCert
- pattern TxCertResignColdCommittee :: ColdCommitteeCredential -> TxCert
- data Voter
- matchVoter :: Voter -> (HotCommitteeCredential -> r) -> (DRepCredential -> r) -> (PubKeyHash -> r) -> r
- pattern CommitteeVoter :: HotCommitteeCredential -> Voter
- pattern DRepVoter :: DRepCredential -> Voter
- pattern StakePoolVoter :: PubKeyHash -> Voter
- data Vote
- matchVote :: Vote -> r -> r -> r -> r
- pattern VoteNo :: Vote
- pattern VoteYes :: Vote
- pattern Abstain :: Vote
- data GovernanceActionId
- pattern GovernanceActionId :: TxId -> Integer -> GovernanceActionId
- matchGovernanceActionId :: GovernanceActionId -> (TxId -> Integer -> r) -> r
- gaidTxId :: GovernanceActionId -> TxId
- gaidGovActionIx :: GovernanceActionId -> Integer
- data Committee
- pattern Committee :: Map ColdCommitteeCredential Integer -> Rational -> Committee
- matchCommittee :: Committee -> (Map ColdCommitteeCredential Integer -> Rational -> r) -> r
- committeeMembers :: Committee -> Map ColdCommitteeCredential Integer
- committeeQuorum :: Committee -> Rational
- newtype Constitution = Constitution {}
- data ProtocolVersion
- pattern ProtocolVersion :: Integer -> Integer -> ProtocolVersion
- matchProtocolVersion :: ProtocolVersion -> (Integer -> Integer -> r) -> r
- pvMajor :: ProtocolVersion -> Integer
- pvMinor :: ProtocolVersion -> Integer
- newtype ChangedParameters = ChangedParameters {}
- data GovernanceAction
- matchGovernanceAction :: GovernanceAction -> (Maybe GovernanceActionId -> ChangedParameters -> Maybe ScriptHash -> r) -> (Maybe GovernanceActionId -> ProtocolVersion -> r) -> (Map Credential Lovelace -> Maybe ScriptHash -> r) -> (Maybe GovernanceActionId -> r) -> (Maybe GovernanceActionId -> List ColdCommitteeCredential -> Map ColdCommitteeCredential Integer -> Rational -> r) -> (Maybe GovernanceActionId -> Constitution -> r) -> r -> r
- pattern ParameterChange :: Maybe GovernanceActionId -> ChangedParameters -> Maybe ScriptHash -> GovernanceAction
- pattern HardForkInitiation :: Maybe GovernanceActionId -> ProtocolVersion -> GovernanceAction
- pattern TreasuryWithdrawals :: Map Credential Lovelace -> Maybe ScriptHash -> GovernanceAction
- pattern NoConfidence :: Maybe GovernanceActionId -> GovernanceAction
- pattern UpdateCommittee :: Maybe GovernanceActionId -> List ColdCommitteeCredential -> Map ColdCommitteeCredential Integer -> Rational -> GovernanceAction
- pattern NewConstitution :: Maybe GovernanceActionId -> Constitution -> GovernanceAction
- pattern InfoAction :: GovernanceAction
- data ProposalProcedure
- pattern ProposalProcedure :: Lovelace -> Credential -> GovernanceAction -> ProposalProcedure
- matchProposalProcedure :: ProposalProcedure -> (Lovelace -> Credential -> GovernanceAction -> r) -> r
- ppDeposit :: ProposalProcedure -> Lovelace
- ppReturnAddr :: ProposalProcedure -> Credential
- ppGovernanceAction :: ProposalProcedure -> GovernanceAction
- data ScriptPurpose
- matchScriptPurpose :: ScriptPurpose -> (CurrencySymbol -> r) -> (TxOutRef -> r) -> (Credential -> r) -> (Integer -> TxCert -> r) -> (Voter -> r) -> (Integer -> ProposalProcedure -> r) -> r
- pattern Minting :: CurrencySymbol -> ScriptPurpose
- pattern Spending :: TxOutRef -> ScriptPurpose
- pattern Rewarding :: Credential -> ScriptPurpose
- pattern Certifying :: Integer -> TxCert -> ScriptPurpose
- pattern Voting :: Voter -> ScriptPurpose
- pattern Proposing :: Integer -> ProposalProcedure -> ScriptPurpose
- data ScriptInfo
- matchScriptInfo :: ScriptInfo -> (CurrencySymbol -> r) -> (TxOutRef -> Maybe Datum -> r) -> (Credential -> r) -> (Integer -> TxCert -> r) -> (Voter -> r) -> (Integer -> ProposalProcedure -> r) -> r
- pattern MintingScript :: CurrencySymbol -> ScriptInfo
- pattern SpendingScript :: TxOutRef -> Maybe Datum -> ScriptInfo
- pattern RewardingScript :: Credential -> ScriptInfo
- pattern CertifyingScript :: Integer -> TxCert -> ScriptInfo
- pattern VotingScript :: Voter -> ScriptInfo
- pattern ProposingScript :: Integer -> ProposalProcedure -> ScriptInfo
- data TxInInfo
- pattern TxInInfo :: TxOutRef -> TxOut -> TxInInfo
- matchTxInInfo :: TxInInfo -> (TxOutRef -> TxOut -> r) -> r
- txInInfoOutRef :: TxInInfo -> TxOutRef
- txInInfoResolved :: TxInInfo -> TxOut
- data TxInfo
- pattern TxInfo :: List TxInInfo -> List TxInInfo -> List TxOut -> Lovelace -> MintValue -> List TxCert -> Map Credential Lovelace -> POSIXTimeRange -> List PubKeyHash -> Map ScriptPurpose Redeemer -> Map DatumHash Datum -> TxId -> Map Voter (Map GovernanceActionId Vote) -> List ProposalProcedure -> Maybe Lovelace -> Maybe Lovelace -> TxInfo
- matchTxInfo :: TxInfo -> (List TxInInfo -> List TxInInfo -> List TxOut -> Lovelace -> MintValue -> List TxCert -> Map Credential Lovelace -> POSIXTimeRange -> List PubKeyHash -> Map ScriptPurpose Redeemer -> Map DatumHash Datum -> TxId -> Map Voter (Map GovernanceActionId Vote) -> List ProposalProcedure -> Maybe Lovelace -> Maybe Lovelace -> r) -> r
- txInfoInputs :: TxInfo -> List TxInInfo
- txInfoReferenceInputs :: TxInfo -> List TxInInfo
- txInfoOutputs :: TxInfo -> List TxOut
- txInfoFee :: TxInfo -> Lovelace
- txInfoMint :: TxInfo -> MintValue
- txInfoTxCerts :: TxInfo -> List TxCert
- txInfoWdrl :: TxInfo -> Map Credential Lovelace
- txInfoValidRange :: TxInfo -> POSIXTimeRange
- txInfoSignatories :: TxInfo -> List PubKeyHash
- txInfoRedeemers :: TxInfo -> Map ScriptPurpose Redeemer
- txInfoData :: TxInfo -> Map DatumHash Datum
- txInfoId :: TxInfo -> TxId
- txInfoVotes :: TxInfo -> Map Voter (Map GovernanceActionId Vote)
- txInfoProposalProcedures :: TxInfo -> List ProposalProcedure
- txInfoCurrentTreasuryAmount :: TxInfo -> Maybe Lovelace
- txInfoTreasuryDonation :: TxInfo -> Maybe Lovelace
- data ScriptContext
- pattern ScriptContext :: TxInfo -> Redeemer -> ScriptInfo -> ScriptContext
- matchScriptContext :: ScriptContext -> (TxInfo -> Redeemer -> ScriptInfo -> r) -> r
- scriptContextTxInfo :: ScriptContext -> TxInfo
- scriptContextRedeemer :: ScriptContext -> Redeemer
- scriptContextScriptInfo :: ScriptContext -> ScriptInfo
- findOwnInput :: ScriptContext -> Maybe TxInInfo
- findDatum :: DatumHash -> TxInfo -> Maybe Datum
- findDatumHash :: Datum -> TxInfo -> Maybe DatumHash
- findTxInByTxOutRef :: TxOutRef -> TxInfo -> Maybe TxInInfo
- findContinuingOutputs :: ScriptContext -> List Integer
- getContinuingOutputs :: ScriptContext -> List TxOut
- txSignedBy :: TxInfo -> PubKeyHash -> Bool
- pubKeyOutputsAt :: PubKeyHash -> TxInfo -> List 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.Data.Contexts Associated Types
Methods from :: HotCommitteeCredential -> Rep HotCommitteeCredential x Source # to :: Rep HotCommitteeCredential x -> HotCommitteeCredential Source # | |||||
| Show HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Eq HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # (/=) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool Source # | |||||
| Eq HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: HotCommitteeCredential -> HotCommitteeCredential -> Bool | |||||
| FromData HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe HotCommitteeCredential # | |||||
| ToData HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> HotCommitteeCredential # | |||||
| Pretty HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: HotCommitteeCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy HotCommitteeCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep HotCommitteeCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep HotCommitteeCredential = D1 ('MetaData "HotCommitteeCredential" "PlutusLedgerApi.V3.Data.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))) | |||||
newtype DRepCredential Source #
Constructors
| DRepCredential Credential |
Instances
| Generic DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: DRepCredential -> Rep DRepCredential x Source # to :: Rep DRepCredential x -> DRepCredential Source # | |||||
| Show DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Eq DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: DRepCredential -> DRepCredential -> Bool Source # (/=) :: DRepCredential -> DRepCredential -> Bool Source # | |||||
| Eq DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: DRepCredential -> DRepCredential -> Bool | |||||
| FromData DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: DRepCredential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy DRepCredential -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep DRepCredential Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep DRepCredential = D1 ('MetaData "DRepCredential" "PlutusLedgerApi.V3.Data.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))) | |||||
Instances
| Generic DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show DRep Source # | |||||
| Eq DRep Source # | |||||
| Eq DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe DRep # | |||||
| ToData DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: DRep -> BuiltinData # | |||||
| UnsafeFromData DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep DRep Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep DRep = D1 ('MetaData "DRep" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "DRep_6989586621681070042" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchDRep :: DRep -> (DRepCredential -> r) -> r -> r -> r Source #
pattern DRep :: DRepCredential -> DRep Source #
pattern DRepAlwaysAbstain :: DRep Source #
pattern DRepAlwaysNoConfidence :: DRep Source #
Instances
| Generic Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show Delegatee Source # | |||||
| Eq Delegatee Source # | |||||
| Eq Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Delegatee -> BuiltinData # | |||||
| UnsafeFromData Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep Delegatee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep Delegatee = D1 ('MetaData "Delegatee" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Delegatee_6989586621681071311" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchDelegatee :: Delegatee -> (PubKeyHash -> r) -> (DRep -> r) -> (PubKeyHash -> DRep -> r) -> r Source #
pattern DelegStake :: PubKeyHash -> Delegatee Source #
pattern DelegStakeVote :: PubKeyHash -> DRep -> Delegatee Source #
Instances
| Generic TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show TxCert Source # | |||||
| Eq TxCert Source # | |||||
| Eq TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxCert # | |||||
| ToData TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: TxCert -> BuiltinData # | |||||
| UnsafeFromData TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep TxCert Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep TxCert = D1 ('MetaData "TxCert" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "TxCert_6989586621681072905" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchTxCert :: TxCert -> (Credential -> Maybe Lovelace -> r) -> (Credential -> Maybe Lovelace -> r) -> (Credential -> Delegatee -> r) -> (Credential -> Delegatee -> Lovelace -> r) -> (DRepCredential -> Lovelace -> r) -> (DRepCredential -> r) -> (DRepCredential -> Lovelace -> r) -> (PubKeyHash -> PubKeyHash -> r) -> (PubKeyHash -> Integer -> r) -> (ColdCommitteeCredential -> HotCommitteeCredential -> r) -> (ColdCommitteeCredential -> r) -> r Source #
pattern TxCertRegStaking :: Credential -> Maybe Lovelace -> TxCert Source #
pattern TxCertUnRegStaking :: Credential -> Maybe Lovelace -> TxCert Source #
pattern TxCertDelegStaking :: Credential -> Delegatee -> TxCert Source #
pattern TxCertRegDeleg :: Credential -> Delegatee -> Lovelace -> TxCert Source #
pattern TxCertRegDRep :: DRepCredential -> Lovelace -> TxCert Source #
pattern TxCertUpdateDRep :: DRepCredential -> TxCert Source #
pattern TxCertUnRegDRep :: DRepCredential -> Lovelace -> TxCert Source #
pattern TxCertPoolRegister :: PubKeyHash -> PubKeyHash -> TxCert Source #
pattern TxCertPoolRetire :: PubKeyHash -> Integer -> TxCert Source #
pattern TxCertAuthHotCommittee :: ColdCommitteeCredential -> HotCommitteeCredential -> TxCert Source #
pattern TxCertResignColdCommittee :: ColdCommitteeCredential -> TxCert Source #
Instances
| Generic Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show Voter Source # | |||||
| Eq Voter Source # | |||||
| Eq Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Voter # | |||||
| ToData Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Voter -> BuiltinData # | |||||
| UnsafeFromData Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep Voter Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep Voter = D1 ('MetaData "Voter" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Voter_6989586621681075171" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchVoter :: Voter -> (HotCommitteeCredential -> r) -> (DRepCredential -> r) -> (PubKeyHash -> r) -> r Source #
pattern CommitteeVoter :: HotCommitteeCredential -> Voter Source #
pattern DRepVoter :: DRepCredential -> Voter Source #
pattern StakePoolVoter :: PubKeyHash -> Voter Source #
A vote. The optional anchor is omitted.
Instances
| Generic Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show Vote Source # | |||||
| Eq Vote Source # | |||||
| Eq Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe Vote # | |||||
| ToData Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Vote -> BuiltinData # | |||||
| UnsafeFromData Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep Vote Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep Vote = D1 ('MetaData "Vote" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Vote_6989586621681076450" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
data GovernanceActionId Source #
Similar to TxOutRef, but for GovActions
Instances
| Generic GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: GovernanceActionId -> Rep GovernanceActionId x Source # to :: Rep GovernanceActionId x -> GovernanceActionId Source # | |||||
| Show GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Eq GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: GovernanceActionId -> GovernanceActionId -> Bool Source # (/=) :: GovernanceActionId -> GovernanceActionId -> Bool Source # | |||||
| Eq GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: GovernanceActionId -> GovernanceActionId -> Bool | |||||
| FromData GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe GovernanceActionId # | |||||
| ToData GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods unsafeFromBuiltinData :: BuiltinData -> GovernanceActionId # | |||||
| Pretty GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: GovernanceActionId -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy GovernanceActionId -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep GovernanceActionId Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep GovernanceActionId = D1 ('MetaData "GovernanceActionId" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "GovernanceActionId_6989586621681077654" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
pattern GovernanceActionId :: TxId -> Integer -> GovernanceActionId Source #
matchGovernanceActionId :: GovernanceActionId -> (TxId -> Integer -> r) -> r Source #
gaidTxId :: GovernanceActionId -> TxId Source #
Instances
| Generic Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show Committee Source # | |||||
| FromData Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: Committee -> BuiltinData # | |||||
| UnsafeFromData Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep Committee Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep Committee = D1 ('MetaData "Committee" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "Committee_6989586621681078734" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchCommittee :: Committee -> (Map ColdCommitteeCredential Integer -> Rational -> r) -> r Source #
committeeQuorum :: Committee -> Rational Source #
newtype Constitution Source #
A constitution. The optional anchor is omitted.
Constructors
| Constitution | |
Fields | |
Instances
| Generic Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: Constitution -> Rep Constitution x Source # to :: Rep Constitution x -> Constitution Source # | |||||
| Show Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Eq Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: Constitution -> Constitution -> Bool Source # (/=) :: Constitution -> Constitution -> Bool Source # | |||||
| Eq Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: Constitution -> Constitution -> Bool | |||||
| FromData Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: Constitution -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy Constitution -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep Constitution Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep Constitution = D1 ('MetaData "Constitution" "PlutusLedgerApi.V3.Data.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)))) | |||||
data ProtocolVersion Source #
Instances
| Generic ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: ProtocolVersion -> Rep ProtocolVersion x Source # to :: Rep ProtocolVersion x -> ProtocolVersion Source # | |||||
| Show ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Eq ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: ProtocolVersion -> ProtocolVersion -> Bool Source # (/=) :: ProtocolVersion -> ProtocolVersion -> Bool Source # | |||||
| Eq ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: ProtocolVersion -> ProtocolVersion -> Bool | |||||
| FromData ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: ProtocolVersion -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy ProtocolVersion -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ProtocolVersion Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep ProtocolVersion = D1 ('MetaData "ProtocolVersion" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ProtocolVersion_6989586621681080883" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
pattern ProtocolVersion :: Integer -> Integer -> ProtocolVersion Source #
matchProtocolVersion :: ProtocolVersion -> (Integer -> Integer -> r) -> r Source #
pvMajor :: ProtocolVersion -> Integer Source #
pvMinor :: ProtocolVersion -> Integer Source #
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. -- editorconfig-checker-disable-file
Invariant: This map is non-empty, and the keys are stored in ascending order.
Constructors
| ChangedParameters | |
Fields | |
Instances
| Generic ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: ChangedParameters -> Rep ChangedParameters x Source # to :: Rep ChangedParameters x -> ChangedParameters Source # | |||||
| Show ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Eq ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: ChangedParameters -> ChangedParameters -> Bool Source # (/=) :: ChangedParameters -> ChangedParameters -> Bool Source # | |||||
| Ord ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.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 # | |||||
| Eq ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods (==) :: ChangedParameters -> ChangedParameters -> Bool | |||||
| FromData ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: ChangedParameters -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy ChangedParameters -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ChangedParameters Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep ChangedParameters = D1 ('MetaData "ChangedParameters" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ChangedParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "getChangedParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
data GovernanceAction Source #
Instances
| Generic GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: GovernanceAction -> Rep GovernanceAction x Source # to :: Rep GovernanceAction x -> GovernanceAction Source # | |||||
| Show GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: GovernanceAction -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy GovernanceAction -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep GovernanceAction Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep GovernanceAction = D1 ('MetaData "GovernanceAction" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "GovernanceAction_6989586621681083356" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchGovernanceAction :: GovernanceAction -> (Maybe GovernanceActionId -> ChangedParameters -> Maybe ScriptHash -> r) -> (Maybe GovernanceActionId -> ProtocolVersion -> r) -> (Map Credential Lovelace -> Maybe ScriptHash -> r) -> (Maybe GovernanceActionId -> r) -> (Maybe GovernanceActionId -> List ColdCommitteeCredential -> Map ColdCommitteeCredential Integer -> Rational -> r) -> (Maybe GovernanceActionId -> Constitution -> r) -> r -> r Source #
pattern ParameterChange :: Maybe GovernanceActionId -> ChangedParameters -> Maybe ScriptHash -> GovernanceAction Source #
pattern HardForkInitiation :: Maybe GovernanceActionId -> ProtocolVersion -> GovernanceAction Source #
pattern TreasuryWithdrawals :: Map Credential Lovelace -> Maybe ScriptHash -> GovernanceAction Source #
pattern NoConfidence :: Maybe GovernanceActionId -> GovernanceAction Source #
pattern UpdateCommittee :: Maybe GovernanceActionId -> List ColdCommitteeCredential -> Map ColdCommitteeCredential Integer -> Rational -> GovernanceAction Source #
pattern NewConstitution :: Maybe GovernanceActionId -> Constitution -> GovernanceAction Source #
pattern InfoAction :: GovernanceAction Source #
data ProposalProcedure Source #
A proposal procedure. The optional anchor is omitted.
Instances
| Generic ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: ProposalProcedure -> Rep ProposalProcedure x Source # to :: Rep ProposalProcedure x -> ProposalProcedure Source # | |||||
| Show ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: ProposalProcedure -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy ProposalProcedure -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ProposalProcedure Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep ProposalProcedure = D1 ('MetaData "ProposalProcedure" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ProposalProcedure_6989586621681085130" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
pattern ProposalProcedure :: Lovelace -> Credential -> GovernanceAction -> ProposalProcedure Source #
matchProposalProcedure :: ProposalProcedure -> (Lovelace -> Credential -> GovernanceAction -> r) -> r Source #
data ScriptPurpose Source #
A ScriptPurpose uniquely identifies a Plutus script within a transaction.
Instances
| Generic ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: ScriptPurpose -> Rep ScriptPurpose x Source # to :: Rep ScriptPurpose x -> ScriptPurpose Source # | |||||
| Show ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: ScriptPurpose -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy ScriptPurpose -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptPurpose Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep ScriptPurpose = D1 ('MetaData "ScriptPurpose" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ScriptPurpose_6989586621681086281" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchScriptPurpose :: ScriptPurpose -> (CurrencySymbol -> r) -> (TxOutRef -> r) -> (Credential -> r) -> (Integer -> TxCert -> r) -> (Voter -> r) -> (Integer -> ProposalProcedure -> r) -> r Source #
pattern Minting :: CurrencySymbol -> ScriptPurpose Source #
pattern Spending :: TxOutRef -> ScriptPurpose Source #
pattern Rewarding :: Credential -> ScriptPurpose Source #
pattern Certifying :: Integer -> TxCert -> ScriptPurpose Source #
pattern Voting :: Voter -> ScriptPurpose Source #
pattern Proposing :: Integer -> ProposalProcedure -> ScriptPurpose Source #
data ScriptInfo Source #
Like ScriptPurpose but with an optional datum for spending scripts.
Instances
| Generic ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: ScriptInfo -> BuiltinData # | |||||
| UnsafeFromData ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: ScriptInfo -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy ScriptInfo -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep ScriptInfo = D1 ('MetaData "ScriptInfo" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ScriptInfo_6989586621681087914" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchScriptInfo :: ScriptInfo -> (CurrencySymbol -> r) -> (TxOutRef -> Maybe Datum -> r) -> (Credential -> r) -> (Integer -> TxCert -> r) -> (Voter -> r) -> (Integer -> ProposalProcedure -> r) -> r Source #
pattern MintingScript :: CurrencySymbol -> ScriptInfo Source #
pattern SpendingScript :: TxOutRef -> Maybe Datum -> ScriptInfo Source #
pattern RewardingScript :: Credential -> ScriptInfo Source #
pattern CertifyingScript :: Integer -> TxCert -> ScriptInfo Source #
pattern VotingScript :: Voter -> ScriptInfo Source #
pattern ProposingScript :: Integer -> ProposalProcedure -> ScriptInfo Source #
An input of a pending transaction.
Instances
| Generic TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show TxInInfo Source # | |||||
| Eq TxInInfo Source # | |||||
| Eq TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInInfo # | |||||
| ToData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: TxInInfo -> BuiltinData # | |||||
| UnsafeFromData TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep TxInInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep TxInInfo = D1 ('MetaData "TxInInfo" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "TxInInfo_6989586621681089466" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
txInInfoOutRef :: TxInInfo -> TxOutRef Source #
txInInfoResolved :: TxInInfo -> TxOut Source #
TxInfo for PlutusV3
Instances
| Generic TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
| |||||
| Show TxInfo Source # | |||||
| FromData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods fromBuiltinData :: BuiltinData -> Maybe TxInfo # | |||||
| ToData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods toBuiltinData :: TxInfo -> BuiltinData # | |||||
| UnsafeFromData TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Typeable DefaultUni TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| type Rep TxInfo Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep TxInfo = D1 ('MetaData "TxInfo" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "TxInfo_6989586621681090875" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
pattern TxInfo :: List TxInInfo -> List TxInInfo -> List TxOut -> Lovelace -> MintValue -> List TxCert -> Map Credential Lovelace -> POSIXTimeRange -> List PubKeyHash -> Map ScriptPurpose Redeemer -> Map DatumHash Datum -> TxId -> Map Voter (Map GovernanceActionId Vote) -> List ProposalProcedure -> Maybe Lovelace -> Maybe Lovelace -> TxInfo Source #
matchTxInfo :: TxInfo -> (List TxInInfo -> List TxInInfo -> List TxOut -> Lovelace -> MintValue -> List TxCert -> Map Credential Lovelace -> POSIXTimeRange -> List PubKeyHash -> Map ScriptPurpose Redeemer -> Map DatumHash Datum -> TxId -> Map Voter (Map GovernanceActionId Vote) -> List ProposalProcedure -> Maybe Lovelace -> Maybe Lovelace -> r) -> r Source #
txInfoInputs :: TxInfo -> List TxInInfo Source #
txInfoReferenceInputs :: TxInfo -> List TxInInfo Source #
txInfoOutputs :: TxInfo -> List TxOut Source #
txInfoMint :: TxInfo -> MintValue Source #
txInfoTxCerts :: TxInfo -> List TxCert Source #
txInfoWdrl :: TxInfo -> Map Credential Lovelace Source #
txInfoSignatories :: TxInfo -> List PubKeyHash Source #
txInfoVotes :: TxInfo -> Map Voter (Map GovernanceActionId Vote) Source #
txInfoProposalProcedures :: TxInfo -> List ProposalProcedure Source #
data ScriptContext Source #
The context that the currently-executing script can access.
Instances
| Generic ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Associated Types
Methods from :: ScriptContext -> Rep ScriptContext x Source # to :: Rep ScriptContext x -> ScriptContext Source # | |||||
| Show ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| FromData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| ToData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| UnsafeFromData ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods | |||||
| Pretty ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts | |||||
| Lift DefaultUni ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods lift :: ScriptContext -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) | |||||
| Typeable DefaultUni ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts Methods typeRep :: Proxy ScriptContext -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) | |||||
| type Rep ScriptContext Source # | |||||
Defined in PlutusLedgerApi.V3.Data.Contexts type Rep ScriptContext = D1 ('MetaData "ScriptContext" "PlutusLedgerApi.V3.Data.Contexts" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "ScriptContext_6989586621681092347" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
pattern ScriptContext :: TxInfo -> Redeemer -> ScriptInfo -> ScriptContext Source #
matchScriptContext :: ScriptContext -> (TxInfo -> Redeemer -> ScriptInfo -> r) -> r Source #
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 -> List 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 -> List 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 -> List 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.