package
0.5.7
Repository: https://github.com/initia-labs/initia.git
Documentation: pkg.go.dev

# Functions

DefaultGenesisState defines the default governance genesis state.
DefaultParams returns the default governance params.
EmptyTallyResult returns an empty TallyResult.
NewGenesisState creates a new genesis state for the governance module.
No description provided by the author
NewParams creates a new Params instance with given values.
NewProposal creates a new Proposal instance.
No description provided by the author
NewValidatorGovInfo creates a ValidatorGovInfo instance.
Vesting struct to hold the vesting contract information.
ProposalStatusFromString turns a string into a ProposalStatus.
No description provided by the author
No description provided by the author
RegisterLegacyAminoCodec registers the necessary x/gov interfaces and concrete types on the provided LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
ValidateGenesis checks if parameters are within valid ranges.
ValidProposalStatus returns true if the proposal status is valid and false otherwise.

# Constants

No description provided by the author
5 minutes.
1 day.
Default period for deposits & voting.
2 days.
No description provided by the author

# Variables

set to false to replicate behavior of when this change was made (0.47).
set to false to replicate behavior of when this change was made (0.47).
set to true to replicate behavior of when this change was made (0.47).
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
Default governance params.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

GenesisState defines the gov module's genesis state.
MsgUpdateParams is the Msg/UpdateParams request type.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Params defines the parameters for the x/gov module.
Proposal defines the core field members of a governance proposal.
QueryEmergencyProposalsRequest is the request type for the Query/EmergencyProposals RPC method.
QueryEmergencyProposalsResponse is the response type for the Query/EmergencyProposals RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryProposalRequest is the request type for the Query/Proposal RPC method.
QueryProposalResponse is the response type for the Query/Proposal RPC method.
QueryProposalsRequest is the request type for the Query/Proposals RPC method.
QueryProposalsResponse is the response type for the Query/Proposals RPC method.
QueryTallyResultRequest is the request type for the Query/Tally RPC method.
QueryTallyResultResponse is the response type for the Query/Tally RPC method.
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValidatorGovInfo used for tallying.
Vesting defines the vesting contract info for MsgVestingVote.

# Interfaces

MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
StakingKeeper expected staking keeper (Validator and Delegator sets) (noalias).
No description provided by the author

# Type aliases

No description provided by the author
Proposals is an array of proposal.