Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TxId = TxId {}
- data TxIn = TxIn TxId Natural
- data TxOut = TxOut {}
- newtype UTxO = UTxO {}
- mapUTxOValues ∷ (Lovelace → Lovelace) → UTxO → UTxO
- addValue ∷ TxOut → Lovelace → TxOut
- fromTxOuts ∷ [TxOut] → UTxO
- data TxBody = TxBody {}
- txid ∷ TxBody → TxId
- txValue ∷ TxBody → Lovelace
- txins ∷ TxBody → [TxIn]
- txouts ∷ TxBody → UTxO
- balance ∷ UTxO → Lovelace
- pcMinFee ∷ PParams → Tx → Lovelace
- txsize ∷ Tx → Int
- data Wit = Wit VKey (Sig TxBody)
- data Tx = Tx {}
- makeWitness ∷ KeyPair → TxBody → Wit
- makeTxWits ∷ UTxO → TxBody → Tx
Documentation
A unique ID of a transaction, which is computable from the transaction.
Instances
Data TxId Source # | |
Defined in Byron.Spec.Ledger.UTxO gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → TxId → c TxId Source # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c TxId Source # toConstr ∷ TxId → Constr Source # dataTypeOf ∷ TxId → DataType Source # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c TxId) Source # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c TxId) Source # gmapT ∷ (∀ b. Data b ⇒ b → b) → TxId → TxId Source # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → TxId → r Source # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → TxId → r Source # gmapQ ∷ (∀ d. Data d ⇒ d → u) → TxId → [u] Source # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → TxId → u Source # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → TxId → m TxId Source # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → TxId → m TxId Source # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → TxId → m TxId Source # | |
Generic TxId Source # | |
Show TxId Source # | |
HasTypeReps TxId Source # | |
Eq TxId Source # | |
Ord TxId Source # | |
Hashable TxId Source # | |
NoThunks TxId Source # | |
type Rep TxId Source # | |
Defined in Byron.Spec.Ledger.UTxO |
The input of a UTxO.
- TODO - is it okay to use list indices instead of implementing the Ix Type?
Instances
The output of a UTxO.
Instances
The unspent transaction outputs.
Instances
mapUTxOValues ∷ (Lovelace → Lovelace) → UTxO → UTxO Source #
Apply function uniformly across all outputs
fromTxOuts ∷ [TxOut] → UTxO Source #
Construct a UTxO from initial TxOuts
A raw transaction
Instances
Proof/Witness that a transaction is authorized by the given key holder.
Instances
A fully formed transaction.
Instances
Data Tx Source # | |
Defined in Byron.Spec.Ledger.UTxO gfoldl ∷ (∀ d b. Data d ⇒ c (d → b) → d → c b) → (∀ g. g → c g) → Tx → c Tx Source # gunfold ∷ (∀ b r. Data b ⇒ c (b → r) → c r) → (∀ r. r → c r) → Constr → c Tx Source # toConstr ∷ Tx → Constr Source # dataTypeOf ∷ Tx → DataType Source # dataCast1 ∷ Typeable t ⇒ (∀ d. Data d ⇒ c (t d)) → Maybe (c Tx) Source # dataCast2 ∷ Typeable t ⇒ (∀ d e. (Data d, Data e) ⇒ c (t d e)) → Maybe (c Tx) Source # gmapT ∷ (∀ b. Data b ⇒ b → b) → Tx → Tx Source # gmapQl ∷ (r → r' → r) → r → (∀ d. Data d ⇒ d → r') → Tx → r Source # gmapQr ∷ ∀ r r'. (r' → r → r) → r → (∀ d. Data d ⇒ d → r') → Tx → r Source # gmapQ ∷ (∀ d. Data d ⇒ d → u) → Tx → [u] Source # gmapQi ∷ Int → (∀ d. Data d ⇒ d → u) → Tx → u Source # gmapM ∷ Monad m ⇒ (∀ d. Data d ⇒ d → m d) → Tx → m Tx Source # gmapMp ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Tx → m Tx Source # gmapMo ∷ MonadPlus m ⇒ (∀ d. Data d ⇒ d → m d) → Tx → m Tx Source # | |
Generic Tx Source # | |
Show Tx Source # | |
HasTypeReps Tx Source # | |
Eq Tx Source # | |
Hashable Tx Source # | |
NoThunks Tx Source # | |
HasHash [Tx] Source # | |
type Rep Tx Source # | |
Defined in Byron.Spec.Ledger.UTxO type Rep Tx = D1 ('MetaData "Tx" "Byron.Spec.Ledger.UTxO" "byron-spec-ledger-1.0.1.0-inplace" 'False) (C1 ('MetaCons "Tx" 'PrefixI 'True) (S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TxBody) :*: S1 ('MetaSel ('Just "witnesses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Wit]))) |