Interface Description
License: MIT
interface IGovSettings
This is the contract that stores proposal settings that will be used by the governance pool
enum ExecutorType {
DEFAULT,
INTERNAL,
VALIDATORS
}
ProposalSettings
The struct holds information about settings for proposal type
Parameters:
the boolean flag, if true the voting completes as soon as the quorum is reached
the boolean flag, if true then delegators can vote with their own delegated tokens, else micropool vote allowed
the boolean flag, if true then voting will have an additional validators step
the duration of voting in seconds
the duration of validators voting in seconds
the delay in seconds before the proposal can be executed
the percentage of total votes supply (erc20 + nft) to confirm the proposal
the percentage of total validator token supply to confirm the proposal
the minimal needed voting power to vote for the proposal
the minimal needed voting power to create the proposal
struct IGovSettings.RewardsInfo
the reward info for proposal creation and execution
the settings description string
The struct holds information about rewards for proposals
Parameters:
the amount of reward for proposal creation
the amount of reward for proposal execution
the reward multiplier for voting for the proposal
executorToSettings (0x793e1468)
The function to get settings of this executor
Parameters:
Return values:
setting id of the executor
addSettings (0x6a11e769)
Add new types to contract
Parameters:
struct IGovSettings.ProposalSettings[]
editSettings (0x2d141cdd)
Edit existed type
Parameters:
struct IGovSettings.ProposalSettings[]
changeExecutors (0xf7e1ef01)
Change executors association
Parameters:
getDefaultSettings (0x00d04976)
The function to get default settings
Return values:
struct IGovSettings.ProposalSettings
getInternalSettings (0x79dcff40)
The function to get internal settings
Return values:
struct IGovSettings.ProposalSettings
getExecutorSettings (0x57404769)
The function the get the settings of the executor
Parameters:
Return values:
struct IGovSettings.ProposalSettings
ProposalSettings by executor address