test new functionalities in proposal advancements

This commit is contained in:
Hongrui Fang 2022-08-16 18:33:08 +08:00
parent e5385c3021
commit 1a62d7c4b7
5 changed files with 785 additions and 532 deletions

View file

@ -26,6 +26,7 @@ import Agora.Governor (
)
import Agora.Proposal (
ProposalDatum (..),
ProposalEffectGroup,
ProposalId (ProposalId),
ProposalStatus (..),
ResultTag (ResultTag),
@ -60,12 +61,10 @@ import Plutarch.Context (
)
import PlutusLedgerApi.V1.Value qualified as Value
import PlutusLedgerApi.V2 (
DatumHash,
POSIXTime (POSIXTime),
POSIXTimeRange,
PubKeyHash,
TxOutRef (TxOutRef),
ValidatorHash,
always,
)
import PlutusTx.AssocMap qualified as AssocMap
@ -136,7 +135,7 @@ defLocks :: [ProposalLock]
defLocks = [Created (ProposalId 0)]
-- | The effect of the newly created proposal.
defEffects :: AssocMap.Map ResultTag (AssocMap.Map ValidatorHash DatumHash)
defEffects :: AssocMap.Map ResultTag ProposalEffectGroup
defEffects =
AssocMap.fromList
[ (ResultTag 0, AssocMap.empty)