archway-network / archway

Archway Network
https://archway.io
Other
70 stars 98 forks source link

v8.0.0: Release Checklist #579

Open spoo-bar opened 2 weeks ago

spoo-bar commented 2 weeks ago

Archwayd Release Checklist

This checklist is to be used for tracking the final things to do to wrap up a new release of the Archway protocol binary as well as all the post upgrade maintenance work.

Before Release

Release

Post Release

Added

Changed

Deprecated

Removed

Fixed

Improvements

- [ ] Add a placeholder upgrade handler as follows
  - [ ] Add new file at path `upgrades/latest/upgrades.go` with the following contents
```go
package upgradelatest

import (
    storetypes "cosmossdk.io/store/types"
    sdk "github.com/cosmos/cosmos-sdk/types"
    "github.com/cosmos/cosmos-sdk/types/module"
    "github.com/cosmos/cosmos-sdk/x/auth/keeper"
    upgradetypes "cosmossdk.io/x/upgrade/types"

        "github.com/archway-network/archway/app/keepers"
    "github.com/archway-network/archway/app/upgrades"
)

// This upgrade handler is used for all the current changes to the protocol

const Name = "latest"
const NameAsciiArt = ""

var Upgrade = upgrades.Upgrade{
    UpgradeName: Name,
    CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, keepers keepers.ArchwayKeepers) upgradetypes.UpgradeHandler {
        return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
            migrations, err := mm.RunMigrations(ctx, cfg, fromVM)
            if err != nil {
                return nil, err
            }

            ctx.Logger().Info(upgrades.ArchwayLogo + NameAsciiArt)
            return migrations, nil
        }
    },
    StoreUpgrades: storetypes.StoreUpgrades{},
}