Skip to content

Commit 402a6e1

Browse files
committed
effect Carlos's change requests
1 parent 8f9bed8 commit 402a6e1

File tree

8 files changed

+24
-59
lines changed

8 files changed

+24
-59
lines changed

src/Ledger/Dijkstra/Specification.lagda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{-# OPTIONS --safe #-}
33
module Ledger.Dijkstra.Specification where
44
5-
import Ledger.Dijkstra.Specification.Address
5+
import Ledger.Core.Specification.Address renaming (RwdAddr to RewardAddress)
66
import Ledger.Dijkstra.Specification.Certs
7-
import Ledger.Dijkstra.Specification.Epoch
7+
import Ledger.Core.Specification.Epoch
88
import Ledger.Dijkstra.Specification.Gov.Base
99
import Ledger.Dijkstra.Specification.Gov.Actions
1010
import Ledger.Dijkstra.Specification.PParams

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

Lines changed: 0 additions & 15 deletions
This file was deleted.

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

Lines changed: 0 additions & 10 deletions
This file was deleted.

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

Lines changed: 0 additions & 10 deletions
This file was deleted.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ source_path: src/Ledger/Dijkstra/Specification/PParams.lagda.md
44
---
55
```agda
66
{-# OPTIONS --safe #-}
7-
open import Ledger.Dijkstra.Specification.Crypto
7+
open import Ledger.Core.Specification.Crypto
88
using (CryptoStructure)
99
open import Ledger.Dijkstra.Specification.Script
1010
using (ScriptStructure)
11-
open import Ledger.Dijkstra.Specification.Epoch
11+
open import Ledger.Core.Specification.Epoch
1212
using (EpochStructure)
1313
1414
module Ledger.Dijkstra.Specification.PParams

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ source_path: src/Ledger/Dijkstra/Specification/Script.lagda.md
44
---
55
```agda
66
{-# OPTIONS --safe #-}
7-
open import Ledger.Dijkstra.Specification.Crypto
7+
open import Ledger.Core.Specification.Crypto
88
using (CryptoStructure)
9-
open import Ledger.Dijkstra.Specification.Epoch
9+
open import Ledger.Core.Specification.Epoch
1010
using (EpochStructure)
1111
module Ledger.Dijkstra.Specification.Script
1212
(crypto : CryptoStructure)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import Data.Maybe.Base as M
88
99
open import Ledger.Prelude renaming (filterᵐ to filter)
1010
11-
open import Ledger.Dijkstra.Specification.Crypto
12-
open import Ledger.Dijkstra.Specification.Epoch
11+
open import Ledger.Core.Specification.Crypto
12+
open import Ledger.Core.Specification.Epoch
1313
open import Ledger.Dijkstra.Specification.Gov.Base
1414
15-
import Ledger.Dijkstra.Specification.Address
15+
import Ledger.Core.Specification.Address renaming (RwdAddr to RewardAddress)
1616
import Ledger.Dijkstra.Specification.Certs
1717
import Ledger.Dijkstra.Specification.Gov.Actions
1818
import Ledger.Dijkstra.Specification.PParams
@@ -98,7 +98,7 @@ record TransactionStructure : Type₁ where
9898
field crypto : _
9999
open CryptoStructure crypto public
100100
open Ledger.Dijkstra.Specification.TokenAlgebra.Base ScriptHash public
101-
open Ledger.Dijkstra.Specification.Address Network KeyHash ScriptHash ⦃ it ⦄ ⦃ it ⦄ ⦃ it ⦄ public
101+
open Ledger.Core.Specification.Address Network KeyHash ScriptHash ⦃ it ⦄ ⦃ it ⦄ ⦃ it ⦄ public
102102
103103
field epochStructure : _
104104
open EpochStructure epochStructure public
@@ -141,8 +141,8 @@ record TransactionStructure : Type₁ where
141141
UTxO : Type
142142
UTxO = TxIn ⇀ TxOut
143143
144-
Withdrawals : Type
145-
Withdrawals = RewardAddress ⇀ Coin
144+
-- Withdrawals : Type
145+
-- Withdrawals = RewardAddress ⇀ Coin
146146
147147
-- Datums : Type
148148
-- Datums = DataHash ⇀ Datum

src/Ledger/Prelude.agda

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ module Filter where
8282

8383
-- TODO: Move to agda-sets
8484
-- https://github.com/input-output-hk/agda-sets/pull/13
85-
infixr 9 _∘ʳ_
86-
infix 10 _⁻¹ʳ
87-
opaque
88-
_⁻¹ʳ : {A B : Type} Rel A B Rel B A
89-
R ⁻¹ʳ = mapˢ swap R
90-
where open import Data.Product using (swap)
91-
92-
_∘ʳ_ : {A B C : Type} ⦃ _ : DecEq B ⦄ Rel A B Rel B C Rel A C
93-
R ∘ʳ S =
94-
concatMapˢ
95-
(λ (a , b) mapˢ ((a ,_) ∘ proj₂) $ filterˢ ((b ≡_) ∘ proj₁) S)
96-
R
85+
-- infixr 9 _∘ʳ_
86+
-- infix 10 _⁻¹ʳ
87+
-- opaque
88+
-- _⁻¹ʳ : {A B : Type} → Rel A B → Rel B A
89+
-- R ⁻¹ʳ = mapˢ swap R
90+
-- where open import Data.Product using (swap)
91+
92+
-- _∘ʳ_ : {A B C : Type} ⦃ _ : DecEq B ⦄ → Rel A B → Rel B C → Rel A C
93+
-- R ∘ʳ S =
94+
-- concatMapˢ
95+
-- (λ (a , b) → mapˢ ((a ,_) ∘ proj₂) $ filterˢ ((b ≡_) ∘ proj₁) S)
96+
-- R

0 commit comments

Comments
 (0)