IGovSettings

Interface Description

License: MIT

interface IGovSettings

This is the contract that stores proposal settings that will be used by the governance pool

Enums info

ExecutorType

enum ExecutorType {
	 DEFAULT,
	 INTERNAL,
	 VALIDATORS
}

Structs info

ProposalSettings

struct ProposalSettings {
	bool earlyCompletion;
	bool delegatedVotingAllowed;
	bool validatorsVote;
	uint64 duration;
	uint64 durationValidators;
	uint64 executionDelay;
	uint128 quorum;
	uint128 quorumValidators;
	uint256 minVotesForVoting;
	uint256 minVotesForCreating;
	IGovSettings.RewardsInfo rewardsInfo;
	string executorDescription;
}

The struct holds information about settings for proposal type

Parameters:

RewardsInfo

struct RewardsInfo {
	address rewardToken;
	uint256 creationReward;
	uint256 executionReward;
	uint256 voteRewardsCoefficient;
}

The struct holds information about rewards for proposals

Parameters:

Functions info

executorToSettings (0x793e1468)

function executorToSettings(address executor) external view returns (uint256)

The function to get settings of this executor

Parameters:

Return values:

addSettings (0x6a11e769)

function addSettings(
    IGovSettings.ProposalSettings[] calldata _settings
) external

Add new types to contract

Parameters:

editSettings (0x2d141cdd)

function editSettings(
    uint256[] calldata settingsIds,
    IGovSettings.ProposalSettings[] calldata _settings
) external

Edit existed type

Parameters:

changeExecutors (0xf7e1ef01)

function changeExecutors(
    address[] calldata executors,
    uint256[] calldata settingsIds
) external

Change executors association

Parameters:

getDefaultSettings (0x00d04976)

function getDefaultSettings()
    external
    view
    returns (IGovSettings.ProposalSettings memory)

The function to get default settings

Return values:

getInternalSettings (0x79dcff40)

function getInternalSettings()
    external
    view
    returns (IGovSettings.ProposalSettings memory)

The function to get internal settings

Return values:

getExecutorSettings (0x57404769)

function getExecutorSettings(
    address executor
) external view returns (IGovSettings.ProposalSettings memory)

The function the get the settings of the executor

Parameters:

Return values: