IGovPool
Interface Description
License: MIT
This is the Governance pool contract. This contract is the third contract the user can deploy through the factory. The users can participate in proposal's creation, voting and execution processes
Enums info
ProposalState
The enum that holds information about proposal state
Parameters:
RewardType
The enum that holds information about reward type
Parameters:
VoteType
The enum that holds information about vote type
Parameters:
Structs info
Dependencies
The struct that holds information about dependencies
Parameters:
ProposalCore
The struct holds core properties of proposal
Parameters:
ProposalAction
The struct holds information about proposal action
Parameters:
Proposal
The struct holds all information about proposal
Parameters:
ProposalView
The struct that is used in view functions of contract as a return argument
Parameters:
RawVote
The struct that holds information about the typed vote (only for internal needs)
Parameters:
VoteInfo
The struct that holds information about the global vote properties (only for internal needs)
Parameters:
VoteInfoView
The struct that is used in view functions of contract as a return argument
Parameters:
DelegatorRewards
The struct that is used in view functions of contract as a return argument
Parameters:
DelegatorInfo
The struct that holds information about the delegator (only for internal needs)
Parameters:
PendingRewards
The struct that holds reward properties (only for internal needs)
Parameters:
UserInfo
The struct that holds the user info (only for internal needs)
Parameters:
VotingRewards
The struct that is used in view functions of contract as a return argument
Parameters:
PendingRewardsView
The struct that is used in view functions of contract as a return argument
Parameters:
CreditInfo
The struct is used to hold info about validators monthly withdrawal credit
Parameters:
TokenCreditInfo
The struct is used to hold info about limits and withdrawals history
Parameters:
CreditInfoView
The struct is used to return info about current credit state
Parameters:
OffChain
The struct that holds off-chain properties (only for internal needs)
Parameters:
Functions info
getHelperContracts (0x485f4044)
The function to get helper contract of this pool
Return values:
getNftContracts (0x80326e95)
The function to get the nft contracts of this pool
Return values:
createProposal (0xda1c6cfa)
Create proposal
Parameters:
createProposalAndVote (0xee0e5215)
Create and vote for on the proposal
Parameters:
moveProposalToValidators (0x2db47bdd)
Move proposal from internal voting to Validators
contract
Parameters:
vote (0x544df02c)
The function for voting for proposal with own tokens
Parameters:
cancelVote (0xbacbe2da)
The function for canceling vote
Parameters:
deposit (0xde3ab781)
The function for depositing tokens to the pool
Parameters:
withdraw (0xfb8c5ef0)
The function for withdrawing deposited tokens
Parameters:
delegate (0x46d0b0b9)
The function for delegating tokens
Parameters:
delegateTreasury (0x39588f1e)
The function for delegating tokens from treasury
Parameters:
undelegate (0x7810436a)
The function for undelegating delegated tokens
Parameters:
undelegateTreasury (0xb6b90df4)
The function for undelegating delegated tokens from treasury
Parameters:
unlock (0x2f6c493c)
The function that unlocks user funds in completed proposals
Parameters:
execute (0xfe0d94c1)
Execute proposal
Parameters:
claimRewards (0x0520537f)
The function for claiming rewards from executed proposals
Parameters:
claimMicropoolRewards (0x7b0e1203)
The function for claiming micropool rewards from executed proposals
Parameters:
changeVotePower (0xcfd9c3c3)
The function to change vote power contract
Parameters:
editDescriptionURL (0x0dbf1c47)
The function for changing description url
Parameters:
changeVerifier (0xcf04fb94)
The function for changing verifier address
Parameters:
setCreditInfo (0xbaa7652f)
The function for setting validators credit limit
Parameters:
transferCreditAmount (0xc1e09f97)
The function for fulfilling transfer request from validators
Parameters:
changeBABTRestriction (0x2050a31b)
The function for changing the KYC restriction
Parameters:
setNftMultiplierAddress (0xa43040eb)
The function for setting address of nft multiplier contract
Parameters:
saveOffchainResults (0x41c47e3e)
The function for saving ipfs hash of off-chain proposal results
Parameters:
getProposals (0x5e3b4365)
The paginated function for getting proposal info list
Parameters:
Return values:
getProposalState (0x9080936f)
Parameters:
Return values:
getUserActiveProposalsCount (0x38fa211c)
The function for getting user's active proposals count
Parameters:
Return values:
getTotalVotes (0x6545ea83)
The function for getting total raw votes in the proposal by one voter
Parameters:
Return values:
getProposalRequiredQuorum (0xda437f37)
The function to get required quorum of proposal
Parameters:
Return values:
getUserVotes (0x466d7af2)
The function to get information about user's votes
Parameters:
Return values:
getWithdrawableAssets (0x7ecd20bb)
The function to get withdrawable assets
Parameters:
Return values:
getPendingRewards (0x566aff6a)
The function to get on-chain and off-chain rewards
Parameters:
Return values:
getDelegatorRewards (0x529285af)
The function to get delegator staking rewards from all micropools
Parameters:
Return values:
getCreditInfo (0xf06817cf)
The function to get info about validators credit limit
Return values:
getOffchainInfo (0xb3a72fc4)
The function to get off-chain info
Return values:
getOffchainSignHash (0x8e19ade9)
The function to get the sign hash from string resultsHash, chainid, govPool address
Parameters:
Return values:
getExpertStatus (0x0660b478)
The function to get expert status of a voter
Return values:
coreProperties (0xe9bbc80c)
The function to get core properties
Return values: