What: Add on-chain governance voting using token balances as voting power.
Why: Decentralized governance requires token-weighted voting. Important for protocol upgrades.
Scope: Add Proposal struct with description, choices, start/end time. Add create_proposal, vote, execute_proposal functions. Use token snapshots for voting power.
Acceptance criteria:
- Proposals can be created
- Token holders can vote
- Voting power is token-weighted
- Proposals can be executed
Technical context: contracts/learn-token/src/lib.rs — token functions.
What: Add on-chain governance voting using token balances as voting power.
Why: Decentralized governance requires token-weighted voting. Important for protocol upgrades.
Scope: Add
Proposalstruct with description, choices, start/end time. Addcreate_proposal,vote,execute_proposalfunctions. Use token snapshots for voting power.Acceptance criteria:
Technical context:
contracts/learn-token/src/lib.rs— token functions.