IGovValidators
Interface Description
License: MIT
This is the voting contract that is queried on the proposal's second voting stage
Enums info
ProposalState
ProposalType
Structs info
ProposalSettings
The struct holds information about settings for validators proposal
Parameters:
ProposalCore
The struct holds core properties of a proposal
Parameters:
InternalProposal
The struct holds information about the internal proposal
Parameters:
ExternalProposal
The struct holds information about the external proposal
Parameters:
InternalProposalView
The struct that is used in view functions of contract as a return argument
Parameters:
Functions info
validatorsCount (0xed612f8c)
The function for getting current number of validators
Return values:
createInternalProposal (0x9661803d)
Create internal proposal for changing validators balances, base quorum, base duration
Parameters:
createExternalProposal (0xdc2a7714)
Create external proposal. This function can call only Gov
contract
Parameters:
voteInternalProposal (0x5a34c7e1)
voteExternalProposal (0xba877b80)
cancelVoteInternalProposal (0x5478197e)
cancelVoteExternalProposal (0xea1941d0)
executeInternalProposal (0x65f3f23f)
Only for internal proposals. External proposals should be executed from governance.
Parameters:
executeExternalProposal (0x430c885a)
The function called by governance that marks the external proposal as executed
Parameters:
changeSettings (0xb395fec0)
changeBalances (0x62a4107d)
The function for changing validators balances
Parameters:
monthlyWithdraw (0x3271f009)
getExternalProposal (0xe14ea231)
The function for getting information about the external proposals
Parameters:
Return values:
getInternalProposals (0x8a847ae4)
The function for getting information about internal proposals
Parameters:
Return values:
getProposalState (0x7b839d93)
Return proposal state
Options: Voting
- proposal where addresses can vote. Defeated
- proposal where voting time is over and proposal defeated. Succeeded
- proposal with the required number of votes. Executed
- executed proposal (only for internal proposal). Undefined
- nonexistent proposal.
getProposalRequiredQuorum (0xbd7782fc)
The function for getting proposal required quorum
Parameters:
Return values:
isValidator (0xfacd743b)
The function that checks if a user is a validator
Parameters:
Return values: