Skip to content

Commit

Permalink
Don't reexport Vote (the type) from TransactionStructure
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatisRT committed Oct 20, 2023
1 parent 4443ea5 commit 4a6b1de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Ledger/Foreign/HSLedger.agda
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ HSGovStructure = record
}
instance _ = HSGovStructure

open import Ledger.GovernanceActions it
open import Ledger.GovernanceActions it hiding (Vote)
open import Ledger.Deleg it
open import Ledger.Gov it

Expand Down Expand Up @@ -262,8 +262,8 @@ instance

Convertible-Tag : Convertible Tag F.Tag
Convertible-Tag = λ where
.to λ{ Spend Spend; Mint Mint; Cert Cert; Rewrd Rewrd; Vote F.Vote; Propose Propose }
.from λ{ Spend Spend; Mint Mint; Cert Cert; Rewrd Rewrd; Vote Tag.Vote; Propose Propose }
.to λ{ Spend Spend; Mint Mint; Cert Cert; Rewrd Rewrd; Vote Vote; Propose Propose }
.from λ{ Spend Spend; Mint Mint; Cert Cert; Rewrd Rewrd; Vote Vote; Propose Propose }
where open F.Tag

Convertible-TxWitnesses : Convertible TxWitnesses F.TxWitnesses
Expand Down
1 change: 1 addition & 0 deletions src/Ledger/Ratify.lagda
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ open import Ledger.Transaction hiding (Vote)

module Ledger.Ratify (txs : _) (open TransactionStructure txs) where

open import Ledger.GovernanceActions govStructure using (Vote)
open import Ledger.Gov govStructure

infixr 2 _∧_
Expand Down
2 changes: 1 addition & 1 deletion src/Ledger/ScriptValidation.agda
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ open import Ledger.Crypto


module Ledger.ScriptValidation
(txs : _) (open TransactionStructure txs hiding (Vote))
(txs : _) (open TransactionStructure txs)
(abs : AbstractFunctions txs) (open AbstractFunctions abs) (open indexOf indexOfImp)
where

Expand Down
2 changes: 1 addition & 1 deletion src/Ledger/Transaction.lagda
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ the transaction body are:
; govParams = govParams
}

open Ledger.GovernanceActions govStructure hiding (yes; no) public
open Ledger.GovernanceActions govStructure hiding (Vote; yes; no; abstain) public
open Ledger.Deleg govStructure public
\end{code}
\emph{Derived types}
Expand Down
2 changes: 1 addition & 1 deletion src/Ledger/Utxow.lagda
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open import Ledger.Abstract
open import Ledger.Transaction

module Ledger.Utxow
(txs : _) (open TransactionStructure txs hiding (Vote))
(txs : _) (open TransactionStructure txs)
(abs : AbstractFunctions txs) (open AbstractFunctions abs)
where
open import Ledger.Utxo txs abs
Expand Down

0 comments on commit 4a6b1de

Please sign in to comment.