Skip to content

Commit 15bba17

Browse files
committed
token algebras are era independent
1 parent 98b6828 commit 15bba17

File tree

12 files changed

+29
-24
lines changed

12 files changed

+29
-24
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ module Implementation where
103103
AuxiliaryData =
104104
DocHash =
105105
tokenAlgebra = Coin-TokenAlgebra
106-
where open import Ledger.Conway.Specification.TokenAlgebra.Coin ScriptHash
106+
where open import Ledger.Core.Specification.TokenAlgebra.Coin ScriptHash
107107
using (Coin-TokenAlgebra)

src/Ledger/Conway/Specification.lagda.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ import Ledger.Conway.Specification.Test.StructuredContracts
134134
## Token Algebras
135135

136136
```agda
137-
import Ledger.Conway.Specification.TokenAlgebra.Base
138-
import Ledger.Conway.Specification.TokenAlgebra.Coin
139-
import Ledger.Conway.Specification.TokenAlgebra.ValueSet
140-
import Ledger.Conway.Specification.TokenAlgebra.ValueVector
137+
import Ledger.Core.Specification.TokenAlgebra.Base
138+
import Ledger.Core.Specification.TokenAlgebra.Coin
139+
import Ledger.Core.Specification.TokenAlgebra.ValueSet
140+
import Ledger.Core.Specification.TokenAlgebra.ValueVector
141141
```
142142

143143
## Transactions

src/Ledger/Conway/Specification/Test/LedgerImplementation.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module Implementation where
8383
AuxiliaryData = ℕ
8484
DocHash = ℕ
8585
tokenAlgebra = Coin-TokenAlgebra
86-
where open import Ledger.Conway.Specification.TokenAlgebra.Coin ScriptHash
86+
where open import Ledger.Core.Specification.TokenAlgebra.Coin ScriptHash
8787
using (Coin-TokenAlgebra)
8888
8989

src/Ledger/Conway/Specification/Test/StructuredContracts.lagda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ open import Data.Nat.Properties using (+-0-monoid)
1515
open import Ledger.Prelude; open Equivalence
1616
open import Ledger.Conway.Specification.Transaction
1717
open import Ledger.Conway.Specification.Abstract
18-
open import Ledger.Conway.Specification.TokenAlgebra.Base
19-
open import Ledger.Conway.Specification.TokenAlgebra.ValueSet
18+
open import Ledger.Core.Specification.TokenAlgebra.Base
19+
open import Ledger.Core.Specification.TokenAlgebra.ValueSet
2020
2121
module Ledger.Conway.Specification.Test.StructuredContracts
2222
(txs : _) (open TransactionStructure txs)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import Ledger.Conway.Specification.PParams
2727
import Ledger.Conway.Specification.Script.Base
2828
import Ledger.Conway.Specification.Gov.Actions
2929
import Ledger.Conway.Specification.Certs
30-
import Ledger.Conway.Specification.TokenAlgebra.Base
30+
import Ledger.Core.Specification.TokenAlgebra.Base
3131
import Ledger.Core.Specification.Address
3232
3333
open import Relation.Nullary.Decidable using (⌊_⌋)
@@ -88,7 +88,7 @@ record TransactionStructure : Type₁ where
8888
8989
field cryptoStructure : _
9090
open CryptoStructure cryptoStructure public
91-
open Ledger.Conway.Specification.TokenAlgebra.Base ScriptHash public
91+
open Ledger.Core.Specification.TokenAlgebra.Base ScriptHash public
9292
open Ledger.Core.Specification.Address Network KeyHash ScriptHash ⦃ it ⦄ ⦃ it ⦄ ⦃ it ⦄ public
9393
9494
field epochStructure : _

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ instance
137137
```
138138
-->
139139

140-
*UTxO transitions*
140+
*UTxO transitions*
141141

142142
```agda
143143
data _⊢_⇀⦇_,UTXO⦈_ : UTxOEnv → UTxOState → Tx → UTxOState → Type

src/Ledger/Core/Specification/TokenAlgebra/Base.lagda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source_branch: master
3-
source_path: src/Ledger/Conway/Specification/TokenAlgebra/Base.lagda
3+
source_path: src/Ledger/Core/Specification/TokenAlgebra/Base.lagda
44
---
55

