bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.TxInMode

Description

Transactions in the context of a consensus mode, and other types used in the transaction submission protocol.

Synopsis

Transaction in a consensus mode

data TxInMode mode where Source #

A Tx in one of the eras supported by a given protocol mode.

For multi-era modes such as the BccMode this type is a sum of the different transaction types for all the eras. It is used in the LocalTxSubmission protocol.

Constructors

TxInModeTx era → EraInMode era mode → TxInMode mode

Everything we consider a normal transaction.

TxInColeSpecial ∷ GenTx ColeBlock → EraInMode ColeEra mode → TxInMode mode

Cole has various things we can post to the chain which are not actually transactions. This covers: update proposals, votes and delegation certs.

Instances

Instances details
Show (TxInMode mode) Source # 
Instance details

Defined in Bcc.Api.TxInMode

Methods

showsPrecIntTxInMode mode → ShowS Source #

showTxInMode mode → String Source #

showList ∷ [TxInMode mode] → ShowS Source #

toConsensusGenTxConsensusBlockForMode mode ~ block ⇒ TxInMode mode → GenTx block Source #

Transaction validation errors

data TxValidationError era where Source #

The transaction validations errors that can occur from trying to submit a transaction to a local node. The errors are specific to an era.

Constructors

ColeTxValidationError ∷ ApplyTxErr ColeBlock → TxValidationError ColeEra 
SophieTxValidationErrorSophieBasedEra era → ApplyTxErr (SophieBlock (SophieLedgerEra era)) → TxValidationError era 

Instances

Instances details
Show (TxValidationError era) Source # 
Instance details

Defined in Bcc.Api.TxInMode

data TxValidationErrorInMode mode where Source #

A TxValidationError in one of the eras supported by a given protocol mode.

This is used in the LocalStateQuery protocol.

Instances

Instances details
Show (TxValidationErrorInMode mode) Source # 
Instance details

Defined in Bcc.Api.TxInMode

fromConsensusApplyTxErrConsensusBlockForMode mode ~ block ⇒ ConsensusMode mode → ApplyTxErr block → TxValidationErrorInMode mode Source #