Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ByronTxError
- data Tx era
- type TxFile = File (Tx ())
- newtype NewTxFile = NewTxFile FilePath
- prettyAddress ∷ Address ByronAddr → Text
- readByronTx ∷ TxFile In → ExceptT ByronTxError IO (ATxAux ByteString)
- normalByronTxToGenTx ∷ ATxAux ByteString → GenTx ByronBlock
- txSpendGenesisUTxOByronPBFT ∷ Config → NetworkId → SomeByronSigningKey → Address ByronAddr → [TxOut CtxTx ByronEra] → ATxAux ByteString
- txSpendUTxOByronPBFT ∷ NetworkId → SomeByronSigningKey → [TxIn] → [TxOut CtxTx ByronEra] → ATxAux ByteString
- nodeSubmitTx ∷ SocketPath → NetworkId → GenTx ByronBlock → ExceptT ByronTxError IO ()
- renderByronTxError ∷ ByronTxError → Doc ann
- fromCborTxAux ∷ ByteString → Either DecoderError (ATxAux ByteString)
- toCborTxAux ∷ ATxAux ByteString → ByteString
- data ScriptValidity
Documentation
data ByronTxError Source #
TxDeserialisationFailed !FilePath !DecoderError | |
ByronTxSubmitError !Text | |
ByronTxSubmitErrorEraMismatch !EraMismatch |
Instances
Show ByronTxError Source # | |
Defined in Cardano.CLI.Byron.Tx |
Instances
Show (InAnyShelleyBasedEra Tx) | |
Defined in Cardano.Api.Tx.Sign | |
Show (InAnyCardanoEra Tx) | |
Defined in Cardano.Api.Tx.Sign | |
Show (Tx era) | |
HasTypeProxy era ⇒ HasTypeProxy (Tx era) | |
IsShelleyBasedEra era ⇒ SerialiseAsCBOR (Tx era) | |
Defined in Cardano.Api.Tx.Sign serialiseToCBOR ∷ Tx era → ByteString Source # deserialiseFromCBOR ∷ AsType (Tx era) → ByteString → Either DecoderError (Tx era) Source # | |
IsShelleyBasedEra era ⇒ HasTextEnvelope (Tx era) | |
Defined in Cardano.Api.Tx.Sign textEnvelopeType ∷ AsType (Tx era) → TextEnvelopeType Source # textEnvelopeDefaultDescr ∷ Tx era → TextEnvelopeDescr Source # | |
Eq (InAnyShelleyBasedEra Tx) | |
Defined in Cardano.Api.Tx.Sign | |
Eq (InAnyCardanoEra Tx) | |
Defined in Cardano.Api.Tx.Sign (==) ∷ InAnyCardanoEra Tx → InAnyCardanoEra Tx → Bool Source # (/=) ∷ InAnyCardanoEra Tx → InAnyCardanoEra Tx → Bool Source # | |
Eq (Tx era) | |
data AsType (Tx era) | |
Defined in Cardano.Api.Tx.Sign |
Instances
IsString NewTxFile Source # | |
Defined in Cardano.CLI.Byron.Tx fromString ∷ String → NewTxFile Source # | |
Show NewTxFile Source # | |
Eq NewTxFile Source # | |
Ord NewTxFile Source # | |
Defined in Cardano.CLI.Byron.Tx |
prettyAddress ∷ Address ByronAddr → Text Source #
Pretty-print an address in its Base58 form, and also its full structure.
normalByronTxToGenTx ∷ ATxAux ByteString → GenTx ByronBlock Source #
The GenTx
is all the kinds of transactions that can be submitted
and "normal" Byron transactions are just one of the kinds.
txSpendGenesisUTxOByronPBFT ∷ Config → NetworkId → SomeByronSigningKey → Address ByronAddr → [TxOut CtxTx ByronEra] → ATxAux ByteString Source #
Generate a transaction spending genesis UTxO at a given address, to given outputs, signed by the given key.
txSpendUTxOByronPBFT ∷ NetworkId → SomeByronSigningKey → [TxIn] → [TxOut CtxTx ByronEra] → ATxAux ByteString Source #
Generate a transaction from given Tx inputs to outputs, signed by the given key.
nodeSubmitTx ∷ SocketPath → NetworkId → GenTx ByronBlock → ExceptT ByronTxError IO () Source #
Submit a transaction to a node specified by topology info.
renderByronTxError ∷ ByronTxError → Doc ann Source #
data ScriptValidity Source #
Indicates whether a script is expected to fail or pass validation.
ScriptInvalid | Script is expected to fail validation. Transactions marked as such can include scripts that fail validation. Such transactions may be submitted to the chain, in which case the collateral will be taken upon on chain script validation failure. |
ScriptValid | Script is expected to pass validation. Transactions marked as such cannot include scripts that fail validation. |
Instances
Show ScriptValidity | |
Defined in Cardano.Api.Tx.Sign | |
DecCBOR ScriptValidity | |
Defined in Cardano.Api.Tx.Sign | |
EncCBOR ScriptValidity | |
Defined in Cardano.Api.Tx.Sign encCBOR ∷ ScriptValidity → Encoding Source # encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy ScriptValidity → Size Source # encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [ScriptValidity] → Size Source # | |
Eq ScriptValidity | |
Defined in Cardano.Api.Tx.Sign (==) ∷ ScriptValidity → ScriptValidity → Bool Source # (/=) ∷ ScriptValidity → ScriptValidity → Bool Source # |