Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SimpleScript'
- data PlutusScriptV1
- data PlutusScriptV2
- data PlutusScriptV3
- data ScriptLanguage lang where
- SimpleScriptLanguage :: ScriptLanguage SimpleScript'
- PlutusScriptLanguage :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> ScriptLanguage lang
- data PlutusScriptVersion lang where
- data AnyScriptLanguage where
- AnyScriptLanguage :: forall lang. ScriptLanguage lang -> AnyScriptLanguage
- data AnyPlutusScriptVersion where
- AnyPlutusScriptVersion :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> AnyPlutusScriptVersion
- class IsScriptLanguage lang => IsPlutusScriptLanguage lang where
- class HasTypeProxy lang => IsScriptLanguage lang where
- scriptLanguage :: ScriptLanguage lang
- data Script lang where
- SimpleScript :: !SimpleScript -> Script SimpleScript'
- PlutusScript :: forall lang. IsPlutusScriptLanguage lang => !(PlutusScriptVersion lang) -> !(PlutusScript lang) -> Script lang
- data ScriptInAnyLang where
- ScriptInAnyLang :: forall lang. ScriptLanguage lang -> Script lang -> ScriptInAnyLang
- toScriptInAnyLang :: Script lang -> ScriptInAnyLang
- data ScriptInEra era where
- ScriptInEra :: forall lang era. ScriptLanguageInEra lang era -> Script lang -> ScriptInEra era
- toScriptInEra :: ShelleyBasedEra era -> ScriptInAnyLang -> Maybe (ScriptInEra era)
- eraOfScriptInEra :: ScriptInEra era -> ShelleyBasedEra era
- class HasScriptLanguageInEra lang era where
- scriptLanguageInEra :: ScriptLanguageInEra lang era
- class ToAlonzoScript lang era where
- toLedgerScript :: PlutusScript lang -> AlonzoScript (ShelleyLedgerEra era)
- data ReferenceScript era where
- ReferenceScript :: forall era. BabbageEraOnwards era -> ScriptInAnyLang -> ReferenceScript era
- ReferenceScriptNone :: forall era. ReferenceScript era
- refScriptToShelleyScript :: ShelleyBasedEra era -> ReferenceScript era -> StrictMaybe (Script (ShelleyLedgerEra era))
- data WitCtxTxIn
- data WitCtxMint
- data WitCtxStake
- data WitCtx witctx where
- data ScriptWitness witctx era where
- SimpleScriptWitness :: forall era witctx. ScriptLanguageInEra SimpleScript' era -> SimpleScriptOrReferenceInput SimpleScript' -> ScriptWitness witctx era
- PlutusScriptWitness :: forall lang era witctx. IsPlutusScriptLanguage lang => ScriptLanguageInEra lang era -> PlutusScriptVersion lang -> PlutusScriptOrReferenceInput lang -> ScriptDatum witctx -> ScriptRedeemer -> ExecutionUnits -> ScriptWitness witctx era
- getScriptWitnessReferenceInput :: ScriptWitness witctx era -> Maybe TxIn
- getScriptWitnessScript :: ScriptWitness witctx era -> Maybe (ScriptInEra era)
- getScriptWitnessReferenceInputOrScript :: ScriptWitness witctx era -> Either (ScriptInEra era) TxIn
- data Witness witctx era where
- KeyWitness :: forall witctx era. KeyWitnessInCtx witctx -> Witness witctx era
- ScriptWitness :: forall witctx era. ScriptWitnessInCtx witctx -> ScriptWitness witctx era -> Witness witctx era
- data KeyWitnessInCtx witctx where
- data ScriptWitnessInCtx witctx where
- class IsScriptWitnessInCtx ctx where
- data ScriptDatum witctx where
- type ScriptRedeemer = HashableScriptData
- data ScriptLanguageInEra lang era where
- SimpleScriptInShelley :: ScriptLanguageInEra SimpleScript' ShelleyEra
- SimpleScriptInAllegra :: ScriptLanguageInEra SimpleScript' AllegraEra
- SimpleScriptInMary :: ScriptLanguageInEra SimpleScript' MaryEra
- SimpleScriptInAlonzo :: ScriptLanguageInEra SimpleScript' AlonzoEra
- SimpleScriptInBabbage :: ScriptLanguageInEra SimpleScript' BabbageEra
- SimpleScriptInConway :: ScriptLanguageInEra SimpleScript' ConwayEra
- PlutusScriptV1InAlonzo :: ScriptLanguageInEra PlutusScriptV1 AlonzoEra
- PlutusScriptV1InBabbage :: ScriptLanguageInEra PlutusScriptV1 BabbageEra
- PlutusScriptV1InConway :: ScriptLanguageInEra PlutusScriptV1 ConwayEra
- PlutusScriptV2InBabbage :: ScriptLanguageInEra PlutusScriptV2 BabbageEra
- PlutusScriptV2InConway :: ScriptLanguageInEra PlutusScriptV2 ConwayEra
- PlutusScriptV3InConway :: ScriptLanguageInEra PlutusScriptV3 ConwayEra
- scriptLanguageSupportedInEra :: ShelleyBasedEra era -> ScriptLanguage lang -> Maybe (ScriptLanguageInEra lang era)
- sbeToSimpleScriptLanguageInEra :: ShelleyBasedEra era -> ScriptLanguageInEra SimpleScript' era
- languageOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ScriptLanguage lang
- eraOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ShelleyBasedEra era
- data SimpleScript
- data SimpleScriptOrReferenceInput lang
- data PlutusScript lang where
- PlutusScriptSerialised :: forall lang. ShortByteString -> PlutusScript lang
- data PlutusScriptOrReferenceInput lang
- = PScript (PlutusScript lang)
- | PReferenceScript TxIn
- examplePlutusScriptAlwaysSucceeds :: WitCtx witctx -> PlutusScript PlutusScriptV1
- examplePlutusScriptAlwaysFails :: WitCtx witctx -> PlutusScript PlutusScriptV1
- data ScriptData
- data ExecutionUnits = ExecutionUnits {}
- newtype ScriptHash = ScriptHash (ScriptHash StandardCrypto)
- hashScript :: Script lang -> ScriptHash
- toShelleyScript :: ScriptInEra era -> Script (ShelleyLedgerEra era)
- fromShelleyBasedScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ScriptInEra era
- toShelleyMultiSig :: SimpleScript -> Either MultiSigError (MultiSig (ShelleyLedgerEra ShelleyEra))
- fromShelleyMultiSig :: MultiSig (ShelleyLedgerEra ShelleyEra) -> SimpleScript
- toAllegraTimelock :: (AllegraEraScript era, EraCrypto era ~ StandardCrypto, NativeScript era ~ Timelock era) => SimpleScript -> NativeScript era
- fromAllegraTimelock :: (AllegraEraScript era, EraCrypto era ~ StandardCrypto) => NativeScript era -> SimpleScript
- toAlonzoExUnits :: ExecutionUnits -> ExUnits
- fromAlonzoExUnits :: ExUnits -> ExecutionUnits
- toShelleyScriptHash :: ScriptHash -> ScriptHash StandardCrypto
- fromShelleyScriptHash :: ScriptHash StandardCrypto -> ScriptHash
- toPlutusData :: ScriptData -> Data
- fromPlutusData :: Data -> ScriptData
- toAlonzoData :: Era ledgerera => HashableScriptData -> Data ledgerera
- fromAlonzoData :: Data ledgerera -> HashableScriptData
- toAlonzoLanguage :: AnyPlutusScriptVersion -> Language
- fromAlonzoLanguage :: Language -> AnyPlutusScriptVersion
- fromShelleyScriptToReferenceScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ReferenceScript era
- scriptInEraToRefScript :: ScriptInEra era -> ReferenceScript era
- data family AsType t
- data family Hash keyrole
Languages
data SimpleScript' Source #
Instances
HasTypeProxy SimpleScript' Source # | |||||
Defined in Cardano.Api.Script
| |||||
IsScriptLanguage SimpleScript' Source # | |||||
Defined in Cardano.Api.Script | |||||
data AsType SimpleScript' Source # | |||||
Defined in Cardano.Api.Script |
data PlutusScriptV1 Source #
The original simple script language which supports
- require a signature from a given key (by verification key hash)
- n-way and combinator
- n-way or combinator
- m-of-n combinator
This version of the language was introduced in the ShelleyEra
.
The second version of the simple script language. It has all the features of the original simple script language plus new atomic predicates:
- require the time be before a given slot number
- require the time be after a given slot number
This version of the language was introduced in the AllegraEra
.
However we opt for a single type level tag SimpleScript'
as the second version of
of the language introduced in the Allegra era is a superset of the language introduced
in the Shelley era.
Place holder type to show what the pattern is to extend to multiple languages, not just multiple versions of a single language.
Instances
data PlutusScriptV2 Source #
Instances
HasTypeProxy PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Script
| |||||
IsPlutusScriptLanguage PlutusScriptV2 Source # | |||||
IsScriptLanguage PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Script | |||||
HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # | |||||
HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # | |||||
ToAlonzoScript PlutusScriptV2 BabbageEra Source # | |||||
Defined in Cardano.Api.Script | |||||
ToAlonzoScript PlutusScriptV2 ConwayEra Source # | |||||
Defined in Cardano.Api.Script | |||||
data AsType PlutusScriptV2 Source # | |||||
Defined in Cardano.Api.Script |
data PlutusScriptV3 Source #
Instances
HasTypeProxy PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Script
| |||||
IsPlutusScriptLanguage PlutusScriptV3 Source # | |||||
IsScriptLanguage PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Script | |||||
HasScriptLanguageInEra PlutusScriptV3 ConwayEra Source # | |||||
ToAlonzoScript PlutusScriptV3 ConwayEra Source # | |||||
Defined in Cardano.Api.Script | |||||
data AsType PlutusScriptV3 Source # | |||||
Defined in Cardano.Api.Script |
data ScriptLanguage lang where Source #
SimpleScriptLanguage :: ScriptLanguage SimpleScript' | |
PlutusScriptLanguage :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> ScriptLanguage lang |
Instances
TestEquality ScriptLanguage Source # | |
Defined in Cardano.Api.Script testEquality :: ScriptLanguage a -> ScriptLanguage b -> Maybe (a :~: b) Source # | |
Show (ScriptLanguage lang) Source # | |
Defined in Cardano.Api.Script | |
Eq (ScriptLanguage lang) Source # | |
Defined in Cardano.Api.Script (==) :: ScriptLanguage lang -> ScriptLanguage lang -> Bool Source # (/=) :: ScriptLanguage lang -> ScriptLanguage lang -> Bool Source # |
data PlutusScriptVersion lang where Source #
PlutusScriptV1 :: PlutusScriptVersion PlutusScriptV1 | |
PlutusScriptV2 :: PlutusScriptVersion PlutusScriptV2 | |
PlutusScriptV3 :: PlutusScriptVersion PlutusScriptV3 |
Instances
TestEquality PlutusScriptVersion Source # | |
Defined in Cardano.Api.Script testEquality :: PlutusScriptVersion a -> PlutusScriptVersion b -> Maybe (a :~: b) Source # | |
Show (PlutusScriptVersion lang) Source # | |
Defined in Cardano.Api.Script | |
Eq (PlutusScriptVersion lang) Source # | |
Defined in Cardano.Api.Script (==) :: PlutusScriptVersion lang -> PlutusScriptVersion lang -> Bool Source # (/=) :: PlutusScriptVersion lang -> PlutusScriptVersion lang -> Bool Source # |
data AnyScriptLanguage where Source #
AnyScriptLanguage :: forall lang. ScriptLanguage lang -> AnyScriptLanguage |
Instances
Bounded AnyScriptLanguage Source # | |
Defined in Cardano.Api.Script | |
Enum AnyScriptLanguage Source # | |
Defined in Cardano.Api.Script succ :: AnyScriptLanguage -> AnyScriptLanguage Source # pred :: AnyScriptLanguage -> AnyScriptLanguage Source # toEnum :: Int -> AnyScriptLanguage Source # fromEnum :: AnyScriptLanguage -> Int Source # enumFrom :: AnyScriptLanguage -> [AnyScriptLanguage] Source # enumFromThen :: AnyScriptLanguage -> AnyScriptLanguage -> [AnyScriptLanguage] Source # enumFromTo :: AnyScriptLanguage -> AnyScriptLanguage -> [AnyScriptLanguage] Source # enumFromThenTo :: AnyScriptLanguage -> AnyScriptLanguage -> AnyScriptLanguage -> [AnyScriptLanguage] Source # | |
Show AnyScriptLanguage Source # | |
Defined in Cardano.Api.Script | |
Eq AnyScriptLanguage Source # | |
Defined in Cardano.Api.Script (==) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (/=) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # | |
Ord AnyScriptLanguage Source # | |
Defined in Cardano.Api.Script compare :: AnyScriptLanguage -> AnyScriptLanguage -> Ordering Source # (<) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (<=) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (>) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # (>=) :: AnyScriptLanguage -> AnyScriptLanguage -> Bool Source # max :: AnyScriptLanguage -> AnyScriptLanguage -> AnyScriptLanguage Source # min :: AnyScriptLanguage -> AnyScriptLanguage -> AnyScriptLanguage Source # |
data AnyPlutusScriptVersion where Source #
AnyPlutusScriptVersion :: forall lang. IsPlutusScriptLanguage lang => PlutusScriptVersion lang -> AnyPlutusScriptVersion |
Instances
FromJSON AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script parseJSON :: Value -> Parser AnyPlutusScriptVersion # parseJSONList :: Value -> Parser [AnyPlutusScriptVersion] # | |
FromJSONKey AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script fromJSONKey :: FromJSONKeyFunction AnyPlutusScriptVersion fromJSONKeyList :: FromJSONKeyFunction [AnyPlutusScriptVersion] | |
ToJSON AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script toJSON :: AnyPlutusScriptVersion -> Value # toEncoding :: AnyPlutusScriptVersion -> Encoding # toJSONList :: [AnyPlutusScriptVersion] -> Value # toEncodingList :: [AnyPlutusScriptVersion] -> Encoding # omitField :: AnyPlutusScriptVersion -> Bool # | |
ToJSONKey AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script toJSONKey :: ToJSONKeyFunction AnyPlutusScriptVersion toJSONKeyList :: ToJSONKeyFunction [AnyPlutusScriptVersion] | |
Bounded AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script | |
Enum AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script succ :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # pred :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # toEnum :: Int -> AnyPlutusScriptVersion Source # fromEnum :: AnyPlutusScriptVersion -> Int Source # enumFrom :: AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # enumFromThen :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # enumFromTo :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # enumFromThenTo :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> [AnyPlutusScriptVersion] Source # | |
Show AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script | |
FromCBOR AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script | |
ToCBOR AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script toCBOR :: AnyPlutusScriptVersion -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy AnyPlutusScriptVersion -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [AnyPlutusScriptVersion] -> Size Source # | |
Eq AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script | |
Ord AnyPlutusScriptVersion Source # | |
Defined in Cardano.Api.Script compare :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Ordering Source # (<) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (<=) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (>) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # (>=) :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> Bool Source # max :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # min :: AnyPlutusScriptVersion -> AnyPlutusScriptVersion -> AnyPlutusScriptVersion Source # |
class IsScriptLanguage lang => IsPlutusScriptLanguage lang where Source #
class HasTypeProxy lang => IsScriptLanguage lang where Source #
scriptLanguage :: ScriptLanguage lang Source #
Instances
IsScriptLanguage PlutusScriptV1 Source # | |
Defined in Cardano.Api.Script | |
IsScriptLanguage PlutusScriptV2 Source # | |
Defined in Cardano.Api.Script | |
IsScriptLanguage PlutusScriptV3 Source # | |
Defined in Cardano.Api.Script | |
IsScriptLanguage SimpleScript' Source # | |
Defined in Cardano.Api.Script |
Scripts in a specific language
data Script lang where Source #
A script in a particular language.
See also ScriptInAnyLang
for a script in any of the known languages.
See also ScriptInEra
for a script in a language that is available within
a particular era.
Note that some but not all scripts have an external JSON syntax, hence this
type has no JSON serialisation instances. The SimpleScript
family of
languages do have a JSON syntax and thus have ToJSON
/FromJSON
instances.
SimpleScript :: !SimpleScript -> Script SimpleScript' | |
PlutusScript :: forall lang. IsPlutusScriptLanguage lang => !(PlutusScriptVersion lang) -> !(PlutusScript lang) -> Script lang |
Instances
Show (Script lang) Source # | |||||
HasTypeProxy lang => HasTypeProxy (Script lang) Source # | |||||
Defined in Cardano.Api.Script
| |||||
IsScriptLanguage lang => SerialiseAsCBOR (Script lang) Source # | |||||
Defined in Cardano.Api.Script serialiseToCBOR :: Script lang -> ByteString Source # deserialiseFromCBOR :: AsType (Script lang) -> ByteString -> Either DecoderError (Script lang) Source # | |||||
IsScriptLanguage lang => HasTextEnvelope (Script lang) Source # | |||||
Defined in Cardano.Api.Script textEnvelopeType :: AsType (Script lang) -> TextEnvelopeType Source # textEnvelopeDefaultDescr :: Script lang -> TextEnvelopeDescr Source # | |||||
Eq (Script lang) Source # | |||||
data AsType (Script lang) Source # | |||||
Defined in Cardano.Api.Script |
Scripts in any language
data ScriptInAnyLang where Source #
Sometimes it is necessary to handle all languages without making static type distinctions between languages. For example, when reading external input, or before the era context is known.
Use toScriptInEra
to convert to a script in the context of an era.
ScriptInAnyLang :: forall lang. ScriptLanguage lang -> Script lang -> ScriptInAnyLang |
Instances
FromJSON ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Script parseJSON :: Value -> Parser ScriptInAnyLang # parseJSONList :: Value -> Parser [ScriptInAnyLang] # | |||||
ToJSON ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Script toJSON :: ScriptInAnyLang -> Value # toEncoding :: ScriptInAnyLang -> Encoding # toJSONList :: [ScriptInAnyLang] -> Value # toEncodingList :: [ScriptInAnyLang] -> Encoding # omitField :: ScriptInAnyLang -> Bool # | |||||
Show ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Script | |||||
HasTypeProxy ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Script
| |||||
Eq ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Script (==) :: ScriptInAnyLang -> ScriptInAnyLang -> Bool Source # (/=) :: ScriptInAnyLang -> ScriptInAnyLang -> Bool Source # | |||||
data AsType ScriptInAnyLang Source # | |||||
Defined in Cardano.Api.Script |
toScriptInAnyLang :: Script lang -> ScriptInAnyLang Source #
Convert a script in a specific statically-known language to a
ScriptInAnyLang
.
No inverse to this is provided, just do case analysis on the ScriptLanguage
field within the ScriptInAnyLang
constructor.
Scripts in an era
data ScriptInEra era where Source #
ScriptInEra :: forall lang era. ScriptLanguageInEra lang era -> Script lang -> ScriptInEra era |
Instances
Show (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Script | |||||
HasTypeProxy era => HasTypeProxy (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Script
proxyToAsType :: Proxy (ScriptInEra era) -> AsType (ScriptInEra era) Source # | |||||
Eq (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Script (==) :: ScriptInEra era -> ScriptInEra era -> Bool Source # (/=) :: ScriptInEra era -> ScriptInEra era -> Bool Source # | |||||
data AsType (ScriptInEra era) Source # | |||||
Defined in Cardano.Api.Script |
toScriptInEra :: ShelleyBasedEra era -> ScriptInAnyLang -> Maybe (ScriptInEra era) Source #
Given a target era and a script in some language, check if the language is
supported in that era, and if so return a ScriptInEra
.
eraOfScriptInEra :: ScriptInEra era -> ShelleyBasedEra era Source #
class HasScriptLanguageInEra lang era where Source #
Smart-constructor for ScriptLanguageInEra
to write functions
manipulating scripts that do not commit to a particular era.
scriptLanguageInEra :: ScriptLanguageInEra lang era Source #
Instances
HasScriptLanguageInEra PlutusScriptV1 AlonzoEra Source # | |
HasScriptLanguageInEra PlutusScriptV1 BabbageEra Source # | |
HasScriptLanguageInEra PlutusScriptV1 ConwayEra Source # | |
HasScriptLanguageInEra PlutusScriptV2 BabbageEra Source # | |
HasScriptLanguageInEra PlutusScriptV2 ConwayEra Source # | |
HasScriptLanguageInEra PlutusScriptV3 ConwayEra Source # | |
class ToAlonzoScript lang era where Source #
toLedgerScript :: PlutusScript lang -> AlonzoScript (ShelleyLedgerEra era) Source #
Instances
ToAlonzoScript PlutusScriptV1 BabbageEra Source # | |
Defined in Cardano.Api.Script | |
ToAlonzoScript PlutusScriptV1 ConwayEra Source # | |
Defined in Cardano.Api.Script | |
ToAlonzoScript PlutusScriptV2 BabbageEra Source # | |
Defined in Cardano.Api.Script | |
ToAlonzoScript PlutusScriptV2 ConwayEra Source # | |
Defined in Cardano.Api.Script | |
ToAlonzoScript PlutusScriptV3 ConwayEra Source # | |
Defined in Cardano.Api.Script |
Reference scripts
data ReferenceScript era where Source #
A reference scripts is a script that can exist at a transaction output. This greatly reduces the size of transactions that use scripts as the script no longer has to be added to the transaction, they can now be referenced via a transaction output.
ReferenceScript :: forall era. BabbageEraOnwards era -> ScriptInAnyLang -> ReferenceScript era | |
ReferenceScriptNone :: forall era. ReferenceScript era |
Instances
IsCardanoEra era => FromJSON (ReferenceScript era) Source # | |
Defined in Cardano.Api.Script parseJSON :: Value -> Parser (ReferenceScript era) # parseJSONList :: Value -> Parser [ReferenceScript era] # omittedField :: Maybe (ReferenceScript era) # | |
IsCardanoEra era => ToJSON (ReferenceScript era) Source # | |
Defined in Cardano.Api.Script toJSON :: ReferenceScript era -> Value # toEncoding :: ReferenceScript era -> Encoding # toJSONList :: [ReferenceScript era] -> Value # toEncodingList :: [ReferenceScript era] -> Encoding # omitField :: ReferenceScript era -> Bool # | |
Show (ReferenceScript era) Source # | |
Defined in Cardano.Api.Script | |
Eq (ReferenceScript era) Source # | |
Defined in Cardano.Api.Script (==) :: ReferenceScript era -> ReferenceScript era -> Bool Source # (/=) :: ReferenceScript era -> ReferenceScript era -> Bool Source # |
refScriptToShelleyScript :: ShelleyBasedEra era -> ReferenceScript era -> StrictMaybe (Script (ShelleyLedgerEra era)) Source #
Use of a script in an era as a witness
data WitCtxTxIn Source #
A tag type for the context in which a script is used in a transaction.
This type tags the context as being to witness a transaction input.
Instances
data WitCtxMint Source #
A tag type for the context in which a script is used in a transaction.
This type tags the context as being to witness minting.
Instances
data WitCtxStake Source #
A tag type for the context in which a script is used in a transaction.
This type tags the context as being to witness the use of stake addresses in certificates, withdrawals, voting and proposals.
Instances
data WitCtx witctx where Source #
This GADT provides a value-level representation of all the witness contexts. This enables pattern matching on the context to allow them to be treated in a non-uniform way.
data ScriptWitness witctx era where Source #
A use of a script within a transaction body to witness that something is being used in an authorised manner. That can be
- spending a transaction input
- minting tokens
- using a certificate (stake address certs specifically)
- withdrawing from a reward account
For simple script languages, the use of the script is the same in all contexts. For Plutus scripts, using a script involves supplying a redeemer. In addition, Plutus scripts used for spending inputs must also supply the datum value used when originally creating the TxOut that is now being spent.
SimpleScriptWitness :: forall era witctx. ScriptLanguageInEra SimpleScript' era -> SimpleScriptOrReferenceInput SimpleScript' -> ScriptWitness witctx era | |
PlutusScriptWitness :: forall lang era witctx. IsPlutusScriptLanguage lang => ScriptLanguageInEra lang era -> PlutusScriptVersion lang -> PlutusScriptOrReferenceInput lang -> ScriptDatum witctx -> ScriptRedeemer -> ExecutionUnits -> ScriptWitness witctx era |
Instances
Show (ScriptWitness witctx era) Source # | |
Defined in Cardano.Api.Script | |
Eq (ScriptWitness witctx era) Source # | |
Defined in Cardano.Api.Script (==) :: ScriptWitness witctx era -> ScriptWitness witctx era -> Bool Source # (/=) :: ScriptWitness witctx era -> ScriptWitness witctx era -> Bool Source # |
getScriptWitnessReferenceInput :: ScriptWitness witctx era -> Maybe TxIn Source #
getScriptWitnessScript :: ScriptWitness witctx era -> Maybe (ScriptInEra era) Source #
getScriptWitnessReferenceInputOrScript :: ScriptWitness witctx era -> Either (ScriptInEra era) TxIn Source #
We cannot always extract a script from a script witness due to reference scripts.
Reference scripts exist in the UTxO, so without access to the UTxO we cannot
retrieve the script.
So in the cases for script reference, the result contains Right TxIn
.
data Witness witctx era where Source #
KeyWitness :: forall witctx era. KeyWitnessInCtx witctx -> Witness witctx era | |
ScriptWitness :: forall witctx era. ScriptWitnessInCtx witctx -> ScriptWitness witctx era -> Witness witctx era |
data KeyWitnessInCtx witctx where Source #
KeyWitnessForSpending :: KeyWitnessInCtx WitCtxTxIn | |
KeyWitnessForStakeAddr :: KeyWitnessInCtx WitCtxStake |
Instances
Show (KeyWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Script | |
Eq (KeyWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Script (==) :: KeyWitnessInCtx witctx -> KeyWitnessInCtx witctx -> Bool Source # (/=) :: KeyWitnessInCtx witctx -> KeyWitnessInCtx witctx -> Bool Source # |
data ScriptWitnessInCtx witctx where Source #
ScriptWitnessForSpending :: ScriptWitnessInCtx WitCtxTxIn | |
ScriptWitnessForMinting :: ScriptWitnessInCtx WitCtxMint | |
ScriptWitnessForStakeAddr :: ScriptWitnessInCtx WitCtxStake |
Instances
Show (ScriptWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Script | |
Eq (ScriptWitnessInCtx witctx) Source # | |
Defined in Cardano.Api.Script (==) :: ScriptWitnessInCtx witctx -> ScriptWitnessInCtx witctx -> Bool Source # (/=) :: ScriptWitnessInCtx witctx -> ScriptWitnessInCtx witctx -> Bool Source # |
class IsScriptWitnessInCtx ctx where Source #
Instances
IsScriptWitnessInCtx WitCtxMint Source # | |
Defined in Cardano.Api.Script | |
IsScriptWitnessInCtx WitCtxStake Source # | |
Defined in Cardano.Api.Script | |
IsScriptWitnessInCtx WitCtxTxIn Source # | |
Defined in Cardano.Api.Script |
data ScriptDatum witctx where Source #
ScriptDatumForTxIn :: Maybe HashableScriptData -> ScriptDatum WitCtxTxIn | |
InlineScriptDatum :: ScriptDatum WitCtxTxIn | |
NoScriptDatumForMint :: ScriptDatum WitCtxMint | |
NoScriptDatumForStake :: ScriptDatum WitCtxStake |
Instances
Show (ScriptDatum witctx) Source # | |
Defined in Cardano.Api.Script | |
Eq (ScriptDatum witctx) Source # | |
Defined in Cardano.Api.Script (==) :: ScriptDatum witctx -> ScriptDatum witctx -> Bool Source # (/=) :: ScriptDatum witctx -> ScriptDatum witctx -> Bool Source # |
type ScriptRedeemer = HashableScriptData Source #
Languages supported in each era
data ScriptLanguageInEra lang era where Source #
SimpleScriptInShelley :: ScriptLanguageInEra SimpleScript' ShelleyEra | |
SimpleScriptInAllegra :: ScriptLanguageInEra SimpleScript' AllegraEra | |
SimpleScriptInMary :: ScriptLanguageInEra SimpleScript' MaryEra | |
SimpleScriptInAlonzo :: ScriptLanguageInEra SimpleScript' AlonzoEra | |
SimpleScriptInBabbage :: ScriptLanguageInEra SimpleScript' BabbageEra | |
SimpleScriptInConway :: ScriptLanguageInEra SimpleScript' ConwayEra | |
PlutusScriptV1InAlonzo :: ScriptLanguageInEra PlutusScriptV1 AlonzoEra | |
PlutusScriptV1InBabbage :: ScriptLanguageInEra PlutusScriptV1 BabbageEra | |
PlutusScriptV1InConway :: ScriptLanguageInEra PlutusScriptV1 ConwayEra | |
PlutusScriptV2InBabbage :: ScriptLanguageInEra PlutusScriptV2 BabbageEra | |
PlutusScriptV2InConway :: ScriptLanguageInEra PlutusScriptV2 ConwayEra | |
PlutusScriptV3InConway :: ScriptLanguageInEra PlutusScriptV3 ConwayEra |
Instances
ToJSON (ScriptLanguageInEra lang era) Source # | |
Defined in Cardano.Api.Script toJSON :: ScriptLanguageInEra lang era -> Value # toEncoding :: ScriptLanguageInEra lang era -> Encoding # toJSONList :: [ScriptLanguageInEra lang era] -> Value # toEncodingList :: [ScriptLanguageInEra lang era] -> Encoding # omitField :: ScriptLanguageInEra lang era -> Bool # | |
Show (ScriptLanguageInEra lang era) Source # | |
Defined in Cardano.Api.Script | |
Eq (ScriptLanguageInEra lang era) Source # | |
Defined in Cardano.Api.Script (==) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # (/=) :: ScriptLanguageInEra lang era -> ScriptLanguageInEra lang era -> Bool Source # |
scriptLanguageSupportedInEra :: ShelleyBasedEra era -> ScriptLanguage lang -> Maybe (ScriptLanguageInEra lang era) Source #
Check if a given script language is supported in a given era, and if so return the evidence.
sbeToSimpleScriptLanguageInEra :: ShelleyBasedEra era -> ScriptLanguageInEra SimpleScript' era Source #
languageOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ScriptLanguage lang Source #
eraOfScriptLanguageInEra :: ScriptLanguageInEra lang era -> ShelleyBasedEra era Source #
The simple script language
data SimpleScript Source #
RequireSignature !(Hash PaymentKey) | |
RequireTimeBefore !SlotNo | |
RequireTimeAfter !SlotNo | |
RequireAllOf ![SimpleScript] | |
RequireAnyOf ![SimpleScript] | |
RequireMOf !Int ![SimpleScript] |
Instances
FromJSON SimpleScript Source # | |
Defined in Cardano.Api.Script parseJSON :: Value -> Parser SimpleScript # parseJSONList :: Value -> Parser [SimpleScript] # | |
ToJSON SimpleScript Source # | |
Defined in Cardano.Api.Script toJSON :: SimpleScript -> Value # toEncoding :: SimpleScript -> Encoding # toJSONList :: [SimpleScript] -> Value # toEncodingList :: [SimpleScript] -> Encoding # omitField :: SimpleScript -> Bool # | |
Show SimpleScript Source # | |
Defined in Cardano.Api.Script | |
Eq SimpleScript Source # | |
Defined in Cardano.Api.Script (==) :: SimpleScript -> SimpleScript -> Bool Source # (/=) :: SimpleScript -> SimpleScript -> Bool Source # |
data SimpleScriptOrReferenceInput lang Source #
Instances
Show (SimpleScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Script | |
Eq (SimpleScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Script (==) :: SimpleScriptOrReferenceInput lang -> SimpleScriptOrReferenceInput lang -> Bool Source # (/=) :: SimpleScriptOrReferenceInput lang -> SimpleScriptOrReferenceInput lang -> Bool Source # |
The Plutus script language
data PlutusScript lang where Source #
Plutus scripts.
Note that Plutus scripts have a binary serialisation but no JSON serialisation.
PlutusScriptSerialised :: forall lang. ShortByteString -> PlutusScript lang |
Instances
Show (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script | |||||
HasTypeProxy lang => HasTypeProxy (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script
proxyToAsType :: Proxy (PlutusScript lang) -> AsType (PlutusScript lang) Source # | |||||
HasTypeProxy lang => SerialiseAsCBOR (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script serialiseToCBOR :: PlutusScript lang -> ByteString Source # deserialiseFromCBOR :: AsType (PlutusScript lang) -> ByteString -> Either DecoderError (PlutusScript lang) Source # | |||||
HasTypeProxy lang => SerialiseAsRawBytes (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script serialiseToRawBytes :: PlutusScript lang -> ByteString Source # deserialiseFromRawBytes :: AsType (PlutusScript lang) -> ByteString -> Either SerialiseAsRawBytesError (PlutusScript lang) Source # | |||||
IsPlutusScriptLanguage lang => HasTextEnvelope (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script textEnvelopeType :: AsType (PlutusScript lang) -> TextEnvelopeType Source # textEnvelopeDefaultDescr :: PlutusScript lang -> TextEnvelopeDescr Source # | |||||
HasTypeProxy lang => FromCBOR (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script | |||||
HasTypeProxy lang => ToCBOR (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script toCBOR :: PlutusScript lang -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (PlutusScript lang) -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [PlutusScript lang] -> Size Source # | |||||
Eq (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script (==) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (/=) :: PlutusScript lang -> PlutusScript lang -> Bool Source # | |||||
Ord (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script compare :: PlutusScript lang -> PlutusScript lang -> Ordering Source # (<) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (<=) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (>) :: PlutusScript lang -> PlutusScript lang -> Bool Source # (>=) :: PlutusScript lang -> PlutusScript lang -> Bool Source # max :: PlutusScript lang -> PlutusScript lang -> PlutusScript lang Source # min :: PlutusScript lang -> PlutusScript lang -> PlutusScript lang Source # | |||||
data AsType (PlutusScript lang) Source # | |||||
Defined in Cardano.Api.Script |
data PlutusScriptOrReferenceInput lang Source #
Scripts can now exist in the UTxO at a transaction output. We can reference these scripts via specification of a reference transaction input in order to witness spending inputs, withdrawals, certificates or to mint tokens. This datatype encapsulates this concept.
PScript (PlutusScript lang) | |
PReferenceScript TxIn |
Instances
Show (PlutusScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Script | |
Eq (PlutusScriptOrReferenceInput lang) Source # | |
Defined in Cardano.Api.Script (==) :: PlutusScriptOrReferenceInput lang -> PlutusScriptOrReferenceInput lang -> Bool Source # (/=) :: PlutusScriptOrReferenceInput lang -> PlutusScriptOrReferenceInput lang -> Bool Source # |
examplePlutusScriptAlwaysSucceeds :: WitCtx witctx -> PlutusScript PlutusScriptV1 Source #
An example Plutus script that always succeeds, irrespective of inputs.
For example, if one were to use this for a payment address then it would allow anyone to spend from it.
The exact script depends on the context in which it is to be used.
examplePlutusScriptAlwaysFails :: WitCtx witctx -> PlutusScript PlutusScriptV1 Source #
An example Plutus script that always fails, irrespective of inputs.
For example, if one were to use this for a payment address then it would be impossible for anyone to ever spend from it.
The exact script depends on the context in which it is to be used.
Script data
data ScriptData Source #
ScriptDataConstructor | |
| |
ScriptDataMap [(ScriptData, ScriptData)] | Key value pairs |
ScriptDataList [ScriptData] | Elements |
ScriptDataNumber Integer | |
ScriptDataBytes ByteString |
Instances
Show ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
HasTypeProxy ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData
| |||||
SerialiseAsCBOR ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
FromCBOR ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
ToCBOR ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData toCBOR :: ScriptData -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy ScriptData -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ScriptData] -> Size Source # | |||||
Eq ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData (==) :: ScriptData -> ScriptData -> Bool Source # (/=) :: ScriptData -> ScriptData -> Bool Source # | |||||
Ord ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData compare :: ScriptData -> ScriptData -> Ordering Source # (<) :: ScriptData -> ScriptData -> Bool Source # (<=) :: ScriptData -> ScriptData -> Bool Source # (>) :: ScriptData -> ScriptData -> Bool Source # (>=) :: ScriptData -> ScriptData -> Bool Source # max :: ScriptData -> ScriptData -> ScriptData Source # min :: ScriptData -> ScriptData -> ScriptData Source # | |||||
FromJSON (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData parseJSON :: Value -> Parser (Hash ScriptData) # parseJSONList :: Value -> Parser [Hash ScriptData] # omittedField :: Maybe (Hash ScriptData) # | |||||
FromJSONKey (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData fromJSONKey :: FromJSONKeyFunction (Hash ScriptData) fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData] | |||||
ToJSON (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData toJSON :: Hash ScriptData -> Value # toEncoding :: Hash ScriptData -> Encoding # toJSONList :: [Hash ScriptData] -> Value # toEncodingList :: [Hash ScriptData] -> Encoding # omitField :: Hash ScriptData -> Bool # | |||||
ToJSONKey (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData toJSONKey :: ToJSONKeyFunction (Hash ScriptData) toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData] | |||||
IsString (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData fromString :: String -> Hash ScriptData Source # | |||||
Show (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
SerialiseAsRawBytes (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
Eq (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData (==) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (/=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # | |||||
Ord (Hash ScriptData) Source # | |||||
Defined in Cardano.Api.ScriptData compare :: Hash ScriptData -> Hash ScriptData -> Ordering Source # (<) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (<=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # max :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # min :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # | |||||
data AsType ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData | |||||
newtype Hash ScriptData Source # | |||||
Defined in Cardano.Api.ScriptData |
Script execution units
data ExecutionUnits Source #
The units for how long a script executes for and how much memory it uses. This is used to declare the resources used by a particular use of a script.
This type is also used to describe the limits for the maximum overall execution units per transaction or per block.
ExecutionUnits | |
|
Instances
FromJSON ExecutionUnits Source # | |
Defined in Cardano.Api.Script parseJSON :: Value -> Parser ExecutionUnits # parseJSONList :: Value -> Parser [ExecutionUnits] # | |
ToJSON ExecutionUnits Source # | |
Defined in Cardano.Api.Script toJSON :: ExecutionUnits -> Value # toEncoding :: ExecutionUnits -> Encoding # toJSONList :: [ExecutionUnits] -> Value # toEncodingList :: [ExecutionUnits] -> Encoding # omitField :: ExecutionUnits -> Bool # | |
Show ExecutionUnits Source # | |
Defined in Cardano.Api.Script | |
FromCBOR ExecutionUnits Source # | |
Defined in Cardano.Api.Script | |
ToCBOR ExecutionUnits Source # | |
Defined in Cardano.Api.Script toCBOR :: ExecutionUnits -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy ExecutionUnits -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [ExecutionUnits] -> Size Source # | |
Eq ExecutionUnits Source # | |
Defined in Cardano.Api.Script (==) :: ExecutionUnits -> ExecutionUnits -> Bool Source # (/=) :: ExecutionUnits -> ExecutionUnits -> Bool Source # |
Script hashes
newtype ScriptHash Source #
We have this type separate from the Hash
type to avoid the script
hash type being parametrised by the era. The representation is era
independent, and there are many places where we want to use a script
hash where we don't want things to be era-parametrised.
Instances
FromJSON ScriptHash Source # | |||||
Defined in Cardano.Api.Script parseJSON :: Value -> Parser ScriptHash # parseJSONList :: Value -> Parser [ScriptHash] # | |||||
ToJSON ScriptHash Source # | |||||
Defined in Cardano.Api.Script toJSON :: ScriptHash -> Value # toEncoding :: ScriptHash -> Encoding # toJSONList :: [ScriptHash] -> Value # toEncodingList :: [ScriptHash] -> Encoding # omitField :: ScriptHash -> Bool # | |||||
IsString ScriptHash Source # | |||||
Defined in Cardano.Api.Script fromString :: String -> ScriptHash Source # | |||||
Show ScriptHash Source # | |||||
Defined in Cardano.Api.Script | |||||
HasTypeProxy ScriptHash Source # | |||||
Defined in Cardano.Api.Script
| |||||
SerialiseAsRawBytes ScriptHash Source # | |||||
Eq ScriptHash Source # | |||||
Defined in Cardano.Api.Script (==) :: ScriptHash -> ScriptHash -> Bool Source # (/=) :: ScriptHash -> ScriptHash -> Bool Source # | |||||
Ord ScriptHash Source # | |||||
Defined in Cardano.Api.Script compare :: ScriptHash -> ScriptHash -> Ordering Source # (<) :: ScriptHash -> ScriptHash -> Bool Source # (<=) :: ScriptHash -> ScriptHash -> Bool Source # (>) :: ScriptHash -> ScriptHash -> Bool Source # (>=) :: ScriptHash -> ScriptHash -> Bool Source # max :: ScriptHash -> ScriptHash -> ScriptHash Source # min :: ScriptHash -> ScriptHash -> ScriptHash Source # | |||||
data AsType ScriptHash Source # | |||||
Defined in Cardano.Api.Script |
hashScript :: Script lang -> ScriptHash Source #
Internal conversion functions
toShelleyScript :: ScriptInEra era -> Script (ShelleyLedgerEra era) Source #
fromShelleyBasedScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ScriptInEra era Source #
toShelleyMultiSig :: SimpleScript -> Either MultiSigError (MultiSig (ShelleyLedgerEra ShelleyEra)) Source #
Conversion for the MultiSig
language used by the Shelley era.
fromShelleyMultiSig :: MultiSig (ShelleyLedgerEra ShelleyEra) -> SimpleScript Source #
Conversion for the MultiSig
language used by the Shelley era.
toAllegraTimelock :: (AllegraEraScript era, EraCrypto era ~ StandardCrypto, NativeScript era ~ Timelock era) => SimpleScript -> NativeScript era Source #
Conversion for the Timelock
language that is shared between the
Allegra and Mary eras.
fromAllegraTimelock :: (AllegraEraScript era, EraCrypto era ~ StandardCrypto) => NativeScript era -> SimpleScript Source #
Conversion for the Timelock
language that is shared between the
Allegra and Mary eras.
toPlutusData :: ScriptData -> Data Source #
fromPlutusData :: Data -> ScriptData Source #
toAlonzoData :: Era ledgerera => HashableScriptData -> Data ledgerera Source #
fromAlonzoData :: Data ledgerera -> HashableScriptData Source #
fromShelleyScriptToReferenceScript :: ShelleyBasedEra era -> Script (ShelleyLedgerEra era) -> ReferenceScript era Source #
scriptInEraToRefScript :: ScriptInEra era -> ReferenceScript era Source #
Data family 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
data AsType AddressAny Source # | |
Defined in Cardano.Api.Address | |
data AsType ByronAddr Source # | |
Defined in Cardano.Api.Address | |
data AsType ShelleyAddr Source # | |
Defined in Cardano.Api.Address | |
data AsType StakeAddress Source # | |
Defined in Cardano.Api.Address | |
data AsType BlockHeader Source # | |
Defined in Cardano.Api.Block | |
data AsType DRepMetadata Source # | |
Defined in Cardano.Api.DRepMetadata | |
data AsType AllegraEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType AlonzoEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType BabbageEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType ByronEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType ConwayEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType MaryEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType ShelleyEra Source # | |
Defined in Cardano.Api.Eras.Core | |
data AsType GovernancePoll Source # | |
Defined in Cardano.Api.Governance.Poll | |
data AsType GovernancePollAnswer Source # | |
Defined in Cardano.Api.Governance.Poll | |
data AsType ByronKey Source # | |
Defined in Cardano.Api.Keys.Byron | |
data AsType ByronKeyLegacy Source # | |
Defined in Cardano.Api.Keys.Byron | |
data AsType KesKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
data AsType VrfKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
data AsType CommitteeColdExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType CommitteeColdKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType CommitteeHotExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType CommitteeHotKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType DRepExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType DRepKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisDelegateExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisDelegateKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType GenesisUTxOKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType PaymentExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType PaymentKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType StakeExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType StakeKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType StakePoolKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
data AsType OperationalCertificate Source # | |
data AsType OperationalCertificateIssueCounter Source # | |
data AsType PraosNonce Source # | |
Defined in Cardano.Api.ProtocolParameters | |
data AsType UpdateProposal Source # | |
Defined in Cardano.Api.ProtocolParameters | |
data AsType PlutusScriptV1 Source # | |
Defined in Cardano.Api.Script | |
data AsType PlutusScriptV2 Source # | |
Defined in Cardano.Api.Script | |
data AsType PlutusScriptV3 Source # | |
Defined in Cardano.Api.Script | |
data AsType ScriptHash Source # | |
Defined in Cardano.Api.Script | |
data AsType ScriptInAnyLang Source # | |
Defined in Cardano.Api.Script | |
data AsType SimpleScript' Source # | |
Defined in Cardano.Api.Script | |
data AsType HashableScriptData Source # | |
Defined in Cardano.Api.ScriptData | |
data AsType ScriptData Source # | |
Defined in Cardano.Api.ScriptData | |
data AsType TextEnvelope Source # | |
Defined in Cardano.Api.SerialiseTextEnvelope | |
data AsType ByronUpdateProposal Source # | |
Defined in Cardano.Api.SpecialByron | |
data AsType ByronVote Source # | |
Defined in Cardano.Api.SpecialByron | |
data AsType StakePoolMetadata Source # | |
Defined in Cardano.Api.StakePoolMetadata | |
data AsType TxId Source # | |
Defined in Cardano.Api.TxIn | |
data AsType TxMetadata Source # | |
Defined in Cardano.Api.TxMetadata | |
data AsType AssetName Source # | |
Defined in Cardano.Api.Value | |
data AsType PolicyId Source # | |
Defined in Cardano.Api.Value | |
data AsType (Address addrtype) Source # | |
Defined in Cardano.Api.Address | |
data AsType (AddressInEra era) Source # | |
Defined in Cardano.Api.Address | |
data AsType (Certificate era) Source # | |
Defined in Cardano.Api.Certificate | |
data AsType (Proposal era) Source # | |
data AsType (VotingProcedure era) Source # | |
data AsType (VotingProcedures era) Source # | |
data AsType (Hash a) Source # | |
Defined in Cardano.Api.Hash | |
data AsType (SigningKey a) Source # | |
Defined in Cardano.Api.Keys.Class | |
data AsType (VerificationKey a) Source # | |
Defined in Cardano.Api.Keys.Class | |
data AsType (PlutusScript lang) Source # | |
Defined in Cardano.Api.Script | |
data AsType (Script lang) Source # | |
Defined in Cardano.Api.Script | |
data AsType (ScriptInEra era) Source # | |
Defined in Cardano.Api.Script | |
data AsType (KeyWitness era) Source # | |
Defined in Cardano.Api.Tx.Sign | |
data AsType (Tx era) Source # | |
Defined in Cardano.Api.Tx.Sign | |
data AsType (TxBody era) Source # | |
Defined in Cardano.Api.Tx.Sign |
data family Hash keyrole Source #
Instances
FromJSON (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block parseJSON :: Value -> Parser (Hash BlockHeader) # parseJSONList :: Value -> Parser [Hash BlockHeader] # omittedField :: Maybe (Hash BlockHeader) # | |
FromJSON (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromJSON (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley parseJSON :: Value -> Parser (Hash GenesisKey) # parseJSONList :: Value -> Parser [Hash GenesisKey] # omittedField :: Maybe (Hash GenesisKey) # | |
FromJSON (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley parseJSON :: Value -> Parser (Hash PaymentKey) # parseJSONList :: Value -> Parser [Hash PaymentKey] # omittedField :: Maybe (Hash PaymentKey) # | |
FromJSON (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley parseJSON :: Value -> Parser (Hash StakePoolKey) # parseJSONList :: Value -> Parser [Hash StakePoolKey] # omittedField :: Maybe (Hash StakePoolKey) # | |
FromJSON (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData parseJSON :: Value -> Parser (Hash ScriptData) # parseJSONList :: Value -> Parser [Hash ScriptData] # omittedField :: Maybe (Hash ScriptData) # | |
FromJSONKey (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData fromJSONKey :: FromJSONKeyFunction (Hash ScriptData) fromJSONKeyList :: FromJSONKeyFunction [Hash ScriptData] | |
ToJSON (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block toJSON :: Hash BlockHeader -> Value # toEncoding :: Hash BlockHeader -> Encoding # toJSONList :: [Hash BlockHeader] -> Value # toEncodingList :: [Hash BlockHeader] -> Encoding # omitField :: Hash BlockHeader -> Bool # | |
ToJSON (Hash DRepKey) Source # | |
ToJSON (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSON :: Hash GenesisKey -> Value # toEncoding :: Hash GenesisKey -> Encoding # toJSONList :: [Hash GenesisKey] -> Value # toEncodingList :: [Hash GenesisKey] -> Encoding # omitField :: Hash GenesisKey -> Bool # | |
ToJSON (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSON :: Hash PaymentKey -> Value # toEncoding :: Hash PaymentKey -> Encoding # toJSONList :: [Hash PaymentKey] -> Value # toEncodingList :: [Hash PaymentKey] -> Encoding # omitField :: Hash PaymentKey -> Bool # | |
ToJSON (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSON :: Hash StakePoolKey -> Value # toEncoding :: Hash StakePoolKey -> Encoding # toJSONList :: [Hash StakePoolKey] -> Value # toEncodingList :: [Hash StakePoolKey] -> Encoding # omitField :: Hash StakePoolKey -> Bool # | |
ToJSON (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData toJSON :: Hash ScriptData -> Value # toEncoding :: Hash ScriptData -> Encoding # toJSONList :: [Hash ScriptData] -> Value # toEncodingList :: [Hash ScriptData] -> Encoding # omitField :: Hash ScriptData -> Bool # | |
ToJSONKey (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToJSONKey (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSONKey :: ToJSONKeyFunction (Hash GenesisKey) toJSONKeyList :: ToJSONKeyFunction [Hash GenesisKey] | |
ToJSONKey (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSONKey :: ToJSONKeyFunction (Hash PaymentKey) toJSONKeyList :: ToJSONKeyFunction [Hash PaymentKey] | |
ToJSONKey (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toJSONKey :: ToJSONKeyFunction (Hash StakePoolKey) toJSONKeyList :: ToJSONKeyFunction [Hash StakePoolKey] | |
ToJSONKey (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData toJSONKey :: ToJSONKeyFunction (Hash ScriptData) toJSONKeyList :: ToJSONKeyFunction [Hash ScriptData] | |
IsString (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block fromString :: String -> Hash BlockHeader Source # | |
IsString (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll fromString :: String -> Hash GovernancePoll Source # | |
IsString (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron | |
IsString (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron fromString :: String -> Hash ByronKeyLegacy Source # | |
IsString (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
IsString (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
IsString (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash CommitteeColdKey Source # | |
IsString (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash CommitteeHotKey Source # | |
IsString (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash DRepExtendedKey Source # | |
IsString (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash GenesisKey Source # | |
IsString (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash GenesisUTxOKey Source # | |
IsString (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash PaymentKey Source # | |
IsString (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash StakeExtendedKey Source # | |
IsString (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
IsString (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley fromString :: String -> Hash StakePoolKey Source # | |
IsString (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData fromString :: String -> Hash ScriptData Source # | |
Show (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block | |
Show (Hash DRepMetadata) Source # | |
Defined in Cardano.Api.DRepMetadata | |
Show (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll | |
Show (Hash ByronKey) Source # | |
Show (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
Show (Hash KesKey) Source # | |
Show (Hash VrfKey) Source # | |
Show (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash DRepKey) Source # | |
Show (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash StakeKey) Source # | |
Show (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Show (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData | |
Show (Hash StakePoolMetadata) Source # | |
Defined in Cardano.Api.StakePoolMetadata | |
HasTypeProxy a => HasTypeProxy (Hash a) Source # | |
Defined in Cardano.Api.Hash | |
SerialiseAsBech32 (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley bech32PrefixFor :: Hash CommitteeColdKey -> Text Source # bech32PrefixesPermitted :: AsType (Hash CommitteeColdKey) -> [Text] Source # | |
SerialiseAsBech32 (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley bech32PrefixFor :: Hash CommitteeHotKey -> Text Source # bech32PrefixesPermitted :: AsType (Hash CommitteeHotKey) -> [Text] Source # | |
SerialiseAsBech32 (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsBech32 (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley bech32PrefixFor :: Hash StakePoolKey -> Text Source # bech32PrefixesPermitted :: AsType (Hash StakePoolKey) -> [Text] Source # | |
SerialiseAsCBOR (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron serialiseToCBOR :: Hash ByronKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash ByronKey) -> ByteString -> Either DecoderError (Hash ByronKey) Source # | |
SerialiseAsCBOR (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
SerialiseAsCBOR (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos serialiseToCBOR :: Hash KesKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash KesKey) -> ByteString -> Either DecoderError (Hash KesKey) Source # | |
SerialiseAsCBOR (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos serialiseToCBOR :: Hash VrfKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash VrfKey) -> ByteString -> Either DecoderError (Hash VrfKey) Source # | |
SerialiseAsCBOR (Hash CommitteeColdExtendedKey) Source # | |
SerialiseAsCBOR (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash CommitteeHotExtendedKey) Source # | |
SerialiseAsCBOR (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash DRepKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash DRepKey) -> ByteString -> Either DecoderError (Hash DRepKey) Source # | |
SerialiseAsCBOR (Hash GenesisDelegateExtendedKey) Source # | |
SerialiseAsCBOR (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash GenesisKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash GenesisKey) -> ByteString -> Either DecoderError (Hash GenesisKey) Source # | |
SerialiseAsCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash PaymentKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash PaymentKey) -> ByteString -> Either DecoderError (Hash PaymentKey) Source # | |
SerialiseAsCBOR (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsCBOR (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley serialiseToCBOR :: Hash StakeKey -> ByteString Source # deserialiseFromCBOR :: AsType (Hash StakeKey) -> ByteString -> Either DecoderError (Hash StakeKey) Source # | |
SerialiseAsCBOR (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block | |
SerialiseAsRawBytes (Hash DRepMetadata) Source # | |
Defined in Cardano.Api.DRepMetadata | |
SerialiseAsRawBytes (Hash GovernancePoll) Source # | |
SerialiseAsRawBytes (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron | |
SerialiseAsRawBytes (Hash ByronKeyLegacy) Source # | |
SerialiseAsRawBytes (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
SerialiseAsRawBytes (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos | |
SerialiseAsRawBytes (Hash CommitteeColdExtendedKey) Source # | |
SerialiseAsRawBytes (Hash CommitteeColdKey) Source # | |
SerialiseAsRawBytes (Hash CommitteeHotExtendedKey) Source # | |
SerialiseAsRawBytes (Hash CommitteeHotKey) Source # | |
SerialiseAsRawBytes (Hash DRepExtendedKey) Source # | |
SerialiseAsRawBytes (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash GenesisDelegateExtendedKey) Source # | |
SerialiseAsRawBytes (Hash GenesisDelegateKey) Source # | |
SerialiseAsRawBytes (Hash GenesisExtendedKey) Source # | |
SerialiseAsRawBytes (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash GenesisUTxOKey) Source # | |
SerialiseAsRawBytes (Hash PaymentExtendedKey) Source # | |
SerialiseAsRawBytes (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash StakeExtendedKey) Source # | |
SerialiseAsRawBytes (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
SerialiseAsRawBytes (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData | |
SerialiseAsRawBytes (Hash StakePoolMetadata) Source # | |
FromCBOR (Hash ByronKey) Source # | |
FromCBOR (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
FromCBOR (Hash KesKey) Source # | |
FromCBOR (Hash VrfKey) Source # | |
FromCBOR (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash DRepKey) Source # | |
FromCBOR (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
FromCBOR (Hash StakeKey) Source # | |
FromCBOR (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash ByronKey) Source # | |
ToCBOR (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron | |
ToCBOR (Hash KesKey) Source # | |
ToCBOR (Hash VrfKey) Source # | |
ToCBOR (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash DRepKey) Source # | |
ToCBOR (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley toCBOR :: Hash GenesisDelegateExtendedKey -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy (Hash GenesisDelegateExtendedKey) -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [Hash GenesisDelegateExtendedKey] -> Size Source # | |
ToCBOR (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
ToCBOR (Hash StakeKey) Source # | |
ToCBOR (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block (==) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (/=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # | |
Eq (Hash DRepMetadata) Source # | |
Defined in Cardano.Api.DRepMetadata (==) :: Hash DRepMetadata -> Hash DRepMetadata -> Bool Source # (/=) :: Hash DRepMetadata -> Hash DRepMetadata -> Bool Source # | |
Eq (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll (==) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (/=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # | |
Eq (Hash ByronKey) Source # | |
Eq (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron (==) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (/=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # | |
Eq (Hash KesKey) Source # | |
Eq (Hash VrfKey) Source # | |
Eq (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (/=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # | |
Eq (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (/=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # | |
Eq (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (/=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # | |
Eq (Hash DRepKey) Source # | |
Eq (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley | |
Eq (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (/=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # | |
Eq (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (/=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # | |
Eq (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (/=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # | |
Eq (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (/=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # | |
Eq (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (/=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # | |
Eq (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (/=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # | |
Eq (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (/=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # | |
Eq (Hash StakeKey) Source # | |
Eq (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley (==) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (/=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # | |
Eq (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData (==) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (/=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # | |
Eq (Hash StakePoolMetadata) Source # | |
Defined in Cardano.Api.StakePoolMetadata (==) :: Hash StakePoolMetadata -> Hash StakePoolMetadata -> Bool Source # (/=) :: Hash StakePoolMetadata -> Hash StakePoolMetadata -> Bool Source # | |
Ord (Hash BlockHeader) Source # | |
Defined in Cardano.Api.Block compare :: Hash BlockHeader -> Hash BlockHeader -> Ordering Source # (<) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (<=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (>) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # (>=) :: Hash BlockHeader -> Hash BlockHeader -> Bool Source # max :: Hash BlockHeader -> Hash BlockHeader -> Hash BlockHeader Source # min :: Hash BlockHeader -> Hash BlockHeader -> Hash BlockHeader Source # | |
Ord (Hash GovernancePoll) Source # | |
Defined in Cardano.Api.Governance.Poll compare :: Hash GovernancePoll -> Hash GovernancePoll -> Ordering Source # (<) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (<=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (>) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # (>=) :: Hash GovernancePoll -> Hash GovernancePoll -> Bool Source # max :: Hash GovernancePoll -> Hash GovernancePoll -> Hash GovernancePoll Source # min :: Hash GovernancePoll -> Hash GovernancePoll -> Hash GovernancePoll Source # | |
Ord (Hash ByronKey) Source # | |
Defined in Cardano.Api.Keys.Byron compare :: Hash ByronKey -> Hash ByronKey -> Ordering Source # (<) :: Hash ByronKey -> Hash ByronKey -> Bool Source # (<=) :: Hash ByronKey -> Hash ByronKey -> Bool Source # (>) :: Hash ByronKey -> Hash ByronKey -> Bool Source # (>=) :: Hash ByronKey -> Hash ByronKey -> Bool Source # max :: Hash ByronKey -> Hash ByronKey -> Hash ByronKey Source # min :: Hash ByronKey -> Hash ByronKey -> Hash ByronKey Source # | |
Ord (Hash ByronKeyLegacy) Source # | |
Defined in Cardano.Api.Keys.Byron compare :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Ordering Source # (<) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (<=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (>) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # (>=) :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Bool Source # max :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Hash ByronKeyLegacy Source # min :: Hash ByronKeyLegacy -> Hash ByronKeyLegacy -> Hash ByronKeyLegacy Source # | |
Ord (Hash KesKey) Source # | |
Defined in Cardano.Api.Keys.Praos compare :: Hash KesKey -> Hash KesKey -> Ordering Source # (<) :: Hash KesKey -> Hash KesKey -> Bool Source # (<=) :: Hash KesKey -> Hash KesKey -> Bool Source # (>) :: Hash KesKey -> Hash KesKey -> Bool Source # (>=) :: Hash KesKey -> Hash KesKey -> Bool Source # | |
Ord (Hash VrfKey) Source # | |
Defined in Cardano.Api.Keys.Praos compare :: Hash VrfKey -> Hash VrfKey -> Ordering Source # (<) :: Hash VrfKey -> Hash VrfKey -> Bool Source # (<=) :: Hash VrfKey -> Hash VrfKey -> Bool Source # (>) :: Hash VrfKey -> Hash VrfKey -> Bool Source # (>=) :: Hash VrfKey -> Hash VrfKey -> Bool Source # | |
Ord (Hash CommitteeColdExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Ordering Source # (<) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (<=) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (>) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # (>=) :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Bool Source # max :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey Source # min :: Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey -> Hash CommitteeColdExtendedKey Source # | |
Ord (Hash CommitteeColdKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Ordering Source # (<) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (<=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (>) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # (>=) :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Bool Source # max :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Hash CommitteeColdKey Source # min :: Hash CommitteeColdKey -> Hash CommitteeColdKey -> Hash CommitteeColdKey Source # | |
Ord (Hash CommitteeHotExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Ordering Source # (<) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (<=) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (>) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # (>=) :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Bool Source # max :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey Source # min :: Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey -> Hash CommitteeHotExtendedKey Source # | |
Ord (Hash CommitteeHotKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Ordering Source # (<) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (<=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (>) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # (>=) :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Bool Source # max :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Hash CommitteeHotKey Source # min :: Hash CommitteeHotKey -> Hash CommitteeHotKey -> Hash CommitteeHotKey Source # | |
Ord (Hash DRepExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Ordering Source # (<) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (<=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (>) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # (>=) :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Bool Source # max :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Hash DRepExtendedKey Source # min :: Hash DRepExtendedKey -> Hash DRepExtendedKey -> Hash DRepExtendedKey Source # | |
Ord (Hash DRepKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash DRepKey -> Hash DRepKey -> Ordering Source # (<) :: Hash DRepKey -> Hash DRepKey -> Bool Source # (<=) :: Hash DRepKey -> Hash DRepKey -> Bool Source # (>) :: Hash DRepKey -> Hash DRepKey -> Bool Source # (>=) :: Hash DRepKey -> Hash DRepKey -> Bool Source # max :: Hash DRepKey -> Hash DRepKey -> Hash DRepKey Source # min :: Hash DRepKey -> Hash DRepKey -> Hash DRepKey Source # | |
Ord (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Ordering Source # (<) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (<=) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (>) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # (>=) :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Bool Source # max :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey Source # min :: Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey -> Hash GenesisDelegateExtendedKey Source # | |
Ord (Hash GenesisDelegateKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Ordering Source # (<) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (<=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (>) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # (>=) :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Bool Source # max :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Hash GenesisDelegateKey Source # min :: Hash GenesisDelegateKey -> Hash GenesisDelegateKey -> Hash GenesisDelegateKey Source # | |
Ord (Hash GenesisExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Ordering Source # (<) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (<=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (>) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # (>=) :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Bool Source # max :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Hash GenesisExtendedKey Source # min :: Hash GenesisExtendedKey -> Hash GenesisExtendedKey -> Hash GenesisExtendedKey Source # | |
Ord (Hash GenesisKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash GenesisKey -> Hash GenesisKey -> Ordering Source # (<) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (<=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (>) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # (>=) :: Hash GenesisKey -> Hash GenesisKey -> Bool Source # max :: Hash GenesisKey -> Hash GenesisKey -> Hash GenesisKey Source # min :: Hash GenesisKey -> Hash GenesisKey -> Hash GenesisKey Source # | |
Ord (Hash GenesisUTxOKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Ordering Source # (<) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (<=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (>) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # (>=) :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Bool Source # max :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Hash GenesisUTxOKey Source # min :: Hash GenesisUTxOKey -> Hash GenesisUTxOKey -> Hash GenesisUTxOKey Source # | |
Ord (Hash PaymentExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Ordering Source # (<) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (<=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (>) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # (>=) :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Bool Source # max :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Hash PaymentExtendedKey Source # min :: Hash PaymentExtendedKey -> Hash PaymentExtendedKey -> Hash PaymentExtendedKey Source # | |
Ord (Hash PaymentKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash PaymentKey -> Hash PaymentKey -> Ordering Source # (<) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (<=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (>) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # (>=) :: Hash PaymentKey -> Hash PaymentKey -> Bool Source # max :: Hash PaymentKey -> Hash PaymentKey -> Hash PaymentKey Source # min :: Hash PaymentKey -> Hash PaymentKey -> Hash PaymentKey Source # | |
Ord (Hash StakeExtendedKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Ordering Source # (<) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (<=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (>) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # (>=) :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Bool Source # max :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Hash StakeExtendedKey Source # min :: Hash StakeExtendedKey -> Hash StakeExtendedKey -> Hash StakeExtendedKey Source # | |
Ord (Hash StakeKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash StakeKey -> Hash StakeKey -> Ordering Source # (<) :: Hash StakeKey -> Hash StakeKey -> Bool Source # (<=) :: Hash StakeKey -> Hash StakeKey -> Bool Source # (>) :: Hash StakeKey -> Hash StakeKey -> Bool Source # (>=) :: Hash StakeKey -> Hash StakeKey -> Bool Source # max :: Hash StakeKey -> Hash StakeKey -> Hash StakeKey Source # min :: Hash StakeKey -> Hash StakeKey -> Hash StakeKey Source # | |
Ord (Hash StakePoolKey) Source # | |
Defined in Cardano.Api.Keys.Shelley compare :: Hash StakePoolKey -> Hash StakePoolKey -> Ordering Source # (<) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (<=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (>) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # (>=) :: Hash StakePoolKey -> Hash StakePoolKey -> Bool Source # max :: Hash StakePoolKey -> Hash StakePoolKey -> Hash StakePoolKey Source # min :: Hash StakePoolKey -> Hash StakePoolKey -> Hash StakePoolKey Source # | |
Ord (Hash ScriptData) Source # | |
Defined in Cardano.Api.ScriptData compare :: Hash ScriptData -> Hash ScriptData -> Ordering Source # (<) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (<=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>) :: Hash ScriptData -> Hash ScriptData -> Bool Source # (>=) :: Hash ScriptData -> Hash ScriptData -> Bool Source # max :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # min :: Hash ScriptData -> Hash ScriptData -> Hash ScriptData Source # | |
newtype Hash BlockHeader Source # | For now at least we use a fixed concrete hash type for all modes and era. The different eras do use different types, but it's all the same underlying representation. |
Defined in Cardano.Api.Block | |
newtype Hash DRepMetadata Source # | |
Defined in Cardano.Api.DRepMetadata | |
newtype Hash GovernancePoll Source # | |
Defined in Cardano.Api.Governance.Poll | |
newtype Hash ByronKey Source # | |
Defined in Cardano.Api.Keys.Byron | |
newtype Hash ByronKeyLegacy Source # | |
Defined in Cardano.Api.Keys.Byron | |
newtype Hash KesKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
newtype Hash VrfKey Source # | |
Defined in Cardano.Api.Keys.Praos | |
newtype Hash CommitteeColdExtendedKey Source # | |
newtype Hash CommitteeColdKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash CommitteeHotExtendedKey Source # | |
newtype Hash CommitteeHotKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash DRepExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash DRepKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisDelegateExtendedKey Source # | |
newtype Hash GenesisDelegateKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash GenesisUTxOKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash PaymentExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash PaymentKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash StakeExtendedKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash StakeKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash StakePoolKey Source # | |
Defined in Cardano.Api.Keys.Shelley | |
newtype Hash ScriptData Source # | |
Defined in Cardano.Api.ScriptData | |
newtype Hash StakePoolMetadata Source # | |
Defined in Cardano.Api.StakePoolMetadata | |
data AsType (Hash a) Source # | |
Defined in Cardano.Api.Hash |