Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add start and end timestmap for poll #2113

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Conversation

ctrlc03
Copy link
Collaborator

@ctrlc03 ctrlc03 commented Feb 7, 2025

Description

Add start and end date for polls

Related issue(s)

fix #2110

Confirmation

Important

We do not accept minor grammatical fixes (e.g., correcting typos, rewording sentences) unless they significantly improve clarity in technical documentation. These contributions, while appreciated, are not a priority for merging. If there is a grammatical error feel free to message the team.

Copy link

vercel bot commented Feb 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
maci-website ✅ Ready (Inspect) Visit Preview Feb 7, 2025 5:19pm

@ctrlc03 ctrlc03 self-assigned this Feb 7, 2025
@ctrlc03 ctrlc03 force-pushed the feat/poll-start-date branch from 136d303 to f83db00 Compare February 7, 2025 08:07
packages/contracts/contracts/Poll.sol Dismissed Show dismissed Hide dismissed
packages/contracts/contracts/Poll.sol Dismissed Show dismissed Hide dismissed
packages/contracts/contracts/PollFactory.sol Dismissed Show dismissed Hide dismissed
packages/contracts/contracts/PollFactory.sol Dismissed Show dismissed Hide dismissed
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctrlc03 thanks, just one suggestion:

Let's move this to maci-contracts and re-export it in maci-sdk.

const startTime = (await signer.provider?.getBlock("latest"))?.timestamp ?? Math.floor(Date.now() / 1000);

And change getBlock to getBlockNumber.

apps/relayer/tests/deploy.ts Show resolved Hide resolved
packages/cli/tests/ceremony-params/ceremonyParams.test.ts Outdated Show resolved Hide resolved
packages/cli/tests/e2e/e2e.test.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctrlc03 thanks!

@0xmad 0xmad enabled auto-merge February 7, 2025 18:35
@0xmad 0xmad merged commit 2d4c13a into dev Feb 7, 2025
23 checks passed
@0xmad 0xmad deleted the feat/poll-start-date branch February 7, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Feature: Include poll start time as poll parameter
2 participants