diff --git a/app/consumer-democracy/app.go b/app/consumer-democracy/app.go index ab340ed..91d8a18 100644 --- a/app/consumer-democracy/app.go +++ b/app/consumer-democracy/app.go @@ -8,7 +8,7 @@ import ( "os" "path/filepath" - // v0 "github.com/onomyprotocol/multiverse/app/consumer-democracy/upgrades/" + v1_0_0_onex_testnet "github.com/onomyprotocol/multiverse/app/consumer-democracy/upgrades/v1.0.0-onex-testnet" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" @@ -909,7 +909,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino } func (app *App) setupUpgradeHandlers() { - // app.UpgradeKeeper.SetUpgradeHandler(v0.Name, v0.UpgradeHandler) + app.UpgradeKeeper.SetUpgradeHandler(v1_0_0_onex_testnet.Name, v1_0_0_onex_testnet.UpgradeHandler) upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() if err != nil { diff --git a/app/consumer-democracy/upgrades/v1.0.0-onex-testnet/upgrade.go b/app/consumer-democracy/upgrades/v1.0.0-onex-testnet/upgrade.go new file mode 100644 index 0000000..c8b867c --- /dev/null +++ b/app/consumer-democracy/upgrades/v1.0.0-onex-testnet/upgrade.go @@ -0,0 +1,15 @@ +package v1_0_0_onex_testnet //nolint:revive,stylecheck // app version + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" +) + +// Name is migration name. +const Name = "v1.0.0-onex-testnet" + +// UpgradeHandler is an x/upgrade handler. +func UpgradeHandler(_ sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + return vm, nil +} diff --git a/go.mod b/go.mod index 1a75cbf..3ee846e 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( // NOTE: the canonical consumer version can be different from the producer, check the ICS repo github.com/cosmos/interchain-security v1.2.0-multiden github.com/gorilla/mux v1.8.0 - github.com/pendulum-labs/market v0.1.4 // NOTE: change the version in the replace line + github.com/pendulum-labs/market v1.1.0 // NOTE: change the version in the replace line github.com/rakyll/statik v0.1.7 github.com/spf13/cast v1.5.1 github.com/stretchr/testify v1.8.3 @@ -155,7 +155,7 @@ replace ( github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.45.16-ics github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 - github.com/pendulum-labs/market => github.com/onomyprotocol/market v0.1.4 + github.com/pendulum-labs/market => github.com/onomyprotocol/market v1.1.0 github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.28 google.golang.org/grpc => google.golang.org/grpc v1.33.2 ) diff --git a/go.sum b/go.sum index fbed161..e412b93 100644 --- a/go.sum +++ b/go.sum @@ -2204,8 +2204,8 @@ github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:v github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= -github.com/onomyprotocol/market v0.1.4 h1:0pEauEsJ43XHt9fihvpvfEhrVwNhJKq2gePoBY7sn0Y= -github.com/onomyprotocol/market v0.1.4/go.mod h1:PWXq76Fbc9LbcNW4rEBfCQbns+4ZHnAmM0dOS4waiBM= +github.com/onomyprotocol/market v1.1.0 h1:erVL2LMdv8cRbrKeCyQfo7TAPdFuedpv1L7fBxR19sE= +github.com/onomyprotocol/market v1.1.0/go.mod h1:0AHp+qkE0BFNb0B+Y32Z9Zzbs5pRWctQ0QzbLrqTwiU= github.com/onsi/ginkgo v0.0.0-20151202141238-7f8ab55aaf3b/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=