# README
Upgrade module
Usage
(Tx) Proposal software upgrade
softwareUpgradeMsg := types.SoftwareUpgradeMsg{
UpgradeName: "Upgrade Name",
Title: "Upgrade Title",
Description: "Upgrade Description",
UpgradeHeight:"6000",
UpgradeInfo: `{"upgrade_info":"INFO"}`,
Deposit: "1000",
}
txbytes, err := xplac.SoftwareUpgrade(softwareUpgradeMsg).CreateAndSignTx()
res, err := xplac.Broadcast(txbytes)
(Tx) Proposal cancel software upgrade
cancelSoftwareUpgradeMsg := types.CancelSoftwareUpgradeMsg {
Title: "Cancel software upgrade",
Description: "Cancel software upgrade description",
Deposit: "1000",
}
txbytes, err := xplac.CancelSoftwareUpgrade(cancelSoftwareUpgradeMsg).CreateAndSignTx()
res, err := xplac.Broadcast(txbytes)
(Query) Upgrade applied
appliedMsg := types.AppliedMsg{
UpgradeName: "upgrade-name",
}
res, err := xplac.UpgradeApplied(appliedMsg).Query()
(Query) Modules version
// Query specific module name
queryModulesVersionMsg := types.QueryModulesVersionMsg{
ModuleName: "auth",
}
res, err := xplac.ModulesVersion(queryModulesVersionMsg).Query()
// Query all modules version
res, err := xplac.ModulesVersion().Query()
(Query) Upgrade plan
res, err := xplac.Plan().Query()
# Functions
(Query) make msg - applied.
(Tx) make msg - cancel software upgrade.
(Query) make msg - plan.
(Tx) make msg - software upgrade.
(Query) make msg - all module versions.
(Query) make msg - module version.
No description provided by the author
No description provided by the author
Query client for upgrade module.
# Constants
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
No description provided by the author