Skip to content

Commit

Permalink
chore(upgrade): remove historical upgrade handlers (#427)
Browse files Browse the repository at this point in the history
remove historical upgrade handlers and port
piplabs/cosmos-sdk#32 change

issue: none
  • Loading branch information
ezreal1997 authored Dec 13, 2024
1 parent 8d78f7a commit 288928a
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 229 deletions.
9 changes: 1 addition & 8 deletions client/app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/piplabs/story/client/app/upgrades"
"github.com/piplabs/story/client/app/upgrades/v0_12_1"
"github.com/piplabs/story/client/app/upgrades/v0_13_0"
"github.com/piplabs/story/client/app/upgrades/v0_14_0"
)

var (
// `Upgrades` defines the upgrade handlers and store loaders for the application.
// New upgrades should be added to this slice after they are implemented.
Upgrades = []upgrades.Upgrade{
v0_12_1.Upgrade,
v0_13_0.Upgrade,
v0_14_0.Upgrade,
}
Upgrades = []upgrades.Upgrade{}
// Forks are for hard forks that breaks backward compatibility.
Forks = []upgrades.Fork{}
)
Expand Down
16 changes: 0 additions & 16 deletions client/app/upgrades/v0_12_1/constants.go

This file was deleted.

76 changes: 0 additions & 76 deletions client/app/upgrades/v0_12_1/upgrades.go

This file was deleted.

16 changes: 0 additions & 16 deletions client/app/upgrades/v0_13_0/constants.go

This file was deleted.

33 changes: 0 additions & 33 deletions client/app/upgrades/v0_13_0/upgrades.go

This file was deleted.

16 changes: 0 additions & 16 deletions client/app/upgrades/v0_14_0/constants.go

This file was deleted.

61 changes: 0 additions & 61 deletions client/app/upgrades/v0_14_0/upgrades.go

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ replace (
github.com/cometbft/cometbft v0.38.12 => github.com/cometbft/cometbft v0.38.9

// Direct cosmos-sdk branch link: https://github.com/piplabs/cosmos-sdk/tree/piplabs/v0.50.10, current branch: piplabs/v0.50.10
github.com/cosmos/cosmos-sdk => github.com/piplabs/cosmos-sdk v0.50.10-piplabs-v0.4
github.com/cosmos/cosmos-sdk => github.com/piplabs/cosmos-sdk v0.50.10-piplabs-v0.5

// See https://github.com/cosmos/cosmos-sdk/pull/14952
// Also https://github.com/cosmos/cosmos-db/blob/main/go.mod#L11-L12
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,8 @@ github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
github.com/piplabs/cosmos-sdk v0.50.10-piplabs-v0.4 h1:XTPlWC7Uftk4IGlgBgiopXk53fywQNyIoBRv4W1BTFY=
github.com/piplabs/cosmos-sdk v0.50.10-piplabs-v0.4/go.mod h1:6Eesrx3ZE7vxBZWpK++30H+Uc7Q4ahQWCL7JKU/LEdU=
github.com/piplabs/cosmos-sdk v0.50.10-piplabs-v0.5 h1:YuSkplxqggSaKlqMy5OZkU9acHVuv7LhN93q9rFkJQU=
github.com/piplabs/cosmos-sdk v0.50.10-piplabs-v0.5/go.mod h1:6Eesrx3ZE7vxBZWpK++30H+Uc7Q4ahQWCL7JKU/LEdU=
github.com/piplabs/cosmos-sdk/x/evidence v0.1.1-piplabs-v0.2 h1:3WnMps6DSyLChQpO29tPVNEFuXIb/RrCyQSSuWNE2o8=
github.com/piplabs/cosmos-sdk/x/evidence v0.1.1-piplabs-v0.2/go.mod h1:OIQ4Ax/nK/ED36QTnO4LhTslsR4omyvEAXmJcRw7R/Q=
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=
Expand Down

0 comments on commit 288928a

Please sign in to comment.