Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.SpecialByron
Description
Special Byron values that we can submit to a node to propose an update proposal or to vote on an update proposal. These are not transactions.
Synopsis
- newtype ByronUpdateProposal = ByronUpdateProposal {
- unByronUpdateProposal :: AProposal ByteString
- data ByronProtocolParametersUpdate = ByronProtocolParametersUpdate {
- bPpuScriptVersion :: !(Maybe Word16)
- bPpuSlotDuration :: !(Maybe Natural)
- bPpuMaxBlockSize :: !(Maybe Natural)
- bPpuMaxHeaderSize :: !(Maybe Natural)
- bPpuMaxTxSize :: !(Maybe Natural)
- bPpuMaxProposalSize :: !(Maybe Natural)
- bPpuMpcThd :: !(Maybe LovelacePortion)
- bPpuHeavyDelThd :: !(Maybe LovelacePortion)
- bPpuUpdateVoteThd :: !(Maybe LovelacePortion)
- bPpuUpdateProposalThd :: !(Maybe LovelacePortion)
- bPpuUpdateProposalTTL :: !(Maybe SlotNumber)
- bPpuSoftforkRule :: !(Maybe SoftforkRule)
- bPpuTxFeePolicy :: !(Maybe TxFeePolicy)
- bPpuUnlockStakeEpoch :: !(Maybe EpochNumber)
- data family AsType t
- makeProtocolParametersUpdate :: ByronProtocolParametersUpdate -> ProtocolParametersUpdate
- toByronLedgerUpdateProposal :: ByronUpdateProposal -> GenTx ByronBlock
- newtype ByronVote = ByronVote {
- unByronVote :: AVote ByteString
- makeByronUpdateProposal :: NetworkId -> ProtocolVersion -> SoftwareVersion -> SystemTag -> InstallerHash -> SomeByronSigningKey -> ByronProtocolParametersUpdate -> ByronUpdateProposal
- makeByronVote :: NetworkId -> SomeByronSigningKey -> ByronUpdateProposal -> Bool -> ByronVote
- toByronLedgertoByronVote :: ByronVote -> GenTx ByronBlock
- applicationName :: ApplicationName
- applicationVersion :: NumSoftwareVersion
- softwareVersion :: SoftwareVersion
Documentation
newtype ByronUpdateProposal Source #
Byron era update proposal
Constructors
ByronUpdateProposal | |
Fields
|
Instances
Eq ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron Methods (==) :: ByronUpdateProposal -> ByronUpdateProposal -> Bool Source # (/=) :: ByronUpdateProposal -> ByronUpdateProposal -> Bool Source # | |
Show ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron | |
HasTypeProxy ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron Associated Types data AsType ByronUpdateProposal Source # Methods proxyToAsType :: Proxy ByronUpdateProposal -> AsType ByronUpdateProposal Source # | |
SerialiseAsRawBytes ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron Methods serialiseToRawBytes :: ByronUpdateProposal -> ByteString Source # deserialiseFromRawBytes :: AsType ByronUpdateProposal -> ByteString -> Either SerialiseAsRawBytesError ByronUpdateProposal Source # | |
data AsType ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron |
data ByronProtocolParametersUpdate Source #
Constructors
ByronProtocolParametersUpdate | |
Fields
|
Instances
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.
Instances
makeProtocolParametersUpdate :: ByronProtocolParametersUpdate -> ProtocolParametersUpdate Source #
toByronLedgerUpdateProposal :: ByronUpdateProposal -> GenTx ByronBlock Source #
Byron era votes
Constructors
ByronVote | |
Fields
|
Instances
Eq ByronVote Source # | |
Show ByronVote Source # | |
HasTypeProxy ByronVote Source # | |
SerialiseAsRawBytes ByronVote Source # | |
Defined in Cardano.Api.SpecialByron Methods serialiseToRawBytes :: ByronVote -> ByteString Source # deserialiseFromRawBytes :: AsType ByronVote -> ByteString -> Either SerialiseAsRawBytesError ByronVote Source # | |
data AsType ByronVote Source # | |
Defined in Cardano.Api.SpecialByron |
makeByronUpdateProposal :: NetworkId -> ProtocolVersion -> SoftwareVersion -> SystemTag -> InstallerHash -> SomeByronSigningKey -> ByronProtocolParametersUpdate -> ByronUpdateProposal Source #
makeByronVote :: NetworkId -> SomeByronSigningKey -> ByronUpdateProposal -> Bool -> ByronVote Source #
toByronLedgertoByronVote :: ByronVote -> GenTx ByronBlock Source #
applicationName :: ApplicationName Source #
An application name. It has no functional impact in the Shelley eras onwards and therefore it is hardcoded.
applicationVersion :: NumSoftwareVersion Source #
An application version. It has no functional impact in the Shelley eras onwards and therefore it is hardcoded.
softwareVersion :: SoftwareVersion Source #
A software version composed of applicationVersion
and applicationName
.
It has no functional impact in the Shelley eras onwards and therefore it is hardcoded.