66
# Token Algebras {#sec:token-algebra}
@@ -11,7 +11,7 @@ Token algebras are used for multiple assets.
1111
```agda
1212
{-# OPTIONS --safe #-}
1313
open import Prelude using (Type)
14-
module Ledger.Conway.Specification.TokenAlgebra.Base (
14+
module Ledger.Core.Specification.TokenAlgebra.Base (
1515
```
1616
-->
1717
*Abstract types*

src/Ledger/Core/Specification/TokenAlgebra/Coin.lagda.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
source_branch: master
3-
source_path: src/Ledger/Conway/Specification/TokenAlgebra/Coin.lagda.md
3+
source_path: src/Ledger/Core/Specification/TokenAlgebra/Coin.lagda.md
44
---
55

66
```agda
77
{-# OPTIONS --safe #-}
88
open import Ledger.Prelude
99
10-
module Ledger.Conway.Specification.TokenAlgebra.Coin (X : Type) where
10+
module Ledger.Core.Specification.TokenAlgebra.Coin (X : Type) where
1111
1212
open import Algebra.Morphism.Construct.Identity
1313
using (isMonoidHomomorphism)
1414
15-
open import Ledger.Conway.Specification.TokenAlgebra.Base X
15+
open import Ledger.Core.Specification.TokenAlgebra.Base X
1616
1717
open TokenAlgebra
1818

src/Ledger/Core/Specification/TokenAlgebra/ValueSet.lagda.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source_branch: master
3-
source_path: src/Ledger/Conway/Specification/TokenAlgebra/ValueSet.lagda.md
3+
source_path: src/Ledger/Core/Specification/TokenAlgebra/ValueSet.lagda.md
44
---
55

66
## Value Set {#sec:value-set}
@@ -12,11 +12,11 @@ source_path: src/Ledger/Conway/Specification/TokenAlgebra/ValueSet.lagda.md
1212
1313
open import Prelude using (Type)
1414
15-
module Ledger.Conway.Specification.TokenAlgebra.ValueSet (PolicyId AssetName : Type) where
15+
module Ledger.Core.Specification.TokenAlgebra.ValueSet (PolicyId AssetName : Type) where
1616
1717
open import Ledger.Prelude hiding (lookup ; update ; isMagma ; isEquivalence) renaming (TotalMap to _⇒_)
1818
open _⇒_
19-
open import Ledger.Conway.Specification.TokenAlgebra.Base PolicyId using (TokenAlgebra)
19+
open import Ledger.Core.Specification.TokenAlgebra.Base PolicyId using (TokenAlgebra)
2020
2121
open import Algebra using (Op₂ ; IsSemigroup ; IsMonoid ; IsMagma ; IsCommutativeMonoid)
2222
open import Algebra.Morphism using (IsMonoidHomomorphism ; IsMagmaHomomorphism)

src/Ledger/Core/Specification/TokenAlgebra/ValueVector.lagda.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
source_branch: master
3-
source_path: src/Ledger/Conway/Specification/TokenAlgebra/ValueVector.lagda.md
3+
source_path: src/Ledger/Core/Specification/TokenAlgebra/ValueVector.lagda.md
44
---
55

66
```agda
77
{-# OPTIONS --safe #-}
88
open import Ledger.Prelude hiding (_∙_; ε)
99
10-
module Ledger.Conway.Specification.TokenAlgebra.ValueVector (PolicyId : Type) (n : ℕ) where
10+
module Ledger.Core.Specification.TokenAlgebra.ValueVector (PolicyId : Type) (n : ℕ) where
1111
1212
import Algebra as Alg
1313
open import Algebra.Construct.DirectProduct
@@ -19,7 +19,7 @@ open import Data.Vec as Vec
1919
import stdlib.Data.Vec.Instances as Vec
2020
import Data.Vec.Relation.Binary.Pointwise.Inductive as Vec
2121
22-
open import Ledger.Conway.Specification.TokenAlgebra.Base PolicyId
22+
open import Ledger.Core.Specification.TokenAlgebra.Base PolicyId
2323
2424
Quantity = ℕ
2525

0 commit comments

Comments
 (0)