Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PlutusLedgerApi.V3.Contexts
Synopsis
- newtype ColdCommitteeCredential = ColdCommitteeCredential Credential
- newtype HotCommitteeCredential = HotCommitteeCredential Credential
- newtype DRepCredential = DRepCredential Credential
- data DRep
- data Delegatee
- data TxCert
- = TxCertRegStaking Credential (Maybe Value)
- | TxCertUnRegStaking Credential (Maybe Value)
- | TxCertDelegStaking Credential Delegatee
- | TxCertRegDeleg Credential Delegatee Value
- | TxCertRegDRep DRepCredential Value
- | TxCertUpdateDRep DRepCredential
- | TxCertUnRegDRep DRepCredential Value
- | TxCertPoolRegister PubKeyHash PubKeyHash
- | TxCertPoolRetire PubKeyHash Integer
- | TxCertAuthHotCommittee ColdCommitteeCredential HotCommitteeCredential
- | TxCertResignColdCommittee ColdCommitteeCredential
- data Voter
- data Vote
- data GovernanceActionId = GovernanceActionId {}
- data Committee = Committee {
- committeeMembers :: Map ColdCommitteeCredential Integer
- committeeQuorum :: Rational
- newtype Constitution = Constitution {}
- data ProtocolVersion = ProtocolVersion {}
- newtype ChangedParameters = ChangedParameters {}
- data GovernanceAction
- = ParameterChange (Maybe GovernanceActionId) ChangedParameters
- | HardForkInitiation (Maybe GovernanceActionId) ProtocolVersion
- | TreasuryWithdrawals (Map Credential Value)
- | NoConfidence (Maybe GovernanceActionId)
- | NewCommittee (Maybe GovernanceActionId) [ColdCommitteeCredential] Committee
- | NewConstitution (Maybe GovernanceActionId) Constitution
- | InfoAction
- data ProposalProcedure = ProposalProcedure {}
- data ScriptPurpose
- data TxInfo = TxInfo {
- txInfoInputs :: [TxInInfo]
- txInfoReferenceInputs :: [TxInInfo]
- txInfoOutputs :: [TxOut]
- txInfoFee :: Value
- txInfoMint :: Value
- txInfoTxCerts :: [TxCert]
- txInfoWdrl :: Map Credential Integer
- txInfoValidRange :: POSIXTimeRange
- txInfoSignatories :: [PubKeyHash]
- txInfoRedeemers :: Map ScriptPurpose Redeemer
- txInfoData :: Map DatumHash Datum
- txInfoId :: TxId
- txInfoVotes :: Map Voter (Map GovernanceActionId Vote)
- txInfoProposalProcedures :: [ProposalProcedure]
- txInfoCurrentTreasuryAmount :: Maybe Value
- txInfoTreasuryDonation :: Maybe Value
- data ScriptContext = ScriptContext {}
Documentation
newtype ColdCommitteeCredential Source #
Constructors
ColdCommitteeCredential Credential |
Instances
newtype HotCommitteeCredential Source #
Constructors
HotCommitteeCredential Credential |
Instances
newtype DRepCredential Source #
Constructors
DRepCredential Credential |
Instances
Constructors
DRep DRepCredential | |
DRepAlwaysAbstain | |
DRepAlwaysNoConfidence |
Instances
Constructors
DelegStake PubKeyHash | |
DelegVote DRep | |
DelegStakeVote PubKeyHash DRep |
Instances
Constructors
TxCertRegStaking Credential (Maybe Value) | Register staking credential with an optional deposit amount |
TxCertUnRegStaking Credential (Maybe Value) | Un-Register staking credential with an optional refund amount |
TxCertDelegStaking Credential Delegatee | Delegate staking credential to a Delegatee |
TxCertRegDeleg Credential Delegatee Value | Register and delegate staking credential to a Delegatee in one certificate. Noter that deposit is mandatory. |
TxCertRegDRep DRepCredential Value | Register a DRep with a deposit value. The optional anchor is omitted. |
TxCertUpdateDRep DRepCredential | Update a DRep. The optional anchor is omitted. |
TxCertUnRegDRep DRepCredential Value | 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
Constructors
CommitteeVoter HotCommitteeCredential | |
DRepVoter DRepCredential | |
StakePoolVoter PubKeyHash |
Instances
A vote. The optional anchor is omitted.
Instances
Generic Vote Source # | |
Show Vote Source # | |
Eq Vote Source # | |
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 | |
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.18.0.0-Arniy3OL4wy69RH7u4QMZP" '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))) |
data GovernanceActionId Source #
Similar to TxOutRef, but for GovActions
Constructors
GovernanceActionId | |
Fields
|
Instances
Constructors
Committee | |
Fields
|
Instances
newtype Constitution Source #
A constitution. The optional anchor is omitted.
Constructors
Constitution | |
Fields |
Instances
data ProtocolVersion Source #
Constructors
ProtocolVersion | |
Instances
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 name to the new value.
Unchanged parameters are not included.
Constructors
ChangedParameters | |
Fields |
Instances
data GovernanceAction Source #
Constructors
ParameterChange (Maybe GovernanceActionId) ChangedParameters | |
HardForkInitiation (Maybe GovernanceActionId) ProtocolVersion | proposal to update protocol version |
TreasuryWithdrawals (Map Credential Value) | |
NoConfidence (Maybe GovernanceActionId) | |
NewCommittee | |
Fields
| |
NewConstitution (Maybe GovernanceActionId) Constitution | |
InfoAction |
Instances
data ProposalProcedure Source #
A proposal procedure. The optional anchor is omitted.
Constructors
ProposalProcedure | |
Fields |
Instances
data ScriptPurpose Source #
Constructors
Minting CurrencySymbol | |
Spending TxOutRef | |
Rewarding Credential | |
Certifying TxCert | |
Voting Voter GovernanceActionId | |
Proposing Integer |
Instances
TxInfo for PlutusV3
Constructors
TxInfo | |
Fields
|
Instances
data ScriptContext Source #
The context that the currently-executing script can access.
Constructors
ScriptContext | |
Fields
|