Skip to content

docs(guide): performing an upgrade #183

@reecepbcups

Description

@reecepbcups

original from: https://gist.github.com/fmorency/8042310d09861497da698cf2b5cd4dc2

Create an unsigned transaction file upgrade.json containing

{
  "body": {
    "messages": [
      {
        "@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
        "authority": "[POA_ADMIN_ADDRESS]",
        "plan": {
          "name": "[UPGRADE_NAME]",
          "time": "0001-01-01T00:00:00Z",
          "height": "[UPGRADE_BLOCK_HEIGHT]",
          "info": "{}",
          "upgraded_client_state": null
        }
      }
    ],
    "memo": "",
    "timeout_height": "0",
    "extension_options": [],
    "non_critical_extension_options": []
  },
  "auth_info": {
    "signer_infos": [],
    "fee": {
      "amount": [],
      "gas_limit": "200000",
      "payer": "",
      "granter": ""
    },
    "tip": null
  },
  "signatures": []
  }
}
where [POA_ADMIN_ADDRESS] is the POA administrator address, [UPGRADE_NAME] is the name of the upgrade plan, e.g., v1.0.0, and [UPGRADE_BLOCK_HEIGHT] is the block height at which to apply the upgrade. This must be a block after the block of the uploaded Tx

Sign the transaction using the POA Admin account (TODO: instructions for then the POA Admin account is a group)

appd tx tx sign upgrade.json --from poa-admin > upgrade_signed.json
appd tx broadcast upgrade_signed.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions