@@ -342,10 +342,6 @@ could be either of them.
342342 field ReferenceInputsOf : A → ℙ TxIn
343343 open HasReferenceInputs ⦃...⦄ public
344344
345- record HasIndexedOutputs {a} (A : Type a) : Type a where
346- field IndexedOutputsOf : A → Ix ⇀ TxOut
347- open HasIndexedOutputs ⦃...⦄ public
348-
349345 record HasMintedValue {a} (A : Type a) : Type a where
350346 field MintedValueOf : A → Value
351347 open HasMintedValue ⦃...⦄ public
@@ -386,6 +382,10 @@ could be either of them.
386382 field RequiredSignerHashesOf : A → ℙ KeyHash
387383 open HasRequiredSingerHashes ⦃...⦄ public
388384
385+ record HasCurrentTreasury {a} (A : Type a) : Type a where
386+ field CurrentTreasuryOf : A → Maybe Coin
387+ open HasCurrentTreasury ⦃...⦄ public
388+
389389 instance
390390 HasTxBody-Tx : HasTxBody (Tx txLevel)
391391 HasTxBody-Tx .TxBodyOf = Tx.txBody
@@ -398,7 +398,6 @@ could be either of them.
398398
399399 HasRedeemers-TxWitnesses : HasRedeemers (TxWitnesses txLevel)
400400 HasRedeemers-TxWitnesses .RedeemersOf = TxWitnesses.txRedeemers
401-
402401 HasRedeemers-Tx : HasRedeemers (Tx txLevel)
403402 HasRedeemers-Tx .RedeemersOf = RedeemersOf ∘ TxWitnessesOf
404403
@@ -439,11 +438,6 @@ could be either of them.
439438 HasReferenceInputs-Tx : HasReferenceInputs (Tx txLevel)
440439 HasReferenceInputs-Tx .ReferenceInputsOf = ReferenceInputsOf ∘ TxBodyOf
441440
442- HasIndexedOutputs-TxBody : HasIndexedOutputs (TxBody txLevel)
443- HasIndexedOutputs-TxBody .IndexedOutputsOf = TxBody.txOuts
444- HasIndexedOutputs-Tx : HasIndexedOutputs (Tx txLevel)
445- HasIndexedOutputs-Tx .IndexedOutputsOf = IndexedOutputsOf ∘ TxBodyOf
446-
447441 HasMintedValue-TxBody : HasMintedValue (TxBody txLevel)
448442 HasMintedValue-TxBody .MintedValueOf = TxBody.mint
449443 HasMintedValue-Tx : HasMintedValue (Tx txLevel)
@@ -459,6 +453,11 @@ could be either of them.
459453 HasListOfGovProposals-Tx : HasListOfGovProposals (Tx txLevel)
460454 HasListOfGovProposals-Tx .ListOfGovProposalsOf = ListOfGovProposalsOf ∘ TxBodyOf
461455
456+ HasMaybeNetworkId-TxBody : HasMaybeNetworkId (TxBody txLevel)
457+ HasMaybeNetworkId-TxBody .MaybeNetworkIdOf = TxBody.txNetworkId
458+ HasMaybeNetworkId-Tx : HasMaybeNetworkId (Tx txLevel)
459+ HasMaybeNetworkId-Tx .MaybeNetworkIdOf = MaybeNetworkIdOf ∘ TxBodyOf
460+
462461 HasFees?-TxBody : {ℓ : TxLevel} → HasFees? (TxBody ℓ)
463462 HasFees?-TxBody {TxLevelTop} .FeesOf? tbTop = just (TxBody.txFee tbTop)
464463 HasFees?-TxBody {TxLevelSub} .FeesOf? tbSub = nothing
@@ -502,6 +501,11 @@ could be either of them.
502501 HasRequiredSingerHashes-TxBody .RequiredSignerHashesOf = TxBody.requiredSignerHashes
503502 HasRequiredSingerHashes-Tx : HasRequiredSingerHashes (Tx txLevel)
504503 HasRequiredSingerHashes-Tx .RequiredSignerHashesOf = RequiredSignerHashesOf ∘ TxBodyOf
504+
505+ HasCurrentTreasury-TxBody : HasCurrentTreasury (TxBody txLevel)
506+ HasCurrentTreasury-TxBody .CurrentTreasuryOf = TxBody.currentTreasury
507+ HasCurrentTreasury-Tx : HasCurrentTreasury (Tx txLevel)
508+ HasCurrentTreasury-Tx .CurrentTreasuryOf = CurrentTreasuryOf ∘ TxBodyOf
505509```
506510-->
507511
0 commit comments