Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides an experimental library interface that is intended to replace the existing api. It is subject to dramatic changes so use with caution.
Synopsis
- newtype UnsignedTx era = UnsignedTx (Tx (LedgerEra era))
- newtype UnsignedTxError = UnsignedTxError TxBodyError
- makeUnsignedTx :: Era era -> TxBodyContent BuildTx era -> Either TxBodyError (UnsignedTx era)
- makeKeyWitness :: Era era -> UnsignedTx era -> ShelleyWitnessSigningKey -> WitVKey 'Witness StandardCrypto
- signTx :: Era era -> [BootstrapWitness StandardCrypto] -> [WitVKey 'Witness StandardCrypto] -> UnsignedTx era -> Tx (LedgerEra era)
- convertTxBodyToUnsignedTx :: HasCallStack => ShelleyBasedEra era -> TxBody era -> UnsignedTx era
- type EraCommonConstraints era = (AlonzoEraTx (LedgerEra era), BabbageEraTxBody (LedgerEra era), EraTx (LedgerEra era), EraUTxO (LedgerEra era), EraCrypto (LedgerEra era) ~ StandardCrypto, ShelleyLedgerEra era ~ LedgerEra era, HashAnnotated (TxBody (LedgerEra era)) EraIndependentTxBody StandardCrypto, IsEra era)
- obtainCommonConstraints :: Era era -> (EraCommonConstraints era => a) -> a
- hashTxBody :: HashAnnotated (TxBody era) EraIndependentTxBody StandardCrypto => TxBody era -> Hash StandardCrypto EraIndependentTxBody
- evaluateTransactionExecutionUnitsShelley :: ShelleyBasedEra era -> SystemStart -> LedgerEpochInfo -> LedgerProtocolParameters era -> UTxO era -> Tx (ShelleyLedgerEra era) -> Either (TransactionValidityError era) (Map ScriptWitnessIndex (Either ScriptExecutionError (EvalTxExecutionUnitsLog, ExecutionUnits)))
- data BabbageEra
- data ConwayEra
- data Era era where
- class IsEra era where
- data Some (f :: k -> Type) where
- type family LedgerEra era = (r :: Type) | r -> era where ...
- newtype DeprecatedEra era = DeprecatedEra (ShelleyBasedEra era)
- eraToSbe :: Era era -> ShelleyBasedEra era
- babbageEraOnwardsToEra :: BabbageEraOnwards era -> Era era
- eraToBabbageEraOnwards :: Era era -> BabbageEraOnwards era
- sbeToEra :: MonadError (DeprecatedEra era) m => ShelleyBasedEra era -> m (Era era)
Tx related
newtype UnsignedTx era #
UnsignedTx (Tx (LedgerEra era)) |
Instances
IsEra era => Show (UnsignedTx era) | |
Defined in Cardano.Api.Experimental.Tx |
makeUnsignedTx :: Era era -> TxBodyContent BuildTx era -> Either TxBodyError (UnsignedTx era) #
makeKeyWitness :: Era era -> UnsignedTx era -> ShelleyWitnessSigningKey -> WitVKey 'Witness StandardCrypto #
signTx :: Era era -> [BootstrapWitness StandardCrypto] -> [WitVKey 'Witness StandardCrypto] -> UnsignedTx era -> Tx (LedgerEra era) #
convertTxBodyToUnsignedTx :: HasCallStack => ShelleyBasedEra era -> TxBody era -> UnsignedTx era #
type EraCommonConstraints era = (AlonzoEraTx (LedgerEra era), BabbageEraTxBody (LedgerEra era), EraTx (LedgerEra era), EraUTxO (LedgerEra era), EraCrypto (LedgerEra era) ~ StandardCrypto, ShelleyLedgerEra era ~ LedgerEra era, HashAnnotated (TxBody (LedgerEra era)) EraIndependentTxBody StandardCrypto, IsEra era) #
obtainCommonConstraints :: Era era -> (EraCommonConstraints era => a) -> a #
hashTxBody :: HashAnnotated (TxBody era) EraIndependentTxBody StandardCrypto => TxBody era -> Hash StandardCrypto EraIndependentTxBody #
evaluateTransactionExecutionUnitsShelley :: ShelleyBasedEra era -> SystemStart -> LedgerEpochInfo -> LedgerProtocolParameters era -> UTxO era -> Tx (ShelleyLedgerEra era) -> Either (TransactionValidityError era) (Map ScriptWitnessIndex (Either ScriptExecutionError (EvalTxExecutionUnitsLog, ExecutionUnits))) #
data BabbageEra #
Instances
IsAllegraBasedEra BabbageEra | |||||
IsAlonzoBasedEra BabbageEra | |||||
IsBabbageBasedEra BabbageEra | |||||
IsMaryBasedEra BabbageEra | |||||
Defined in Cardano.Api.Eon.MaryEraOnwards | |||||
IsShelleyBasedEra BabbageEra | |||||
Defined in Cardano.Api.Eon.ShelleyBasedEra | |||||
IsCardanoEra BabbageEra | |||||
Defined in Cardano.Api.Eras.Core | |||||
IsEra BabbageEra | |||||
Defined in Cardano.Api.Experimental.Eras useEra :: Era BabbageEra # | |||||
HasTypeProxy BabbageEra | |||||
Defined in Cardano.Api.Eras.Core
| |||||
HasScriptLanguageInEra PlutusScriptV1 BabbageEra | |||||
HasScriptLanguageInEra PlutusScriptV2 BabbageEra | |||||
ToAlonzoScript PlutusScriptV1 BabbageEra | |||||
Defined in Cardano.Api.Script | |||||
ToAlonzoScript PlutusScriptV2 BabbageEra | |||||
Defined in Cardano.Api.Script | |||||
data AsType BabbageEra | |||||
Defined in Cardano.Api.Eras.Core |
Instances
BabbageEra :: Era BabbageEra | |
ConwayEra :: Era ConwayEra |
Instances
Eon Era | |
Defined in Cardano.Api.Experimental.Eras inEonForEra :: a -> (Era era -> a) -> CardanoEra era -> a # | |
TestEquality Era | |
Defined in Cardano.Api.Experimental.Eras | |
Convert BabbageEraOnwards Era | |
Defined in Cardano.Api.Experimental.Eras convert :: BabbageEraOnwards era -> Era era # | |
Convert Era BabbageEraOnwards | |
Defined in Cardano.Api.Experimental.Eras convert :: Era era -> BabbageEraOnwards era # | |
Convert Era ShelleyBasedEra | |
Defined in Cardano.Api.Experimental.Eras convert :: Era era -> ShelleyBasedEra era # | |
Convert Era CardanoEra | |
Defined in Cardano.Api.Experimental.Eras convert :: Era era -> CardanoEra era # | |
ToJSON (Era era) | |
Defined in Cardano.Api.Experimental.Eras toEncoding :: Era era -> Encoding toJSONList :: [Era era] -> Value toEncodingList :: [Era era] -> Encoding | |
Show (Era era) | |
Eq (Era era) | |
Pretty (Era era) | |
Defined in Cardano.Api.Experimental.Eras | |
FromJSON (Some Era) | |
Defined in Cardano.Api.Experimental.Eras parseJSON :: Value -> Parser (Some Era) parseJSONList :: Value -> Parser [Some Era] omittedField :: Maybe (Some Era) | |
ToJSON (Some Era) | |
Defined in Cardano.Api.Experimental.Eras | |
Bounded (Some Era) | |
Enum (Some Era) | |
Defined in Cardano.Api.Experimental.Eras succ :: Some Era -> Some Era Source # pred :: Some Era -> Some Era Source # toEnum :: Int -> Some Era Source # fromEnum :: Some Era -> Int Source # enumFrom :: Some Era -> [Some Era] Source # enumFromThen :: Some Era -> Some Era -> [Some Era] Source # enumFromTo :: Some Era -> Some Era -> [Some Era] Source # enumFromThenTo :: Some Era -> Some Era -> Some Era -> [Some Era] Source # | |
Show (Some Era) | |
Eq (Some Era) | |
Ord (Some Era) | |
Defined in Cardano.Api.Experimental.Eras | |
Pretty (Some Era) | |
Instances
IsEra BabbageEra | |
Defined in Cardano.Api.Experimental.Eras useEra :: Era BabbageEra # | |
IsEra ConwayEra | |
Defined in Cardano.Api.Experimental.Eras |
data Some (f :: k -> Type) where #
Instances
FromJSON (Some Era) | |
Defined in Cardano.Api.Experimental.Eras parseJSON :: Value -> Parser (Some Era) parseJSONList :: Value -> Parser [Some Era] omittedField :: Maybe (Some Era) | |
ToJSON (Some Era) | |
Defined in Cardano.Api.Experimental.Eras | |
Bounded (Some Era) | |
Enum (Some Era) | |
Defined in Cardano.Api.Experimental.Eras succ :: Some Era -> Some Era Source # pred :: Some Era -> Some Era Source # toEnum :: Int -> Some Era Source # fromEnum :: Some Era -> Int Source # enumFrom :: Some Era -> [Some Era] Source # enumFromThen :: Some Era -> Some Era -> [Some Era] Source # enumFromTo :: Some Era -> Some Era -> [Some Era] Source # enumFromThenTo :: Some Era -> Some Era -> Some Era -> [Some Era] Source # | |
Show (Some Era) | |
Eq (Some Era) | |
Ord (Some Era) | |
Defined in Cardano.Api.Experimental.Eras | |
Pretty (Some Era) | |
newtype DeprecatedEra era #
DeprecatedEra (ShelleyBasedEra era) |
Instances
Show (DeprecatedEra era) | |
Defined in Cardano.Api.Experimental.Eras | |
Pretty (DeprecatedEra era) | |
Defined in Cardano.Api.Experimental.Eras pretty :: DeprecatedEra era -> Doc ann # prettyList :: [DeprecatedEra era] -> Doc ann # |
eraToSbe :: Era era -> ShelleyBasedEra era #
babbageEraOnwardsToEra :: BabbageEraOnwards era -> Era era #
eraToBabbageEraOnwards :: Era era -> BabbageEraOnwards era #
sbeToEra :: MonadError (DeprecatedEra era) m => ShelleyBasedEra era -> m (Era era) #