Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module to define types for "General" endpoints defined at docs.gomaestro.org.
Synopsis
- data TimestampedSystemStart = TimestampedSystemStart {}
- data TimestampedEraSummaries = TimestampedEraSummaries {}
- data EraSummary = EraSummary {}
- data EraParameters = EraParameters {}
- data EraBound = EraBound {}
- newtype EraBoundTime = EraBoundTime {}
- newtype EpochSlotLength = EpochSlotLength {}
- newtype AsAda = AsAda {}
- newtype AsLovelace = AsLovelace {}
- newtype AsBytes = AsBytes {}
- data ProtocolVersion = ProtocolVersion {}
- data MemoryCpuWith i = MemoryCpuWith {
- memoryCpuWithMemory ∷ !i
- memoryCpuWithCpu ∷ !i
- newtype CostModel = CostModel [Int64]
- data CostModels = CostModels {}
- newtype MaestroRational = MaestroRational {}
- textToMaestroRational ∷ Text → Either String MaestroRational
- textFromMaestroRational ∷ MaestroRational → Text
- data ConstitutionalCommittee = ConstitutionalCommittee {}
- data ProtocolParametersUpdateDRep = ProtocolParametersUpdateDRep {}
- data DRepVotingThresholds = DRepVotingThresholds {
- drepVotingThresholdsConstitution ∷ !MaestroRational
- drepVotingThresholdsConstitutionalCommittee ∷ !ConstitutionalCommittee
- drepVotingThresholdsHardForkInitiation ∷ !MaestroRational
- drepVotingThresholdsNoConfidence ∷ !MaestroRational
- drepVotingThresholdsProtocolParametersUpdate ∷ !ProtocolParametersUpdateDRep
- drepVotingThresholdsTreasuryWithdrawals ∷ !MaestroRational
- newtype ProtocolParametersUpdateStakePool = ProtocolParametersUpdateStakePool {}
- data StakePoolVotingThresholds = StakePoolVotingThresholds {}
- data MinFeeReferenceScripts = MinFeeReferenceScripts {}
- data TimestampedProtocolParameters = TimestampedProtocolParameters {}
- data ProtocolParameters = ProtocolParameters {
- protocolParametersCollateralPercentage ∷ !Natural
- protocolParametersConstitutionalCommitteeMaxTermLength ∷ !Natural
- protocolParametersConstitutionalCommitteeMinSize ∷ !Natural
- protocolParametersDelegateRepresentativeDeposit ∷ !AsAda
- protocolParametersDelegateRepresentativeMaxIdleTime ∷ !Natural
- protocolParametersDelegateRepresentativeVotingThresholds ∷ !DRepVotingThresholds
- protocolParametersDesiredNumberOfStakePools ∷ !Natural
- protocolParametersGovernanceActionDeposit ∷ !AsAda
- protocolParametersGovernanceActionLifetime ∷ !Natural
- protocolParametersMaxBlockBodySize ∷ !AsBytes
- protocolParametersMaxBlockHeaderSize ∷ !AsBytes
- protocolParametersMaxCollateralInputs ∷ !Natural
- protocolParametersMaxExecutionUnitsPerBlock ∷ !(MemoryCpuWith Natural)
- protocolParametersMaxExecutionUnitsPerTransaction ∷ !(MemoryCpuWith Natural)
- protocolParametersMaxReferenceScriptsSize ∷ !AsBytes
- protocolParametersMaxTransactionSize ∷ !AsBytes
- protocolParametersMaxValueSize ∷ !AsBytes
- protocolParametersMinFeeCoefficient ∷ !Natural
- protocolParametersMinFeeConstant ∷ !AsAda
- protocolParametersMinFeeReferenceScripts ∷ !MinFeeReferenceScripts
- protocolParametersMinStakePoolCost ∷ !AsAda
- protocolParametersMinUtxoDepositCoefficient ∷ !Natural
- protocolParametersMonetaryExpansion ∷ !MaestroRational
- protocolParametersPlutusCostModels ∷ !CostModels
- protocolParametersScriptExecutionPrices ∷ !(MemoryCpuWith MaestroRational)
- protocolParametersStakeCredentialDeposit ∷ !AsAda
- protocolParametersStakePoolDeposit ∷ !AsAda
- protocolParametersStakePoolPledgeInfluence ∷ !MaestroRational
- protocolParametersStakePoolRetirementEpochBound ∷ !EpochNo
- protocolParametersStakePoolVotingThresholds ∷ !StakePoolVotingThresholds
- protocolParametersTreasuryExpansion ∷ !MaestroRational
- protocolParametersVersion ∷ !ProtocolVersion
- data TimestampedChainTip = TimestampedChainTip {}
- data ChainTip = ChainTip {}
Types for /system-start
endpoint
data TimestampedSystemStart #
Network start time since genesis.
TimestampedSystemStart | |
|
Instances
Types for /era-summaries
endpoint
data TimestampedEraSummaries #
Network era summaries.
TimestampedEraSummaries | |
|
Instances
data EraSummary #
Network era summary.
EraSummary | |
|
Instances
data EraParameters #
Parameters for a network era which can vary between hardforks.
EraParameters | |
|
Instances
Bounds of an era.
EraBound | |
|
Instances
Eq EraBound # | |
Show EraBound # | |
Generic EraBound # | |
ToJSON EraBound # | |
Defined in Maestro.Types.V1.General toEncoding ∷ EraBound → Encoding toJSONList ∷ [EraBound] → Value toEncodingList ∷ [EraBound] → Encoding | |
FromJSON EraBound # | |
Defined in Maestro.Types.V1.General parseJSON ∷ Value → Parser EraBound parseJSONList ∷ Value → Parser [EraBound] | |
type Rep EraBound # | |
Defined in Maestro.Types.V1.General type Rep EraBound = D1 ('MetaData "EraBound" "Maestro.Types.V1.General" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "EraBound" 'PrefixI 'True) (S1 ('MetaSel ('Just "eraBoundEpoch") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EpochNo) :*: (S1 ('MetaSel ('Just "eraBoundSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "eraBoundTime") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EraBoundTime)))) |
newtype EraBoundTime #
EraBoundTime | |
|
Instances
newtype EpochSlotLength #
Instances
Types for /protocol-parameters
endpoint
Represents lovelaces.
AsAda | |
|
Instances
Eq AsAda # | |
Show AsAda # | |
Generic AsAda # | |
ToJSON AsAda # | |
Defined in Maestro.Types.V1.General | |
FromJSON AsAda # | |
Defined in Maestro.Types.V1.General | |
type Rep AsAda # | |
Defined in Maestro.Types.V1.General type Rep AsAda = D1 ('MetaData "AsAda" "Maestro.Types.V1.General" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "AsAda" 'PrefixI 'True) (S1 ('MetaSel ('Just "asAdaAda") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AsLovelace))) |
newtype AsLovelace #
Lovelaces.
AsLovelace | |
|
Instances
Number of bytes.
AsBytes | |
|
Instances
Eq AsBytes # | |
Show AsBytes # | |
Generic AsBytes # | |
ToJSON AsBytes # | |
Defined in Maestro.Types.V1.General | |
FromJSON AsBytes # | |
Defined in Maestro.Types.V1.General parseJSON ∷ Value → Parser AsBytes parseJSONList ∷ Value → Parser [AsBytes] | |
type Rep AsBytes # | |
Defined in Maestro.Types.V1.General |
data ProtocolVersion #
Current accepted protocol version. An increase in the major version indicates a hard fork, and the minor version a soft fork (meaning old software can validate but not produce new blocks).
ProtocolVersion | |
|
Instances
data MemoryCpuWith i #
Pair of memory & cpu units for the given type.
MemoryCpuWith | |
|
Instances
A cost model is a vector of coefficients that are used to compute the execution units required to execute a script. Its specifics depend on specific versions of the Plutus interpreter it is used with.
Instances
Eq CostModel # | |
Show CostModel # | |
ToJSON CostModel # | |
Defined in Maestro.Types.V1.General toEncoding ∷ CostModel → Encoding toJSONList ∷ [CostModel] → Value toEncodingList ∷ [CostModel] → Encoding | |
FromJSON CostModel # | |
Defined in Maestro.Types.V1.General parseJSON ∷ Value → Parser CostModel parseJSONList ∷ Value → Parser [CostModel] |
data CostModels #
Cost models (see CostModel
) for script languages that use them.
Instances
newtype MaestroRational #
Maestro's represents rational numbers as string with numerator and denominator demarcated by '/', example: "1/3"
.
Instances
Eq MaestroRational # | |
Defined in Maestro.Types.V1.General (==) ∷ MaestroRational → MaestroRational → Bool # (/=) ∷ MaestroRational → MaestroRational → Bool # | |
Show MaestroRational # | |
Defined in Maestro.Types.V1.General showsPrec ∷ Int → MaestroRational → ShowS # show ∷ MaestroRational → String # showList ∷ [MaestroRational] → ShowS # | |
ToJSON MaestroRational # | |
Defined in Maestro.Types.V1.General toJSON ∷ MaestroRational → Value toEncoding ∷ MaestroRational → Encoding toJSONList ∷ [MaestroRational] → Value toEncodingList ∷ [MaestroRational] → Encoding | |
FromJSON MaestroRational # | |
Defined in Maestro.Types.V1.General parseJSON ∷ Value → Parser MaestroRational parseJSONList ∷ Value → Parser [MaestroRational] |
textToMaestroRational ∷ Text → Either String MaestroRational #
Parses given Text
to MaestroRational
.
textFromMaestroRational ∷ MaestroRational → Text #
Get original Text
from MaestroRational
.
data ConstitutionalCommittee #
Instances
data ProtocolParametersUpdateDRep #
Instances
data DRepVotingThresholds #
DRep voting thresholds.
Instances
newtype ProtocolParametersUpdateStakePool #
Instances
data StakePoolVotingThresholds #
Stake pool voting thresholds.
Instances
data MinFeeReferenceScripts #
Instances
data TimestampedProtocolParameters #
Timestamped ProtocolParameters
response.
TimestampedProtocolParameters | |
|
Instances
data ProtocolParameters #
Protocol parameters for the latest epoch.
ProtocolParameters | |
|
Instances
Types for /chain-tip
endpoint
data TimestampedChainTip #
Timestamped ChainTip
response.
Instances
Details about the most recently adopted block.
ChainTip | |
|
Instances
Eq ChainTip # | |
Show ChainTip # | |
Generic ChainTip # | |
ToJSON ChainTip # | |
Defined in Maestro.Types.V1.General toEncoding ∷ ChainTip → Encoding toJSONList ∷ [ChainTip] → Value toEncodingList ∷ [ChainTip] → Encoding | |
FromJSON ChainTip # | |
Defined in Maestro.Types.V1.General parseJSON ∷ Value → Parser ChainTip parseJSONList ∷ Value → Parser [ChainTip] | |
type Rep ChainTip # | |
Defined in Maestro.Types.V1.General type Rep ChainTip = D1 ('MetaData "ChainTip" "Maestro.Types.V1.General" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "ChainTip" 'PrefixI 'True) (S1 ('MetaSel ('Just "chainTipBlockHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash) :*: (S1 ('MetaSel ('Just "chainTipSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "chainTipHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))) |