Documentation ¶
Index ¶
- Constants
- func MakeAppliedMsg(appliedMsg types.AppliedMsg) (upgradetypes.QueryAppliedPlanRequest, error)
- func MakeCancelSoftwareUpgradeMsg(cancelSoftwareUpgradeMsg types.CancelSoftwareUpgradeMsg, from sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
- func MakePlanMsg() (upgradetypes.QueryCurrentPlanRequest, error)
- func MakeProposalSoftwareUpgradeMsg(softwareUpgradeMsg types.SoftwareUpgradeMsg, from sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
- func MakeQueryAllModuleVersionMsg() (upgradetypes.QueryModuleVersionsRequest, error)
- func MakeQueryModuleVersionMsg(queryModulesVersionMsg types.QueryModulesVersionMsg) (upgradetypes.QueryModuleVersionsRequest, error)
- func NewCoreModule() core.CoreModule
- func QueryUpgrade(i core.QueryClient) (string, error)
- type UpgradeExternal
- func (e UpgradeExternal) CancelSoftwareUpgrade(cancelSoftwareUpgradeMsg types.CancelSoftwareUpgradeMsg) provider.XplaClient
- func (e UpgradeExternal) ModulesVersion(queryModulesVersionMsg ...types.QueryModulesVersionMsg) provider.XplaClient
- func (e UpgradeExternal) Plan() provider.XplaClient
- func (e UpgradeExternal) SoftwareUpgrade(softwareUpgradeMsg types.SoftwareUpgradeMsg) provider.XplaClient
- func (e UpgradeExternal) UpgradeApplied(appliedMsg types.AppliedMsg) provider.XplaClient
Constants ¶
View Source
const ( UpgradeModule = "upgrade" UpgradeProposalSoftwareUpgradeMsgType = "proposal-software-upgrade" UpgradeCancelSoftwareUpgradeMsgType = "cancel-software-upgrade" UpgradeAppliedMsgType = "applied" UpgradeQueryModuleVersionsMsgType = "upgrade-module-versions" UpgradeQueryAllModuleVersionsMsgType = "upgrade-all-module-versions" UpgradePlanMsgType = "upgrade-plan" )
Variables ¶
This section is empty.
Functions ¶
func MakeAppliedMsg ¶
func MakeAppliedMsg(appliedMsg types.AppliedMsg) (upgradetypes.QueryAppliedPlanRequest, error)
(Query) make msg - applied
func MakeCancelSoftwareUpgradeMsg ¶
func MakeCancelSoftwareUpgradeMsg(cancelSoftwareUpgradeMsg types.CancelSoftwareUpgradeMsg, from sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
(Tx) make msg - cancel software upgrade
func MakePlanMsg ¶
func MakePlanMsg() (upgradetypes.QueryCurrentPlanRequest, error)
(Query) make msg - plan
func MakeProposalSoftwareUpgradeMsg ¶
func MakeProposalSoftwareUpgradeMsg(softwareUpgradeMsg types.SoftwareUpgradeMsg, from sdk.AccAddress) (govtypes.MsgSubmitProposal, error)
(Tx) make msg - software upgrade
func MakeQueryAllModuleVersionMsg ¶
func MakeQueryAllModuleVersionMsg() (upgradetypes.QueryModuleVersionsRequest, error)
(Query) make msg - all module versions
func MakeQueryModuleVersionMsg ¶
func MakeQueryModuleVersionMsg(queryModulesVersionMsg types.QueryModulesVersionMsg) (upgradetypes.QueryModuleVersionsRequest, error)
(Query) make msg - module version
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
func QueryUpgrade ¶
func QueryUpgrade(i core.QueryClient) (string, error)
Query client for upgrade module.
Types ¶
type UpgradeExternal ¶ added in v0.1.2
type UpgradeExternal struct {
Xplac provider.XplaClient
}
func NewUpgradeExternal ¶ added in v0.1.2
func NewUpgradeExternal(xplac provider.XplaClient) (e UpgradeExternal)
func (UpgradeExternal) CancelSoftwareUpgrade ¶ added in v0.1.2
func (e UpgradeExternal) CancelSoftwareUpgrade(cancelSoftwareUpgradeMsg types.CancelSoftwareUpgradeMsg) provider.XplaClient
Cancel the current software upgrade proposal.
func (UpgradeExternal) ModulesVersion ¶ added in v0.1.2
func (e UpgradeExternal) ModulesVersion(queryModulesVersionMsg ...types.QueryModulesVersionMsg) provider.XplaClient
Query the list of module versions.
func (UpgradeExternal) Plan ¶ added in v0.1.2
func (e UpgradeExternal) Plan() provider.XplaClient
Query upgrade plan(if one exists).
func (UpgradeExternal) SoftwareUpgrade ¶ added in v0.1.2
func (e UpgradeExternal) SoftwareUpgrade(softwareUpgradeMsg types.SoftwareUpgradeMsg) provider.XplaClient
Submit a software upgrade proposal.
func (UpgradeExternal) UpgradeApplied ¶ added in v0.1.2
func (e UpgradeExternal) UpgradeApplied(appliedMsg types.AppliedMsg) provider.XplaClient
Block header for height at which a completed upgrade was applied.
Click to show internal directories.
Click to hide internal directories.