Skip to content

Commit 97bf12d

Browse files
committed
fix alignment issues
1 parent 22d89d1 commit 97bf12d

File tree

6 files changed

+32
-31
lines changed

6 files changed

+32
-31
lines changed

src/Ledger/Conway/Foreign/HSLedger/ExternalStructures.agda

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

src/Ledger/Conway/Foreign/HSLedger/Gov/Actions.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2424
instance

src/Ledger/Conway/Specification/Abstract.lagda.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ open import Ledger.Conway.Specification.Script.ScriptPurpose txs
1717
1818
record 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
2727
record AbstractFunctions : Type where
2828
field txscriptfee : Prices → ExUnits → Coin

src/Ledger/Conway/Specification/Script/ScriptPurpose.lagda.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ open import Ledger.Conway.Specification.Certs govStructure
2121

2222
```agda
2323
data 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
3131
record TxInfo : Type where
3232
field realizedInputs : UTxO

src/Ledger/Dijkstra/Specification/Abstract.lagda.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
```agda
22
{-# OPTIONS --safe #-}
33
4-
open import Ledger.Prelude
54
open import Ledger.Dijkstra.Specification.Transaction
65
76
module Ledger.Dijkstra.Specification.Abstract (txs : TransactionStructure) where
87
8+
open import Ledger.Prelude
99
open TransactionStructure txs
1010
open import Ledger.Dijkstra.Specification.Certs govStructure
1111
12+
1213
record 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
2223
record AbstractFunctions : Type where
2324
field txScriptFee : Prices → ExUnits → Fees

src/Test/AbstractImplementation.agda

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)