* Add params error types * Update param module keeper to take a codespace * Update imports * Implement SetRaw and SetRawWithSubkey * Implement ParamChange and update aliases * Add types codec * Implement ParameterChangeProposal * Implement TestParameterChangeProposal * Fix linting errors * Update tags * Implement content * Updata params aliases * Finish params handler and proposal types * Move deposit and vote logic to types package * Move proposal type to types package * Move errors to types package * Update proposal * Move gov messages to types package * Minor updates to naming * Move keys to types package * Move codec to types package * Move proposal types to types package * Update aliases * Add governance alias types * Implement governance router * Update gov aliases * Update gov keeper * Update private functions needed for the keeper * Update godocs * Update the gov message handler * Update Gaia app * Make updates to auth * Update the message codec in the keeper * Update gov end blocker * Update types tests * Minor tweaks * Add legacy genesis logic * Update gov aliases * Move gov keys to types package * Revertt to using gov/types in params * Implement params handler test * Update governance tests * Fix endblocker tests * Fix governance querier tests * Add seal support to gov router * Update simulationCreateMsgSubmitProposal * Disable software upgrade proposals * Move params keys to types package * Implement param module proposal client logic * Update gov client logic * Update gaia app client hooks * Fix linting errors * Fix ValidateBasic * Remove legacy files * Update paramchange to use strings * Update paramchange cli cmd * Update ValidateBasic and errors * Use PostCommands when adding child cmds * Fix codec logic * Update params client and handler * Update IsValidProposalType * Update SubmitProposal to test exec * Implement TestGaiaCLISubmitParamChangeProposal * Implement TestSubmitParamChangeProposal * Update swagger.yaml * Update gaiacli.md * Update gov spec docs * Fix linting errors * Fix unit tests * Add pending log entries * Update docs * Update docs * Update client/lcd/swagger-ui/swagger.yaml Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update cmd/gaia/cli_test/test_helpers.go Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update client/lcd/test_helpers.go Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update x/gov/types/proposal.go Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Address PR comments * Update docs/cosmos-hub/gaiacli.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update gov docs to include quorum notes * Add logs to handleParameterChangeProposal * Update docs/spec/governance/02_state.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Support and use new StatusFailed when proposal passes but fails exec * Add docs/notes warning on param validity * Update docs * Update docs/spec/governance/02_state.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Update docs/spec/governance/02_state.md Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Minor doc update * Update x/gov/client/cli/tx.go Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Fix usage of fromAddr * Rige code style suggestion * Update x/params/types/proposal.go Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com> * Fix CI lint errors * Update NewModuleClient godoc * Add godoc to rtr.Seal() call * Rename files * Rename NewProposalHandler
109 lines
3.8 KiB
Go
109 lines
3.8 KiB
Go
//nolint
|
|
package gov
|
|
|
|
import "github.com/cosmos/cosmos-sdk/x/gov/types"
|
|
|
|
const (
|
|
StatusNil = types.StatusNil
|
|
StatusDepositPeriod = types.StatusDepositPeriod
|
|
StatusVotingPeriod = types.StatusVotingPeriod
|
|
StatusPassed = types.StatusPassed
|
|
StatusRejected = types.StatusRejected
|
|
StatusFailed = types.StatusFailed
|
|
|
|
DefaultCodespace = types.DefaultCodespace
|
|
DefaultParamspace = types.DefaultParamspace
|
|
ModuleName = types.ModuleName
|
|
RouterKey = types.RouterKey
|
|
StoreKey = types.StoreKey
|
|
QuerierRoute = types.QuerierRoute
|
|
|
|
ProposalTypeText = types.ProposalTypeText
|
|
ProposalTypeSoftwareUpgrade = types.ProposalTypeSoftwareUpgrade
|
|
|
|
OptionEmpty = types.OptionEmpty
|
|
OptionYes = types.OptionYes
|
|
OptionAbstain = types.OptionAbstain
|
|
OptionNo = types.OptionNo
|
|
OptionNoWithVeto = types.OptionNoWithVeto
|
|
|
|
TypeMsgDeposit = types.TypeMsgDeposit
|
|
TypeMsgVote = types.TypeMsgVote
|
|
TypeMsgSubmitProposal = types.TypeMsgSubmitProposal
|
|
)
|
|
|
|
type (
|
|
Content = types.Content
|
|
Handler = types.Handler
|
|
Proposal = types.Proposal
|
|
Proposals = types.Proposals
|
|
|
|
Deposit = types.Deposit
|
|
Deposits = types.Deposits
|
|
Vote = types.Vote
|
|
Votes = types.Votes
|
|
VoteOption = types.VoteOption
|
|
|
|
TextProposal = types.TextProposal
|
|
SoftwareUpgradeProposal = types.SoftwareUpgradeProposal
|
|
ProposalStatus = types.ProposalStatus
|
|
|
|
MsgSubmitProposal = types.MsgSubmitProposal
|
|
MsgDeposit = types.MsgDeposit
|
|
MsgVote = types.MsgVote
|
|
|
|
TallyResult = types.TallyResult
|
|
)
|
|
|
|
var (
|
|
ErrUnknownProposal = types.ErrUnknownProposal
|
|
ErrInactiveProposal = types.ErrInactiveProposal
|
|
ErrAlreadyActiveProposal = types.ErrAlreadyActiveProposal
|
|
ErrAlreadyFinishedProposal = types.ErrAlreadyFinishedProposal
|
|
ErrAddressNotStaked = types.ErrAddressNotStaked
|
|
ErrInvalidProposalContent = types.ErrInvalidProposalContent
|
|
ErrInvalidProposalType = types.ErrInvalidProposalType
|
|
ErrInvalidVote = types.ErrInvalidVote
|
|
ErrInvalidGenesis = types.ErrInvalidGenesis
|
|
ErrNoProposalHandlerExists = types.ErrNoProposalHandlerExists
|
|
|
|
NewProposal = types.NewProposal
|
|
ProposalHandler = types.ProposalHandler
|
|
ValidVoteOption = types.ValidVoteOption
|
|
ValidProposalStatus = types.ValidProposalStatus
|
|
|
|
ValidateAbstract = types.ValidateAbstract
|
|
EmptyTallyResult = types.EmptyTallyResult
|
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
KeyDelimiter = types.KeyDelimiter
|
|
KeyNextProposalID = types.KeyNextProposalID
|
|
PrefixActiveProposalQueue = types.PrefixActiveProposalQueue
|
|
PrefixInactiveProposalQueue = types.PrefixInactiveProposalQueue
|
|
|
|
KeyProposal = types.KeyProposal
|
|
KeyDeposit = types.KeyDeposit
|
|
KeyVote = types.KeyVote
|
|
KeyDepositsSubspace = types.KeyDepositsSubspace
|
|
KeyVotesSubspace = types.KeyVotesSubspace
|
|
PrefixActiveProposalQueueTime = types.PrefixActiveProposalQueueTime
|
|
KeyActiveProposalQueueProposal = types.KeyActiveProposalQueueProposal
|
|
PrefixInactiveProposalQueueTime = types.PrefixInactiveProposalQueueTime
|
|
KeyInactiveProposalQueueProposal = types.KeyInactiveProposalQueueProposal
|
|
|
|
NewMsgSubmitProposal = types.NewMsgSubmitProposal
|
|
NewMsgDeposit = types.NewMsgDeposit
|
|
NewMsgVote = types.NewMsgVote
|
|
NewTextProposal = types.NewTextProposal
|
|
NewTallyResultFromMap = types.NewTallyResultFromMap
|
|
|
|
ContentFromProposalType = types.ContentFromProposalType
|
|
IsValidProposalType = types.IsValidProposalType
|
|
VoteOptionFromString = types.VoteOptionFromString
|
|
ProposalStatusFromString = types.ProposalStatusFromString
|
|
|
|
RegisterProposalType = types.RegisterProposalType
|
|
RegisterProposalTypeCodec = types.RegisterProposalTypeCodec
|
|
)
|