Skip to content

Commit

Permalink
chore: merge csdk-twilight
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Sep 26, 2023
2 parents 8d6ba3d + b6be235 commit c3f0fde
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 9 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

An '!' indicates a state machine breaking change.

## [v1.4.0](https://github.com/KYVENetwork/chain/releases/tag/v1.4.0) - 2023-09-04
## [Unreleased]

- [#33](https://github.com/KYVENetwork/chain/pull/33) Upgrade Cosmos SDK to [v0.47.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.3) ([`v0.47.3-kyve`](https://github.com/KYVENetwork/cosmos-sdk/releases/tag/v0.47.3-kyve)).
### Improvements

- (deps) [#33](https://github.com/KYVENetwork/chain/pull/33) Upgrade Cosmos SDK to [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) ([`v0.47.5-kyve`](https://github.com/KYVENetwork/cosmos-sdk/releases/tag/v0.47.5-kyve-rc0)).

## [v1.3.1](https://github.com/KYVENetwork/chain/releases/tag/v1.3.1) - 2023-08-02

Expand Down
36 changes: 34 additions & 2 deletions app/upgrades/v1_4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authTypes "github.com/cosmos/cosmos-sdk/x/auth/types"
bankTypes "github.com/cosmos/cosmos-sdk/x/bank/types"
crisisTypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
distributionTypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
govTypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
mintTypes "github.com/cosmos/cosmos-sdk/x/mint/types"
paramsTypes "github.com/cosmos/cosmos-sdk/x/params/types"
slashingTypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingTypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/ibc-go/v7/modules/core/exported"
ibcTmMigrations "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint/migrations"

Expand All @@ -19,7 +28,6 @@ import (

// Params
paramsKeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
paramsTypes "github.com/cosmos/cosmos-sdk/x/params/types"
// Upgrade
upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)
Expand All @@ -38,13 +46,37 @@ func CreateUpgradeHandler(
logger := ctx.Logger().With("upgrade", UpgradeName)
logger.Info("Run v1.4 upgrade")

var err error
distributionSpace, _ := paramsKeeper.GetSubspace("distribution")
distributionSpace.WithKeyTable(distributionTypes.ParamKeyTable())

stakingSpace, _ := paramsKeeper.GetSubspace("staking")
stakingSpace.WithKeyTable(stakingTypes.ParamKeyTable())

authSpace, _ := paramsKeeper.GetSubspace("auth")
authSpace.WithKeyTable(authTypes.ParamKeyTable())

bankSpace, _ := paramsKeeper.GetSubspace("bank")
bankSpace.WithKeyTable(bankTypes.ParamKeyTable())

crisisSpace, _ := paramsKeeper.GetSubspace("crisis")
crisisSpace.WithKeyTable(crisisTypes.ParamKeyTable())

govSpace, _ := paramsKeeper.GetSubspace("gov")
govSpace.WithKeyTable(govTypes.ParamKeyTable())

mintSpace, _ := paramsKeeper.GetSubspace("mint")
mintSpace.WithKeyTable(mintTypes.ParamKeyTable())

slashingSpace, _ := paramsKeeper.GetSubspace("slashing")
slashingSpace.WithKeyTable(slashingTypes.ParamKeyTable())

// Migrate consensus parameters from x/params to dedicated x/consensus module.
baseAppSubspace := paramsKeeper.Subspace(baseapp.Paramspace).
WithKeyTable(paramsTypes.ConsensusParamsKeyTable())
baseapp.MigrateParams(ctx, baseAppSubspace, &consensusKeeper)

var err error

// ibc-go v7.0 to v7.1 upgrade
// explicitly update the IBC 02-client params, adding the localhost client type
params := ibcKeeper.ClientKeeper.GetParams(ctx)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ replace (
github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0

// use kyve flavored cosmos/cosmos-sdk
github.com/cosmos/cosmos-sdk => github.com/KYVENetwork/cosmos-sdk v0.47.4-0.20230912091353-d2c627552db3
github.com/cosmos/cosmos-sdk => github.com/KYVENetwork/cosmos-sdk v0.47.5-kyve-rc0

// use cosmos flavored gogo/protobuf
// https://github.com/cosmos/cosmos-sdk/issues/8469
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec h1:1Qb69m
github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec/go.mod h1:CD8UlnlLDiqb36L110uqiP2iSflVjx9g/3U9hCI4q2U=
github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0 h1:+r1rSv4gvYn0wmRjC8X7IAzX8QezqtFV9m0MUHFJgts=
github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0=
github.com/KYVENetwork/cosmos-sdk v0.47.4-0.20230912091353-d2c627552db3 h1:yAUoqAFdx2Hw6OFiUXiisE/vNSNmVYzBrgbNAmkYO8A=
github.com/KYVENetwork/cosmos-sdk v0.47.4-0.20230912091353-d2c627552db3/go.mod h1:EHwCeN9IXonsjKcjpS12MqeStdZvIdxt3VYXhus3G3c=
github.com/KYVENetwork/cosmos-sdk v0.47.5-kyve-rc0 h1:FmlzQ31pUpd+PgDnUPR9cxNL0GdBCAOLlevhnrvS05Y=
github.com/KYVENetwork/cosmos-sdk v0.47.5-kyve-rc0/go.mod h1:EHwCeN9IXonsjKcjpS12MqeStdZvIdxt3VYXhus3G3c=
github.com/KYVEnetwork/interchaintest/v7 v7.0.0-20230430102232-d4378a86dc25 h1:HPCebOL17UjN9yPHUndunLbtr5o+J8nJbLrO/KDEgTg=
github.com/KYVEnetwork/interchaintest/v7 v7.0.0-20230430102232-d4378a86dc25/go.mod h1:iX6tg3V6mH64h37ZvLuJa7lp9GbmFixTMlVu6Gilb/Q=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
Expand Down
4 changes: 2 additions & 2 deletions x/team/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type VestingStatus struct {
var (
TEAM_FOUNDATION_STRING = "kyve1u7ukf2nv6v5j5y2yqprm8yqruue2rlmrkx4xgq"
TEAM_BCP_STRING = "kyve1ruxaec07ca3dh0amkzxjap7av3xjt5vjgnd424"
TEAM_ALLOCATION_STRING = "165000000000000000"
TGE_STRING = "2023-02-01T10:34:15"
TEAM_ALLOCATION_STRING = "165000000000000"
TGE_STRING = "2023-03-14T14:03:14"
)

// Convert passed build variables (string) to the corresponding int values
Expand Down

0 comments on commit c3f0fde

Please sign in to comment.