Safe Haskell | None |
---|---|
Language | Haskell2010 |
Transaction bodies
Synopsis
- data TxIn = TxIn TxId TxIx
- newtype TxIx = TxIx Word
- newtype TxId = TxId (Hash StandardCrypto EraIndependentTxBody)
- parseTxId :: Parser TxId
- data family AsType t
- toByronTxId :: TxId -> TxId
- toShelleyTxId :: TxId -> TxId StandardCrypto
- fromShelleyTxId :: TxId StandardCrypto -> TxId
- toByronTxIn :: TxIn -> TxIn
- fromByronTxIn :: TxIn -> TxIn
- toShelleyTxIn :: TxIn -> TxIn StandardCrypto
- fromShelleyTxIn :: TxIn StandardCrypto -> TxIn
- renderTxIn :: TxIn -> Text
Transaction inputs
Instances
FromJSON TxIn Source # | |
Defined in Cardano.Api.TxIn parseJSON :: Value -> Parser TxIn # parseJSONList :: Value -> Parser [TxIn] # omittedField :: Maybe TxIn # | |
FromJSONKey TxIn Source # | |
Defined in Cardano.Api.TxIn fromJSONKey :: FromJSONKeyFunction TxIn fromJSONKeyList :: FromJSONKeyFunction [TxIn] | |
ToJSON TxIn Source # | |
Defined in Cardano.Api.TxIn | |
ToJSONKey TxIn Source # | |
Defined in Cardano.Api.TxIn toJSONKey :: ToJSONKeyFunction TxIn toJSONKeyList :: ToJSONKeyFunction [TxIn] | |
Show TxIn Source # | |
Eq TxIn Source # | |
Ord TxIn Source # | |
Pretty TxIn Source # | |
Defined in Cardano.Api.TxIn |
Instances
FromJSON TxIx Source # | |
Defined in Cardano.Api.TxIn parseJSON :: Value -> Parser TxIx # parseJSONList :: Value -> Parser [TxIx] # omittedField :: Maybe TxIx # | |
ToJSON TxIx Source # | |
Defined in Cardano.Api.TxIn | |
Enum TxIx Source # | |
Show TxIx Source # | |
Eq TxIx Source # | |
Ord TxIx Source # | |
Transaction Ids
Instances
FromJSON TxId Source # | |
Defined in Cardano.Api.TxIn parseJSON :: Value -> Parser TxId # parseJSONList :: Value -> Parser [TxId] # omittedField :: Maybe TxId # | |
FromJSONKey TxId Source # | |
Defined in Cardano.Api.TxIn fromJSONKey :: FromJSONKeyFunction TxId fromJSONKeyList :: FromJSONKeyFunction [TxId] | |
ToJSON TxId Source # | |
Defined in Cardano.Api.TxIn | |
ToJSONKey TxId Source # | |
Defined in Cardano.Api.TxIn toJSONKey :: ToJSONKeyFunction TxId toJSONKeyList :: ToJSONKeyFunction [TxId] | |
IsString TxId Source # | |
Defined in Cardano.Api.TxIn fromString :: String -> TxId Source # | |
Show TxId Source # | |
HasTypeProxy TxId Source # | |
Defined in Cardano.Api.TxIn | |
SerialiseAsRawBytes TxId Source # | |
Defined in Cardano.Api.TxIn | |
Eq TxId Source # | |
Ord TxId Source # | |
data AsType TxId Source # | |
Defined in Cardano.Api.TxIn |
Data family instances
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
Internal conversion functions
toByronTxId :: TxId -> TxId Source #
toShelleyTxId :: TxId -> TxId StandardCrypto Source #
fromShelleyTxId :: TxId StandardCrypto -> TxId Source #
toByronTxIn :: TxIn -> TxIn Source #
fromByronTxIn :: TxIn -> TxIn Source #
toShelleyTxIn :: TxIn -> TxIn StandardCrypto Source #
This function may overflow on the transaction index. Call sites must ensure that all uses of this function are appropriately guarded.
fromShelleyTxIn :: TxIn StandardCrypto -> TxIn Source #
renderTxIn :: TxIn -> Text Source #