Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ColeTxError
- = TxDeserialisationFailed !FilePath !DecoderError
- | ColeTxSubmitError !Text
- | ColeTxSubmitErrorEraMismatch !EraMismatch
- | EnvSocketError !EnvSocketError
- newtype TxFile = TxFile FilePath
- newtype NewTxFile = NewTxFile FilePath
- prettyAddress ∷ Address ColeAddr → Text
- readColeTx ∷ TxFile → ExceptT ColeTxError IO (ATxAux ByteString)
- normalColeTxToGenTx ∷ ATxAux ByteString → GenTx ColeBlock
- txSpendGenesisUTxOColePBFT ∷ Config → NetworkId → SomeColeSigningKey → Address ColeAddr → [TxOut ColeEra] → Tx ColeEra
- txSpendUTxOColePBFT ∷ NetworkId → SomeColeSigningKey → [TxIn] → [TxOut ColeEra] → Tx ColeEra
- nodeSubmitTx ∷ NetworkId → GenTx ColeBlock → ExceptT ColeTxError IO ()
- renderColeTxError ∷ ColeTxError → Text
- fromCborTxAux ∷ ByteString → Either DecoderError (ATxAux ByteString)
- toCborTxAux ∷ ATxAux ByteString → ByteString
- data ScriptValidity
Documentation
data ColeTxError Source #
TxDeserialisationFailed !FilePath !DecoderError | |
ColeTxSubmitError !Text | |
ColeTxSubmitErrorEraMismatch !EraMismatch | |
EnvSocketError !EnvSocketError |
Instances
Show ColeTxError Source # | |
Defined in Bcc.CLI.Cole.Tx |
Instances
Eq NewTxFile Source # | |
Ord NewTxFile Source # | |
Defined in Bcc.CLI.Cole.Tx | |
Show NewTxFile Source # | |
IsString NewTxFile Source # | |
Defined in Bcc.CLI.Cole.Tx fromString ∷ String → NewTxFile Source # |
prettyAddress ∷ Address ColeAddr → Text Source #
Pretty-print an address in its Base58 form, and also its full structure.
readColeTx ∷ TxFile → ExceptT ColeTxError IO (ATxAux ByteString) Source #
normalColeTxToGenTx ∷ ATxAux ByteString → GenTx ColeBlock Source #
The GenTx
is all the kinds of transactions that can be submitted
and "normal" Cole transactions are just one of the kinds.
txSpendGenesisUTxOColePBFT ∷ Config → NetworkId → SomeColeSigningKey → Address ColeAddr → [TxOut ColeEra] → Tx ColeEra Source #
Generate a transaction spending genesis UTxO at a given address, to given outputs, signed by the given key.
txSpendUTxOColePBFT ∷ NetworkId → SomeColeSigningKey → [TxIn] → [TxOut ColeEra] → Tx ColeEra Source #
Generate a transaction from given Tx inputs to outputs, signed by the given key.
nodeSubmitTx ∷ NetworkId → GenTx ColeBlock → ExceptT ColeTxError IO () Source #
Submit a transaction to a node specified by topology info.
fromCborTxAux ∷ ByteString → Either DecoderError (ATxAux ByteString) Source #
toCborTxAux ∷ ATxAux ByteString → ByteString 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
Eq ScriptValidity | |
Defined in Bcc.Api.TxBody (==) ∷ ScriptValidity → ScriptValidity → Bool Source # (/=) ∷ ScriptValidity → ScriptValidity → Bool Source # | |
Show ScriptValidity | |
Defined in Bcc.Api.TxBody | |
ToCBOR ScriptValidity | |
Defined in Bcc.Api.TxBody toCBOR ∷ ScriptValidity → Encoding # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ScriptValidity → Size # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ScriptValidity] → Size # | |
FromCBOR ScriptValidity | |
Defined in Bcc.Api.TxBody fromCBOR ∷ Decoder s ScriptValidity # label ∷ Proxy ScriptValidity → Text # |