clean up import/export lists
This commit is contained in:
parent
8588bc4db5
commit
48fa641511
3 changed files with 7 additions and 12 deletions
|
|
@ -84,7 +84,6 @@ import Plutarch.Lift (
|
||||||
PUnsafeLiftDecl (..),
|
PUnsafeLiftDecl (..),
|
||||||
)
|
)
|
||||||
import Plutarch.SafeMoney (PDiscrete (..))
|
import Plutarch.SafeMoney (PDiscrete (..))
|
||||||
import Plutarch.Show (PShow (..))
|
|
||||||
import PlutusLedgerApi.V2 (Credential, DatumHash, ScriptHash, ValidatorHash)
|
import PlutusLedgerApi.V2 (Credential, DatumHash, ScriptHash, ValidatorHash)
|
||||||
import PlutusTx qualified
|
import PlutusTx qualified
|
||||||
import PlutusTx.AssocMap qualified as AssocMap
|
import PlutusTx.AssocMap qualified as AssocMap
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ import Plutarch.Extra.Sum (PSum (..))
|
||||||
import Plutarch.Extra.Traversable (pfoldMap)
|
import Plutarch.Extra.Traversable (pfoldMap)
|
||||||
import Plutarch.Lift (PConstantDecl, PUnsafeLiftDecl (..))
|
import Plutarch.Lift (PConstantDecl, PUnsafeLiftDecl (..))
|
||||||
import Plutarch.SafeMoney (PDiscrete)
|
import Plutarch.SafeMoney (PDiscrete)
|
||||||
import Plutarch.Show (PShow (..))
|
|
||||||
import PlutusLedgerApi.V1 (Credential)
|
import PlutusLedgerApi.V1 (Credential)
|
||||||
import PlutusTx qualified
|
import PlutusTx qualified
|
||||||
import Prelude hiding (Num (..))
|
import Prelude hiding (Num (..))
|
||||||
|
|
@ -328,6 +327,8 @@ data PProposalLock (s :: S)
|
||||||
PIsData
|
PIsData
|
||||||
, -- | @since 0.1.0
|
, -- | @since 0.1.0
|
||||||
PEq
|
PEq
|
||||||
|
, -- | @since 0.2.0
|
||||||
|
PShow
|
||||||
)
|
)
|
||||||
|
|
||||||
instance DerivePlutusType PProposalLock where
|
instance DerivePlutusType PProposalLock where
|
||||||
|
|
@ -349,15 +350,6 @@ deriving via
|
||||||
instance
|
instance
|
||||||
(Plutarch.Lift.PConstantDecl ProposalLock)
|
(Plutarch.Lift.PConstantDecl ProposalLock)
|
||||||
|
|
||||||
-- | @since 0.2.0
|
|
||||||
instance PShow PProposalLock where
|
|
||||||
pshow' :: Bool -> Term s PProposalLock -> Term s PString
|
|
||||||
pshow' True x = "(" <> pshow' False x <> ")"
|
|
||||||
pshow' False lock = pmatch lock $ \case
|
|
||||||
PCreated ((pfield @"created" #) -> pid) -> "PCreated " <> pshow' True pid
|
|
||||||
PVoted x -> pletFields @'["votedOn", "votedFor"] x $ \xF ->
|
|
||||||
"PVoted " <> pshow' True xF.votedOn <> " " <> pshow' True xF.votedFor
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
{- | Check whether a Stake is locked. If it is locked, various actions are unavailable.
|
{- | Check whether a Stake is locked. If it is locked, various actions are unavailable.
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@ Description: Treasury scripts.
|
||||||
Contains the datum, redeemer and validator for a template DAO
|
Contains the datum, redeemer and validator for a template DAO
|
||||||
treasury.
|
treasury.
|
||||||
-}
|
-}
|
||||||
module Agora.Treasury (module Agora.Treasury) where
|
module Agora.Treasury (
|
||||||
|
TreasuryRedeemer (..),
|
||||||
|
PTreasuryRedeemer (..),
|
||||||
|
treasuryValidator,
|
||||||
|
) where
|
||||||
|
|
||||||
import Agora.AuthorityToken (singleAuthorityTokenBurned)
|
import Agora.AuthorityToken (singleAuthorityTokenBurned)
|
||||||
import Generics.SOP qualified as SOP
|
import Generics.SOP qualified as SOP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue