-
Notifications
You must be signed in to change notification settings - Fork 28
[Governance] Create proposal entrypoint #89
Copy link
Copy link
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Campaign: Official Campaign | FWC26contractsgovernancephase:foundationsoroban
Description
Activity
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Campaign: Official Campaign | FWC26contractsgovernancephase:foundationsoroban
Description
The Governance contract defines proposal storage and vote execution flows, but it still needs a public proposal-creation entrypoint so proposals can be created on-chain without test-only storage seeding.
User Story
As a Protocol User,
I want to create a proposal through the contract,
so that governance state begins from an on-chain action rather than direct storage writes.
Requirements and Context
contracts/governance/src/lib.rs,contracts/governance/src/types.rs,contracts/governance/src/test.rscreate_proposal(env: Env, proposer: Address, metadata_hash: BytesN<32>, end_time: u64) -> u32proposer.require_auth()executed = falseSuggested Implementation
Acceptance Criteria
Submission Guidelines
feat/create-proposal[Governance] Define proposal schemafeat(governance): add create_proposal entrypoint