File tree Expand file tree Collapse file tree 6 files changed +32
-31
lines changed Expand file tree Collapse file tree 6 files changed +32
-31
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,12 @@ instance
116116 ; txscriptfee = λ tt y → 0
117117 ; serSize = λ v → 0
118118 ; indexOfImp = record
119- { indexOfDCert = λ _ _ → nothing
119+ { indexOfDCert = λ _ _ → nothing
120120 ; indexOfRewardAddress = λ _ _ → nothing
121- ; indexOfTxIn = λ _ _ → nothing
122- ; indexOfPolicyId = λ _ _ → nothing
123- ; indexOfVote = λ _ _ → nothing
124- ; indexOfProposal = λ _ _ → nothing
121+ ; indexOfTxIn = λ _ _ → nothing
122+ ; indexOfPolicyId = λ _ _ → nothing
123+ ; indexOfVote = λ _ _ → nothing
124+ ; indexOfProposal = λ _ _ → nothing
125125 }
126126 ; runPLCScript = λ _ _ _ _ → false
127127 ; scriptSize = λ where
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ data GovAction' : Type where
1818 NewConstitution : DocHash → Maybe ScriptHash → GovAction'
1919 TriggerHardFork : ProtVer → GovAction'
2020 ChangePParams : PParamsUpdate → GovAction'
21- TreasuryWithdrawal : (RewardAddress ⇀ Treasury) → GovAction'
21+ TreasuryWithdrawal : (RewardAddress ⇀ Treasury) → GovAction'
2222 Info : GovAction'
2323
2424instance
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ open import Ledger.Conway.Specification.Script.ScriptPurpose txs
1717
1818record indexOf : Type where
1919 field
20- indexOfDCert : DCert → List DCert → Maybe Ix
21- indexOfRewardAddress : RewardAddress → Withdrawals → Maybe Ix
22- indexOfTxIn : TxIn → ℙ TxIn → Maybe Ix
23- indexOfPolicyId : ScriptHash → ℙ ScriptHash → Maybe Ix
24- indexOfVote : GovVoter → List GovVoter → Maybe Ix
25- indexOfProposal : GovProposal → List GovProposal → Maybe Ix
20+ indexOfDCert : DCert → List DCert → Maybe Ix
21+ indexOfRewardAddress : RewardAddress → Withdrawals → Maybe Ix
22+ indexOfTxIn : TxIn → ℙ TxIn → Maybe Ix
23+ indexOfPolicyId : ScriptHash → ℙ ScriptHash → Maybe Ix
24+ indexOfVote : GovVoter → List GovVoter → Maybe Ix
25+ indexOfProposal : GovProposal → List GovProposal → Maybe Ix
2626
2727record AbstractFunctions : Type where
2828 field txscriptfee : Prices → ExUnits → Coin
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ open import Ledger.Conway.Specification.Certs govStructure
2121
2222``` agda
2323data ScriptPurpose : Type where
24- Cert : DCert → ScriptPurpose
25- Rwrd : RewardAddress → ScriptPurpose
26- Mint : ScriptHash → ScriptPurpose
27- Spend : TxIn → ScriptPurpose
28- Vote : GovVoter → ScriptPurpose
29- Propose : GovProposal → ScriptPurpose
24+ Cert : DCert → ScriptPurpose
25+ Rwrd : RewardAddress → ScriptPurpose
26+ Mint : ScriptHash → ScriptPurpose
27+ Spend : TxIn → ScriptPurpose
28+ Vote : GovVoter → ScriptPurpose
29+ Propose : GovProposal → ScriptPurpose
3030
3131record TxInfo : Type where
3232 field realizedInputs : UTxO
Original file line number Diff line number Diff line change 11``` agda
22{-# OPTIONS --safe #-}
33
4- open import Ledger.Prelude
54open import Ledger.Dijkstra.Specification.Transaction
65
76module Ledger.Dijkstra.Specification.Abstract (txs : TransactionStructure) where
87
8+ open import Ledger.Prelude
99open TransactionStructure txs
1010open import Ledger.Dijkstra.Specification.Certs govStructure
1111
12+
1213record indexOf : Type where
1314 field
14- indexOfDCert : DCert → List DCert → Maybe Ix
15- indexOfRewardAddress : RewardAddress → Withdrawals → Maybe Ix
16- indexOfTxIn : TxIn → ℙ TxIn → Maybe Ix
17- indexOfPolicyId : ScriptHash → ℙ ScriptHash → Maybe Ix
18- indexOfVote : GovVoter → List GovVoter → Maybe Ix
19- indexOfProposal : GovProposal → List GovProposal → Maybe Ix
20- indexOfGuard : TxId × ScriptHash → ℙ (TxId × ScriptHash) → Maybe Ix
15+ indexOfDCert : DCert → List DCert → Maybe Ix
16+ indexOfRewardAddress : RewardAddress → Withdrawals → Maybe Ix
17+ indexOfTxIn : TxIn → ℙ TxIn → Maybe Ix
18+ indexOfPolicyId : ScriptHash → ℙ ScriptHash → Maybe Ix
19+ indexOfVote : GovVoter → List GovVoter → Maybe Ix
20+ indexOfProposal : GovProposal → List GovProposal → Maybe Ix
21+ indexOfGuard : TxId × ScriptHash → ℙ (TxId × ScriptHash) → Maybe Ix
2122
2223record AbstractFunctions : Type where
2324 field txScriptFee : Prices → ExUnits → Fees
Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ SVAbstractFunctions = record
2424 ; txscriptfee = λ tt y → 0
2525 ; serSize = λ v → 0 -- changed to 0
2626 ; indexOfImp = record
27- { indexOfDCert = λ _ _ → nothing
27+ { indexOfDCert = λ _ _ → nothing
2828 ; indexOfRewardAddress = λ _ _ → nothing
29- ; indexOfTxIn = indexOfTxInImp
30- ; indexOfPolicyId = λ _ _ → nothing
31- ; indexOfVote = λ _ _ → nothing
32- ; indexOfProposal = λ _ _ → nothing
29+ ; indexOfTxIn = indexOfTxInImp
30+ ; indexOfPolicyId = λ _ _ → nothing
31+ ; indexOfVote = λ _ _ → nothing
32+ ; indexOfProposal = λ _ _ → nothing
3333 }
3434 ; runPLCScript = λ { x (sh , script) x₂ x₃ → script x₃ }
3535 ; scriptSize = λ _ → 0
You can’t perform that action at this time.
0 commit comments