Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
pcmintcap "github.com/pushchain/push-chain-node/app/upgrades/pc-mint-cap"
solanafix "github.com/pushchain/push-chain-node/app/upgrades/solana-fix"
tsscore "github.com/pushchain/push-chain-node/app/upgrades/tss-core"
tsscorefix "github.com/pushchain/push-chain-node/app/upgrades/tss-core-fix"
)

// Upgrades list of chain upgrades
Expand All @@ -23,6 +24,7 @@ var Upgrades = []upgrades.Upgrade{
gasoracle.NewUpgrade(),
pcmintcap.NewUpgrade(),
tsscore.NewUpgrade(),
tsscorefix.NewUpgrade(),
}

// RegisterUpgradeHandlers registers the chain upgrade handlers
Expand Down
41 changes: 41 additions & 0 deletions app/upgrades/tss-core-fix/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package inbound

import (
"context"

upgradetypes "cosmossdk.io/x/upgrade/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"

storetypes "cosmossdk.io/store/types"
"github.com/pushchain/push-chain-node/app/upgrades"
utsstypes "github.com/pushchain/push-chain-node/x/utss/types"
)

const UpgradeName = "tss-core-fix"

// NewUpgrade constructs the upgrade definition
func NewUpgrade() upgrades.Upgrade {
return upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateUpgradeHandler,
StoreUpgrades: storetypes.StoreUpgrades{
Added: []string{utsstypes.StoreKey},
Deleted: []string{},
},
}
}

func CreateUpgradeHandler(
mm upgrades.ModuleManager,
configurator module.Configurator,
ak *upgrades.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
sdkCtx := sdk.UnwrapSDKContext(ctx)
sdkCtx.Logger().Info("🔧 Running upgrade:", "name", UpgradeName)

// Run module migrations
return mm.RunMigrations(ctx, configurator, fromVM)
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ replace (
cosmossdk.io/x/upgrade => cosmossdk.io/x/upgrade v0.1.4
github.com/CosmWasm/wasmd => github.com/CosmWasm/wasmd v0.55.0 // Keep v0.55.0
github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.50.10 // Use stable v0.50.10
github.com/cosmos/evm => github.com/pushchain/evm v0.2.1-0.20251013112033-ffd15b85335c
github.com/cosmos/evm => github.com/pushchain/evm v0.2.1-0.20251212052011-9c265dcd5bd6
github.com/ethereum/go-ethereum => github.com/cosmos/go-ethereum v1.10.26-evmos-rc4.0.20250402013457-cf9d288f0147
github.com/spf13/viper => github.com/spf13/viper v1.17.0
github.com/strangelove-ventures/tokenfactory => github.com/strangelove-ventures/tokenfactory v0.50.7-wasmvm2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1752,8 +1752,8 @@ github.com/prysmaticlabs/gohashtree v0.0.4-beta.0.20240624100937-73632381301b h1
github.com/prysmaticlabs/gohashtree v0.0.4-beta.0.20240624100937-73632381301b/go.mod h1:HRuvtXLZ4WkaB1MItToVH2e8ZwKwZPY5/Rcby+CvvLY=
github.com/prysmaticlabs/prysm/v5 v5.3.0 h1:7Lr8ndapBTZg00YE+MgujN6+yvJR6Bdfn28ZDSJ00II=
github.com/prysmaticlabs/prysm/v5 v5.3.0/go.mod h1:r1KhlduqDMIGZ1GhR5pjZ2Ko8Q89noTDYTRoPKwf1+c=
github.com/pushchain/evm v0.2.1-0.20251013112033-ffd15b85335c h1:V9/cXTaDtXJJAMuTFwfOYgCcPzO03YGxu462/vU0+pI=
github.com/pushchain/evm v0.2.1-0.20251013112033-ffd15b85335c/go.mod h1:/4D24vd1xRnUVaXzfNryxTo5Gn1c/phJG5FvpH9OvLQ=
github.com/pushchain/evm v0.2.1-0.20251212052011-9c265dcd5bd6 h1:Ig8N9pDw/I75TDdLOdCdHhLgGCiHkH8gSIa/NhQrwj8=
github.com/pushchain/evm v0.2.1-0.20251212052011-9c265dcd5bd6/go.mod h1:/4D24vd1xRnUVaXzfNryxTo5Gn1c/phJG5FvpH9OvLQ=
github.com/quic-go/qpack v0.4.0 h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo=
github.com/quic-go/qpack v0.4.0/go.mod h1:UZVnYIfi5GRk+zI9UMaCPsmZ2xKJP7XBUvVyT1Knj9A=
github.com/quic-go/qtls-go1-20 v0.3.4 h1:MfFAPULvst4yoMgY9QmtpYmfij/em7O8UUi+bNVm7Cg=
Expand Down
Loading