bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.TxBody

Description

Transaction bodies

Synopsis

Transaction bodies

data TxBody era where Source #

Constructors

ColeTxBody ∷ Annotated Tx ByteStringTxBody ColeEra 
SophieTxBody 

Fields

Bundled Patterns

pattern TxBodyTxBodyContent ViewTx era → TxBody era 

Instances

Instances details
Eq (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxBody era → TxBody era → Bool Source #

(/=)TxBody era → TxBody era → Bool Source #

Show (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxBody era → ShowS Source #

showTxBody era → String Source #

showList ∷ [TxBody era] → ShowS Source #

HasTypeProxy era ⇒ HasTypeProxy (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

data AsType (TxBody era) Source #

Methods

proxyToAsTypeProxy (TxBody era) → AsType (TxBody era) Source #

IsBccEra era ⇒ SerialiseAsCBOR (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

serialiseToCBORTxBody era → ByteString Source #

deserialiseFromCBORAsType (TxBody era) → ByteStringEither DecoderError (TxBody era) Source #

IsBccEra era ⇒ HasTextEnvelope (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType (TxBody era) = AsTxBody (AsType era)

data TxBodyScriptData era where Source #

Constructors

TxBodyNoScriptDataTxBodyScriptData era 
TxBodyScriptDataScriptDataSupportedInEra era → TxDats (SophieLedgerEra era) → Redeemers (SophieLedgerEra era) → TxBodyScriptData era 

Instances

Instances details
Eq (TxBodyScriptData era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxBodyScriptData era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxScriptValidity era where Source #

A representation of whether the era supports tx script validity.

The Jen and subsequent eras support script validity.

Constructors

TxScriptValidityNoneTxScriptValidity era 
TxScriptValidityTxScriptValiditySupportedInEra era → ScriptValidityTxScriptValidity era

Tx script validity is supported in transactions in the Aurum era onwards.

Instances

Instances details
Eq (TxScriptValidity era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxScriptValidity era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data ScriptValidity Source #

Indicates whether a script is expected to fail or pass validation.

Constructors

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

Instances details
Eq ScriptValidity Source # 
Instance details

Defined in Bcc.Api.TxBody

Show ScriptValidity Source # 
Instance details

Defined in Bcc.Api.TxBody

FromCBOR ScriptValidity Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

fromCBOR ∷ Decoder s ScriptValidity #

labelProxy ScriptValidityText #

ToCBOR ScriptValidity Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toCBORScriptValidity → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ScriptValidity → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ScriptValidity] → Size #

Transaction Ids

newtype TxId Source #

Constructors

TxId (Hash StandardCrypto EraIndependentTxBody) 

Instances

Instances details
Eq TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxIdTxIdBool Source #

(/=)TxIdTxIdBool Source #

Ord TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

compareTxIdTxIdOrdering Source #

(<)TxIdTxIdBool Source #

(<=)TxIdTxIdBool Source #

(>)TxIdTxIdBool Source #

(>=)TxIdTxIdBool Source #

maxTxIdTxIdTxId Source #

minTxIdTxIdTxId Source #

Show TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxIdShowS Source #

showTxIdString Source #

showList ∷ [TxId] → ShowS Source #

IsString TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

fromStringStringTxId Source #

FromJSON TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

parseJSON ∷ Value → Parser TxId #

parseJSONList ∷ Value → Parser [TxId] #

ToJSON TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxId → Value #

toEncodingTxId → Encoding #

toJSONList ∷ [TxId] → Value #

toEncodingList ∷ [TxId] → Encoding #

FromJSONKey TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

fromJSONKey ∷ FromJSONKeyFunction TxId

fromJSONKeyList ∷ FromJSONKeyFunction [TxId]

ToJSONKey TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONKey ∷ ToJSONKeyFunction TxId

toJSONKeyList ∷ ToJSONKeyFunction [TxId]

HasTypeProxy TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

data AsType TxId Source #

SerialiseAsRawBytes TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

getTxId ∷ ∀ era. TxBody era → TxId Source #

Calculate the transaction identifier for a TxBody.

getTxIdSophie ∷ Crypto (SophieLedgerEra era) ~ StandardCrypto ⇒ UsesTxBody (SophieLedgerEra era) ⇒ SophieBasedEra era → TxBody (SophieLedgerEra era) → TxId Source #

Transaction inputs

data TxIn Source #

Constructors

TxIn TxId TxIx 

Instances

Instances details
Eq TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxInTxInBool Source #

(/=)TxInTxInBool Source #

Ord TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

compareTxInTxInOrdering Source #

(<)TxInTxInBool Source #

(<=)TxInTxInBool Source #

(>)TxInTxInBool Source #

(>=)TxInTxInBool Source #

maxTxInTxInTxIn Source #

minTxInTxInTxIn Source #

Show TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxInShowS Source #

showTxInString Source #

showList ∷ [TxIn] → ShowS Source #

ToJSON TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxIn → Value #

toEncodingTxIn → Encoding #

toJSONList ∷ [TxIn] → Value #

toEncodingList ∷ [TxIn] → Encoding #

ToJSONKey TxIn Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONKey ∷ ToJSONKeyFunction TxIn

toJSONKeyList ∷ ToJSONKeyFunction [TxIn]

newtype TxIx Source #

Constructors

TxIx Word 

Instances

Instances details
Enum TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Eq TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxIxTxIxBool Source #

(/=)TxIxTxIxBool Source #

Ord TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

compareTxIxTxIxOrdering Source #

(<)TxIxTxIxBool Source #

(<=)TxIxTxIxBool Source #

(>)TxIxTxIxBool Source #

(>=)TxIxTxIxBool Source #

maxTxIxTxIxTxIx Source #

minTxIxTxIxTxIx Source #

Show TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxIxShowS Source #

showTxIxString Source #

showList ∷ [TxIx] → ShowS Source #

FromJSON TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

parseJSON ∷ Value → Parser TxIx #

parseJSONList ∷ Value → Parser [TxIx] #

ToJSON TxIx Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxIx → Value #

toEncodingTxIx → Encoding #

toJSONList ∷ [TxIx] → Value #

toEncodingList ∷ [TxIx] → Encoding #

genesisUTxOPseudoTxInNetworkIdHash GenesisUTxOKeyTxIn Source #

Compute the TxIn of the initial UTxO pseudo-transaction corresponding to the given address in the genesis initial funds.

The Sophie initial UTxO is constructed from the sgInitialFunds which is not a full UTxO but just a map from addresses to coin values.

This gets turned into a UTxO by making a pseudo-transaction for each address, with the 0th output being the coin value. So to spend from the initial UTxO we need this same TxIn to use as an input to the spending transaction.

Transaction outputs

data TxOut era Source #

Constructors

TxOut (AddressInEra era) (TxOutValue era) (TxOutDatumHash era) 

Instances

Instances details
Eq (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxOut era → TxOut era → Bool Source #

(/=)TxOut era → TxOut era → Bool Source #

Show (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxOut era → ShowS Source #

showTxOut era → String Source #

showList ∷ [TxOut era] → ShowS Source #

Generic (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

type Rep (TxOut era) ∷ TypeType Source #

Methods

fromTxOut era → Rep (TxOut era) x Source #

toRep (TxOut era) x → TxOut era Source #

IsBccEra era ⇒ ToJSON (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxOut era → Value #

toEncodingTxOut era → Encoding #

toJSONList ∷ [TxOut era] → Value #

toEncodingList ∷ [TxOut era] → Encoding #

type Rep (TxOut era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxOutValue era where Source #

Instances

Instances details
Eq (TxOutValue era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxOutValue era → TxOutValue era → Bool Source #

(/=)TxOutValue era → TxOutValue era → Bool Source #

Show (TxOutValue era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxOutValue era → ShowS Source #

showTxOutValue era → String Source #

showList ∷ [TxOutValue era] → ShowS Source #

Generic (TxOutValue era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

type Rep (TxOutValue era) ∷ TypeType Source #

Methods

fromTxOutValue era → Rep (TxOutValue era) x Source #

toRep (TxOutValue era) x → TxOutValue era Source #

ToJSON (TxOutValue era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

toJSONTxOutValue era → Value #

toEncodingTxOutValue era → Encoding #

toJSONList ∷ [TxOutValue era] → Value #

toEncodingList ∷ [TxOutValue era] → Encoding #

type Rep (TxOutValue era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxOutDatumHash era where Source #

Instances

Instances details
Eq (TxOutDatumHash era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxOutDatumHash era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Generic (TxOutDatumHash era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Associated Types

type Rep (TxOutDatumHash era) ∷ TypeType Source #

Methods

fromTxOutDatumHash era → Rep (TxOutDatumHash era) x Source #

toRep (TxOutDatumHash era) x → TxOutDatumHash era Source #

type Rep (TxOutDatumHash era) Source # 
Instance details

Defined in Bcc.Api.TxBody

type Rep (TxOutDatumHash era) = D1 ('MetaData "TxOutDatumHash" "Bcc.Api.TxBody" "bcc-api-1.99.0-inplace" 'False) (C1 ('MetaCons "TxOutDatumHashNone" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "TxOutDatumHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ScriptDataSupportedInEra era)) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Hash ScriptData))))

data TxOutInAnyEra where Source #

Constructors

TxOutInAnyEraBccEra era → TxOut era → TxOutInAnyEra 

Instances

Instances details
Show TxOutInAnyEra Source # 
Instance details

Defined in Bcc.Api.TxBody

txOutInAnyEraIsBccEra era ⇒ TxOut era → TxOutInAnyEra Source #

Convenience constructor for TxOutInAnyEra

Other transaction body types

data TxInsCollateral era where Source #

Instances

Instances details
Eq (TxInsCollateral era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxInsCollateral era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxFee era where Source #

Constructors

TxFeeImplicitTxFeesImplicitInEra era → TxFee era 
TxFeeExplicitTxFeesExplicitInEra era → EntropicTxFee era 

Instances

Instances details
Eq (TxFee era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxFee era → TxFee era → Bool Source #

(/=)TxFee era → TxFee era → Bool Source #

Show (TxFee era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxFee era → ShowS Source #

showTxFee era → String Source #

showList ∷ [TxFee era] → ShowS Source #

data TxValidityUpperBound era where Source #

This was formerly known as the TTL.

Instances

Instances details
Eq (TxValidityUpperBound era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxValidityUpperBound era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxMetadataInEra era where Source #

Instances

Instances details
Eq (TxMetadataInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxMetadataInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxAuxScripts era where Source #

Instances

Instances details
Eq (TxAuxScripts era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxAuxScripts era → TxAuxScripts era → Bool Source #

(/=)TxAuxScripts era → TxAuxScripts era → Bool Source #

Show (TxAuxScripts era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxExtraScriptData era where Source #

Instances

Instances details
Eq (TxExtraScriptData era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxExtraScriptData era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxWithdrawals build era where Source #

Instances

Instances details
Eq (TxWithdrawals build era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxWithdrawals build era → TxWithdrawals build era → Bool Source #

(/=)TxWithdrawals build era → TxWithdrawals build era → Bool Source #

Show (TxWithdrawals build era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxWithdrawals build era → ShowS Source #

showTxWithdrawals build era → String Source #

showList ∷ [TxWithdrawals build era] → ShowS Source #

data TxCertificates build era where Source #

Instances

Instances details
Eq (TxCertificates build era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxCertificates build era → TxCertificates build era → Bool Source #

(/=)TxCertificates build era → TxCertificates build era → Bool Source #

Show (TxCertificates build era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxCertificates build era → ShowS Source #

showTxCertificates build era → String Source #

showList ∷ [TxCertificates build era] → ShowS Source #

data TxUpdateProposal era where Source #

Instances

Instances details
Eq (TxUpdateProposal era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxUpdateProposal era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxMintValue build era where Source #

Constructors

TxMintNoneTxMintValue build era 
TxMintValueMultiAssetSupportedInEra era → ValueBuildTxWith build (Map PolicyId (ScriptWitness WitCtxMint era)) → TxMintValue build era 

Instances

Instances details
Eq (TxMintValue build era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)TxMintValue build era → TxMintValue build era → Bool Source #

(/=)TxMintValue build era → TxMintValue build era → Bool Source #

Show (TxMintValue build era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntTxMintValue build era → ShowS Source #

showTxMintValue build era → String Source #

showList ∷ [TxMintValue build era] → ShowS Source #

Building vs viewing transactions

data BuildTxWith build a where Source #

Constructors

ViewTxBuildTxWith ViewTx a 
BuildTxWith ∷ a → BuildTxWith BuildTx a 

Instances

Instances details
Eq a ⇒ Eq (BuildTxWith build a) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

(==)BuildTxWith build a → BuildTxWith build a → Bool Source #

(/=)BuildTxWith build a → BuildTxWith build a → Bool Source #

Show a ⇒ Show (BuildTxWith build a) Source # 
Instance details

Defined in Bcc.Api.TxBody

Methods

showsPrecIntBuildTxWith build a → ShowS Source #

showBuildTxWith build a → String Source #

showList ∷ [BuildTxWith build a] → ShowS Source #

Era-dependent transaction body features

data CollateralSupportedInEra era where Source #

A representation of whether the era supports transactions with inputs used only for collateral for script fees.

The Aurum and subsequent eras support collateral inputs.

data MultiAssetSupportedInEra era where Source #

A representation of whether the era supports multi-asset transactions.

The Jen and subsequent eras support multi-asset transactions.

The negation of this is OnlyBccSupportedInEra.

Constructors

MultiAssetInJenEraMultiAssetSupportedInEra JenEra

Multi-asset transactions are supported in the Jen era.

MultiAssetInAurumEraMultiAssetSupportedInEra AurumEra

Multi-asset transactions are supported in the Aurum era.

data OnlyBccSupportedInEra era where Source #

A representation of whether the era supports only bcc transactions.

Prior to the Jen era only bcc transactions are supported. Multi-assets are supported from the Jen era onwards.

This is the negation of MultiAssetSupportedInEra. It exists since we need evidence to be positive.

Instances

Instances details
Eq (OnlyBccSupportedInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (OnlyBccSupportedInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxFeesExplicitInEra era where Source #

A representation of whether the era requires explicitly specified fees in transactions.

The Cole era tx fees are implicit (as the difference bettween the sum of outputs and sum of inputs), but all later eras the fees are specified in the transaction explicitly.

Instances

Instances details
Eq (TxFeesExplicitInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxFeesExplicitInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data TxFeesImplicitInEra era where Source #

A representation of whether the era requires implicitly specified fees in transactions.

This is the negation of TxFeesExplicitInEra.

Instances

Instances details
Eq (TxFeesImplicitInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

Show (TxFeesImplicitInEra era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data ValidityUpperBoundSupportedInEra era where Source #

A representation of whether the era supports transactions with an upper bound on the range of slots in which they are valid.

The Sophie and subsequent eras support an upper bound on the validity range. In the Sophie era specifically it is actually required. It is optional in later eras.

data ValidityNoUpperBoundSupportedInEra era where Source #

A representation of whether the era supports transactions having no upper bound on the range of slots in which they are valid.

Note that the SophieEra does not support omitting a validity upper bound. It was introduced as a required field in Sophie and then made optional in Evie and subsequent eras.

The Cole era supports this by virtue of the fact that it does not support validity ranges at all.

data ValidityLowerBoundSupportedInEra era where Source #

A representation of whether the era supports transactions with a lower bound on the range of slots in which they are valid.

The Evie and subsequent eras support an optional lower bound on the validity range. No equivalent of ValidityNoUpperBoundSupportedInEra is needed since all eras support having no lower bound.

data TxMetadataSupportedInEra era where Source #

A representation of whether the era supports transaction metadata.

Transaction metadata is supported from the Sophie era onwards.

data AuxScriptsSupportedInEra era where Source #

A representation of whether the era supports auxiliary scripts in transactions.

Auxiliary scripts are supported from the Evie era onwards.

data TxExtraKeyWitnessesSupportedInEra era where Source #

A representation of whether the era supports transactions that specify in the body that they need extra key witnesses, and where this fact is visible to scripts.

Extra key witnesses visible to scripts are supported from the Aurum era onwards.

data ScriptDataSupportedInEra era where Source #

A representation of whether the era supports multi-asset transactions.

The Jen and subsequent eras support multi-asset transactions.

The negation of this is OnlyBccSupportedInEra.

Constructors

ScriptDataInAurumEraScriptDataSupportedInEra AurumEra

Script data is supported in transactions in the Aurum era.

data WithdrawalsSupportedInEra era where Source #

A representation of whether the era supports withdrawals from reward accounts.

The Sophie and subsequent eras support stake addresses, their associated reward accounts and support for withdrawals from them.

data UpdateProposalSupportedInEra era where Source #

A representation of whether the era supports UpdateProposals embedded in transactions.

The Sophie and subsequent eras support such update proposals. They Cole era has a notion of an update proposal, but it is a standalone chain object and not embedded in a transaction.

Feature availability functions

Inspecting ScriptWitnesses

data AnyScriptWitness era where Source #

A ScriptWitness in any WitCtx. This lets us handle heterogeneous collections of script witnesses from multiple contexts.

Constructors

AnyScriptWitnessScriptWitness witctx era → AnyScriptWitness era 

data ScriptWitnessIndex Source #

Identify the location of a ScriptWitness within the context of a TxBody. These are indexes of the objects within the transaction that need or can use script witnesses: inputs, minted assets, withdrawals and certificates. These are simple numeric indices, enumerated from zero. Thus the indices are not stable if the transaction body is modified.

Constructors

ScriptWitnessIndexTxIn !Word

The n'th transaction input, in the order of the TxIds.

ScriptWitnessIndexMint !Word

The n'th minting PolicyId, in the order of the PolicyIds.

ScriptWitnessIndexCertificate !Word

The n'th certificate, in the list order of the certificates.

ScriptWitnessIndexWithdrawal !Word

The n'th withdrawal, in the order of the StakeAddresss.

mapTxScriptWitnesses ∷ ∀ era. (∀ witctx. ScriptWitnessIndexScriptWitness witctx era → ScriptWitness witctx era) → TxBodyContent BuildTx era → TxBodyContent BuildTx era Source #

Internal conversion functions & types

toSophieTxIdTxId → TxId StandardCrypto Source #

toSophieTxInTxIn → TxIn StandardCrypto Source #

toSophieTxOut ∷ ∀ era ledgerera. SophieLedgerEra era ~ ledgerera ⇒ SophieBasedEra era → TxOut era → TxOut ledgerera Source #

fromSophieTxId ∷ TxId StandardCrypto → TxId Source #

fromSophieTxIn ∷ TxIn StandardCrypto → TxIn Source #

fromSophieTxOutSophieLedgerEra era ~ ledgerera ⇒ SophieBasedEra era → TxOut ledgerera → TxOut era Source #

fromColeTxIn ∷ TxIn → TxIn Source #

fromLedgerTxOutsSophieBasedEra era → TxBody (SophieLedgerEra era) → [TxOut era] Source #

Data family instances

data family AsType t Source #

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

Instances details
data AsType AurumEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType JenEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType EvieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType SophieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType ColeEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

data AsType TxMetadata Source # 
Instance details

Defined in Bcc.Api.TxMetadata

data AsType StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

data AsType ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ZerepochScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV2 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ColeKeyLegacy Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeVote Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType ColeUpdateProposal Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

data AsType StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AddressAny Source # 
Instance details

Defined in Bcc.Api.Address

data AsType SophieAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType ColeAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AssetName Source # 
Instance details

Defined in Bcc.Api.Value

data AsType PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

data AsType UpdateProposal Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType OptimumNonce Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

data AsType TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType BlockHeader Source # 
Instance details

Defined in Bcc.Api.Block

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType (Hash a) Source # 
Instance details

Defined in Bcc.Api.Hash

data AsType (Hash a) = AsHash (AsType a)
data AsType (VerificationKey a) Source # 
Instance details

Defined in Bcc.Api.Key

data AsType (SigningKey a) Source # 
Instance details

Defined in Bcc.Api.Key

data AsType (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) = AsScript (AsType lang)
data AsType (AddressInEra era) Source # 
Instance details

Defined in Bcc.Api.Address

data AsType (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

data AsType (Address addrtype) = AsAddress (AsType addrtype)
data AsType (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType (TxBody era) = AsTxBody (AsType era)
data AsType (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) = AsTx (AsType era)