Skip to content

[CT-16] Implement proposal creation function #780

@yusuftomilola

Description

@yusuftomilola

Overview

Implement the create_proposal function so admin or eligible members can submit governance proposals. Work inside contracts/sandbox/governance/.

Acceptance Criteria

  • create_proposal(env, proposer, id, title, description, start_time, end_time) is implemented
  • proposer.require_auth() is called
  • Validates start_time < end_time
  • Returns error if proposal ID already exists
  • Stores proposal with Active status
  • Indexes proposal ID in ProposalList
  • Emits a creation event
  • Code compiles with cargo build

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions