Governance
Last updated
Last updated
Code | Error | Description |
---|---|---|
GNOSWAP-GOVERNANCE-001
Caller has no permission
Occurs when a user without the necessary permissions attempts an action restricted to authorized users.
GNOSWAP-GOVERNANCE-002
Out of range for numeric value
Occurs when a numeric input exceeds the acceptable range for the operation.
GNOSWAP-GOVERNANCE-003
Invalid input
Occurs when input data does not meet the required format or values for a governance operation.
GNOSWAP-GOVERNANCE-004
Requested ata not found
Occurs when the system is unable to locate the requested data for a governance action, such as a specific proposal.
GNOSWAP-GOVERNANCE-005
Not enough balance
Occurs when a user attempts an action without sufficient token balance to fulfill the requirement.
GNOSWAP-GOVERNANCE-006
Unable to vote before stars
Occurs when a vote is attempted before the voting period has officially begun.
GNOSWAP-GOVERNANCE-007
Unable to vote after ends
Occurs when a user tries to vote after the voting period has ended.
GNOSWAP-GOVERNANCE-008
Unable to vote for canceled proposal
Occurs when a user attempts to vote on a proposal that has been canceled.
GNOSWAP-GOVERNANCE-009
Can not vote twice
Occurs when a user tries to vote multiple times on the same proposal.
GNOSWAP-GOVERNANCE-010
Not enough voting power
Occurs when a user does not have enough voting power to cast a vote on a proposal.
GNOSWAP-GOVERNANCE-011
Can not cancel already canceled proposal
Occurs when an attempt is made to cancel a proposal that has already been canceled.
GNOSWAP-GOVERNANCE-012
Unable to cancel voting proposal
Occurs when a user tries to cancel a proposal that is in the voting phase and cannot be canceled.
GNOSWAP-GOVERNANCE-013
Unable to cancel proposal with voter has enough delegation
Occurs when a cancellation attempt is made on a proposal with sufficient delegation support.
GNOSWAP-GOVERNANCE-014
Can not execute text proposal
Occurs when an attempt is made to execute a text proposal, which is not executable.
GNOSWAP-GOVERNANCE-015
Unable to execute proposal
Occurs when a proposal fails to execute, possibly due to unmet requirements.
GNOSWAP-GOVERNANCE-016
Proposal execution time has not been reached yet
Occurs when an attempt to execute a proposal is made before its designated execution time.
GNOSWAP-GOVERNANCE-017
Proposal execution time expired
Occurs when a proposal's execution time has expired, making it ineligible for execution.
GNOSWAP-GOVERNANCE-018
Proposal quorum not met
Occurs when a proposal fails due to insufficient voter turnout to meet the quorum.
GNOSWAP-GOVERNANCE-019
Proposal has more no vote than yes votes
Occurs when a proposal fails because it received more "no" votes than "yes" votes.
GNOSWAP-GOVERNANCE-020
Invalid function parameter to execute
Occurs when an invalid parameter is provided for a function to execute within a proposal.
GNOSWAP-GOVERNANCE-021
Not executable function
Occurs when an attempt is made to execute a function that is not designed for execution within the governance module.
GNOSWAP-GOVERNANCE-022
ParseUint internal failed
Occurs when parsing a numeric input (e.g., integer parsing) fails during a governance operation.
GNOSWAP-GOVERNANCE-023
Unsupported proposal type
Occurs when a proposal of an unsupported type is submitted for voting.
GNOSWAP-GOVERNANCE-024
Token not registered to community pool
Occurs when a token involved in a proposal action is not registered with the community pool.
GNOSWAP-GOV_STAKER-001
Caller has no permission
Occurs when a user without the necessary permissions attempts an action restricted to authorized callers.
GNOSWAP-GOV_STAKER-002
Not registered token
Occurs when a token used in an operation is not registered within the governance staking module.
GNOSWAP-GOV_STAKER-003
Already registered token
Occurs when an attempt is made to register a token that is already registered.
GNOSWAP-GOV_STAKER-004
Can't transfer token while locked
Occurs when a user tries to transfer tokens that are currently locked.
GNOSWAP-GOV_STAKER-005
Zero delegated amount
Occurs when a delegation operation is attempted with an amount of zero, which is invalid.
GNOSWAP-GOV_STAKER-006
Did not delegate to that address
Occurs when a user attempts to interact with a delegation but has not delegated to the specified address.
GNOSWAP-GOV_STAKER-007
Not enough delegated
Occurs when a user tries to undelegate more tokens than they have delegated.
GNOSWAP-GOV_STAKER-008
Invalid address
Occurs when an invalid address is provided in a staking or delegation operation.
GNOSWAP-GOV_STAKER-009
Can not use future time
Occurs when a time parameter is set to a future time that is invalid for the operation.
GNOSWAP-GOV_STAKER-010
Start time is after than end time
Occurs when a start time is specified that occurs after the end time, which is invalid.
GNOSWAP-GOV_STAKER-011
Requested data not found
Occurs when the system is unable to locate the requested data for a staking or governance operation.
GNOSWAP-GOV_STAKER-012
Not enough balance
Occurs when a user attempts an action without sufficient token balance to complete the operation.
GNOSWAP-GOV_STAKER-013
Can not delegate less than minimum amount
Occurs when a user attempts to delegate an amount that is below the minimum required.