@@ -323,6 +323,14 @@ could be either of them.
323323 field SubTransactionsOf : A → InTopLevel txLevel (List (Tx TxLevelSub))
324324 open HasSubTransactions ⦃...⦄ public
325325
326+ record HasSpendInputs {a} (A : Type a) : Type a where
327+ field SpendInputsOf : A → ℙ TxIn
328+ open HasSpendInputs ⦃...⦄ public
329+
330+ record HasReferenceInputs {a} (A : Type a) : Type a where
331+ field ReferenceInputsOf : A → ℙ TxIn
332+ open HasReferenceInputs ⦃...⦄ public
333+
326334 record HasGovProposals {a} (A : Type a) : Type a where
327335 field GovProposalsOf : A → List GovProposal
328336 open HasGovProposals ⦃...⦄ public
@@ -384,6 +392,18 @@ could be either of them.
384392 HasSubTransactions-TopLevelTx : HasSubTransactions TopLevelTx
385393 HasSubTransactions-TopLevelTx .SubTransactionsOf = TxBody.txSubTransactions ∘ TxBodyOf
386394
395+ HasSpendInputs-TxBody : HasSpendInputs (TxBody txLevel)
396+ HasSpendInputs-TxBody .SpendInputsOf = TxBody.txIns
397+
398+ HasSpendInputs-Tx : HasSpendInputs (Tx txLevel)
399+ HasSpendInputs-Tx .SpendInputsOf = SpendInputsOf ∘ TxBodyOf
400+
401+ HasReferenceInputs-TxBody : HasReferenceInputs (TxBody txLevel)
402+ HasReferenceInputs-TxBody .ReferenceInputsOf = TxBody.refInputs
403+
404+ HasReferenceInputs-Tx : HasReferenceInputs (Tx txLevel)
405+ HasReferenceInputs-Tx .ReferenceInputsOf = ReferenceInputsOf ∘ TxBodyOf
406+
387407 HasTxId-Tx : HasTxId (Tx txLevel)
388408 HasTxId-Tx .TxIdOf = TxBody.txId ∘ TxBodyOf
389409
0 commit comments