store starting time of the proposal in its datum

... hardcoded to 0 upon creation for now
This commit is contained in:
fanghr 2022-05-18 21:01:14 +08:00
parent 92c64f8d7a
commit e8b87654f3
No known key found for this signature in database
GPG key ID: 35CD9A71CD5D5870
7 changed files with 26 additions and 2 deletions

View file

@ -37,6 +37,7 @@ module Sample.Shared (
proposalValidatorHash,
proposalValidatorAddress,
proposalTimingConfig,
tmpProposalStartingTime,
-- ** Authority
authorityToken,
@ -76,6 +77,7 @@ import Agora.Proposal (
ProposalThresholds (..),
)
import Agora.Proposal.Time (
ProposalStartingTime (..),
ProposalTimingConfig (..),
)
import Agora.Stake (Stake (..))
@ -197,6 +199,10 @@ proposalTimingConfig =
, executingTime = 3000
}
-- FIXME: should be removed.
tmpProposalStartingTime :: ProposalStartingTime
tmpProposalStartingTime = ProposalStartingTime 0
------------------------------------------------------------------
treasuryOut :: TxOut