Module proposal

Source

Structs§

GlobalParamsData
Update the global parameters configuration, like, max and min name lengths, and other validations. All values are set within default storage values.
Proposal
A network proposal created by the community. Core part of the DAO.
UnrewardedProposal

Enums§

ProposalData
The proposal type and data.
ProposalStatus

Functions§

add_dao_treasury_transfer_proposal
Create a treasury transfer proposal with metadata.
add_emission_proposal
Creates a new emissions proposal. Only valid if recycling_percentage + treasury_percentage <= u128::MAX.
add_global_custom_proposal
Create global custom proposal with metadata.
add_global_params_proposal
Create global update parameters proposal with metadata.
get_reward_allocation
Calculates the total balance to be rewarded for a proposal.
tick_proposal_rewards
Processes the proposal reward queue and distributes rewards for all voters.
tick_proposals
Every 100 blocks, iterates through all pending proposals and executes the ones eligible.

Type Aliases§

ProposalId