celo-monorepo icon indicating copy to clipboard operation
celo-monorepo copied to clipboard

Governance should not remove past proposals from storage

Open nambrot opened this issue 3 years ago • 6 comments

Expected Behavior

While it was done to encourage gas savings, the importance and frequency of governance proposals probably could allow us to just keep it in storage until it becomes cost-prohibitive again. It would benefit for tooling that does not want to rely on an on-chain indexer which either isn't easily doable right now or a tool like the celocli generally won't.

Current Behavior

execution of a governance proposal removes it from storage.

nambrot avatar Mar 24 '21 23:03 nambrot

@yorhodes @aslawson Curious to get your thoughts

fyi @jmrossy

nambrot avatar Mar 24 '21 23:03 nambrot

@nambrot Thanks for creating an issue for this.

Where to draw the line between what stays on chain and what doesn't is subjective but this to me feels like a good candidate for keeping on-chain.

Nam mentioned the CLI, CeloWallet.app would also benefit from this, e.g. to show a Governance history screen. I had to skip that feature because this isn't doable today even with an on-chain indexer. The ProposalQueued events don't include a metadata url.

jmrossy avatar Mar 25 '21 16:03 jmrossy

ya i think this is one from our governance 2.0. i also see value in it -- especially for ones that at least get to the referendum phase (if we are concerned with too many being proposed in the future...)

aslawson avatar Mar 25 '21 21:03 aslawson

imo executed proposals should persist, expired should be garbage collected

yorhodes avatar Mar 26 '21 02:03 yorhodes

what about non-executed proposals that were in referendum phase? so we have historical reference of voting activity for those?

aslawson avatar Mar 27 '21 01:03 aslawson

This issue is stale and will be closed in 30 days without activity

github-actions[bot] avatar Sep 30 '22 14:09 github-actions[bot]