Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + const BaseParamsError + const CodeInvalidMaxProposalNum + const DefaultCodespace + const ProposalTypeUpgrade + const QueryParams + const QueryUpgrade + const UpgradeRouterKey + const UpgradeStatusEffective + const UpgradeStatusPreparing + const UpgradeStatusWaitingEffective + var KeyMaxBlockHeight = []byte("MaxBlockHeight") + var KeyMaxDepositPeriod = []byte("MaxDepositPeriod") + var KeyMinDeposit = []byte("MinDeposit") + var KeyVotingPeriod = []byte("VotingPeriod") + var NewParamChange = types.NewParamChange + var RegisteredErrInvalidParamsNum = sdkerrors.Register(params.ModuleName, CodeInvalidMaxProposalNum, "invalid param number") + func ErrInvalidParamsNum(codespace string, msg string) sdk.EnvelopedErr + func ParamKeyTable() sdkparams.KeyTable + type ParamChange = types.ParamChange + type ParameterChangeProposal struct + Height uint64 + func NewParameterChangeProposal(title, description string, changes []types.ParamChange, height uint64) ParameterChangeProposal + func (pcp ParameterChangeProposal) ValidateBasic() sdk.Error + type Params struct + MaxBlockHeight uint64 + MaxDepositPeriod time.Duration + MinDeposit sdk.SysCoins + VotingPeriod time.Duration + func DefaultParams() Params + func (p *Params) ParamSetPairs() subspace.ParamSetPairs + func (p Params) String() string + type UpgradeCache struct + func NewUpgreadeCache(storeKey *sdk.KVStoreKey, logger log.Logger, cdc *codec.Codec) *UpgradeCache + func (uc *UpgradeCache) ClaimReadyForUpgrade(name string, cb func(UpgradeInfo)) + func (uc *UpgradeCache) IsUpgradeExist(ctx sdk.Context, name string) bool + func (uc *UpgradeCache) IterateAllUpgradeInfo(ctx sdk.Context, cb func(info UpgradeInfo) (stop bool)) sdk.Error + func (uc *UpgradeCache) QueryReadyForUpgrade(name string) ([]func(UpgradeInfo), bool) + func (uc *UpgradeCache) ReadUpgradeInfo(ctx sdk.Context, name string) (UpgradeInfo, error) + func (uc *UpgradeCache) WriteUpgradeInfo(ctx sdk.Context, info UpgradeInfo, forceCover bool) sdk.Error + type UpgradeInfo struct + Config string + EffectiveHeight uint64 + ExpectHeight uint64 + Name string + Status UpgradeStatus + type UpgradeProposal struct + Config string + Description string + ExpectHeight uint64 + Name string + Title string + func NewUpgradeProposal(title, description, name string, expectHeight uint64, config string) UpgradeProposal + func (up UpgradeProposal) GetDescription() string + func (up UpgradeProposal) GetTitle() string + func (up UpgradeProposal) ProposalRoute() string + func (up UpgradeProposal) ProposalType() string + func (up UpgradeProposal) String() string + func (up UpgradeProposal) ValidateBasic() sdk.Error + type UpgradeStatus uint32